It's not a secret anymore!
The moose likes JSP and the fly likes Authentication in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Authentication in jsp" Watch "Authentication in jsp" New topic
Author

Authentication in jsp

ukal thy
Greenhorn

Joined: Jun 21, 2011
Posts: 4
hi,
iam developing a web code using jsp.
in my project iam having login page for admin,users,
after login they will get a corresponding homepages,the problem is if i copy the url from addressbar and paste it
in another webpage it will automatically executing from there.

how can i avoid this.i have to get a error display..iam using tomcat6.
please help me

thanks
kalthy
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1046

Welcom to JavaRanch.

how you are doing the authentication..


SCJP6.0,My blog Ranchers from Delhi
ukal thy
Greenhorn

Joined: Jun 21, 2011
Posts: 4
hi,
iam new to java,
iam not doing any authentication,
simply wrote html and jsp pages and all my coding is working.
for ex:http://localhost:2020/ukalthy/example/search2/adminindex.jsp
actually this page comes after successful login.
but by copying this url and paste in another webpage then also iam getting output as iam getting in previous senario.
how to solve this...

thanks,
kalthy
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56168
    
  13

You should be checking for the authentication on every request using a filter, or configure container-managed authentication.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Authentication in jsp
 
Similar Threads
page transition in JSP-logic needed
search
Need help in creating html template dynamically with place holders
Logging in to a site programmatically
login