You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by struts lover <st...@yahoo.com> on 2004/10/26 14:17:12 UTC

error messages not displaying

Hi Everyone,
I have this weird problem. My error messages were
displaying fine but after I started using tiles, the
messages dont show up. 
If I do the <logic:messagesPresent> for a particular
property, it shows that error is present. But the
<html:errors/> tag doesnt show errors.

Anyone can help with this.

Thanks a lot.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: error messages not displaying

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
I don't really use includes, but I believe you do. Quickest way to find out
is give ita try and see if it resolves the problem.

Niall

----- Original Message ----- 
From: "struts lover" <st...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, October 26, 2004 5:55 PM
Subject: Re: error messages not displaying


> Hi,
> I have the following definition in the tiles.xml.
>
> <definition name="global"
> path="/WEB-INF/tiles/standardLayout.jsp">
>         <put name="title" value="Title" />
>         <put name="topLinks"
> value="/WEB-INF/tiles/topNav.jsp" />
>         <put name="bottomLinks"
> value="/WEB-INF/tiles/bottomNav.jsp" />
>         <put name="topMenu"
> value="/WEB-INF/tiles/topMenu.jsp" />
>         <put name="content"
> value="/WEB-INF/tiles/index.jsp" />
>     </definition>
>
> <definition extends="global" name="customer.Page">
>         <put name="content"
> value="/WEB-INF/jsp/customer.jsp" />
>     </definition>
>
> I have defined the html taglib in the
> topNav.jsp,topMenu.jsp,customer.jsp,bottomNav.jsp.
>
> The customer.jsp has other includes like
> <%@ include file="address_include.inc" %>
> I have not defined taglib in the <includes>.
>
> Am I doing anything wrong ???
>
> --- Niall Pemberton <ni...@blueyonder.co.uk>
> wrote:
>
> > You need it in every jsp that use those tags, not
> > just the "main" one.
> >
> > Niall
> >
> > ----- Original Message ----- 
> > From: "struts lover" <st...@yahoo.com>
> > To: "Struts Users Mailing List"
> > <us...@struts.apache.org>
> > Sent: Tuesday, October 26, 2004 5:28 PM
> > Subject: Re: error messages not displaying
> >
> >
> > > Hi,
> > > I have my html taglib definition on the top on my
> > main
> > > jsp.
> > >
> > > Thanks
> > >
> > > --- Niall Pemberton
> > <ni...@blueyonder.co.uk>
> > > wrote:
> > >
> > > > When you broke your jsp up into tiles did you
> > still
> > > > include the html taglib
> > > > definition?
> > > >
> > > > Niall
> > > >
> > > > ----- Original Message ----- 
> > > > From: "struts lover" <st...@yahoo.com>
> > > > To: <us...@struts.apache.org>
> > > > Sent: Tuesday, October 26, 2004 1:17 PM
> > > > Subject: error messages not displaying
> > > >
> > > >
> > > > > Hi Everyone,
> > > > > I have this weird problem. My error messages
> > were
> > > > > displaying fine but after I started using
> > tiles,
> > > > the
> > > > > messages dont show up.
> > > > > If I do the <logic:messagesPresent> for a
> > > > particular
> > > > > property, it shows that error is present. But
> > the
> > > > > <html:errors/> tag doesnt show errors.
> > > > >
> > > > > Anyone can help with this.
> > > > >
> > > > > Thanks a lot.
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail:
> > > > user-help@struts.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Address AutoComplete - You start. We
> > finish.
> > > http://promotions.yahoo.com/new_mail
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail:
> > user-help@struts.apache.org
> > >
> > >
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>



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


Re: error messages not displaying

Posted by struts lover <st...@yahoo.com>.
Hi,
I have the following definition in the tiles.xml.

<definition name="global"
path="/WEB-INF/tiles/standardLayout.jsp">
        <put name="title" value="Title" />
        <put name="topLinks"
value="/WEB-INF/tiles/topNav.jsp" />
        <put name="bottomLinks"
value="/WEB-INF/tiles/bottomNav.jsp" />        
        <put name="topMenu"
value="/WEB-INF/tiles/topMenu.jsp" />
        <put name="content"
value="/WEB-INF/tiles/index.jsp" />
    </definition>

<definition extends="global" name="customer.Page">
        <put name="content"
value="/WEB-INF/jsp/customer.jsp" />
    </definition>

I have defined the html taglib in the
topNav.jsp,topMenu.jsp,customer.jsp,bottomNav.jsp.

The customer.jsp has other includes like
<%@ include file="address_include.inc" %>
I have not defined taglib in the <includes>.

Am I doing anything wrong ???

--- Niall Pemberton <ni...@blueyonder.co.uk>
wrote:

> You need it in every jsp that use those tags, not
> just the "main" one.
> 
> Niall
> 
> ----- Original Message ----- 
> From: "struts lover" <st...@yahoo.com>
> To: "Struts Users Mailing List"
> <us...@struts.apache.org>
> Sent: Tuesday, October 26, 2004 5:28 PM
> Subject: Re: error messages not displaying
> 
> 
> > Hi,
> > I have my html taglib definition on the top on my
> main
> > jsp.
> > 
> > Thanks
> > 
> > --- Niall Pemberton
> <ni...@blueyonder.co.uk>
> > wrote:
> > 
> > > When you broke your jsp up into tiles did you
> still
> > > include the html taglib
> > > definition?
> > > 
> > > Niall
> > > 
> > > ----- Original Message ----- 
> > > From: "struts lover" <st...@yahoo.com>
> > > To: <us...@struts.apache.org>
> > > Sent: Tuesday, October 26, 2004 1:17 PM
> > > Subject: error messages not displaying
> > > 
> > > 
> > > > Hi Everyone,
> > > > I have this weird problem. My error messages
> were
> > > > displaying fine but after I started using
> tiles,
> > > the
> > > > messages dont show up.
> > > > If I do the <logic:messagesPresent> for a
> > > particular
> > > > property, it shows that error is present. But
> the
> > > > <html:errors/> tag doesnt show errors.
> > > >
> > > > Anyone can help with this.
> > > >
> > > > Thanks a lot.
> > > 
> > > 
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail:
> > > user-help@struts.apache.org
> > > 
> > > 
> > 
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Address AutoComplete - You start. We
> finish.
> > http://promotions.yahoo.com/new_mail 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> > 
> > 
> > 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: error messages not displaying

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
You need it in every jsp that use those tags, not just the "main" one.

Niall

----- Original Message ----- 
From: "struts lover" <st...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, October 26, 2004 5:28 PM
Subject: Re: error messages not displaying


> Hi,
> I have my html taglib definition on the top on my main
> jsp.
> 
> Thanks
> 
> --- Niall Pemberton <ni...@blueyonder.co.uk>
> wrote:
> 
> > When you broke your jsp up into tiles did you still
> > include the html taglib
> > definition?
> > 
> > Niall
> > 
> > ----- Original Message ----- 
> > From: "struts lover" <st...@yahoo.com>
> > To: <us...@struts.apache.org>
> > Sent: Tuesday, October 26, 2004 1:17 PM
> > Subject: error messages not displaying
> > 
> > 
> > > Hi Everyone,
> > > I have this weird problem. My error messages were
> > > displaying fine but after I started using tiles,
> > the
> > > messages dont show up.
> > > If I do the <logic:messagesPresent> for a
> > particular
> > > property, it shows that error is present. But the
> > > <html:errors/> tag doesnt show errors.
> > >
> > > Anyone can help with this.
> > >
> > > Thanks a lot.
> > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> > 
> > 
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 


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


Re: error messages not displaying

Posted by struts lover <st...@yahoo.com>.
Hi,
I have my html taglib definition on the top on my main
jsp.

Thanks

--- Niall Pemberton <ni...@blueyonder.co.uk>
wrote:

> When you broke your jsp up into tiles did you still
> include the html taglib
> definition?
> 
> Niall
> 
> ----- Original Message ----- 
> From: "struts lover" <st...@yahoo.com>
> To: <us...@struts.apache.org>
> Sent: Tuesday, October 26, 2004 1:17 PM
> Subject: error messages not displaying
> 
> 
> > Hi Everyone,
> > I have this weird problem. My error messages were
> > displaying fine but after I started using tiles,
> the
> > messages dont show up.
> > If I do the <logic:messagesPresent> for a
> particular
> > property, it shows that error is present. But the
> > <html:errors/> tag doesnt show errors.
> >
> > Anyone can help with this.
> >
> > Thanks a lot.
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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


Re: error messages not displaying

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
When you broke your jsp up into tiles did you still include the html taglib
definition?

Niall

----- Original Message ----- 
From: "struts lover" <st...@yahoo.com>
To: <us...@struts.apache.org>
Sent: Tuesday, October 26, 2004 1:17 PM
Subject: error messages not displaying


> Hi Everyone,
> I have this weird problem. My error messages were
> displaying fine but after I started using tiles, the
> messages dont show up.
> If I do the <logic:messagesPresent> for a particular
> property, it shows that error is present. But the
> <html:errors/> tag doesnt show errors.
>
> Anyone can help with this.
>
> Thanks a lot.



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