----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hello John,
Did the latest jserv release (1.1) solve this problem, or have you found
another solution? I am seeing similar behavior under 1.1b3 while using
an alias for Turbine. Occasionally a DynamicURI like this (using ecs):
addElement(new A().setHref(new DynamicURI(data,
"screen").toString()).addElement("name"))
will set the path to /foo rather than /foo/Foo . The path is always set
correctly when not using the alias, ie /foo/Turbine .
Regards,
~Eric
(I'm downloading 1.1 now to see if the symptoms persist)
John McNally wrote:
> I am having a problem very that is hard to diagnose. I have a servlet
> (Turbine) that uses pathInfo to determine the response. The application
> works for almost all requests, but one case breaks down. A user submits the
> form
>
> <form action="http://host/foo/Foo/screen/AScreen/action/AAction"
> accept-charset="UNKNOWN" enctype="application/x-www-form-urlencoded"
> method="POST" name="theForm">
>
> Turbine processes the request and everything works great except
> getServletPath() returns /foo instead of /foo/Foo. This only occurs for
> this one form submittal, I have tried method="GET" and also adding an extra
> hidden form variable to change the request. It always behaves the same:
> the servlet is called and all the parameters appear intact, but a call to
> req.getServletPath() returns /foo.
>
> This behavior is related to the fact that Foo is an alias.
>
> <form action="http://host/foo/Turbine/screen/AScreen/action/AAction"
> accept-charset="UNKNOWN" enctype="application/x-www-form-urlencoded"
> method="POST" name="theForm">
>
> works exactly as the first case except now req.getServletPath() returns
> /foo/Turbine.
>
> Again several other forms and other requests work just fine in the aliased
> case and req.getServletPath() returns /foo/Foo as expected.
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]