Hi Hanen, i have no clue if that what You have done is ok (long time off struts1), but a typical action definition in struts-config.xml looks like this: <action name="regionsEditForm" path="/admin/regions/edit" type="com.pi.eplatform.suirz.user.action.admin.EditRegionsAction"> <forward name="editRegions" path="suirz.admin.regions.edit"/> </action>
and i don't know if You are confusing beans with actions maybe? I also don't know if by adding id attribute to action one makes them automaticaly accessible as bean in page scope - but all of this should be in docs. Best greetings, Paweł Wielgus. 2009/8/27 Hanen Ben Rhouma <hanen...@gmail.com>: > Hello there, > > Please I have a blocking point which on which I've spent two days with no > light at the end if tunnel: > > Actually I've declared my bean into struts-config.xml like this: > > <action > path="/users" > id="users" > scope="request" > name="users" > type="com.myapp.struts.UsersAction" > parameter="/users.jsp"> > </action> > > after that I tried to invoke this bean's method so I wrote in my users.jsp > page: > > <bean:write name="users" property="env"/> > > when running my application it throws this exception: > > javax.servlet.jsp.JspException: Cannot find bean: "users" in any scope > org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:864) > org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:233) > > org.apache.jsp.users_jsp._jspx_meth_bean_005fwrite_005f0(users_jsp.java:158) > org.apache.jsp.users_jsp._jspService(users_jsp.java:112) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > What's wrong in my bean declaration that hides it from being injected into > my application context??? > > > Thanks in advance for any suggestion, > Hanen > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org