Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

creating a servlet login  RSS feed

 
isaac125
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
im trying to implement a simple login in which the user fills an html form with id and password and then a servlet is in charge of manage the authorization
however i cannot find any example or resource on the net that tells me how to protect all the site, lets say someone knows the URL of one of the .html or .jsp pages that are on the site, he can type the URL and go there directly even if he didnt log in, but i just cant figure out how to tell the servlet which pages should be checked
im new on this, so i really would appreciate if someone knows about a tutorial or examples or something like that where i can learn about this
thanks in advance
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both the servlet 2.3 spec and the J2EE 1.3 spec
include sections on security.
Check them out at
http://java.sun.com/products/servlet/index.html
and
http://java.sun.com/j2ee/, respectively.
You can also find tutorials, example code, white
papers and other resources at those sites.
HTH,
Joe
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
isaac125:
Welcome to Javaranch! We are sure you will enjoy your stay here which we hope will be long.
We have a username policy explained in
http://www.javaranch.com/ubb/Forum10/HTML/000180.html
Please re-register and come back.
I suggest (in case the post needs more info since we changed things around recently) you use only a login 2-word name (no display name) and use your first and last names (and middle initial if you want).
[ January 18, 2002: Message edited by: Tony Alicea ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!