Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set url pattern?

 
Isaac Ferguson
Ranch Hand
Posts: 835
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic