Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

mock exam ques

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)Which element should be used to give a canonical name to a jsp file( type the answer)?
<servlet> <servlet-name>aName</servlet-name> < ??? >jspFile.jsp</ ???>
(In case the question is not clear:what do you put instead of ??? )
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WHAT!!!

<servlet> <servlet-name>aName</servlet-name> < ??? >jspFile.jsp</ ???>

(In case the question is not clear:what do you put instead of ??? )

- satya
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this question is interesting. how did you get that, mark?
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the servlet tag you have servlet-name, then you map it to either a servlet class or to an actual jsp file.
Look at ersins deployment descriptor aid.
Under servlet you will see a box with
servlet-class/jsp-file
for servlet-class it would be the package and class name of the servlet, but if it is a jsp-file then the actual jsp filename and path.
Mark
 
Every plan is a little cooler if you have a blimp. And a tiny ad.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic