This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot display ActionMessages

 
Juhan Voolaid
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
 
Ravi Seshu
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.
 
sweta naidu
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic