I have still got problems with compiling java source files from my jsp pages,
still trying to track down the root causing the problem.
When translating jsp files including tag libraries, the java source files will
contain a line with the tag in question being commented out - clarification
reason, I suppose - like this: (notice the // c:forEarch)
...
private boolean _jspx_meth_c_forEach_0(javax.servlet.jsp.tagext.JspTag
_jspx_th_html_select_0, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 =
(org.apache.taglibs.standard.tag.rt.core.ForEachTag)
_jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
_jspx_th_c_forEach_0.setParent((javax.servlet.jsp.tagext.Tag)
_jspx_th_html_select_0);
_jspx_th_c_forEach_0.setVar("isp");
...
This is a correct behavior. BUT, something strange happens when translating my
jsp files. The code is not very nicely formatted but put on just a few lines
which will cause more than just that tag line to be commented out, which in
turn will cause the java source file to be incompilable.
Does anyone have any explanation to why there is no line breaks in my
translated jsp files?
Here is an few snippets taken from an incorrectly translated file.
***Beginning of file: (everything is on one line)***
package org.apache.jsp.templates;import javax.servlet.*;import
javax.servlet.http.*;import javax.servlet.jsp.*;
***Snippet from the content***
out.write(" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
out.write("\r\n"); // tiles:useAttribute
org.apache.struts.taglib.tiles.UseAttributeTag _jspx_th_tiles_useAttribute_0 =
(org.apache.struts.taglib.tiles.UseAttributeTag)
_jspx_tagPool_tiles_useAttribute_scope_name_nobody.get(org.apache.struts.taglib.tiles.UseAttributeTag.class);
Thanks in advance!
/Henrik
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929270#3929270
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929270
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user