I am having trouble getting a class file to work from a jsp. The applocation was working fine when the constructor method for the class had one parameter. I now need to pass the method two parameters. At first I thought I would overload the method but I got a tomcat class not found error. if I changed my jsp file so that it would only call it with one parameter it found it just fine. Is there any strange rules that apply to a jsp? I made a small java app that called the class with two parameters and it worked just fine. I am a java NUBE . thanks. Jeremiah [ August 22, 2002: Message edited by: Jeremiah Elliott ]
No, there are no special rules about how many params you can have and that sort of thing (though there are conventions that should be followed). What is more likely is that your servlet container wasn't picking up the changes to the class. Be sure you are putting the updated class file in the right place, and most containers require that you restart the server when such changes are made. hth, bear [ August 22, 2002: Message edited by: Bear Bibeault ]
just find the location of the class file and update the file with the new class. Restart the server cos they are normally loaded only once(when accessed for the first time) Thanks RS
Jeremiah Elliott
Greenhorn
Joined: Nov 01, 2001
Posts: 17
posted
0
yall rule! Thanks. simple tomcat restart. What sucks is that I have had this very problem before. You would think I would have remembered.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.