Announcement Announcement Module
Collapse
No announcement yet.
InitParameter in a bean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • InitParameter in a bean

    Hi,

    I use tomcat with struts and spring. I would like to put an init parameter in a bean, how can i do this ?

    my parameter
    Code:
    	<context-param>
    		<param-name>GH_HOME</param-name>
    		<param-value>c:/appgh</param-value>
    	</context-param>
    Thanks !

  • #2
    I think you can just place that value in your web application context file (spring (or whatever)-servlet.xml), using normal DI rules. That is the usual file for bean configuration.

    Comment

    Working...
    X