aspose file tools
The moose likes Servlets and the fly likes requested resource not available Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "requested resource not available" Watch "requested resource not available" New topic
Author

requested resource not available

shanoj mathew
Greenhorn

Joined: Apr 23, 2012
Posts: 2
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

Joined: Mar 30, 2012
Posts: 118

Value of action attribute in your form tag should be auth & not /auth. This should solve.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56229
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
shanoj mathew
Greenhorn

Joined: Apr 23, 2012
Posts: 2
Apparently that was the problem..adding context path to the action Url did the trick...thanks a lot guys
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: requested resource not available
 
Similar Threads
user authentication and dao
Connection pooling issue in Apache 6.0
HTTP method GET is not supported by this URL
Hello world ejb3 problem
Checking user selection