当前位置: 首页 > 工具软件 > ExtTLD > 使用案例 >

EXTTLD--部署调试

田鹤轩
2023-12-01
//EXTTLD标签要基于Servlet2.5,因此如果使用Tomcat6.*就不会出现如下问题:但是会出现在使用例子中没有的标签时,会出现如下异常,在google的code搜索中项目中该问题还没有处理。期待中...(Unable to convert string "${dynamicAttributes}" to class "java.util.HashMap" for attribute "dynamicAttributes": Property Editor not registered with the PropertyEditorManager )




由于不擅长表现层的CSS,js等,因此做出的界面非常难看,因此为了找一个好的标签,通过open-open发现了EXTTLD(www.exttld.com),虽然之前听过说extjs,但是这次看到要把它封装成一个类似标签库的方式使用。因此下载了一个exttldexamples.zip想看看例子(下载地址: http://code.google.com/p/exttld/),但是发现部署以后总是抛错
org.apache.jasper.JasperException: Unable to compile class for JSP



An error occurred at line: 47 in the jsp file: /WEB-INF/tags/ext/util/processTagAttributes.tag

Generated servlet error:

Syntax error on token "<", ( expected



An error occurred at line: 47 in the jsp file: /WEB-INF/tags/ext/util/processTagAttributes.tag

Generated servlet error:

Syntax error, insert ")" to complete Expression



An error occurred at line: 47 in the jsp file: /WEB-INF/tags/ext/util/processTagAttributes.tag

Generated servlet error:

Syntax error on token "<", ( expected



An error occurred at line: 47 in the jsp file: /WEB-INF/tags/ext/util/processTagAttributes.tag

Generated servlet error:

Syntax error on token "(", invalid Expression



......... 
个人以为exttld1.0-beta.zip会比较新,beta版嘛,因此下载一个覆盖了exttldexamples.zip里边的tag文件,发现抛出
org.apache.jasper.JasperException: Unable to compile class for JSP



An error occurred at line: 19 in the jsp file: /WEB-INF/tags/ext/util/setParentProperties.tag

Generated servlet error:

Syntax error on token ":", ; expected



An error occurred at line: 19 in the jsp file: /WEB-INF/tags/ext/util/setParentProperties.tag

Generated servlet error:

Syntax error on token ")", ; expected after this token

.....

修改 for (Object key:dynamicAttributes.keySet()){

为 java.util.Iterator iterator = dynamicAttributes.keySet().iterator();              

while(iterator.hasNext()){          

Object key = iterator.next();

修改

if (removeComma!=null && removeComma){

if (removeComma!=null && removeComma.booleanValue()){

都是一些java语法错误然后可以查看其自带的例子了



//

 类似资料: