You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Normanjai Singh Pauldurai <No...@infosys.com> on 2004/04/16 15:12:37 UTC
Urgent help in struts MOdular approach
Hi all,
I've a doubt in implementing modular approach for using multiple
struts-config.xml and multimple iles-defs.xml.
I've defined 2 diff. struts-config.xml in web.xml in a modular way as
below:
------------------------------------------------------------------------
-----------------------------
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/business</param-name>
<param-value>/WEB-INF/struts-config-smile.xml</param-value>
</init-param>
------------------------------------------------------------------------
-----------------------------
I have totally different action mappings in both struts-config file, but
if i access a actionmapping present in "config/business", and as a
result there may be a page coming up ,which contains <html:form> tag in
it, pointing to a action mapping present in the other struts-config.xml
file. Hence servlet exception is thrown in the jsp. To avoid this,
i've placed the dependant action mappings in both the struts-config.xml
files. Is this a correct way????? or How should it be????
Are any rules governing the modular approach???
Can u explain me????
NOTE: i'm using struts 1.1
send in ur replies to <ma...@inf.com>
normanjaisingh_p@inf.com ASAP. it's urgent!!!!
Thanx in advance,
Norman
Re: Urgent help in struts MOdular approach
Posted by Martin Cooper <ma...@apache.org>.
MessageIf what you mean is that you have an Action in module 'business' that
needs to forward to a JSP in module 'default', then you should switch
modules before forwarding. See RequestUtils.selectModule() and/or
SwitchAction.
--
Martin Cooper
"Normanjai Singh Pauldurai" <No...@infosys.com> wrote in message
news:557E17BE74D22143B7BE70EB60E33E99107D0ECD@shlmsg01.ad.infosys.com...
Hi all,
I've a doubt in implementing modular approach for using multiple
struts-config.xml and multimple iles-defs.xml.
I've defined 2 diff. struts-config.xml in web.xml in a modular way as below:
----------------------------------------------------------------------------
-------------------------
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/business</param-name>
<param-value>/WEB-INF/struts-config-smile.xml</param-value>
</init-param>
----------------------------------------------------------------------------
-------------------------
I have totally different action mappings in both struts-config file, but if
i access a actionmapping present in "config/business", and as a result there
may be a page coming up ,which contains <html:form> tag in it, pointing to a
action mapping present in the other struts-config.xml file. Hence servlet
exception is thrown in the jsp. To avoid this, i've placed the dependant
action mappings in both the struts-config.xml files. Is this a correct
way????? or How should it be????
Are any rules governing the modular approach???
Can u explain me????
NOTE: i'm using struts 1.1
send in ur replies to normanjaisingh_p@inf.com ASAP. it's urgent!!!!
Thanx in advance,
Norman
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org