struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict" <pbened...@apache.org>
Subject Re: problem with <logic:iterate...
Date Thu, 13 Sep 2007 08:21:16 GMT
X32Form is the name of your java class, not the bean. You get the name of
the bean from the "name" attribute of your action mapping.

Paul

On 9/12/07, msg2ajay <msg2ajay@gmail.com> wrote:
>
>
> hi,
>         i am trying to get the collection object (Vector)  form Action
> Class
> to my Jsp. I already set to my FormBean and i am getting an error as..
>
> javax.servlet.jsp.JspException: Cannot find bean: "X32Form" in any scope
> my Action class is (X32Action.java):
> ------------------------------------
> Vector lableGenVect = (Vector) xParser.xmlLableGen (Comm_vect);
> form.setLableParam (lableGenVect);
>
> my FormBean Class is (X32Form.java):
> ------------------------------------
>     public Vector getLableParam(){
>         return lableParam;
>     }
>     public void setLableParam(Vector lables){
>         this.lableParam = lables;
>         System.out.println("X32 FORM __________"+lables); // I am able to
> set ie. i can print the values of the action class.
>     }
>
> my jsp:
> ---------
> <logic:iterate name="X32Form" id="lableParam">
>                 <tr>
>                     <td>
>                         <bean:write name="X32Form" property="lableParam"/>
>                     </td>
>                 </tr>
> </logic:iterate>
>
> thanQ,
> Ajay
> --
> View this message in context:
> http://www.nabble.com/problem-with-%3Clogic%3Aiterate...-tf4433312.html#a12647969
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message