Results 1 to 2 of 2

Thread: Spring and ContextLoaderPlugIn for Struts

  1. #1
    Join Date
    Jul 2005
    Location
    Austria
    Posts
    105

    Default Spring and ContextLoaderPlugIn for Struts

    Hi,

    i want to use the ContextLoaderPlugInf for Struts, defined in the struts-config.xml:
    Code:
    <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation"
    value="/WEB-INF/myWebApp.xml"/>
    </plug-in>
    This works fine. But in myWebApp Context i have a bean, that needs a reference of another bean
    Code:
    <bean name="/customerOverview" class="at.demolsky.customer.struts.CustomerOverviewAction">
        <property name="customerDAO">
          <ref bean="customerDAO"/>
        </property>
    </bean>
    , defined in another context-file which is inside a jar-file, located in the lib folder. Is it possible to use a context-file of a jar file? I always get an exception, that the file can't be find.

    Thanks
    markus

  2. #2
    Join Date
    Jul 2005
    Location
    Austria
    Posts
    105

    Default I am alone with this problem?

    Does nobody know an advice????

    thanks

Posting Permissions

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