• Post Reply Bookmark Topic Watch Topic
  • New Topic

2 questions

 
sandeep Talari
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)what are the optional liraries that container want. first of all what are these Libraries.

2)in deployement descriptor ,
what is the difference between

<servlet-class > /com.model/Model1 </servlet-class>
<servlet-class > com.model/Model1 </servlet-class> (/ is not there)



[BPSouther: fixed spelling in subject line]
[ July 21, 2008: Message edited by: Ben Souther ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) There is no list of optional libraries.
Most containers ship with all the libraries that they need.
Other than that, it is up to you to include libraries that your application needs.


2) The servlet class attribute expects a qualified class name, not a path.
So, the version with a slash is invalid.
 
sandeep Talari
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then what is the difference between these two

<url-pattern>/beers/foo<url-pattern>

<url-pattern>beers/foo<url-pattern>
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

You can go back and change your post to add a more meaningful subject by clicking the .
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sandeep Talari:
then what is the difference between these two

<url-pattern>/beers/foo<url-pattern>

<url-pattern>beers/foo<url-pattern>


One is valid and the other is not.
The best place to go if you want to know about servlet mappings is
"SRV.11.1 Use of URL Paths" in the servlet spec.
There is a link to the servlet spec in my signature.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!