struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Owens" <sow...@csdcorp.com>
Subject RE: struts/java limitation ?
Date Mon, 03 Dec 2001 14:21:53 GMT
Yes, you're guess is correct, this is related to the 64k limit. There
was a previous workaround for this problem posted to this list that I've
used successfully to resolve the same problem. It puts a 'little bit' of
Java into your .jsp, which is evil, but it makes all the options
accessible, which is good, let your conscience be your guide ;-)

(This is a reprint of a fix given by John Nikolai)
<%
            String states[] = {
                "AL", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FL",
"GA",
                "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME",
"MI",
                "MN", "MS", "MO", "MT", "NE", "NC", "ND", "NH", "NJ",
"NM",
                "NY", "NV", "OH", "OK", "OR", "PA", "RI", "SC", "SD",
"TN",
                "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY" };

            pageContext.setAttribute("states", states);
%>

<html:select property="state" styleClass="state" size="1">
            	<html:option value="">State</html:option>
          	<html:options name="states" labelName="states" />
</html:select>


regards,

Stephen Owens
Corner Software

-----Original Message-----
From: flare [mailto:flare@flare.it]
Sent: Saturday, December 01, 2001 10:15 AM
To: struts-user@jakarta.apache.org
Subject: struts/java limitation ?


Hi, I'm building a form with an high number of select options, the form
is big 
but not that big (the jsp is less than 15K).
Well when I try to render the form using struts (and resin) I get:
------------
500 Servlet Exception

javax.servlet.jsp.JspException: (class: _secure/_page/_patient__jsp,
method:
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletR
esponse;
)V)
Illegal target of jump or branch
at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
at 
_secure._template._patient__jsp._jspService(/prevenet/secure/template/pa
tient.js
p:33)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:476)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:176
)
at
com.caucho.http.security.SecurityFilter.doFilter(SecurityFilter.java:112
)
at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:87)
at com.caucho.server.http.Invocation.service(Invocation.java:277)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:33
7)
at 
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java
:269)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)

---------
if I comment out a select or even a bunch of options (randomly) it
works, is 
there a kind of limitation in struts or has to do with the 64K method
limit of 
JAVA? 
Perhaps I can use the Struts "options" tag and a collection to solve but
I 
would like to keep the options in the jsp ;(

 Thanx

 

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message