Hi,

I am running JRun 3.1 with a struts based web application.  In this
application I use a forwarding servlet that parses the path information and
forwards the request to a certain JSP page.

The way it usually works is that a struts action is accessed ( i.e.
"/do/logon" ), the action is processed, and the user is forwarded to a
servlet ( i.e. "/forward/index" ) which forwards the user to a jsp  ( i.e.
"index.jsp" ).  For the most part, the whole system works like a charm.
However, when I have  a struts form, which is submitted to a struts action,
it doesn't work.

If I click on a link to bring up an inventory list  "/do/invlist", it loads
the inventory list into the request and forwards you to "/forward/invlist"
which forwards you to "/content/invlist.jsp" - works fine.  If I have a
form on the page which has an action of "do/invlist", it should parse the
form, build the list into the request and forward you to "/forward/invlist"
and display the page just like before, but instead, when I am submitting a
form I receive a 404 page not found error.  I am pulling my hair out trying
to figure out why I am receiving the error.  I have printed out the
ActionForward's path and it is the same for both cases ("/forward/invlist")
however the page never displays when I am submitting the form.

As the action that the form calls is "/do/invlist", if I just refresh my
browser when I am on the "404 page not found" screen, it will load the page
up fine, with the submitted data in effect (since the form has been
submitted, and the action processed..just the forwarding didn't work.)    I
cannot find any difference by printing out debug statements between a
successful "/do/invlist" call and an unsuccessful one.  Also, if I set
redirect="true" for the "/do/invlist" action, it works fine, but of course
I do not have access to the request attributes anymore, which I need to be
able to access.  I am not sure if this is a container error, a
RequestDispatcher limitation, a problem with my forwarding servlet, etc..
If anyone has any ideas or has seen this type of problem before, I'd be
grateful for any help you can offer.

Thanks,
Jeremy Haile
[EMAIL PROTECTED]



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

Reply via email to