More than one struts-config.xml files in one project

Hi all
Can we have more than one struts-config.xml files in one project developed using struts.
If so what is purpose and how to do this.
Anybody please explain on this topic.
Thanks
Parvathy

Hi all
Can we have more than one struts-config.xml files in
one project developed using struts.
yes it is possible
If so what is purpose and how to do this.
it is use for odular application so developer won't share a single configureation file.. as you know struts-config.xml is defined on the web.xml
like this:
<servlet>
<servlet-name>mybank</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>config/module1</param-name>
<param-value>
/WEB-INF/struts-module1-config.xml
</param-value>
</init-param>
</servlet>

Similar Messages

  • Can i make more than one faces-config.xml file ?

    Can i make more than one faces-config.xml file under one project or application, if yes than how it will link.

    Just that you know,
    In the second week of july I was taking the Jdeveloper/Jheadstart course at Oracle Netherlands. During that course we were asked to split the faces-config. After splitting it, we were not able to find the navigation rules that were defined in the first faces-config in the web.xml. The Jdeveloper IDE was confused........
    However, we were able to use the navigation rules (type in manualy) and that worked in the application.
    I talked about it with Steven Davelaar and he thought it might be a bug. I don't know if it's reported, and I don't know if it's fixed.
    So, if you get confused.... it works, but Jdeveloper might have some problems with it.
    Luc Bors

  • No route to host:connect -- error in the struts-config.xml file

    hi all,
    acutally am doing a struts application in that i have written everything properly
    but getting this kinda no route to host:connect error
    my struts-config.xml file is like this...
    <struts-config>
    <form-beans>
    <form-bean name="myForm" type="MyForm">
    </form-beans>
    <action-mappings>
    <action path="/action"
                   name="myForm"
                   type="MyAction"
                   scope="request"
                   validate="true" >
                   <forward name="success" path="/success.jsp" />
                   <forward name="failure" path="/failure.jsp" />
         </action>
    </action-mappings>
    </struts-config>
    sikandar 

    Hi Lee,
    I am working on Oracle ADF 10.1.2 and getting the same problem. The lines in my struts-config.xml are as below:
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsEditLink" path="/unitsEdit.do"/>
    </action>
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsCreateLink" path="/unitsCreate.do"/>
    </action>
    I have two lines with [action path="/unitsView"]. The reason why is that I want the user to go to the form create screen for the create button and form edit screen for the edit button. If this does not work, it seems to mean that only a single screen can be used for create/edit functions. However, the ADF editor diagram looks perfectly to point to create.uix and edit.uix respectively.
    Please shed some light.
    Thanks,
    Regards,
    Michael

  • COnfiguring Struts-config.xml file for two level popup windows?

    This is the code for 1st level
    <action path="/search/advanced" scope="request" parameter="method"
                   type="org.fao.gilw.agris.action.AdvancedSearchAction" name="advancedForm" validate="false">
                   <forward name="failed" path="/search/advanced.jsp" redirect="false"/>
                   <forward name="success" path="/search/advanced.jsp" redirect="false"/>
              </action>"search" is the main window, in this window I'm opening/loading a pop-up window called " advanced" ..the above code is for this
    Now again i want to pop-up another window in "advanced" page
    So how to configure for this in Struts-config.xml file...?

    Better post this question at a Struts related forum. There is a mailinglist at their own homepage and a forum at Nabble.com.

  • I am getting the following waring in the struts-config.xml file

    I am getting the following waring in the struts-config.xml file
    Warning(3,16): <Line 3, Column 16>: XML-24538: (Error) Can not find definition for element 'struts-config'
    Warning: Invalid value for property "property" on component "property": Another set-property element for this property already exists. Invalid value for property "property" on component "property":
    Another set-property element for this property already exists. Invalid value for property "property" on component "property":
    and the line 3 in the file is the tag <struts-config>
    has anyone encountered this problem or is there is solution to eliminate the warning, i have validated the xml file wihich is good, i have validated against DTD, which is also good.
    Thanks in advance
    Victor

    Hi Lee,
    I am working on Oracle ADF 10.1.2 and getting the same problem. The lines in my struts-config.xml are as below:
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsEditLink" path="/unitsEdit.do"/>
    </action>
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsCreateLink" path="/unitsCreate.do"/>
    </action>
    I have two lines with [action path="/unitsView"]. The reason why is that I want the user to go to the form create screen for the create button and form edit screen for the edit button. If this does not work, it seems to mean that only a single screen can be used for create/edit functions. However, the ADF editor diagram looks perfectly to point to create.uix and edit.uix respectively.
    Please shed some light.
    Thanks,
    Regards,
    Michael

  • Struts Config.XML file error

    if Error in page (value not entered in textfield) , it will be redirected to a same page with server valid error page . After redirecting javascript,css r not working(means not included)
    but it is working when page is first time loaded.
    help me what could be the problem?
    struts config.xml file
                           <forward name="success"
                        path="/jsp-modEmp/success.jsp"
                        redirect="false"></forward>
                   <forward name="fail" contextRelative="true"
                        path="/jsp-modEmp/addempform.jsp"
                        redirect="false"/>Edited by: K.Ramesh on Jun 5, 2008 6:05 AM
    Edited by: K.Ramesh on Jun 5, 2008 6:05 AM

    Thanks for reply..
    We r invoking javascript/css using relative path only.
    i'm redirecting to the same page only if error happens with including error page
    <script language="javascript" type="text/javascript" src="js-modEmp/addEmpval.js">
    </script>
    <script language="javascript" type="text/javascript" src="js-modEmp/datetimepicker.js">
    </script>
    <link rel="stylesheet" type="text/css" href="css-modEmp/styles.css">

  • A function in my struts-config.xml file

    Struts: Calling a function from a JSP
    Author: boltonian
    Hi, I have defined a function listConfig.do in my struts-config.xml, I was wondering how I can get a .jsp >>page to automatically call this fucntion whenenver it is loaded. What did the author of this post mean when they said "I have defined a function in my xml file"
    Trying to get my head round this whole struts thing...

    Check out this page mate
    http://www.reumann.net/struts/lesson1.do

  • Anchor names in the struts-config.xml file

    Hi,
    I'm trying to use anchor names in the <forward> tag of and <action> in the struts-config.xml. I using the following approach: <forward name="success" path="/client/clientInfo.jsp#details" redirect="true"/>
    I have declared the anchor name in my jsp as <a name="details"></a>.
    Although the page is presented, the anchor target is ignored.
    I already tried accessing the page directly from the browser address and the anchor name works fine. It's only ignored when I try to access it from the struts-config file.
    Any Idea?
    Thanks

    Hi Mary,
    It works fine with WebLogic 6.1 and Struts [a nightly build just before 1.1 release]
    <action path="/Action01"
              type="action.Action01"
              name="baseFormBean"
              scope="request">
         <forward name="success" path="/JSP/Test04.jsp#link1" redirect="true"/>
    </action>     
    in Test04.jsp
    Go to Link1
    <!--data -->
    <a name="link1">Link1</a>
    It went to "Link1" when the action was invoked.
    However, you do not need to convert every thing (all tags) to "struts" to incorporate/use struts features.
    Let me know you environment [App server, Struts version]
    Cheers,

  • Forward tag in struts-config.xml file

    Hi,
    Well.. I am a newbie to Struts. Not exactly a newbie but have done little bit of work in it. I am stuck at a particular point. I am sure you can help me..
    The <forward name=�abc� path=�/abc.jsp� /> in struts-config.xml is used for redirection. In the action class the abc is used in the findforward method. But this can be used only when you want to simply redirect a page to another. I want to do the same but I want to redirect the page using a query string.e.g http://servername:port/abc.do?val=123 something like that. How will I do this?
    Thanking you in Advance

    Hi,
    Well.. I am a newbie to Struts. Not exactly a newbie but have done little bit of work in it. I am stuck at a particular point. I am sure you can help me..
    The <forward name="abc" path="/abc.jsp" /> in struts-config.xml is used for redirection. In the action class the abc is used in the findforward method. But this can be used only when you want to simply redirect a page to another. I want to do the same but I want to redirect the page using a query string.e.g http://servername:port/abc.do?val=123 something like that. How will I do this?
    Thanking you in Advance
    Pradnya

  • Renamed struts-config.xml

    Hello,
    We have multiple struts-config.xml files in our project and the one I created for my part using JDeveloper 9.0.3.4 has been renamed. No I can no longer edit it using the wizard. Is there a way I can get this functionality back without renaming back to struts-config.xml?
    Thanks
    Natalie

    Natalie,
    JDeveloper 9.0.3.4 does not support an other name than struts-config.xml. This is a problem that has been fixed with JDeveloper 10g.
    Charles.

  • More than one faces-config.xml

    hi!
    i am working in a big team, and would like to create more than one faces-config.xml file.
    is it possible? how?

    Yes!! You can create multiple faces-config.xml files.
    Make changes in your deployment descriptor to include multiple faces config files:
    <context-param>
         <param-name>javax.faces.CONFIG_FILES</param-name>
         <param-value>/WEB-INF/config/faces-config-one.xml,
         /WEB-INF/config/faces-config-two.xml,
         /WEB-INF/config/faces-config-three.xml,
         /WEB-INF/config/faces-config-four.xml</param-value>
    </context-param>When there are too many modules, with many people working on the project simultaneously, having multiple faces config files makes it a lot more easier to manage.

  • Console link to source not working/ struts-config.xml visual

    - Running jboss/tomcat under the NitroX server debugging, a stack trace
    is spit out. I click on the line in the stack trace that references my
    code, and it gives me: 'Source not found for x.y.z '. This used to work
    when I ran under the jbossIDE server config.
    - When I open my struts-config.xml file, the visual display appears
    broken. It only displays 2 action classes, and nothing else. There's a
    whole lot more than that in there. Is there something in my
    struts-config file it doesn't like?
    Here's the file:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD
    Struts Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <!-- ========== Data Sources Definitions
    ================================== -->
    <!--
    Define your Struts data sources in a file called
    struts-data-sources.xml and place
    it in your merge directory.
    -->
    <!-- ========== Form Bean Definitions
    =================================== -->
    <form-beans>
    <form-bean
    name="Scheduling_NewCallBean"
    type="com.pubco.icu.struts.scheduling.newcall.NewCallBean"
    />
    <form-bean
    name="Reports_AttendeeReportBean"
    type="com.pubco.icu.struts.report.attendees.attendeeReportBean"
    />
    <form-bean
    name="Reports_AltListingsReportBean"
    type="com.pubco.icu.struts.report.alternate.altListingsReportBean"
    />
    <form-bean
    name="Maintenance_AdBean"
    type="com.pubco.icu.struts.maintenance.ad.AdBean"
    />
    <form-bean
    name="Maintenance_MarketBean"
    type="com.pubco.icu.struts.maintenance.market.MarketBean"
    />
    <form-bean
    name="Maintenance_AssignWarehouseBean"
    type="com.pubco.icu.struts.maintenance.assignWarehouse.AssignWarehouseBean"
    />
    <form-bean
    name="Reports_ContractorReportBean"
    type="com.pubco.icu.struts.report.contractor.contractorReportBean"
    />
    <form-bean
    name="Maintenance_MeetingFormBean"
    type="com.pubco.icu.struts.FormBeanBase"
    />
    <form-bean
    name="Maintenance_MeetingFormBean"
    type="com.pubco.icu.struts.maintenance.meeting.MeetingFormBean"
    />
    <form-bean
    name="Scheduling_ContractorBean"
    type="com.pubco.icu.struts.scheduling.contractor.ContractorBean"
    />
    <form-bean
    name="Reports_SingleContractorBean"
    type="com.pubco.icu.struts.report.singleContractor.singleContractorBean"
    />
    <form-bean
    name="Maint_AltReasonFormBean"
    type="com.pubco.icu.struts.maintenance.altReason.AltReasonFormBean"
    />
    <form-bean
    name="Reports_AdResponseReportBean"
    type="com.pubco.icu.struts.report.adResponses.adResponseReportBean"
    />
    <form-bean
    name="Maintenance_ManagerFormBean"
    type="com.pubco.icu.struts.maintenance.manager.ManagerFormBean"
    />
    <form-bean
    name="Maintenance_WarehouseBean"
    type="org.apache.struts.action.DynaActionForm">
    <form-property name="comments" type="java.lang.String" />
    <form-property name="directions" type="java.lang.String" />
    <form-property name="phoneExt" type="java.lang.String" />
    <form-property name="warehouseId" type="java.lang.String" />
    <form-property name="apartmentNbr" type="java.lang.String" />
    <form-property name="city" type="java.lang.String" />
    <form-property name="faxNbr" type="java.lang.String" />
    <form-property name="houseNbr" type="java.lang.String" />
    <form-property name="phoneNbr" type="java.lang.String" />
    <form-property name="state" type="java.lang.String" />
    <form-property name="streetName" type="java.lang.String" />
    <form-property name="streetPost" type="java.lang.String" />
    <form-property name="streetPrefix" type="java.lang.String" />
    <form-property name="streetSuffix" type="java.lang.String" />
    <form-property name="warehouseName" type="java.lang.String" />
    <form-property name="zipCode" type="java.lang.String" />
    <form-property name="title" type="java.lang.String" />
    <form-property name="archive" type="java.lang.Boolean" />
    </form-bean>
    </form-beans>
    <!-- ========== Global Exceptions Definitions
    =================================== -->
    <!--
    Define your exceptions in a file called global-exceptions.xml and place
    it in your merge directory.
    -->
    <!-- ========== Global Forward Definitions
    =================================== -->
    <global-forwards>
    <forward name="failed" path="/systemError.jsp"/>
    <forward name="start" path="/start.do"/>
    </global-forwards>
    <!-- ========== Action Mapping Definitions
    =================================== -->
    <action-mappings>
    <action
    path="/scheduling/newcall/LocationListPrep"
    type="com.pubco.icu.struts.scheduling.newcall.LocationListPrep"
    name="Scheduling_NewCallBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/scheduling/newcall/locationList.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/market/ImportData"
    type="com.pubco.icu.struts.maintenance.market.ImportData"
    name="Maintenance_MarketBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    /action
    <action
    path="/scheduling/newcall/MeetingListPrep"
    type="com.pubco.icu.struts.scheduling.newcall.MeetingListPrep"
    name="Scheduling_NewCallBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/scheduling/newcall/MeetingListLookup.do"
    redirect="false"
    />
    </action>
    <action
    path="/report/attendees/meetingDirectoryPrep"
    type="com.pubco.icu.struts.report.attendees.meetingAttendeesDirectoryPrep"
    name="Reports_AttendeeReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/attendees/attendeeReportRequestPage.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/report/attendees/meetingAttendeesSubmit"
    type="com.pubco.icu.struts.report.attendees.meetingAttendeesSubmit"
    name="Reports_AttendeeReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/attendees/attendeeReportRequestPage.jsp"
    redirect="false"
    />
    <forward
    name="runReport"
    path="/report/attendees/attendeeReportDisplayPage.jsp"
    redirect="false"
    />
    <forward
    name="failed"
    path="/report/attendees/attendeeReportRequestPage.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/market/LocationListLookup"
    type="com.pubco.icu.struts.maintenance.market.LocationListLookup"
    name="Maintenance_MarketBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="successAdd"
    path="/maintenance/market/locationEdit.jsp"
    redirect="false"
    />
    <forward
    name="successEdit"
    path="/maintenance/market/locationEdit.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/ad/AdDetailPrep"
    type="com.pubco.icu.struts.maintenance.ad.AdDetailPrep"
    name="Maintenance_AdBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/ad/adDetail.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/report/contractor/contractorReportPrinterPrep"
    type="com.pubco.icu.struts.report.contractor.contractorReportPrinterPrep"
    name="Reports_ContractorReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/contractor/contractorReportPrinter.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/meeting/AttendeeDetailPrep"
    type="com.pubco.icu.struts.maintenance.meeting.AttendeeDetailPrep"
    name="Maintenance_MeetingFormBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/meeting/attendeeDetail.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/ad/AdMktSubmit"
    type="com.pubco.icu.struts.maintenance.ad.AdMktSubmit"
    name="Maintenance_AdBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/ad/AdEditPrep.do"
    redirect="false"
    />
    <forward
    name="cancel"
    path="/maintenance/ad/AdEditPrep.do"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/assignWarehouse/AssignWarehouseListPrep"
    type="com.pubco.icu.struts.maintenance.assignWarehouse.AssignWarehouseListPrep"
    name="Maintenance_AssignWarehouseBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/assignWarehouse/assignWarehouseList.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/report/adResponses/adResponsePrep"
    type="com.pubco.icu.struts.report.adResponses.adResponsePrep"
    name="Reports_AdResponseReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/adResponses/adResponseReportRequest.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/assignWarehouse/AssignWarehouseListLookup"
    type="com.pubco.icu.struts.maintenance.assignWarehouse.AssignWarehouseListLookup"
    name="Maintenance_AssignWarehouseBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/assignWarehouse/assignWarehouseList.jsp"
    redirect="false"
    />
    <forward
    name="cancel"
    path="/start.do"
    redirect="false"
    />
    <forward
    name="failed"
    path="/maintenance/assignWarehouse/assignWarehouseList.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/report/contractor/sendEmails"
    type="com.pubco.icu.struts.report.contractor.SendEmails"
    name="Reports_ContractorReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="letterEntry"
    path="/report/contractor/sendEmails.jsp"
    redirect="false"
    />
    <forward
    name="sendItDone"
    path="/report/contractor/sendEmailsDone.jsp"
    redirect="false"
    />
    <forward
    name="failed"
    path="/report/contractor/sendEmails.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/ad/AdEditSubmit"
    type="com.pubco.icu.struts.maintenance.ad.AdEditSubmit"
    name="Maintenance_AdBean"
    scope="session"
    parameter="AdEditSubmit_action"
    unknown="false"
    validate="true"
    >
    forward
    name="cancel"
    path="/maintenance/ad/AdListLookup.do"
    redirect="false"
    />
    <forward
    name="failed"
    path="/maintenance/ad/AdEditPrep.do"
    redirect="false"
    />
    <forward
    name="addDirectory"
    path="/maintenance/ad/AdMktPrep.do"
    redirect="false"
    />
    <forward
    name="successUpdate"
    path="/maintenance/ad/AdListLookup.do"
    redirect="false"
    />
    <forward
    name="successIncrease"
    path="/maintenance/ad/AdEditPrep.do"
    redirect="false"
    />
    <forward
    name="successDecrease"
    path="/maintenance/ad/AdEditPrep.do"
    redirect="false"
    />
    <forward
    name="successDelete"
    path="/maintenance/ad/AdEditPrep.do"
    redirect="false"
    />
    </action>
    <action
    path="/scheduling/newcall/AdListPrep"
    type="com.pubco.icu.struts.scheduling.newcall.AdListPrep"
    name="Scheduling_NewCallBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/scheduling/newcall/adList.jsp"
    redirect="false"
    />
    <forward
    name="notallowed"
    path="/scheduling/newcall/LocationListLookup.do"
    redirect="false"
    />
    </action>
    <action
    path="/report/adResponses/adResponsesSubmit"
    type="com.pubco.icu.struts.report.adResponses.adResponsesSubmit"
    name="Reports_AdResponseReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/adResponses/adResponseReportDisplay.jsp"
    redirect="false"
    />
    <forward
    name="failed"
    path="/report/adResponses/adResponsePrep.do"
    redirect="false"
    />
    </action>
    <action
    path="/report/alternate/alternateListsSubmit"
    type="com.pubco.icu.struts.report.alternate.alternateListsSubmit"
    name="Reports_AltListingsReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/alternate/altListsReportDisplayPage.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/scheduling/contractor/ContractorListPrep"
    type="com.pubco.icu.struts.scheduling.contractor.ContractorListPrep"
    name="Scheduling_ContractorBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/scheduling/contractor/ContractorListLookup.do"
    redirect="false"
    />
    </action>
    <action
    path="/report/singleContractor/singleContractorPrep"
    type="com.pubco.icu.struts.report.singleContractor.singleContractorPrep"
    name="Reports_SingleContractorBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/contractor/singleContractorDisplay.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/market/DirectoryListPrep"
    type="com.pubco.icu.struts.maintenance.market.DirectoryListPrep"
    name="Maintenance_MarketBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/market/DirectoryListLookup.do"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/altReason/AltReasonDetailPrep"
    type="com.pubco.icu.struts.maintenance.altReason.AltReasonDetailPrep"
    name="Maint_AltReasonFormBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/altReason/AltReasonDetail.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/scheduling/newcall/LocationListLookup"
    type="com.pubco.icu.struts.scheduling.newcall.LocationListLookup"
    name="Scheduling_NewCallBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/scheduling/newcall/locationList.jsp"
    redirect="false"
    />
    <forward
    name="failed"
    path="/scheduling/newcall/locationList.jsp"
    redirect="false"
    />
    <forward
    name="tryAgain"
    path="/scheduling/newcall/LocationListLookup.do"
    redirect="false"
    />
    </action>
    <action
    path="/scheduling/contractor/ContractorListLookup"
    type="com.pubco.icu.struts.scheduling.contractor.ContractorListLookup"
    name="Scheduling_ContractorBean"
    scope="session"
    parameter="ContractorListLookup_action"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/scheduling/contractor/contractorList.jsp"
    redirect="false"
    />
    <forward
    name="failed"
    path="/scheduling/contractor/contractorList.jsp"
    redirect="false"
    />
    <forward
    name="addContractor"
    path="/scheduling/contractor/ContractorListSubmit.do?action=add"
    redirect="false"
    />
    <forward
    name="findMeetings"
    path="/scheduling/contractor/ContractorListSubmit.do?action=findMeetings"
    redirect="false"
    />
    <forward
    name="editContractor"
    path="/scheduling/contractor/ContractorListSubmit.do?action=edit"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/altReason/AltReasonListLookup"
    type="com.pubco.icu.struts.maintenance.altReason.AltReasonListLookup"
    name="Maint_AltReasonFormBean"
    scope="session"
    parameter="AltReasonListLookup_action"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/altReason/AltReasonList.jsp"
    redirect="false"
    />
    <forward
    name="failed"
    path="/maintenance/altReason/AltReasonList.jsp"
    redirect="false"
    />
    <forward
    name="add"
    path="/maintenance/altReason/AltReasonDetailPrep.do"
    redirect="false"
    />
    </action>
    <action
    path="/start"
    type="com.pubco.icu.struts.Start"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/title.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/meeting/AttendeeListLookup"
    type="com.pubco.icu.struts.maintenance.meeting.AttendeeListLookup"
    name="Maintenance_MeetingFormBean"
    scope="session"
    parameter="AttendeeListLookup_action"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/meeting/attendeeList.jsp"
    redirect="false"
    />
    <forward
    name="successOK"
    path="/maintenance/meeting/MeetingDetailPrep.do"
    redirect="false"
    />
    <forward
    name="cancel"
    path="/maintenance/meeting/MeetingDetailPrep.do"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/warehouse/WarehouseDetailPrep"
    type="com.pubco.icu.struts.maintenance.warehouse.WarehouseDetailPrep"
    name="Maintenance_WarehouseBean"
    scope="session"
    parameter="WarehouseDetailPrep_action"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/warehouse/warehouseDetail.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/scheduling/newcall/MeetingListLookup"
    type="com.pubco.icu.struts.scheduling.newcall.MeetingListLookup"
    name="Scheduling_NewCallBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/scheduling/newcall/meetingList.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/meeting/AttendeeListSubmit"
    type="com.pubco.icu.struts.maintenance.meeting.AttendeeListSubmit"
    name="Maintenance_MeetingFormBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/meeting/MeetingDetailPrep.do"
    redirect="false"
    />
    </action>
    <action
    path="/scheduling/contractor/ContractorListSubmit"
    type="com.pubco.icu.struts.scheduling.contractor.ContractorListSubmit"
    name="Scheduling_ContractorBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="successNewCall"
    path="/scheduling/newcall/FinishContractor.do"
    redirect="false"
    />
    <forward
    name="successAdd"
    path="/scheduling/contractor/contractorDetail.jsp"
    redirect="false"
    />
    <forward
    name="successEdit"
    path="/scheduling/contractor/contractorDetail.jsp"
    redirect="false"
    />
    <forward
    name="successFindMeetings"
    path="/scheduling/contractor/meetings.jsp"
    redirect="false"
    />
    <forward
    name="successRecruit"
    path="/scheduling/contractor/ContractorListLookup.do"
    redirect="false"
    />
    <forward
    name="successAlternateEdit"
    path="/scheduling/contractor/alternateEdit.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/scheduling/newcall/AdListSubmit"
    type="com.pubco.icu.struts.scheduling.newcall.AdListSubmit"
    name="Scheduling_NewCallBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/scheduling/newcall/MeetingListPrep.do"
    redirect="false"
    />
    </action>
    <action
    path="/report/attendees/attendeeReportDisplayPrinter"
    type="com.pubco.icu.struts.report.attendees.attendeeReportDisplayPrinter"
    name="Reports_AttendeeReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/attendees/attendeeReportDisplayPrinter.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/report/adResponses/adResponseReportPrinterPrep"
    type="com.pubco.icu.struts.report.adResponses.adResponseReportPrinterPrep"
    name="Reports_AdResponseReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/adResponses/adResponseReportPrinter.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/meeting/ManagerAdd"
    type="com.pubco.icu.struts.maintenance.meeting.ManagerAdd"
    name="Maintenance_MeetingFormBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/meeting/MeetingListLookup.do"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/manager/ManagerListPrep"
    type="com.pubco.icu.struts.maintenance.manager.ManagerListPrep"
    name="Maintenance_ManagerFormBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/manager/ManagerListLookup.do"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/ad/AdDetailSubmit"
    type="com.pubco.icu.struts.maintenance.ad.AdDetailSubmit"
    name="Maintenance_AdDetailBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/ad/AdListPrep.do"
    redirect="false"
    />
    <forward
    name="cancel"
    path="/maintenance/ad/AdListPrep.do"
    redirect="false"
    />
    <forward
    name="failed"
    path="/maintenance/ad/adDetail.jsp"
    redirect="false"
    />
    <forward
    name="successInsert"
    path="/maintenance/ad/AdListPrep.do"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/warehouse/WarehouseListLookup"
    type="com.pubco.icu.struts.maintenance.warehouse.WarehouseListLookup"
    name="Maintenance_WarehouseBean"
    scope="session"
    parameter="WarehouseListLookup_action"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/warehouse/warehouseList.jsp"
    redirect="false"
    />
    <forward
    name="add"
    path="/maintenance/warehouse/WarehouseDetailPrep.do"
    redirect="false"
    />
    </action>
    <action
    path="/report/alternate/altListingsReportPrinterPrep"
    type="com.pubco.icu.struts.report.alternate.altListingsReportPrinterPrep"
    name="Reports_AltListingsReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/alternate/altListsReportPrinterDisplay.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/manager/ManagerListLookup"
    type="com.pubco.icu.struts.maintenance.manager.ManagerListLookup"
    name="Maintenance_ManagerFormBean"
    scope="session"
    parameter="ManagerListLookup_action"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/manager/managerList.jsp"
    redirect="false"
    />
    <forward
    name="failed"
    path="/maintenance/manager/managerList.jsp"
    redirect="false"
    />
    <forward
    name="successAddForMeeting"
    path="/maintenance/meeting/ManagerAdd.do"
    redirect="false"
    />
    <forward
    name="cancelAddForMeeting"
    path="/maintenance/meeting/MeetingListLookup.do"
    redirect="false"
    />
    </action>
    <action
    path="/scheduling/contractor/SendEmail"
    type="com.pubco.icu.struts.scheduling.contractor.SendEmail"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/scheduling/newcall/emailConfirmation.jsp"
    redirect="false"
    />
    <forward
    name="failed"
    path="/scheduling/contractor/meetings.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/market/DirectoryListLookup"
    type="com.pubco.icu.struts.maintenance.market.DirectoryListLookup"
    name="Maintenance_MarketBean"
    scope="session"
    parameter="DirectoryListLookup_action"
    unknown="false"
    validate="true"
    >
    forward
    name="add"
    path="/maintenance/market/directoryAdd.jsp"
    redirect="false"
    />
    <forward
    name="success"
    path="/maintenance/market/directoryList.jsp"
    redirect="false"
    />
    <forward
    name="importData"
    path="/maintenance/market/ImportData.do"
    redirect="false"
    />
    <forward
    name="editSuccess"
    path="/maintenance/market/directoryEdit.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/meeting/AttendeeListPrep"
    type="com.pubco.icu.struts.maintenance.meeting.AttendeeListPrep"
    name="Maintenance_MeetingFormBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/meeting/AttendeeListLookup.do"
    redirect="false"
    />
    </action>
    <action
    path="/report/contractor/contractorSubmit"
    type="com.pubco.icu.struts.report.contractor.contractorSubmit"
    name="Reports_ContractorReportBean"
    scope="session"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/report/contractor/contractorReportDisplay.jsp"
    redirect="false"
    />
    </action>
    <action
    path="/maintenance/meeting/MeetingDetailSubmit"
    type="com.pubco.icu.struts.maintenance.meeting.MeetingDetailSubmit"
    name="Maintenance_MeetingFormBean"
    scope="session"
    parameter="MeetingDetailSubmit_action"
    unknown="false"
    validate="true"
    >
    forward
    name="success"
    path="/maintenance/meeting/MeetingListLookup.do"
    redirect="false"
    />
    <forward
    name="cancel"
    path="/maintenance/meeting/MeetingListLookup.do"
    redirect="false"
    />
    <forward
    name="failed"
    path="/maintenance/meeting/

    Thanks for reply..
    We r invoking javascript/css using relative path only.
    i'm redirecting to the same page only if error happens with including error page
    <script language="javascript" type="text/javascript" src="js-modEmp/addEmpval.js">
    </script>
    <script language="javascript" type="text/javascript" src="js-modEmp/datetimepicker.js">
    </script>
    <link rel="stylesheet" type="text/css" href="css-modEmp/styles.css">

  • Can I use morethen one faces-config.xml

    HI,
    now I am learning jsf, I have a doubt that ,can I use more than on faces-config.xml in one application ? and can we cahange name of faces-config.xml to faces-config-first.xml, and faces-config-second.xml? if it is possible , what should i do?
    Thank&Regards
    satya..

    Why would you want multiple config files? Is it for organization only...
    How would your app. know the when to use a different config file?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                       

  • How to  configure  for struts-config.xml

    Hi
    I am having a JSp which is Mapped to anothr action through the registration.The registartion is mapped to action
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ page import="org.apache.struts.validator.ValidatorPlugIn" session="true" %>
    <%@ page import="org.apache.struts.Globals" %>
    <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    <html:html locale="true">
    <head>
    <title><bean:message key="index.title"/></title>
    <html:base/>
    </head>
    <body bgcolor="white">
    <logic:notPresent name="<%= Globals.MESSAGES_KEY %>" >
      <font color="red">
        ERROR:  Application resources not loaded -- check servlet container
        logs for error messages.
      </font>
    </logic:notPresent>
    <%-- :TODO: Need code to do this with moudles
    <logic:notPresent name="<%= ValidatorPlugIn.VALIDATOR_KEY %>" >
      <font color="red">
        ERROR:  Validator resources not loaded -- check Commons Logging
        logs for error messages.
      </font>
    </logic:notPresent>
    --%>
    <h3><bean:message key="registrationForm.title"/>1222AAAAAAAAAAAAA</h3>
    <ul>
      <li><html:link action="Test.jsp">Test212121.jsp</html:link >
       <li><html:link action="/registration"><bean:message key="registrationForm.title"/></html:link></li>
       <%System.out.println("hellooooooooooooo");%>
       <!-- :TODO: Should have a non-JaveScript message-by-field example -->
       <li>
          <html:link action="/jsRegistration"><bean:message key="jsRegistrationForm.title"/></html:link> -
          <bean:message key="jsRegistrationForm.description"/>
       </li>
       <li>
          <html:link action="/multiRegistration"><bean:message key="multiRegistrationForm.title"/></html:link> -
          <bean:message key="multiRegistrationForm.description"/>
       </li>
    </ul>
    <a href="registration.jsp">Registration Test</a>
    <p> </p>
    <h3><bean:message key="typeForm.title"/></h3>
    <ul>
       <li>
          <html:link action="/type"><bean:message key="typeForm.title"/></html:link> -
          <bean:message key="typeForm.description"/>
       </li>
       <li>
          <html:link action="/editJsType"><bean:message key="jsTypeForm.title"/></html:link> -
          <bean:message key="jsTypeForm.description"/>
       </li>
    </ul>
    <p> </p>
    <h3>Change Language | Changez Le Langage</h3>
    <ul>
       <li><html:link action="/locale?language=en">English | Anglais</html:link></li>
       <li>
          <html:link action="/locale?language=fr">French | Francais</html:link> -
          <bean:message key="localeForm.fr"/>
       </li>
       <li>
          <html:link action="/locale?language=fr&country=CA">French Canadian | Francais Canadien</html:link> -
          <bean:message key="localeForm.frCA"/>
       </li>
       <li>
          <html:link action="/locale?language=ja" useLocalEncoding="true">Japanese | Japonais</html:link> -
          <bean:message key="localeForm.ja"/>
       </li>
    </ul>
    <p> </p>
    ==============struts-config.xml=================\<?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
    "http://struts.apache.org/dtds/struts-config_1_2.dtd">
    <struts-config>
    <!--============================================== Form Bean Definitions -->
    <form-beans>
    <!-- Registration form bean -->
    <form-bean name="registrationForm" type="validator.RegistrationForm" />
    <!-- Multi-Part Registration form bean -->
    <form-bean name="multiRegistrationForm" type="validator.RegistrationForm" />
    <!-- Type form bean -->
    <form-bean name="typeForm" type="validator.TypeForm" />
    <!-- JavaScript Type form bean -->
    <form-bean name="jsTypeForm" type="validator.TypeForm" />
    </form-beans>
    <!-- ======================================== Global Forward Definitions -->
    <global-forwards>
    <forward name="home" path="/index.jsp" />
    </global-forwards>
    <!-- ========================================= Action Mapping Definitions -->
    <action-mappings>
    <action path="/welcome" forward="/index.jsp" />
    <!-- Registration Action
         -->
    <forward name="registration" path="/registration.do" /> //// ==========>here it is mapped
         <action path="/registration" forward="/registration.jsp" />
         <action path="/registration-submit" type="validator.RegistrationAction" name="registrationForm" scope="request" validate="true" input="input">
    <forward name="input" path="/registration.do" />
    <forward name="success" path="/index.jsp" />
    </action>
         <action path="/jsRegistration" forward="/jsRegistration.jsp" />
    <!-- Multi-Part Registration Action -->
    <action path="/multiRegistration" forward="/multiRegistration1.jsp" />
    <action path="/multiRegistration-submit" type="validator.MultiRegistrationAction" name="multiRegistrationForm" scope="request" validate="false">
    <forward name="success" path="/welcome.do" />
    <forward name="input1" path="/multiRegistration1.jsp" />
    <forward name="input2" path="/multiRegistration2.jsp" />
    </action>
    <!-- Type Action -->
    <action path="/type" forward="/type.jsp" />
    <action path="/type-submit" type="validator.TypeAction" name="typeForm" scope="request" validate="true" input="input">
    <forward name="input" path="/type.do" />
    <forward name="success" path="/welcome.do" />
    </action>
    <!-- JavaScript Type Action -->
    <action path="/editJsType" type="validator.EditTypeAction" scope="request" validate="false">
    <forward name="success" path="/jsType.do" />
    </action>
    <action path="/jsType" forward="/jsType.jsp" />
    <action path="/jsType-submit" type="validator.TypeAction" name="jsTypeForm" scope="request" validate="true" input="input">
    <forward name="input" path="/editJsType-submit.do?typeForm.reset=false" />
    <forward name="success" path="/welcome.do" />
    </action>
    <!-- Locale Action -->
    <action path="/locale" type="validator.LocaleAction" name="localeForm" scope="request">
    <forward name="success" path="/welcome.do" />
    </action>
    </action-mappings>
    <!-- ============================================= Controller Definition -->
    <controller inputForward="true" />
    <!-- ===================================== Message Resources Definitions -->
    <message-resources parameter="validator.MessageResources" />
    <!-- ============================================ Plug Ins Configuration -->
    <!--
    Add multiple validator resource files by setting the pathnames property
    with a comma delimitted list of resource files to load.
    -->
    <plug-in className="validator.ValidatorPlugIn">
    <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validator/validation.xml" />
    <set-property property="stopOnFirstError" value="true" />
    </plug-in>
    </struts-config>
    <html:img page="/struts-power.gif" altKey="index.powered"/>
    </body>
    </html:html>

    Hey,
    U can do it the way u want. Use DispatchAction Class instead of Action Class. Just go through the documentation for this. If u still have problem let me know.
    Thanks
    KM
    Hi,
    I am new to struts and when i am doing my application i find some >>difficulty i.e,
    I have two buttons on a jsp page Save,Delete.when I click on >>save ,saveAction must be called.if we click delete deleteAction to be >>called.
    for this how can I configure in struts-config.xml file. and how it >>knows which button has been clicked.
    Can any one please guid me.
    Thanks

  • Passing a QueryString in Struts-Config.xml

    Hi,
    How to pass a queryString in Struts-Config.xml??
    For eg,
    <forward name="Success"                    path="/TestAction.do?method=nextPage&Id=100">
                   </forward>
    Not working in struts 1.1. Where it is taking only one parameter where it is not taking the "&" part?? What is the problem here. Please do provide
    a solution for this.
    Thanks,
    JavaCrazyLover

    Hi
    If you want to pass two or more parameters in struts-config.xml do it like this
    eg : <forward name="Success" path="/TestAction.do?method=nextPage&Id=100">
    </forward>
    It worked for me. instead of & use &

Maybe you are looking for

  • Help me diagnose my eMac-Please!

    Using my internal Hard drive, everything is becoming corrupted. If I download anything, it becomes corrupted. Programs randomly quit, and will not restart unless I boot the eMac. If I boot from and external firewire drive, all is good. I would hate t

  • My ipod touch wont connect to wifi after i reset the network settings

    my ipod touch wont connect to wifi after i reset the network settings

  • DPM 2012 R2 (BMR) Replica allways inconsistent

    Hello, I have two Server 2012 servers running DPM 2012 R2. I am trying to do a Bare Metal Recovery backup on one of our protected servers. The protected server is running Server 2008 R2. But since i added the server the replica is allways inconsisten

  • Can't Login to Facetime

    Facetime wont log me in. My password and apple ID are correct, I can sign in on this site and check my account, but it tells me "Could not sign in. Please check your network connection and try again." Yes, my network connection is fine. I also have t

  • Output Module - Multiple  compositions render

    AE CC / Mac / Mavericks After adding a comp to the render queue, I'm getting a message when I go to output that says "not yet specified" I have comp name set to default in the settings but it still is "not yet specified" when I add comps to the rende