This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "How to set url pattern?" Watch "How to set url pattern?" New topic

How to set url pattern?

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 563

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

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63208

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.)

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you checked out Aspose?
subject: How to set url pattern?
It's not a secret anymore!