|
Home > Archive > WebSphere Application Server > March 2004 > Struts jsp error - please help!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Struts jsp error - please help!
|
|
|
| Hi, all,
I used to use JBoss for my application, and now porting to WebSphere. Some jsp pages using Struts start complaining:
E SRVE0026E: [Servlet Error]-[Cannot find bean xxxx in any scope]: javax.servlet.jsp.JspException: Cannot find bean xxxx in any scope.
I used
<logic:iterate name="xxxx" id="xxx">
in one.jsp, and define it in another:
<bean:define id="xxxx" name="xxxxBean" property="xxxxProperty" toScope="request" />
<jsp:include page="/jsp/one.jsp" flush="true" />
Could someone give me some advice on what I might have missed?
Thanks,
Michelle
| |
| Henrik Sjostrand 2004-03-29, 2:35 pm |
| Hi,
By WebSphere I assume you mean WebSphere Studio to begin with. Try
renaming the JSP fragment one.jsp you include to one.jspf. Then
WebSphere Studio knows it's a JSP fragment and that you have defined
the beans in another JSP.
Henrik Sjöstrand
henrik "at" sjostrand (dot) net
<michf000@yahoo.com> wrote in message news:<2039824364.1080327563841.JavaMail.wasadmin@swg3ws006>...
> Hi, all,
>
> I used to use JBoss for my application, and now porting to WebSphere. Some jsp pages using Struts start complaining:
>
> E SRVE0026E: [Servlet Error]-[Cannot find bean xxxx in any scope]: javax.servlet.jsp.JspException: Cannot find bean xxxx in any scope.
>
> I used
> <logic:iterate name="xxxx" id="xxx">
> in one.jsp, and define it in another:
>
> <bean:define id="xxxx" name="xxxxBean" property="xxxxProperty" toScope="request" />
>
> <jsp:include page="/jsp/one.jsp" flush="true" />
>
>
> Could someone give me some advice on what I might have missed?
>
> Thanks,
> Michelle
|
|
|
|
|