Hi Guys,
This is probably a very basic query, but asnyways. I'm trying to write a jsp website involes doing some data calculations. However, I'm having problems trying to get my own java classes to be recognised by tomcat. So far I've tried :-
1. putting the classes in the same directory as the jsp page.
2. packaging the classes and putting the package in the same dir. as the jsp page
3. using both the include and import methods to import my classes
But nothing seems to work. I keep getting the same error e.g
MyVariable var
^ - Cannot find symbol

Can someone please help and tell me what I'm doing wrong bearing in mind that I'm a complete JSP newb.

Hi, i think you need to put them in the WEB-INF folder of your application and then shutdown and restart Tomcat.

Edit: Sorry i think the packages need to go into the WEB-INF - classes folder.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.