Results 1 to 2 of 2

Thread: ContextLoaderPlugIn problem

  1. #1
    Join Date
    Nov 2004
    Posts
    26

    Default ContextLoaderPlugIn problem

    I am using the ContextLoaderPlugIn.

    What do I do in the case where I have multiple struts actions that maps to the same class?
    They need to be different mappings because they are coming from different forms and therefore have different actionforms.
    Do I need to define a spring bean for each of my struts actions even though they are the same class?

    Here is an example from my struts-config
    Code:
      <action  name = "GroupQueryForm" path="/UpdateQuery" scope="session" type="net.idt.ReportEngine.Editor.QueryEditor"
    		     validate ="false" parameter="actionType" input="/pages/groupQueries.jsp">
    	   <forward name="Query" path="/pages/groupQueries.jsp" />
    	   <forward name="EditQuery" path="/pages/query.jsp" />
    	   <forward name="queries" path="/pages/groupQueries.jsp" />
    	   <forward name="index" path="/pages/index.jsp" />
      </action>
      
     
    	<action  name = "QueryDetailForm" path="/SubmitQuery" scope="session" type="net.idt.ReportEngine.Editor.QueryEditor"
    			     validate ="false" parameter="actionType" input="/pages/query.jsp">
    		   <forward name="Query" path="/pages/groupQueries.jsp" />
    		   <forward name="index" path="/pages/index.jsp" />
      </action>

  2. #2
    Join Date
    Nov 2004
    Posts
    26

    Default

    I saw I can overide the bean name to map to with determineActionBeanName. How do I implement this?

Similar Threads

  1. Replies: 1
    Last Post: Jul 5th, 2005, 03:48 AM
  2. pagination and continuation problem in SWF
    By yfmoan in forum Web Flow
    Replies: 6
    Last Post: Jun 29th, 2005, 03:42 AM
  3. Replies: 0
    Last Post: Feb 16th, 2005, 01:45 PM
  4. Replies: 3
    Last Post: Jan 31st, 2005, 08:52 AM
  5. Lazy Load Problem when Doing UnitTest
    By yoshi in forum Data
    Replies: 7
    Last Post: Sep 29th, 2004, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •