• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using jsp:setProperty bean with FORM authentication

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic