This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
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 Customer Requirements for Developers this week in the Jobs Discussion 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: 32328
    
213

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)


[OCA 8 book] [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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: value not passing from ActionForm to JSP page output
 
It's not a secret anymore!