• Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet mapping qz

 
liqiang yang
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I don't this code id legal or not in web.xml? Anyone can help me out?

<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>*.java</url-pattern>
</servlet-mapping>
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is valid. A string beginning with a �*.� prefix is used as an extension mapping.
 
S Sravs
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes,it is valid.
i am bit suprised i was expecting that it would ask for a file to save but it didn't.
the explanation given by Christophe Verre is correct.Hey you are always there to support

Regards
Sravanthi
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!