Hi All,
   I am trying to access FormBean from my customTag 
class. I used the following code scriplet in my tag class

ActionForm form = ( ActionForm )pageContext.getAttribute( "webutilCollapse" );

and I have registered the same name [webutilCollapse] in struts-config.xml
It looks something like this 
    <form-bean      name="webutilCollapse" type="tavant.CollapseForm">
    </form-bean>
   <action-mappings>  
    <action    path="/setPermissions" type="tavant.CollapseAction" scope="request" 
name="webutilCollapse" input="/2.jsp">
      <forward name="success"   path="/2.jsp" redirect="true"/>
    </action>    
  </action-mappings>
In my CollapseAction , I just forward it to success token .It look some thing like 
this:

    public ActionForward execute(ActionMapping mapping,ActionForm 
form,HttpServletRequest request,HttpServletResponse response)throws Exception {
         return ( mapping.findForward("success") );
    }

but some how pageContext.getAttribute( "webutilCollapse" ) return me a null. Every 
time.

any idea or help ?

regards,
Sourav 

Reply via email to