• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Cannot display ActionMessages

 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic