dcsimg
Problem while Using multiple struts config file
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Biju_Nair
Posted On:   Tuesday, October 5, 2004 11:28 PM

Hi I am trying to use multiple struts config file in my application but it gives broken link problem in my jsps. it is not recogonising one of the struts config file eventhough i already specified in web.xml. I am having 2 struts config named as struts-config.xml and new-config.xml,both are in web-inf I am setting these in web.xml as follows config /WEB-INF/struts-config.xml config/new /WEB-INF/new-config.xml But my jsps are not recogonising the file new-config.xml and it gives broken link error if i specify any action in new-config.xml . can anybody he   More>>

Hi

I am trying to use multiple struts config file in my application but it gives broken link problem in my jsps.

it is not recogonising one of the struts config file eventhough i already specified in web.xml.

I am having 2 struts config named as

struts-config.xml and new-config.xml,both are in web-inf


I am setting these in web.xml as follows




config

/WEB-INF/struts-config.xml





config/new

/WEB-INF/new-config.xml






But my jsps are not recogonising the file new-config.xml and it gives
broken link error if i specify any action in new-config.xml .

can anybody help me in this matter

Thanks in advance

Biju

   <<Less

Re: Problem while Using multiple struts config file

Posted By:   Roeland_Lengers  
Posted On:   Monday, October 25, 2004 12:36 AM

Biju,

what you need to is specify the other config-files on the same line. For example (snippet from one of my web.xml's):


action
org.apache.struts.action.ActionServlet

config
/WEB-INF/admin-config/struts-admin-config.xml,/WEB-INF/config/struts-config.xml,/WEB-INF/config/struts-config-clientspecific.xml


debug
1

...
the rest

I believe it's rather important to NOT have spaces between the enumeration of the configfiles. So in the example there should not be a space after "struts-admin-config.xml,"


Hope this helps.
About | Sitemap | Contact