i am trying to work in jsp's for that i am using tomcat server and dreamweaver IDE i have create a jsp now i want to call a
class like calculate.java which i have designed in Eclipse IDE and use its static methods
till now i am executing my jsp on local host in a web browser for that
i save my jsp in webapps folder of tomcat 6.x which is in E:drive in the E drive itself i have Eclipse also so now how can call my java class in page tag of JSP in dreamweaver
<%@page import="java.util.Date,Business.calculate"%>? what path i must specify here for calculate class? or where i must save my java class?
Any help on above will be realy great thnx in advance
Dhwani:>Swimmers never weep.
Chetan Parekh
Ranch Hand
Joined: Sep 16, 2004
Posts: 3636
posted
0
(1)Create CATALINA_HOME/webapp/YOUR_APP/WEB-INF/classes/Business folder. Copy calculate.class in to the folder. This should solve your problem. (2)Avoid using multiple IDE. Use Eclipse for JSP and Class both. Attached any Tomcat Plug-in to Eclipse, it will make your life easier.
My blood is tested +ve for Java.
dhwani mathur
Ranch Hand
Joined: May 08, 2007
Posts: 621
posted
0
Hi Chetan
Thanks for your help and advice i will try not to use many IDE's but i dont have idea on
how to use Tomcat plug ins with Eclipse can you ellaborate and explain a bit also how to build JSP in eclipse?........? it will be realy great........... on more doubt you said me to create CATALINA_HOME/webapp/YOUR_APP/WEB-INF/classes/Business folder but i am i doubt where i must create this folder ?
Whatever comes inside the "work" folder is created by Tomcat in the runtime and you should NOT depend on it. You may just check by editing the files in that location and as such it may help like a hot deployment. [ January 07, 2008: Message edited by: Raghavan Muthu ]