• 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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!