RoBo,
I had this same problem a while back ...
The problem is based on the fact that CGI is platform specific and
java is not so it does not care about environment variables ...
This is what I found that helped me at the time.
http://forum2.java.sun.com/forum?14@@.ee7780f
I have tried the code and it works ... on WinNT anyway ... it seems to use
cmd
somehow ... dont think it can be very efficient.
Hope this helps you too!
Cheers,
Jon
-----Original Message-----
From: Robo Zilka [mailto:[EMAIL PROTECTED]]
Sent: 24 May, 2000 5:30 AM
To: [EMAIL PROTECTED]
Subject: Re: CGI variables
Thanks, but I red API and don't found method, which can read all CGI
variables,
not only some of them :(
(In ASP there is a request.ServerVariables(name_of_variable) function, so
I need to do something like:
for each item in Request.ServerVariables
Response.Write item & "=" & Request(item) & "<br>"
next
)
RoBo Zilka
____________
/EuroWeb a.s.
/www.euroweb.sk
/mailto:[EMAIL PROTECTED]
-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 23, 2000 6:40 PM
To: [EMAIL PROTECTED]
Subject: Re: CGI variables
Robo Zilka wrote:
> Know anybody, how to get(read) CGI variables in JSP or Servlet?
Most of the CGI environment values that you will be interested in are
represented
by properties of the "request" object that is passed to your servlet (it it
an
implicit variable in JSP pages). For example, the QUERY_STRING value can be
retrieved by calling request.getQueryString(). Check the API documentation
for the
ServletRequest and HttpServletRequest classes.
>
> Thanks
>
> RoBo Zilka
>
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets