This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Moreover, using JSP scriptlets declarations in this manner creates thread contention that will prevent your code from ever working correctly. All those instance variables are shared by everyone who is viewing the JSP.
Let's all move away from 1998 and start writing JSPs like grownups.
Also, please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the .
Joined: Aug 08, 2008
I agree with your comments. And I am trying to incorporate JSP in right manner. Since I am working on old application which is being hosted in a Apache/tomcat server with OS solaris. There are lots of application hosted there. I cannot change the whole set up rigt now for each application.
I wanted to write a connection class inside a Package and i want to access the same from every JSP. I have created a connection package called "MyConn" and kept under 'WEB-INF/classes'
I have set the classpath for this : here is my code
set CLASSPATH= 'My classfile Path' export CLASSPATH
And one copy of class file I kept under'/user/apache/tomcat/lib'
But still it is giving me this error "sun.tools.javac.Main has been deprecated. Package MyConn not found in import"