U can use the same include in jsps also. Since <JSP:include....> compiles the included jsp seperately, u may not be able to access those variables. Mean to say both outer and inner JSPs are compiled as a different servlet.
Regards, Sabari Arasu AIG-TCS Chennai India > -----Original Message----- > From: Vikramjit Singh [SMTP:[EMAIL PROTECTED]] > Sent: Friday, February 15, 2002 3:10 PM > To: [EMAIL PROTECTED] > Subject: Re: include doubt > > thats just a static include. basically meant for .html files and not jsp > files. and since i am doing processing in the jsp so i have to use the > dynamic include. > > Vikramjit Singh, > Systems Engineer, > GTL Ltd. > Ph. 7612929-3140 > > > -----Original Message----- > From: Sabari Arasu (CTC) [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 15, 2002 1:51 AM > To: [EMAIL PROTECTED] > Subject: Re: include doubt > > > It depends on the way you include the jsp. > > If u include like the one below, u won't get the error. > > <%@ include file="/jsp/inner.jsp" %> > > Hope this helps > > Regards, > Sabari Arasu > AIG - TCS > Chennai > India > > > > -----Original Message----- > > From: Vikramjit Singh [SMTP:[EMAIL PROTECTED]] > > Sent: Friday, February 15, 2002 3:05 PM > > To: [EMAIL PROTECTED] > > Subject: jsp:include doubt > > > > Hi all, > > > > i have a doubt in jsp:include. i am including a jsp say a.jsp in > another > > jsp say b.jsp. i am defining the variables in b.jsp and initializing > them > > in > > a.jsp. but it says undefined variable. I dont think this should happen > > since > > the file is included. if u see the view source file then u can see the > > <html> tags written in a.jsp showing in b.jsp. why doesnt it not get the > > variables defined in b.jsp. > > > > Regards, > > Vikramjit Singh, > > Systems Engineer, > > GTL Ltd. > > Ph. 7612929-3140 > > > > > ========================================================================== > > = > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > > DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > ========================================================================== > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > > ========================================================================== > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
