Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

struts_config.xml

Thread view: 
surajtheesun@gmail.com - 07 Aug 2007 12:01 GMT
hi frns,
i just want to know that whether i can use more than one struts confic
in an application(web or enterprise).
and if possible tell me how?
the Member of Group
Suraj
Manish Pandit - 07 Aug 2007 21:58 GMT
On Aug 7, 4:01 am, "surajthee...@gmail.com" <surajthee...@gmail.com>
wrote:
> hi frns,
> i just want to know that whether i can use more than one struts confic
> in an application(web or enterprise).
> and if possible tell me how?
> the Member of Group
> Suraj

Yes, you can.

http://struts.apache.org/1.x/userGuide/configuration.html (Section
5.4.1)

Here is how it looks like:

<servlet>
     <servlet-name>action</servlet-name>
     <servlet-class>org.apache.struts.action.ActionServlet</servlet-
class>
     <init-param>
        <param-name>config</param-name>
        <param-value>/WEB-INF/struts-config.xml</param-value>
     </init-param>
     <init-param>
        <param-name>module1</param-name>
       <param-value>/WEB-INF/module1-config.xml</param-value>
      </init-param>
    <init-param>
    <param-name>module2</param-name>
    <param-value>/WEB-INF/module2-config.xml</param-value>
    </init-param>
   </servlet>

-cheers,
Manish


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.