You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by elyes sallem <el...@gmail.com> on 2009/03/31 10:09:32 UTC
if nested property is null
Hello,
i have a nested property that i display in the jsp page :
<nested:nest property="iee">
<nested:write property="intaffIee" />
</nested:nest>
</nested:nest>
but , i can have a null value of iee property
how can i implement this to avoid an exception such as this one in the jsp
page :
javax.servlet.jsp.JspException: Invalid argument looking up property
Regards
Elyes.
Re: if nested property is null
Posted by elyes sallem <el...@gmail.com>.
i forgot this tag !
exactly, it avoids null properties
Thanks
Regards
Elyes
2009/3/31 Nils-Helge Garli Hegvik <ni...@gmail.com>
> Have you checked the 'present' tag?
>
>
> http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#nested:present
>
> http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#logic:present
>
> Nils-H
>
> On Tue, Mar 31, 2009 at 9:09 AM, elyes sallem <el...@gmail.com>
> wrote:
> > Hello,
> > i have a nested property that i display in the jsp page :
> > <nested:nest property="iee">
> >
> > <nested:write property="intaffIee" />
> > </nested:nest>
> > </nested:nest>
> > but , i can have a null value of iee property
> > how can i implement this to avoid an exception such as this one in the
> jsp
> > page :
> >
> > javax.servlet.jsp.JspException: Invalid argument looking up property
> >
> > Regards
> > Elyes.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Elyes.
Re: if nested property is null
Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Have you checked the 'present' tag?
http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#nested:present
http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#logic:present
Nils-H
On Tue, Mar 31, 2009 at 9:09 AM, elyes sallem <el...@gmail.com> wrote:
> Hello,
> i have a nested property that i display in the jsp page :
> <nested:nest property="iee">
>
> <nested:write property="intaffIee" />
> </nested:nest>
> </nested:nest>
> but , i can have a null value of iee property
> how can i implement this to avoid an exception such as this one in the jsp
> page :
>
> javax.servlet.jsp.JspException: Invalid argument looking up property
>
> Regards
> Elyes.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org