Id there any URL Gripping in struts for security point of View i am sure it must be there some way to do it? Can i restrict the URL in the Browser someway so that user can see only Context path http://localhost:7001/SICApp/ or other standard URL for all actions..
Joined: Feb 15, 2005
I'm not sure why you would want to do this. Security is normally handled by putting logic in the Action classes themselves or in the struts-config file to detect whether a user is authorized to perform that function or not, not by hiding or modifying the URL in the browser.
About the only way I can think of to accomplish what you want is to play tricks with frames. For example, you could set up the wecome page so that it has an <iframe> that takes up the whole page. Once this page is displayed, from then on, everythng is posted to the IFrame. In this manner, the only URL that is shown on the browser is the one for the welcome page, even though other actions are being performed and other URLs called.