• Post Reply Bookmark Topic Watch Topic
  • New Topic

url-pattern

 
Ravissant Markenday
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi evryone, i've been using this line in the dd for quite sometime without knowing its exact purpose, heres a part of the dd ive written:

<servlet-mapping>
<servlet-name>index</servlet-name>
<url-pattern>/run</url-pattern>
</servlet-mapping>

can neone please tell me what exactly the "url-pattern" does internally?

thanks in advance,
Ravissant
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"neone" is not a word. please use real words when posting.

This declaration will cause the servlet named "index" (presupposed to be defined elsewhere in the deployment descriptor) to be executed whenever a URL with the servlet path "/run" is encountered.
 
Ravissant Markenday
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the post bear and yes i'll be more careful and use "real words" next time on .Thank you once again

regards,
Ravissant
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!