wood burning stoves 2.0*
The moose likes Servlets and the fly likes requested resource not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
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: 124

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: 60741
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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://aspose.com/file-tools
 
subject: requested resource not available
 
Similar Threads
Hello world ejb3 problem
HTTP method GET is not supported by this URL
Connection pooling issue in Apache 6.0
Checking user selection
user authentication and dao