Geeks Talk

Prepare for your Next Interview




Can we have 2 Struts Config.xml file

This is a discussion on Can we have 2 Struts Config.xml file within the JSP forums, part of the Web Development category; Can we have 2 Struts Config.xml file in 1 struts application? Question asked by visitor meethun ku. panda...


Go Back   Geeks Talk > Web Development > JSP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-04-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 164 Times in 138 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
Can we have 2 Struts Config.xml file

Can we have 2 Struts Config.xml file in 1 struts application?

Question asked by visitor meethun ku. panda
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-30-2007
Expert Member
 
Join Date: Oct 2005
Location: india,cochi,bangalore
Posts: 395
Thanks: 2
Thanked 8 Times in 7 Posts
vmshenoy is on a distinguished road
Re: Can we have 2 Struts Config.xml file

i am not sure, but as far as i know and the project which i hav come across, we cannot use more than1 struts-config.xml file.
__________________
:)
NEVER SAY DIE.
Reply With Quote
  #3 (permalink)  
Old 06-05-2007
Junior Member
 
Join Date: May 2007
Location: Bangalore
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
sweet_person is on a distinguished road
Re: Can we have 2 Struts Config.xml file

No we cannot have 2 struts-config.xml files. In one case we can use 2 struts-cofig.xml files with some minor change in the file name. i e we can use strtus-config-<module-name>.xml. eg struts-config-admin.xml. Here admin refers to the module name in u r project. and this xml file in deployed in web-inf folder(same as struts-config.xml file).
Reply With Quote
  #4 (permalink)  
Old 06-08-2007
Junior Member
 
Join Date: Jun 2007
Location: USA
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Surekha venkat is on a distinguished road
Re: Can we have 2 Struts Config.xml file

hi
we can have 2 or more strutsconfig.xml file.
if the application is too big or complex one then we can make that application into modules so by this way each module can have one strutsconfig.xml file...
i think now you got some clarification about it, if you not get please fell free to ask me

thanks..
Reply With Quote
  #5 (permalink)  
Old 07-04-2007
Junior Member
 
Join Date: Jun 2007
Location: India
Posts: 20
Thanks: 0
Thanked 6 Times in 4 Posts
deeptiagrawal is on a distinguished road
Re: Can we have 2 Struts Config.xml file

Yes u can have 2 or more number of struts config but there would be only 1 web.xml.
Reply With Quote
  #6 (permalink)  
Old 07-04-2007
Junior Member
 
Join Date: Jul 2007
Location: Bangalore
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rakesh5 is on a distinguished road
Re: Can we have 2 Struts Config.xml file

yes we can have any number of struts cfg.xml file depends upon our application

if we segment our application in to different modules.for each and every module we shold maintain one stuts cfg.xml

we are going to place all these modules cfg files under WEB_INF directory.

and we are going to map these cfg's information in web.xml file.
Reply With Quote
  #7 (permalink)  
Old 07-04-2007
Junior Member
 
Join Date: Jun 2007
Location: pune
Posts: 13
Thanks: 5
Thanked 0 Times in 0 Posts
satishk is on a distinguished road
Re: Can we have 2 Struts Config.xml file

yes we can have more than one Struts-config.xml.depending upon u r module we can put Struts-config.xml and map the things.All these should be mentioned in web.xml file .So care should be taken while naming struts_config.xml file so that there should not be any problem in mapping the tags.
Reply With Quote
  #8 (permalink)  
Old 07-04-2007
Junior Member
 
Join Date: Jun 2007
Location: Hyderabad
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
subhani_syed is on a distinguished road
Re: Can we have 2 Struts Config.xml file

yes.
you can have more than one struts-config.xml file in your application.
If there are more than one module and each module was designed some different persons who are not belongs to your company ,so you can integrate all this modules into your web application.Means for each module there be a separate struts-config.xml file. we can jump to that mentioned module directly by using switch action in your jsp page.
Reply With Quote
  #9 (permalink)  
Old 07-04-2007
Junior Member
 
Join Date: Dec 2006
Location: India
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
kezhilnambi is on a distinguished road
Re: Can we have 2 Struts Config.xml file

Yes We can have more than one struts-config,xml file depends upon the reqmt. All u need is deploy the right configs at right place.
Reply With Quote
  #10 (permalink)  
Old 07-05-2007
Junior Member
 
Join Date: Nov 2006
Location: India
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
madhukar.poreddy is on a distinguished road
Re: Can we have 2 Struts Config.xml file

yes we can have the multtiple struts-config.xml under one application.
but the name should be like anyname-config.xml.
Reply With Quote
  #11 (permalink)  
Old 3 Weeks Ago
Junior Member
 
Join Date: Nov 2008
Location: India
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
shubhangiwakodikar is on a distinguished road
Re: Can we have 2 Struts Config.xml file

Hi Surekha and others,
Can you please explain how you can include 2 struts-config xml files in your project?
Thanks a lot..
Reply With Quote
Reply

  Geeks Talk > Web Development > JSP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Validations on struts based applications Lokesh M Java 2 11-19-2007 03:44 AM
struts anupamad Java 2 05-04-2007 03:40 AM
Struts Tags functionality Geek_Guest JSP 0 03-26-2007 08:30 AM
can any one sent me how to use tabslayout using struts and tiles chennuri4u Java 4 01-17-2007 12:58 AM
Machine config in ASP.NET JobHelper ASP.NET 2 12-22-2006 06:12 PM


All times are GMT -4. The time now is 01:18 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved