What control do you need, you need to elaborate more on what you are trying
to do... ?
 
 

-----Original Message-----
From: Vlad Petric [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 2:33 PM
To: Orion-Interest
Subject: Re: requestQueryString bug or not ?


  
So you're basically saying to replace the '?' from the URL with a '&' ?  I
did something similar to make it work, but the problem is that I have no
control whatsoever on the URL that I have to process, so this is more like a
workaround than a solution. 

Thanks, 
Vlad 


try this 

http://localhost/e2/tester.jsp?url=/myUrl/mypage.jsp
<http://localhost/e2/tester.jsp?url=/myUrl/mypage.jsp&param1=1&param2=2>
&param1=1&param2=2 


then when tester.jsp runs simply get the value of "url" and the other 
parameters. The other parameters should represent the parameters that go 
with the value of "url" so. 


so when you have the all the parameters . simply add the parameters to the 
request object and forward the request to the value of "url" 


:) 


-----Original Message----- 
From: Vlad Petric [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] 
Sent: Monday, October 30, 2000 10:20 AM 
To: Orion-Interest 
Subject: requestQueryString bug or not ? 


Orion 1.3.8 
IBM JDK 1.3 (aug 14) 
Linux 


having the following jsp (just for the sake of replicating the error): 


<%=request.getQueryString%> 


http://localhost:8080/e2/tester.jsp?x=x?x=z
<http://localhost:8080/e2/tester.jsp?x=x?x=z>  


prints: 


x=x?x=z 


BUT 


http://localhost:8080/e2/tester.jsp?x=x;x=z?x=z
<http://localhost:8080/e2/tester.jsp?x=x;x=z?x=z>  


prints 


x=z 


(so a ';' makes a big difference) 


I am very well aware of the fact that what I'm doing is highly 
unorthodox, but I have very strong reasons  NOT to use URL encoding 
(basically I built a WML proxy with the URL passed as a parameter; many 
sites use WML variables in the URL to pass values  - an URL encoding 
would simply kill these references) 


Vlad


Reply via email to