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
