• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

url-pattern

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic