Vita Rara: A Life Uncommon

I tried to get this working

I tried to get this working but failed. The option that i chose was to use the OpenEntityManagerInViewFilter instead of the interceptor.

Here's the snippet of my web.xml where i configured it. Be careful to declare the jpa filter mapping before the struts filter mapping.

   <filter>
      <filter-name>jpaFilter</filter-name>
      <filter-class>
         org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
      </filter-class>
   </filter>
   <filter-mapping>
      <filter-name>jpaFilter</filter-name>
      <url-pattern>/*</url-pattern>
   </filter-mapping>
   <filter>
      <filter-name>struts2</filter-name>
      <filter-class>
         org.apache.struts2.dispatcher.FilterDispatcher
      </filter-class>
   </filter>
   <filter-mapping>
      <filter-name>struts2</filter-name>
      <url-pattern>/*</url-pattern>
   </filter-mapping>

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2
  • Allowed HTML tags: <a> <img> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <h1> <h2> <h3>
  • Lines and paragraphs break automatically.
More information about formatting options