This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to set url pattern? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How to set url pattern?" Watch "How to set url pattern?" New topic
Author

How to set url pattern?

Angus Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 246
Hi,

from where could I get the url-pattern. I don't know which value use there. The name of the servlet is ValidationUser and for the jsp Iam calling it like






Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56222
    
  13

You can pretty much set it to whatever you want. In this case, perhaps /validate would be appropriate?

In the action, such a mapping would be addressed with /context-path/validate in which you would use the appropriate context path for the web app. (See the JspFaq for how to obtain this.)


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to set url pattern?
 
Similar Threads
servlet-mapping tag in web.xml
A 404 Error, need help configuring 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?