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

how to make a web application built in servlets and jsp login protective  RSS feed

 
harsha karuturi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to give authentication to users, restrict them from accessing specific resources. please help me out?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried or researched on your own? Have you read the Servlet Specification regarding container-managed security? If not, that's a good place to start.
 
harsha karuturi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have placed resource.jsp under web-inf folder and then created a login.jsp and placed outside web-inf folder . i created a login servlet which checks the username and password from database and if it matches, then i want to access resource.jsp. i tried accessing resource.jsp by using send Redirect() method but couldn't.

help me out please
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP placed under WEB-INF (not web-inf) cannot be reached by a redirect.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!