This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes using jsp:setProperty bean with FORM authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "using jsp:setProperty bean with FORM authentication" Watch "using jsp:setProperty bean with FORM authentication" New topic
Author

using jsp:setProperty bean with FORM authentication

Vikram Bindal
Greenhorn

Joined: Jul 30, 2004
Posts: 7
Hello All,

I have a suitable web application in which I have form authentication using normal specified j_username, j_password stuff..

When the user is authenticated, I want to set my Java Bean Class property to these values (assuming in my Bean Class named userBean.java I have two variables namely String userName, String password)

normally one can do this (without form authentication)
by <jsp:setProperty name="user" property="*"> which automatically does the trick for you instead of lines of code..

But now because I have my username and password (FORM authentication) as
j_username and j_password... how can I accomplish setting beans property

Help, suggestion would be greatly appreciated

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using jsp:setProperty bean with FORM authentication
 
Similar Threads
Authentication with LDAP
java.lang.IllegalStateException: Cannot create a session after the response has been committed
Spring Security 2.0.4 .... Redirect user to original page after authentication success or failure
Authentication/Authorization
Retrieving login information