• 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

Cannot display ActionMessages

 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is my Action class:



This is the jsp file:


When I run it, only the "test" is displayed. That means that it stops before the tag "<logic:messagesPresent>" or it does not get access to ActionMessage. I don't know what is wrong
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i think in jsp : u hav to modify ....


<html:messages id="saveMessage" message="true" property="saveData.message">
<bean:write name="saveMessage"/>
</html:messages>
 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, did that, but it did not help. Still the same result.
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try this..
<html:messages id="msg" message="true" >
<bean:write name="msg"/>
</html:messages>
 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sweta naidu:
try this..
<html:messages id="msg" message="true" >
<bean:write name="msg"/>
</html:messages>



Then I got this in to my log file:
 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sweta naidu:
try this..
<html:messages id="msg" message="true" >
<bean:write name="msg"/>
</html:messages>



Then I got this in to my log file:
 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK - got it finally working.
Lot of help was from this link:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
 
reply
    Bookmark Topic Watch Topic
  • New Topic