This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

remember URL , design question

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have to work on web application where i need for the user to logon with userid and password for some functions. So it will be some thing like the user clicks submit after entering the data on a screen, but then i want to show a page for the user to login, and if the login is successfull then call the original URL with the data entered from the user and update the database,
but how do i keep track of the URL and data which was originially submitted.
Ashish
 
Ranch Hand
Posts: 314
2
Android VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Are you able to pass authentication responsibilities off to your web or application server (using JAAS or some other technology?) If so, then as long as you set up your security realm and modify the web.xml file to work with it, you can let the container worry about how to handle login navigation logic.
Darryl
 
ashish kulkarni
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
do u have any example or info of doing it, i want to validate user id and password on other as400 system
Ashish
 
Darryl A. J. Staflund
Ranch Hand
Posts: 314
2
Android VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I have a JBoss-specific example but I am not sure that will be helpful. Does your web or app server support JAAS? If so, it's manuals and support forums should provide some examples on how to use it.
Darryl
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there !

I have the same problem ... In fact, I�m using a servlet filter to check the login state for the user... I assumed every critical Action call , would be under /secure directory and configured a filter to check every /secure request. When it�s necessary , the filter redirects via response.sendRedirect , to a login.jsp .
It would be great if I didn�t loose the request information, including the FormBean when redirecting to the login page... And ... that�s my problem... I cannot preserve request data when proceding to the login ...
I prefer no to use the container managed AA , because it�s proprietary... and , in addition to it, in theory , that�s not a complicated task , managing login... ini ?
Some advice ?
Tks in advance !
F�bio
 
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!