struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mail <m...@peneios.com>
Subject bean:parameter does not work for me with tomcat 5.0.28
Date Tue, 19 Oct 2004 23:18:09 GMT
Hi,

I just encountered a strange problem using the <bean:parameter> tag with 
tomcat 5.0.28

In my JSP file I have the following:

<bean:parameter id="pagePos" name="page" value="1" />

This worked fine on Resin 2.x and 3.x, however, I now have to run my 
project on Tomcat 5.0.28 and this doesn't work anymore. I get an exception:

javax.servlet.jsp.JspException: Cannot find bean page in any scope
            
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938)
            
org.apache.struts.util.RequestUtils.computeParameters(RequestUtils.java:309)
            
org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:462)
            
org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
            
org.apache.jsp.index_jsp._jspx_meth_html_link_0(index_jsp.java:2656)
            org.apache.jsp.index_jsp._jspService(index_jsp.java:1788)
            
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
            
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
            
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

This is only if the parameter is not present in the request, but as I 
understand this is what the value="x" is for?!? Is this a tomcat issue? 
Can I get it working somehow (without having to provide the param every 
time)? Or is it just me and I should change profession ;-) ?

Any help is appreciated!

Thanks,
Chris


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


Mime
View raw message