httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Adams <james_ad...@yahoo.com>
Subject [users@httpd] Redirected URL query string being lost
Date Thu, 14 Oct 2004 21:21:20 GMT
In Apache I'm redirecting a URL to a servlet which is
being served by JBoss/Tomcat (JBoss 3.2.5) on the same
machine listening on port 18080.  This is being done
by using a Redirect directive in the httpd.conf file.
For example: 

Redirect /PutMsg
http://myserver.mycompany.local:18080/PutMsg 

(I expect that there's a better way of doing this, and
perhaps this is the cause of my trouble.) 

The web client that I have to support is written with
a combination of HTML and JavaScript.  The servlet's
URL can be called either as a form action from the
HTML (<form action="/PutMsg">) or as a location of a
JavaScript control (I think that's right -- I don't
know JavaScript). 

When the request comes from the JavaScript control the
URL is redirected with the query string intact, and my
servlet is happy.  But when it's called as the action
of the HTML form submission then the URL is redirected
OK but the query string is lost, and hence my servlet
has no parameters to work with. 

Can anyone suggest why this is happening ?  Bear in
mind that I'm a Java/J2EE develoer with only a limited
knowledge of how Apache works, so I may be missing
something which would be very obvious to someone with
more Apache experience. 

Thanks in advance for any feedback.


--James

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message