Hi Greg,

your advise too works great for me.

Thanks a bunch !

Greg Muscarella wrote:
> 
> >
> >2) How can I read variables that apache and its modules set into the
> >Linux environment before opening a cgi. I saw that the jserv protocol
> >reads the vars but  couldn't figure out how to get them from my
> >servlets.
> >
> You can access these "cgi" variables by uisng the getAttribute method.
> 
> Do something like:
> 
> String prefix = "org.apache.jserv.";
> String SrvProt = request.getAttribute(prefix + "SERVER_PROTOCOL").toString();
> String SrvName = request.getAttribute(prefix + "SERVER_NAME ").toString();
> 
> I havn't found this documented anywhere though.
> 
> Does anyone know of a way to do this in a servlet engine neutral way (e.g.
> without the org.apache.jserv" part)?
> 
> Greg
> 
> Greg Muscarella
> Business Analyst / Internet Developer
> Stanford University
> (650) 723-0531
> [EMAIL PROTECTED]
> 
> ----------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://www.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]

-- 

Ivo

VP R&D 
(TexStar Root Digital Certificate:
http://www.texstartech.com/CA/root.crt)


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://www.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to