I don't understand why it has to be loaded from outside the classpath. There are facilities in place to let you do what you want, but you would be fighting an uphill battle.

I don't see the justification for changing code to simplify this. Please help me understand why you have to have your struts configuration in WEB-INF and not in WEB-INF/classes (or jar).


--
James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 19, 2007, at 8:14 AM, Bartek wrote:


Hi James

Well, the default location of struts.xml is classpath location e.g.
WEB-INF/classes. And I want to load it from outside the classpath, e.g. directly from WEB-INF directory. How can I do this? I thought , I coudl do
this as in case of struts1 - using <param-name>config</param-name> of
actionservlet. Of course in case of struts2 I would use this init param in context of FilterDispatcher. But it did not work. So again, the question is: How to load the struts.xml from WEB-INF directory, without adding it to
classpath?

bartek


James Mitchell-3 wrote:

Can you restate your question?


--
James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 19, 2007, at 5:21 AM, Bartek wrote:


Hi

I have to face up the following issue. My location of struts.xml
shoudl be
WEB-INF directory, not WEB-INF/classes.
What is the easiest way to achieve this?? I tried several different
config
locations (e.g. WEB-INF/struts.xml) for
StrutsXmlConfigurationProvider, none
of them worked. Creating custom configuration provider might help,
but it is
pojo by default , protocol independant and therefore without any
ServletContext access - what is a pain in this case.

Cheers
bartek

--
View this message in context: http://www.nabble.com/struts.xml---
change-default-location-tf3425865.html#a9548614
Sent from the Struts - User mailing list archive at Nabble.com.


-------------------------------------------------------------------- -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
View this message in context: http://www.nabble.com/struts.xml--- change-default-location-tf3425865.html#a9550834
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to