Mantis - Resin
Viewing Issue Advanced Details
4915 feature always 01-09-12 10:19 06-18-12 10:46
alex  
ferg  
high  
closed 4.0.24  
fixed  
none    
none 4.0.29  
0004915: CGiServlet: env variables
provide more extensive mechanism for setting env. variables.

William Au:
How do we set environment variables for cgi scripts before it is executed in Resin Pro 3.0.28? We have a cgi script that accesses an Oracle database and needs certain environment variables for Oracle to be set before the script is executed. We tried setting the variables before running the resin start script and also setting them inside the resin start script itself. But they seems to be wiped out before the cgi script is executed.

Notes
(0005868)
ferg   
06-18-12 10:32   
server/192z
(0005869)
ferg   
06-18-12 10:46   
<servlet name="cgi" ...>
<init>
  <env foo="bar"/>
</init>
</servlet>