Forums Register Login

requested resource not available

+Pie Number of slices to send: Send
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


+Pie Number of slices to send: Send
Value of action attribute in your form tag should be auth & not /auth. This should solve.
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
Apparently that was the problem..adding context path to the action Url did the trick...thanks a lot guys
Hot dog! An advertiser loves us THIS much:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1196 times.
Similar Threads
Checking user selection
HTTP method GET is not supported by this URL
Hello world ejb3 problem
user authentication and dao
Connection pooling issue in Apache 6.0
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:58:10.