Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2007, 01:46 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
Rep Power: 10
JavaBean is on a distinguished road
Default How to use request Scope in Spring
This tip will show to use request scope in spring.

Code:
<bean id="sampleAction" class="org.compchamps.SampleAction" scope="request"/>
With the above bean definition the Spring container will create a brand new instance of the SampleAction bean using the 'sampleAction' bean definition for each and every HTTP request. That is, the 'sampleAction' bean scoped at the HTTP request level in web application.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Defining global session scope in Spring framework Java Tip Java Tips 0 03-31-2008 11:08 AM
How to use session scope in Spring Java Tip Java Tips 0 03-31-2008 11:07 AM
How to use request Scope in Spring Java Tip Java Tips 0 03-31-2008 11:06 AM
Defining global session scope in spring framework JavaBean Java Tips 0 09-28-2007 01:47 PM
How to use session scope in Spring JavaBean Java Tips 0 09-28-2007 01:47 PM


All times are GMT +2. The time now is 03:15 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org