• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rules for using class file in jsp

 
Jeremiah Elliott
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
raj sekhar
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yall rule! Thanks. simple tomcat restart. What sucks is that I have had this very problem before. You would think I would have remembered.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic