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

jsp-file  RSS feed

 
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 /
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!