Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Issues with <html:messages >

Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have below mentioned code in my Action class method

ActionMessages messages = new ActionMessages();
ActionMessage message = new ActionMessage("error.unspecified");
saveMessages(request, messages);
return mapping.getInputForward();

and the following code in the JSP page to which this is forwarded.

<logic:messagesPresent message="true" >
<html:messages id="message" message="true" >
<bean:write name="message" />



But somehow i get this error saying that

javax.servlet.jsp.JspException: Cannot find bean: "message" in any scope

I am really struck.. Struts version 1.2.9

Thanks & Regards
Rishi Chopra.
A "dutch baby" is not a baby. But this tiny ad is baby sized:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic