• 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

How to display ActionMessage?

 
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What tags do I use to display ActionMessage?
<html:errors/> did not seem to display the ActionMessages.
I'm trying out <html:messages/> However, I do not understand what's the required id parameter, despite reading the API docs.
 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nobody knows how to display an ActionMessage? Help out a new learner..
I've just tried out the piece of code that i've found somewhere.
<html:messages id="message" property="<%=org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE%>"><li><bean:write name="message"/></li></html:messages>
And it is still not displaying the messages. Does it have to do with the way I return ActionForward in Action class? I'm using the normal
return mapping.findForward("Success");
 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
These are some relevant codes

JSP page

struts-config
 
reply
    Bookmark Topic Watch Topic
  • New Topic