----------------------------------------------------------------
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 Viehl,
it seems to be apache configuration problem or apache/JServ
communication problem (QUERY_STRING is received from Apache for every
HTTP request)
public String getQueryString() {
return (String) env_vars.get("QUERY_STRING");
}
Wednesday, January 19, 2000, 10:09:47 AM, you wrote:
VC> ----------------------------------------------------------------
VC> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
VC> WHEN YOU POST, include all relevant version numbers, log files,
VC> and configuration files. Don't make us guess your problem!!!
VC> ----------------------------------------------------------------
>> -----Original Message-----
>> From: Alexander Jesse [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, January 18, 2000 6:24 PM
>> To: java-apache-users
>> Subject: RE: problem with getQueryString
>> try:
>> public void doGet(HttpServletRequest req,
>> HttpServletResponse resp) throws
>> ServletException, IOException {
>> String tempString = req.getQueryString(); //first change
>> resp.setContentType("text/html");
>> PrintWriter out = resp.getWriter();
>> out.println (tempString); //second change
>> out.close();
>> }
>> }
>>
>> maybe the problem is, that you have to get the request-stuff before
>> messing around with the response-stuff...
VC> That can't cause the problem.
VC> I often use response.setContentType () before reading the
VC> request-parameters.
VC> The HttpServletRequest and HttpServletResponse are two OBJECTS. There is no
VC> reason, why i should use them in an special order when they are implemented
VC> correctly.
--
Best regards,
Ivan mailto:[EMAIL PROTECTED]
--
--------------------------------------------------------------
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]