Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:messages does not display the messages

 
Gayatri Ganesh
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gayatri Ganesh
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic