Could you please clarify bit more. Is the page opening and you don't want it to open or you want to open the page but its not opening?
Joined: Feb 23, 2011
thanks to both of you for replying
first of all sorry that i cannot explain my problem in a proper manner
Actually my problem is this:-
My project name is abc i have many jsp files in it for example xyz is one of them now i want that either i am logging in or logged out this file should not be open if directly given the path of it means
at present what is happening is this
i am running my project if i am logged in then in a new tab except the tab in which project is running through tomcat my page is opened but if i am logged out it will not open in new tab
so i basically need is that it should not be open in any of the way
if still you cannot understand my problem then please let me know
aaaaah !! Is it that you dont want to open any of the jsp's without logging in ?
well one of the way is validating the user credentials in your actions and mapping each of your jsp's to actions in your struts.xml file.. and if your applications has only jsp's and no actions or no struts then go for the 1980's way of scriptlets inside jsp's to validate the user name and password in the session that you have to put after you log in.
one more way - adding security-constraint tag in web.xml (declarative security)... I read in a O'Reily book. search about it..
and this might help -> Link and this also -> Link 2
Time is what we want the most, but what we use the worst. -- William Penn