Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet tag  RSS feed

 
Harathi Rao
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Just a basic doubt...

Can we have <servlet-mapping> without any <servlet-class> tag defined in the <servlet>... </servlet>.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NO.

<servlet-name> and <servlet-class> both are mandatory elements within <servlet>

check page 135 and 140 in servlet 1.4 specification
[ March 15, 2006: Message edited by: Vishnu Prakash ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vishnu Prakash:
NO.

<servlet-name> and <servlet-class> both are mandatory elements within <servlet>

check page 135 and 140 in servlet 1.4 specification

[ March 15, 2006: Message edited by: Vishnu Prakash ]



Page 140 shows that you can use either a servlet-class element OR a jsp-file element.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Page 140 shows that you can use either a servlet-class element OR a jsp-file element


Good catch bartender. I wanted the original poster to contemplate about it.

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!