Organizational Research By

Surprising Reserch Topic

Question:Is it possible for one JSP to extend another java class if yes how?



asked Sep 13, 2013 in JSP by anonymous
edited Sep 12, 2013
0 votes
172 views



Related Hot Questions

2 Answers

0 votes

 

Yes it is possible we can extends another JSP using this <%@ include page extends="classname" %> it’s a perfectly correct because when JSP is converted to servlet its implements javax.servlet.jsp.HttpJspPage interface, so for jsp page its possible to extend another java class . This question can be tricky if you don’t know some basic fact J, though its not advisable to write java code in jsp instead its better to use expression language and tag library.
 
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013
0 votes

 

Yes it is possible we can extends another JSP using this <%@ include page extends="classname" %> it’s a perfectly correct because when JSP is converted to servlet its implements javax.servlet.jsp.HttpJspPage interface, so for jsp page its possible to extend another java class . This question can be tricky if you don’t know some basic fact J, though its not advisable to write java code in jsp instead its better to use expression language and tag library.
 
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013

...