Results 1 to 4 of 4

Thread: Open Session in View with the Struts

  1. #1
    Join Date
    Aug 2004
    Posts
    4

    Default Open Session in View with the Struts

    Hi,
    Is there any way to apply Open Session in View design pattern for Struts + Spring + Hibernate?

  2. #2
    Join Date
    Sep 2004
    Posts
    346

    Default Yes there is an OpenSessionInView Filter

    Yes there is an OpenSessionInView Filter

  3. #3
    Join Date
    Sep 2004
    Location
    Singapore
    Posts
    29

    Default

    How to config this ?
    thanks
    lixin

  4. #4
    Join Date
    Sep 2004
    Posts
    346

    Default See message.

    See the following posting I am recommending this way to do it. Here is the posting http://forum.springframework.org/showthread.php?t=10519.

    For an example of the Filter way to do it.

    Code:
      <filter>
        <filter-name>hibernateFilter</filter-name>
        <filter-class>org.springframework.orm.hibernate.support.OpenSessionInViewFilter</filter-class>
      </filter>
    
      <filter-mapping>
        <filter-name>hibernateFilter</filter-name> 
        <url-pattern>/mnt/*</url-pattern>
      </filter-mapping>
    Last edited by robyn; May 14th, 2006 at 09:56 AM.

Similar Threads

  1. OpenSessionInView and portlet support
    By garpinc2 in forum Web Flow
    Replies: 31
    Last Post: Apr 9th, 2010, 11:12 AM
  2. Replies: 7
    Last Post: Sep 13th, 2005, 01:45 AM
  3. OpenSessionInView + CMT Session usage
    By alesj in forum Data
    Replies: 7
    Last Post: Aug 16th, 2005, 02:32 AM
  4. Replies: 3
    Last Post: May 16th, 2005, 07:04 AM
  5. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM

Posting Permissions

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