HttpServletRequest has a method called getHeader(String name) use that with a paramater of "Referer" which will give you the page the user came from. Look at the Servlet specification for all your other answers.
--Amit -----Original Message----- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 2:42 PM To: [EMAIL PROTECTED] Subject: login framework Hi, I have a following requirement, there are 2 links on a webpage, when the user clicks on 1st link show the user login screen if he is not logged in( ihave login info in session), if the login is valid forward the request to 1st html page, if the user clicks on 2nd link, again show the login screen (if not logged in), and if the login is valid forward the request to 2nd html page. So how do i define in struts-config file to handle this, I want some mechanism to remember from which page the request came and which page is must be redirected, and what where the parameters in the request. It is some thing like on ebay, where the user has to login each time he tries to checkout Any suggestions about it Ashish __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]