Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp file redirect in Jrun server

 
jenny wang
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Jrun server3.0 which is connected with Iplanet server.
I want to put all the .jsp files in Iplanet docs directory and rest of .java files in the Jrun default server directory.
Does anybody know how to redirect jsp files inside the servlet?
As far as I know, RequestDispatcher is used only under the servlet relative path and not for absolute path. I tried sendRedirect() and it seems it doesn't work either.
It will be great if somebody could give some hints on this.

Jenny
 
Peter Guillebaud
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if this is what you are after but if you use
response.setHeader ( "Refresh", "1;URL=" + myURL );
in the servlet it will forward the user to "myURL"...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic