I figured it out. I don't know if this is a bug with Tomcat or not. In the jsp 
I have a Organization class instance called org:

Organization org = (Organization) s.getAttribute(Application.SO_ADMIN_ORG);

and in the jsp I have the following jsp:include:


  |    Select a School:
  |    <jsp:include page="../common/SelectOrganization.jsp" flush="true">
  |        <jsp:param name="value" value="<%= selectedFacilityId %>"/>
  |        <jsp:param name="applications" value="<%= Application.CORE_RADWEB 
%>"/>
  |     </jsp:include>
  |                         
  |    <input type="submit" id="btSelect" name="btSubmit" value="Select" 
class="button" title="Click to view selected schools exam codes."/>


When this is converted to a servlet, the code that is generated is as follows:

<td >\n");
  |       out.write("\t                  Select a Facility:\n");
  |       out.write("\t                  ");
  |       org.apache.jasper.runtime.JspRuntimeLibrary.include(request, 
response, "../common/SelectOrganization.jsp" + 
(("../common/SelectOrganization.jsp").indexOf('?')>0? '&': '?') + 
org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("value", 
request.getCharacterEncoding())+ "=" + 
org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode(String.valueOf( 
selectedFacilityId ), request.getCharacterEncoding()) + "&" + 
org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("applications", 
request.getCharacterEncoding())+ "=" + 
org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode(String.valueOf( 
Application.CORE_RADWEB ), request.getCharacterEncoding()), out, true);
  |       out.write("\n");
  |       out.write("\t                    \n");
  |       out.write("\t                  <input type=\"submit\" id=\"btSelect\" 
name=\"btSubmit\" value=\"Select\" class=\"button\" title=\"Click to view 
selected facility's exam codes.\"/>\n");
  |       out.write("\t                </td>\n");

When the compiler sees the org.apache.jasper.JspRuntimeLibrary declaration it 
gives a compile error saying it can not resolve variable apache. It assumes 
that apache is a variable in the Organization class.

This worked fine in a earlier version of Tomcat, is this a bug in the jasper 
tools?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952469#3952469

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952469

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to