----------------------------------------------------------------
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,
shouldn't your query look more like this:
OLD: http://myserver/myservlet?field1=linux+field2=apache
NEW: http://myserver/myservlet?field1=linux&field2=apache
^
But this would not explain why getQueryString returns null.
How does your method call looks like exactly?
It should look like this:
public void doGet/Post (HttpServletRequest req, HttpServletResponse resp) {
String query = null;
query = req.getQueryString ();
}
> But the call of the getQueryString java method always returns
> me a NULL
This don't show if you use the method right. But when you can compile it, it
should be ok.
I hope i could help a bit, but i can't offer an easy solution for your
problem.
Regards
Clemens Viehl
> -----Original Message-----
> From: C�dric DANGREMONT [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 18, 2000 5:32 PM
> To: [EMAIL PROTECTED]
> Subject: problem with getQueryString
>
> Hello,
>
> I'm begining working with servlets and I have a problem
>
> I'm working with:
>
> - Linux Red Hat 6.0
> - Apache 1.3.9.7 running on port 80
> - JServ 1.1 running on port 8007
> - JSDK 2.0
>
> And I'm trying to run a simple servlet. In this servlet I
> simply want to
> retrieve the query string passed in the browser adress field
> like here after
> http://myserver/myservlet?field1=linux+field2=apache
>
> But the call of the getQueryString java method always returns
> me a NULL
> value. Has anybody encountered this kind of problem?
>
> I thing it could be a configuration problem, but I'm not sur
> and I can't
> find it by now.
>
> If you have a solution, an answer, please help me. Thanks for advance.
>
> Cedric.
>
> P.S. : please send me an answer to
> [EMAIL PROTECTED] too. Thanks
>
> Cedric DANGREMONT - [EMAIL PROTECTED]
> opt[e]way, 80 route des Lucioles
> BP 37 / ACTE, 06901 Sophia Antipolis, FRANCE
> phone:(+33).(0)4.93.95.66.51 fax:(+33).(0)4.93.95.66.52
> http://www.opteway.com
>
>
>
--
--------------------------------------------------------------
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]