This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 44
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30085
    
149

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
 
Similar Threads
cant view xml using xsl.
pass a variable in the URl
Failed to obtain specified collection Help Me
Array dispaly
configuring tomcat to use MsAcess