wood burning stoves*
The moose likes Struts and the fly likes html:messages does not display the messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:messages does not display the messages " Watch "html:messages does not display the messages " New topic
Author

html:messages does not display the messages

Gayatri Ganesh
Ranch Hand

Joined: Dec 23, 2003
Posts: 143
Hi Everyone,

I am using tiles and each tile is a jsp.
when i use the <html:messages tag in one of the tiles it works fine.
but in the outer jsp ie where i say <tiles:insert , if i use the <html:messages tag
it does not work.
Can anyone please let me know the reason.

Thanks,
Gayatri
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

I believe it is because each jsp (or tile) gets processed as a completely separate entity. So the jsp associated with Struts must be the one to display the messages.

That is my hunch.


A good workman is known by his tools.
Gayatri Ganesh
Ranch Hand

Joined: Dec 23, 2003
Posts: 143
Thanks Marc for replying.

What does it mean :
So the jsp associated with Struts must be the one to display the messages.

I have <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> and the other required <@ taglib..
in all the jsps. The outer jsp (which has tiles:insert ) has the html:form

It is this outer jsp where the html:messages does not work.

Thanks,
gayatri
 
 
subject: html:messages does not display the messages