• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

q on JSP std actions

 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which of the following r valid in a jsp page.Select 1.
<jsp:expression> =5+10 </jsp:expression>
<jsp:Text> hi </jsp:Text>
<jsp:include page="%=pageName%">
<jsp:include page="<%=pageName%>">
<jsp eclaration> int i=0</jsp eclaration>

I feel it is 4, but y it cant be 1. plz help.
 
Priya Jothi
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Option 4 is correct!!.Rest of the options are valid in a JSP document which uses XML syntax and not in the JSP page which uses standard syntax.

Regards,
Priya.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic