Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resin vs Tomcat (jstl+struts)

Status
Not open for further replies.

orlyotero

Programmer
Jun 2, 2005
21
0
0
US
Hello all,

these simple line is driving me crazy:

<c:set var="idIssue" value="${requestScope['issueForm'].idIssue}" scope="page"/>

I'm using struts 1.2.4 and jstl 1.0, the above code woks fine while using resin 2.1.9 locally in my pc.
when I uploaded the appto my hosting provider it didnt work as expected, so I copied the whole application under tomcat directory in my PC and works as tomcat from hosting provider, that means: wrongly.

I searched in sun's forum and found something about JVM, that JVM <= 1.4.2_05 works fine but 1.4.2_06 and 1.4.2_07 give error.

I have tried JVM 1.4.2_08 and JVM 1.5.0_04 with the same exception:

9714 ERROR [http8080-Processor24] tiles.InsertTag - ServletException in '/WEB-I
NF/pages/admin/issues/edit-issue.jsp': An error occurred while evaluating custom
action attribute "value" with value "${requestScope['issueForm'].idIssue}": Una
ble to find a value for "idIssue" in object of class "org.apache.struts.validato
r.DynaValidatorForm" using operator "." (null)
javax.servlet.ServletException: An error occurred while evaluating custom action
attribute "value" with value "${requestScope['issueForm'].idIssue}": Unable to
find a value for "idIssue" in object of class "org.apache.struts.validator.DynaV
alidatorForm" using operator "." (null)
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageC
ontextImpl.java:867)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon
textImpl.java:800)
at org.apache.jsp.WEB_002dINF.pages.admin.issues.edit_002dissue_jsp._jsp
Service(edit_002dissue_jsp.java:257)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:311)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
01)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:204)......

Any idea or help or anything will be greatly appreciated.

Regards,
OO

P.S. Sorry about my english
 
Finally I was answered,

For those who have dealed with the same situation, the solution is:

${requestScope['issueForm'].map.idIssue}

Note the .map attribute added to the sentence,

I don't really know why resin was working with and without it, but now it's working in both containers.

Thanks to tomcat forums

Regards,
OO
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top