Results 1 to 11 of 11

Thread: Can we have 2 Struts Config.xml file

  1. #1
    Geek_Guest
    Guest

    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


  2. #2
    Expert Member
    Join Date
    Oct 2005
    Answers
    383

    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.

  3. #3
    Junior Member
    Join Date
    May 2007
    Answers
    19

    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-.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).


  4. #4
    Junior Member
    Join Date
    Jun 2007
    Answers
    9

    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..


  5. #5
    Junior Member
    Join Date
    Jun 2007
    Answers
    20

    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.


  6. #6
    Junior Member
    Join Date
    Jul 2007
    Answers
    2

    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.


  7. #7
    Junior Member
    Join Date
    Jun 2007
    Answers
    7

    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.


  8. #8
    Junior Member
    Join Date
    Jun 2007
    Answers
    2

    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.


  9. #9
    Junior Member
    Join Date
    Dec 2006
    Answers
    2

    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.


  10. #10

    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.


  11. #11

    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..


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact