Re: redirect from Servlet

2003-06-26 Thread Dayan Simon

  if your jsp is under $TOMCAT_HOME/webapps/admin/test/Test.jsp

getServletConfig().getServletContext().getRequestDispatcher(/admin/test/Tes
t.jsp).forward(request, response);
thanx

- Original Message -
From: Paul Wallace [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 11:37 AM
Subject: RE: redirect from Servlet


 Hi, thanks,
I added the line. No 404 is present, but the servlet maintains, ie
 the browser is completely blank. What about the (/xxx.jsp) path?

 Thanks

 Paul.

 Try this
 getServletConfig().getServletContext().getRequestDispatcher(/xxx.jsp).
 forward(request, response);

 - Original Message -
 From: Paul Wallace [EMAIL PROTECTED]
 To: Tomcat Developers List [EMAIL PROTECTED]
 Sent: Thursday, June 26, 2003 11:21 AM
 Subject: redirect from Servlet


  Hello,
  I have a packaged servlet (com.mypackage.servlets;) in
  WEB-INF\classes\com\mypackage\servlets, where it performs its logic
  dutifully. From the servlet I wish to redirect back to the JSP that
  called it. Currently the JSP origin cannot be found (404). I have
 tried
  all manner of variations of path:
 
  res.sendRedirect(addAgent.jsp);
 
  including a fully formed URL (local and HTTP). How do I redirect to
 the
  desired file please?
 
  Thanks
 
  Paul.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 3.2.4 Crashes on solaris 7

2003-06-25 Thread Dayan Simon
Hi
   I had installed my Tomcat 3.2.4 on solaris7 using JDK1.4  in my jsp i tried to 
forward the Request to another jsp but it crashes my tomcat
getServletConfig().getServletContext().getRequestDispatcher(/xxx/xxx.jsp).forward(request,
 response);

Does anybody has any information on this.

Thanx in advance
Dayan


Re: redirect from Servlet

2003-06-25 Thread Dayan Simon
Try this
getServletConfig().getServletContext().getRequestDispatcher(/xxx.jsp).
forward(request, response);

- Original Message -
From: Paul Wallace [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 11:21 AM
Subject: redirect from Servlet


 Hello,
 I have a packaged servlet (com.mypackage.servlets;) in
 WEB-INF\classes\com\mypackage\servlets, where it performs its logic
 dutifully. From the servlet I wish to redirect back to the JSP that
 called it. Currently the JSP origin cannot be found (404). I have tried
 all manner of variations of path:

 res.sendRedirect(addAgent.jsp);

 including a fully formed URL (local and HTTP). How do I redirect to the
 desired file please?

 Thanks

 Paul.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]