Re: Resin 3 + Struts problem with JSP compilation
- From: Ambar <ambar.hegde@xxxxxxxxx>
- Date: Mon, 10 Sep 2007 07:59:04 -0700
Clearly you named something "null" in your JSP, since both
andjava.lang.Integer null;
null = (java.lang.Integer)pageContext.findAttribute("null");
are illegal Java.
As I mentioned, this code was working just fine with Resin 2x. There
is no variable named null :)
The part of the jsp causing the problem is:
<logic:iterate id="driverValues"
name="SingleUserLocReportInitializer" property="teamMembers"
type="java.util.Hashtable"><html:option value='<
%=driverValues.get("USER_ID").toString()%>'> <
%=driverValues.get("NAME").toString()%></html:option></logic:iterate>
My application uses the logic:iterate tag extensively, and Resin 3.1
is generating the following code for every single one of these
instances:
java.lang.Integer null;
null = (java.lang.Integer)pageContext.findAttribute("null");
Whereas, with Resin 2x, the generated code is this:
java.util.Hashtable driverValues;
driverValues =
(java.util.Hashtable)pageContext.findAttribute("driverValues");
Isn't <logic:iterate> a Struts tag? Is Struts related to Resin?
Either way, I'd use JSTL <c:forEach> in preference to third-party tags.
--
Lew
I don't really have a choice in the matter - the tag has been used
extensively throughout the app, and was working just fine with Resin
2. Its been in production for years now
TIA,
Ambar
.
- Follow-Ups:
- References:
- Resin 3 + Struts problem with JSP compilation
- From: Ambar
- Resin 3 + Struts problem with JSP compilation
- Prev by Date: Resin 3 + Struts problem with JSP compilation
- Next by Date: Re: Resin 3 + Struts problem with JSP compilation
- Previous by thread: Resin 3 + Struts problem with JSP compilation
- Next by thread: Re: Resin 3 + Struts problem with JSP compilation
- Index(es):
Relevant Pages
|
|