facebook

Two Seprate Struts Config file is required in one app

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #239189 Reply

    bhavini
    Member

    Hi
    I am trying to add one package for new Application in to current existing application in same EAR. My business rwequirement is such that the new application should reside in same OLD EAR and I required to have separate Struts config file in this EAR. Can you please let me know whether it is possible or not? How can I generate two seprate Struts config file in single EAR and Also How can I refer that from One Web.Xml file?

    Thanks in Advance.
    Cheers

    #239203 Reply

    Riyad Kalla
    Member

    bhavini,
    An EAR is a container for multiple Web, EJB and Java modules. So if you need multiple struts-config.xml files, that means you either have multiple Web Projects in your EAR, or you have multiple Struts modules in 1 Web Project. The way you add multiple configs to 1 web project is to denote them in the web.xml file in a space separated list argument to your StrutsServlet servlet (init-param). Please check the Struts docs for better details, I’m going off of memory here.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Two Seprate Struts Config file is required in one app

You must be logged in to post in the forum log in