This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 32481
    
214

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]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: value not passing from ActionForm to JSP page output
 
It's not a secret anymore!