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]

Reply via email to