What are the rules for defining variables on a jsp page with pages added to them using tags?
My understanding is that the included page is essentially copied to the page, which would make me assume that if I declared a variable in the parent jsp, that it would be available in the children.
However, Eclipse complains about this (understandably, because I can include pages on any page as much as possible or use them as independent ones. And I'm trying to start the tomcat server, which it does not start.
Basically I want to get a couple of variables from his session on the parent page and use them on the child pages. This does not work.
So, I hit his idea of ββgetting them from the session on each of the child pages, however I was wondering if I could give them all the same variable names, or if I would have to choose different variable names for them on each page so that they would not collide .
Also, regarding import, if I import log4net into parent jss, do I also need to import it into children?
java java-ee jsp
Omar Kooheji Jun 03 '09 at 9:06 2009-06-03 09:06
source share