如何让myeclipse能够提示自定义的EL函数?

单骑2009 2009-12-22 05:52:21
以前用过Bea Workshop Studio这个是支持的,就是输个${su: ...}后面自动就给出提示了
但是放到myeclipse里就不支持了,快捷键也用了也不行,
难道自定义的那么多EL函数每次用的时候都去把那个文件打开吗?

不知道大家有没有什么好的方法啊,
web.xml的配置:

XML code


<jsp-config>
<taglib>
<taglib-uri>/tags/suncer-utils</taglib-uri>
<taglib-location> /WEB-INF/tld/suncer-utils.tld </taglib-location>
</taglib>
</jsp-config>



tld文件的的配置

XML code


<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
<description>suncer utils by suncer.com</description>
<tlib-version>1.0</tlib-version>
<short-name>SuncerUtils</short-name>
<uri>/tags/suncer-utils</uri>
<function>
<name>getSysparamCode</name>
<function-class>com.suncer.tags.SuncerUtils</function-class>
<function-signature>getSysparamCode</function-signature>
</function>
</taglib>


页面引入

Java code

<%@ taglib prefix="su" uri="/tags/suncer-utils"%>



上面是我的配置,配置肯定没问题的,程序可以运行,就是没有提示,很麻烦啊,大家知道应该怎么设置吗,帮帮小弟
...全文
211 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
单骑2009 2009-12-23
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 aspirehouse 的回复:]
加上这个 <@page isELIgnored="false">试试
[/Quote]
这个已经加了
单骑2009 2009-12-23
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 bearkin 的回复:]

标签是会有提示的 只是不知道LZ你的EL怎么那样调用
[/Quote]

自定义的EL函数不就是这样用的吗,编写类,编写TLD文件,配置web.xml,在页面上${myEl:funciontName()}调用,还有别的方法吗
BearKin 2009-12-23
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 wowtianwen 的回复:]
引用 2 楼 bolink5 的回复:
按 Ctrl + Alt +  <  试试

不管用,
没有试过在myeclipse里使用自定义El函数吗,当函数多了,没有提示真的太麻烦了
[/Quote]

标签是会有提示的 只是不知道LZ你的EL怎么那样调用
AspireHouse 2009-12-23
  • 打赏
  • 举报
回复
加上这个<@page isELIgnored="false">试试
单骑2009 2009-12-22
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 bolink5 的回复:]
按 Ctrl + Alt + <  试试
[/Quote]
不管用,
没有试过在myeclipse里使用自定义El函数吗,当函数多了,没有提示真的太麻烦了
bolink5 2009-12-22
  • 打赏
  • 举报
回复
按 Ctrl + Alt + < 试试
crazylaa 2009-12-22
  • 打赏
  • 举报
回复
不晓得支持不支持,关注

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧