aspose file tools*
The moose likes Struts and the fly likes value not passing from ActionForm to JSP page output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "value not passing from ActionForm to JSP page output" Watch "value not passing from ActionForm to JSP page output" New topic
Author

value not passing from ActionForm to JSP page output

kenji kunoichi
Ranch Hand

Joined: Jun 02, 2007
Posts: 46
In my login Failure page I am writing like Invalid user name Kenji which I am coding like :

<body>
<div style="color:red">
<h1>Invalid user name <bean:write name="LoginForm" property="userName"></bean:write></h1>
</div>
</body>



but it is appearing only Invalid User Name

the name is not appearing . what maybe the problem? in LoginForm 's getter setter the values are passing corretly . I can see that in tomcat's log .



Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30764
    
156

What scope is your form in? Can you show how you declare the LoginForm on the page? (should be a bean:define or jsp:useBean)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: value not passing from ActionForm to JSP page output