This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

url-pattern  RSS feed

 
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: 66184
146
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!