Servlet's doPost() results in jsp file not found error



using Websphere App Server 6.0.
I have a simple servelt with doget and do post methods.
When a jsp is loaded from the servlets doGet() method, the relative
path to the jsp is kept intact so the server is able to find the jsp.
While when I do a differnt task which results in calling the servelets
doPost(), the jsp is not served up since it tries to look for the jsp
in the same dir as the severlet ( i assume this is the problem)

How can I fix this? I tried giving absolute paths for the jsp but that
does not work either. I was thinking of just creating another servlet
(servlet2) and copying over the code from
servelet1.doPost() to servelet2.doGet()
to get rid of this problem with relative paths,

any ideas??

THX

.



Relevant Pages

  • Re: J2ME or network programming or...what do you recommend?
    ... I started doing the servlets along with the JSP. ... Well depending on how dynamic you want the client to ... needed) to java server programs? ...
    (comp.lang.java.programmer)
  • Re: Expression Language (EL) vs. Scriptlets in JSP
    ... is using servlets and utility classes for all real code ... I gave up on taglibs, EL, ... and unit test them with mock objects. ... code in JSP, you won't know if it's even legal syntax, let alone if it's ...
    (comp.lang.java.programmer)
  • Re: Need help with Tomcat/JSP website design
    ... so mostly I need help with the JSP side ... I mean, you could just do the whole thing in servlets, but then ... java the language ... your database. ...
    (comp.lang.java.programmer)
  • Re: put application on server ??!!!!
    ... > I am new to web service programming and I just start to learn jsp. ... > make my application into a bean? ... separate those two pieces into separate code bases with published APIs ... Have forms submit to servlets. ...
    (comp.lang.java.programmer)
  • Re: Please Answer Newbie Question
    ... > Servlet and JSP classes are not in the J2SE, ... > the application server as a separate download. ... > that you're going to develop servlets and JSP. ... Just install *that* server, and use the ...
    (comp.lang.java.programmer)