This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
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