Hi,
When we create a webapplication. We have the following structure.
MyWebApp
jsp files
html files
images logo.gif
WEB-INF web.xml
classes sample.class
test.class
lib dblibrary.jsr
xmlTools.jar
Now all the jars are nothing but the classes files packaged into one. Why do need to package classes are jars and place them lib directory why not place all the classes in classes folder itself.
One Question:
I have packaged some class files into a jar and placed them in the lib directory. I have a jsp that has calls these class inside jar file. But when i deploy and run this webapplication. there is a compile time error stating that unable to resolve class names. Why does this happen.
With Regards
Murali
When we create a webapplication. We have the following structure.
MyWebApp
jsp files
html files
images logo.gif
WEB-INF web.xml
classes sample.class
test.class
lib dblibrary.jsr
xmlTools.jar
Now all the jars are nothing but the classes files packaged into one. Why do need to package classes are jars and place them lib directory why not place all the classes in classes folder itself.
One Question:
I have packaged some class files into a jar and placed them in the lib directory. I have a jsp that has calls these class inside jar file. But when i deploy and run this webapplication. there is a compile time error stating that unable to resolve class names. Why does this happen.
With Regards
Murali