You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by "david.off@voila.fr" <da...@voila.fr> on 2002/08/07 11:43:07 UTC
JDK 1.2 version
Hi Vincent (or someone with access to the code base),
Can you update the 1.2 version of Cactus so we can use it with JDK 1.2, unfortunately there are some of us who are still stuck on servers like Weblogic 5.1 or 6.0 which are not certified for JDK1.3. There is a dependency on the java.net.URL jdk 1.3 methods getPath() and getQuery()
AFAIKS you will need to create a new version of HttpClientConnectionHelper.java in framework/src/java/j2ee12/org/apache/cactus/client
and replace url.getPath() and url.getQuery() calls which are not available in java 1.2,
The code should be something like (tested on weblogic 5.1 with jdk1.2.2) :-
String file = url.getFile();
String path = null;
String query = null;
if (file != null) {
int q = file.lastIndexOf('?');
if (q != -1) {
path = file.substring(0, q);
query = file.substring(q+1);
} else {
path = file;
query = "";
}
}
this.method.setPath(path);
this.method.setQueryString(query);
That seems to do the trick, I guess that is the advantage of open source, you can fix it yourself!
thanks,
David
------------------------------------------
Faites un voeu et puis Voila ! www.voila.fr
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: JDK 1.2 version
Posted by Vincent Massol <vm...@octo.com>.
Hey, thanks David.
Yes, Cactus is supposed to be JDK 1.2 compliant but I have forgotten to
test it against JDK 1.2 (as I'm only using JDK 1.3 and 1.4) ... Thanks
for the reminder! :-)
If you could provide a patch against the CVS HEAD that would be great.
Otherwise, it will take me a bit longer but I will do it.
Your bug report is timely as I plan to release Cactus 1.4 this coming
week end.
Thanks
-Vincent
> -----Original Message-----
> From: david.off@voila.fr [mailto:david.off@voila.fr]
> Sent: 07 August 2002 10:43
> To: cactus-user
> Subject: JDK 1.2 version
>
>
> Hi Vincent (or someone with access to the code base),
>
> Can you update the 1.2 version of Cactus so we can use it with JDK
1.2,
> unfortunately there are some of us who are still stuck on servers like
> Weblogic 5.1 or 6.0 which are not certified for JDK1.3. There is a
> dependency on the java.net.URL jdk 1.3 methods getPath() and
getQuery()
>
> AFAIKS you will need to create a new version of
> HttpClientConnectionHelper.java in
> framework/src/java/j2ee12/org/apache/cactus/client
>
> and replace url.getPath() and url.getQuery() calls which are not
available
> in java 1.2,
>
> The code should be something like (tested on weblogic 5.1 with
jdk1.2.2)
> :-
>
> String file = url.getFile();
> String path = null;
> String query = null;
> if (file != null) {
> int q = file.lastIndexOf('?');
> if (q != -1) {
> path = file.substring(0, q);
> query = file.substring(q+1);
> } else {
> path = file;
> query = "";
> }
> }
> this.method.setPath(path);
> this.method.setQueryString(query);
>
>
> That seems to do the trick, I guess that is the advantage of open
source,
> you can fix it yourself!
>
> thanks,
>
> David
>
>
> ------------------------------------------
>
> Faites un voeu et puis Voila ! www.voila.fr
>
>
> --
> To unsubscribe, e-mail: <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>