[jboss-user] [Installation, Configuration & Deployment] - Context parameters in Tomcat with JBoss

vbarres do-not-reply at jboss.com
Fri Mar 30 11:53:35 EDT 2007


Hello, I'm trying to define context parameters in server.xml file, located in [jboss_dir]/server/[name_server]/deploy/jbossweb-tomcat50.sar. I want these values to be retrieved from a jsp, in a similar way when they are declared in the web.xml (using context tag) of the application. 

I start Jboss and, when I try to retrieve parameter value from a jsp, it returns null. How can I define it ? 

"aplica" is the name of my application, and my server.xml contains this (.. are really less and greater signs): 

..Context path="/aplica" docBase="E:\programas\aplica.war" debug="0" reloadable="true"/..
..Parameter name="param1" value="valor1" override="false"/..
../Context..

And the jsp contains this: 

String param1 = application.getInitParameter("param1"); 

When I execute the jsp, param1 has null value. 

Thanks a lot by your help 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033247#4033247

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033247



More information about the jboss-user mailing list