Hi,
I am using the Open Session in view pattern as documented in
https://www.hibernate.org/43.html.
The problem is that I am getting multiple sessions opened in some JSPs, really some of my more complicated JSPs are opening about 50 sessions. Does anyone know how to trim this down so I limit my sessions per page load to 1 per page.
I cut down a JSP to try and find out what exactly causes this and found that a form would kick off 3 hibernate sessions. So..
Quote:
<div id="search">
<form >
<input name="Submit" type="image" src="/images/icons/search-button.jpg" class="search-button" value="Go" />
<img src="/images/icons/google-search.jpg" alt="google" />
</form>
</div>
..creates three where as this only causes one..
Quote:
<div id="search">
<form >
</form>
</div>
Thanks