aspose file tools
The moose likes JSP and the fly likes rules for using class file in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "rules for using class file in jsp" Watch "rules for using class file in jsp" New topic
Author

rules for using class file in jsp

Jeremiah Elliott
Greenhorn

Joined: Nov 01, 2001
Posts: 17
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

Joined: Jan 10, 2002
Posts: 56191
    
  13

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 ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
raj sekhar
Ranch Hand

Joined: Oct 16, 2001
Posts: 117
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
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.
 
subject: rules for using class file in jsp
 
Similar Threads
method overloading...
Overloading and method matching question
ClassNotFoundException
Object[]
File I/O