This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Authentication in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Authentication in jsp" Watch "Authentication in jsp" New topic

Authentication in jsp

ukal thy

Joined: Jun 21, 2011
Posts: 4
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

Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

Welcom to JavaRanch.

how you are doing the authentication..

SCJP6.0,My blog Ranchers from Delhi
ukal thy

Joined: Jun 21, 2011
Posts: 4
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...

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61092

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Authentication in jsp