aspose file tools*
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
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: 61199
    
  66

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