struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elyes sallem <elyes.sal...@gmail.com>
Subject Re: if nested property is null
Date Tue, 31 Mar 2009 08:45:48 GMT
i forgot this tag !
exactly, it avoids null properties

Thanks
Regards
Elyes


2009/3/31 Nils-Helge Garli Hegvik <nilsga@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 <elyes.sallem@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.

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