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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
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: 60046
    
  65

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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://aspose.com/file-tools
 
subject: rules for using class file in jsp
 
Similar Threads
Object[]
method overloading...
File I/O
ClassNotFoundException
Overloading and method matching question