• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

html:messages does not display the messages

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic