"Cogley, Jonathan" wrote:
>
> Hi,
>
> Anyone know how to access environment variables?
> such as "QUERY_STRING" WITHOUT using request.getParameter,etc
>
> There is a method System.getenv() but it is deprecated ...
> The error mentions using "use properties and -D instead"
> but how do you achieve this?
Look at the Servlet API, <http://java.sun.com/products/servlet/>.
It contains explicit methods to get all info you get through environment
variables in a GCI script. Since a JSP page is actually a servlet, you
can use the complete Servlet API in your JSP pages.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
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