You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Zakaria khabot <z....@ced.mfie.gov.ma> on 2004/03/18 18:08:27 UTC

Executing Struts-layout

Hi all,
when I execute an Action which forward to a JSP I receive a null pointer
exception.
in my JSP I have :
<layout:collection name="SaisiPBForm" property="tab" id="col1"
styleClass="FORM" >

<layout:collectionItem title="SIGLE1" property="SIGLE1" width="150"/>

<layout:collectionItem title="SIGLE2" property="SIGLE2" width="150"/>

</layout:collection>



"tab" in an ArrayList witch I got from the Database.

can someone help me.

thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Executing Struts-layout

Posted by "Khalid K." <gr...@maikada.com>.
Just take a close look at the stack trace and read it from buttom up, and see
where the code fails...Usually it is something like:
NullPointerException
com.blablah.myAction (myAction:30)

which means the nullpointerexception happened at line 30 of "myAction" or
whatever class you are calling..

Khalid

Quoting Zakaria khabot <z....@ced.mfie.gov.ma>:

> Hi all,
> when I execute an Action which forward to a JSP I receive a null pointer
> exception.
> in my JSP I have :
> <layout:collection name="SaisiPBForm" property="tab" id="col1"
> styleClass="FORM" >
> 
> <layout:collectionItem title="SIGLE1" property="SIGLE1" width="150"/>
> 
> <layout:collectionItem title="SIGLE2" property="SIGLE2" width="150"/>
> 
> </layout:collection>
> 
> 
> 
> "tab" in an ArrayList witch I got from the Database.
> 
> can someone help me.
> 
> thanks
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


-- 
Khalid K.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org