gutta_naveen
asked on
Cannot find bean in any scope
I get the Error below when i click on a button in the browser ( i have pasted the snippet code below the error )
javax.servlet.jsp.JspExcep tion: Cannot find bean regionName in any scope
at org.apache.struts.util.Req uestUtils. lookup(Req uestUtils. java:938)
at org.apache.struts.taglib.b ean.WriteT ag.doStart Tag(WriteT ag.java:29 8)
at jrun__jsp__customer__edit2 ejsp16._js pService(j run__jsp__ customer__ edit2ejsp1 6.java:760 )
at jrun.jsp.runtime.HttpJSPSe rvlet.serv ice(HttpJS PServlet.j ava:43)
In my JSP ( Edit.jsp ) the regionName is defined as below
<td class="label"><bean:messag e key="customer.add.label.re gion"/>:</ td>
<td><bean:write name="regionName"/></td>
In my Action class ( CustomerAction.java ) the regionName is set as below
request.setAttribute( "regionName", "US" );
I am not an expert in Struts, so be a little detail in your explaination. Any help is appreciated
thanks
naveen
javax.servlet.jsp.JspExcep
at org.apache.struts.util.Req
at org.apache.struts.taglib.b
at jrun__jsp__customer__edit2
at jrun.jsp.runtime.HttpJSPSe
In my JSP ( Edit.jsp ) the regionName is defined as below
<td class="label"><bean:messag
<td><bean:write name="regionName"/></td>
In my Action class ( CustomerAction.java ) the regionName is set as below
request.setAttribute( "regionName", "US" );
I am not an expert in Struts, so be a little detail in your explaination. Any help is appreciated
thanks
naveen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Cheers :-)