Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mock exam ques

 
Anonymous
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 ??? )
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
 
Madhav Lakkapragada
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
 
tony lee
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
Sheriff
Posts: 17278
6
IntelliJ IDE Mac 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic