You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mail <ma...@peneios.com> on 2004/10/20 01:18:09 UTC
bean:parameter does not work for me with tomcat 5.0.28
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
Re: bean:parameter does not work for me with tomcat 5.0.28
Posted by mail <ma...@peneios.com>.
Never mind ... It was something about the document format. After
converting from windows to unix things work fine. Converting back to
windows and still working fine ... Strange but solved.
Thanks,
Chris
mail wrote:
> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org