i have one Project folder named Project one which contains
test.jsp and test1.class
and i wanna access a method from test1.class how do i do it.
i'm not using any IDE.
do i have to say somewhere Where are my classes ???
or do i have to put my classes Project/WEB-INF/classes directory ???
where will the container look for classes by default ???
so now my directory structure will be
and the import statement in my jsp will look like
Apart from that it looks OK.
Originally posted by Jigar Naik:
do i neeed web.xml ??? i guess no..as long as i know its for servlet class mapping...
Originally posted by Ulf Dittmer:
not all containers support beans that are in the default package (e.g. Tomcat 5 and later does not).
It's not actually the container, but the JVM that will refuse to import non packaged classes.
This issue is showing up in containers, like Tomcat, that are on the forefront servlet spec (and thus JVM spec) development.
The reason I brought this up is that it's important to understand that this issue will eventually affect everyone, regardless of what container you're using.