Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp-file

 
pallavi utukuri
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<servlet>
<servlet-name>TestServlet</servlet-name>
<jsp-file>/requestinfo.jsp</jsp-file>
</servlet>
In this mapping, we are defining a servlet but instead of using a servlet class we are using a jsp-file. So any request like http://localhost:8080/test/aaa/abc.a would go to requestInfo.jsp�is this right and this means <sevlet-class> is not mandatory in <servlet>
Can these kind of questions appear in exam? and should <jsp-file> must start with a /
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!