A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to set url pattern?
Joined: Jun 22, 2012
Nov 28, 2012 07:58:09
from where could I get the url-pattern. I don't know which value use there. The name of the
is ValidationUser and for the
Iam calling it like
<form name="one" method="GET" action="ValidationUser"
<servlet-mapping> <servlet-name>validationUser</servlet-name> <url-pattern>/???</url-pattern> </servlet-mapping>
Author and ninkuma
Joined: Jan 10, 2002
Nov 28, 2012 09:25:38
You can pretty much set it to whatever you want. In this case, perhaps
would be appropriate?
In the action, such a mapping would be addressed with
in which you would use the appropriate context path for the web app. (See the
for how to obtain this.)
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: How to set url pattern?
servlet-mapping tag in web.xml
The requested resource is not available
Call a servlet on the url pattern /_/
No mapping found for HTTP request with URI - Why won't my page load?
A 404 Error, need help configuring web.xml
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015