You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Renaud Waldura <re...@waldura.org> on 2001/09/11 01:07:45 UTC
XML include hack to split struts-config.xml
I found out about the XML include hack that can be used to split the
struts-config.xml in more manageable portions:
http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer
/action/SetAll/project_id/2/faq_id/16/topic_id/196/question_id/752
It's been mentioned many times before on this list, but I'm having a hell of
a time getting to work, especially with relative paths. Is anyone doing this
in the context of WAR deployment?
My current declaration is like this:
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
[
<!ENTITY downloadClientActions SYSTEM
"file:./WEB-INF/config/struts/actions-downloadClient.xml">
]
>
But it chokes with a I/O error. Using an absolute path in the "file:" URI
makes it work, but this is highly undesirable. I've tried every combination
I could think of, no luck.
Struts-config is fed to the ActionServlet with:
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/config/struts/struts-config.xml</param-value>
</init-param>
Any clues?
--Renaud
RE: XML include hack to split struts-config.xml
Posted by Daniel Toms <da...@againtech.com>.
I've never gotten it to work either, but I would love to hear a solution
myself.
I know what is "suppossed" to happen, but I haven't seen anyone concretely
give
their example of doing it.
dan
> -----Original Message-----
> From: Renaud Waldura [mailto:renaud+struts@waldura.org]
> Sent: Monday, September 10, 2001 4:08 PM
> To: struts-user@jakarta.apache.org
> Subject: XML include hack to split struts-config.xml
>
>
> I found out about the XML include hack that can be used to split the
> struts-config.xml in more manageable portions:
>
> http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQues
> tionAnswer
> /action/SetAll/project_id/2/faq_id/16/topic_id/196/question_id/752
>
> It's been mentioned many times before on this list, but I'm
> having a hell of
> a time getting to work, especially with relative paths. Is anyone
> doing this
> in the context of WAR deployment?
>
> My current declaration is like this:
>
> <!DOCTYPE struts-config PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
> "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
> [
> <!ENTITY downloadClientActions SYSTEM
> "file:./WEB-INF/config/struts/actions-downloadClient.xml">
> ]
> >
>
> But it chokes with a I/O error. Using an absolute path in the "file:" URI
> makes it work, but this is highly undesirable. I've tried every
> combination
> I could think of, no luck.
>
> Struts-config is fed to the ActionServlet with:
>
> <init-param>
> <param-name>config</param-name>
> <param-value>/WEB-INF/config/struts/struts-config.xml</param-value>
> </init-param>
>
> Any clues?
>
> --Renaud
>