Question :How do you print the contents of a.jsp in b.jsp. How do you include the
file? (JSP)
Answer :a.jsp
<%!
public int i=10;
%>
b.jsp
<%@ include file="a.jsp" %>
<%
out.println(i);
%>
do not use as this will include the file at runtime where as the above
includes (directive include) the file at compile time
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Saturday, March 14, 2009
How do you print the contents of a.jsp in b.jsp. How do you include the
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment