Meaningless Drivel is fun!*
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: 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: 29261
    
140

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