hi guys! I am using jdk1.3.1; jsdk2.0; tomcat 3.2.2; what should be the classpath to make RequestDispatcher work... If somebody throws some light on how request dispatcher works it will be even better I am trying to send some info frm a servlet to a jsp.. The code goes like this... RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/Login.jsp"); dispatcher.include(req, res); compiler is giving error as getRequestDispatcher not found; please help me TIA Ravi
Steve Granton
Ranch Hand
Joined: Jan 13, 2002
Posts: 200
posted
0
Hi, The class is in the j2ee.jar, which will probably be included into the classpath of the container - though you will need to add it to your classpath for compilation. In order to automate the build process you could use Ant from the Apache Jakarta Project (http://jakarta.apache.org/ant/manual/) As for how to use the RequestDispatcher - take a look at the API docs at java.sun.com or do a search on this forum - I'm sure there has been plenty said about it. Cheers, Steve
timothy zimmerman
Ranch Hand
Joined: Jun 26, 2001
Posts: 149
posted
0
javax.servlet.RequestDispatcher is in the servlet.jar that you should have gotten with tomcat look in the TOMCAT_HOME lib directory.
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: RequestDispatcher? wat shld be the classpath?