File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Cannot display ActionMessages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot display ActionMessages" Watch "Cannot display ActionMessages" New topic
Author

Cannot display ActionMessages

Juhan Voolaid
Ranch Hand

Joined: Nov 18, 2003
Posts: 179
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

Joined: Mar 19, 2005
Posts: 38
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

Joined: Nov 18, 2003
Posts: 179
OK, did that, but it did not help. Still the same result.
sweta naidu
Greenhorn

Joined: Nov 02, 2004
Posts: 25
try this..
<html:messages id="msg" message="true" >
<bean:write name="msg"/>
</html:messages>
Juhan Voolaid
Ranch Hand

Joined: Nov 18, 2003
Posts: 179
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

Joined: Nov 18, 2003
Posts: 179
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

Joined: Nov 18, 2003
Posts: 179
OK - got it finally working.
Lot of help was from this link:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Cannot display ActionMessages
 
Similar Threads
Message Resources
Re, Handling Error using ActionMessages
struts problem
need a help on Struts ActionMessage
Display ActionMessage in JSP using fmt:message