Hi Pankaj, U can use following tag <html:hidden property="" name="" /> >Also I intend to set a hidden field in the next page to be displayed and check it before loading of the new page. If the hidden field is not set, the new page wont be loaded and the user would be redirected to the login page.
where u can set its value into a bean 's field and that will be mapped to property attribute. U can call a javacsript function on form load event where u can check the value of the field if matches or exist then let the form load and if not then redirect the request to login form. regards, Novin Pankaj Gupta <[EMAIL PROTECTED]> wrote: Hi, I want to implement a feature in struts wherein nobody can open a page directly by copying the url and pasting it in a new browser window.i.e. any page of the application can only be reached through login page. If the user pastes the url in the browser, he is redirected to the login page. For this I am planning to keep the user's role in session scope and verify it before loading any page. Also I intend to set a hidden field in the next page to be displayed and check it before loading of the new page. If the hidden field is not set, the new page wont be loaded and the user would be redirected to the login page. Please suggest if it is the right way and if yes how can I set a hidden field in struts. regards, Panks --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks and Regards, Novin Jaiswal +919890089443(M) +912039511388(H) +912026901306(O) direct +912026982424 Extn:1306 --------------------------------- Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice