File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

value not passing from ActionForm to JSP page output

 
kenji kunoichi
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33691
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic