• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic