• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

requested resource not available

 
shanoj mathew
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey
i have created a jsp form for logging in a user and have mapped it to a servlet
i have given the appropriate mappings in web.xml as well
but when i click the submit button in my jsp page i get the following error

type Status report

message

descriptionThe requested resource () is not available.
the following is my jsp file



this is the servlet i wrote



and this the web.xml file

can anyone please help me out with this error ..i tried many solutions but the error persists


 
Anurag Verma
Ranch Hand
Posts: 167
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Value of action attribute in your form tag should be auth & not /auth. This should solve.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anurag Verma wrote:Value of action attribute in your form tag should be auth & not /auth. This should solve.

Completely incorrect!

The action should be a server-relative URL beginning with the context path: ${pageContext.request.contextPath}/auth
 
shanoj mathew
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently that was the problem..adding context path to the action Url did the trick...thanks a lot guys
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic