Two Laptop Bag
The moose likes Spring and the fly likes HttpSession and HttpRequest in Spring. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "HttpSession and HttpRequest in Spring." Watch "HttpSession and HttpRequest in Spring." New topic

HttpSession and HttpRequest in Spring.

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
Hi List,
How can i get the HttpSession and HttpRequest in spring.In my project i am using Flex as view and spring BlazeDS is used for transferring the object from flex to java.

Please help me.

Thanks & Regards
Mahajan Nikhil

Joined: Jul 30, 2011
Posts: 5

Pass the object of HttpServletRequest in your controller methods along with your model object.

For example,

public String test(Model model, HttpServletRequest request) {

final HttpSession session = request.getSession();

//Your code goes here


Don't get me started about those stupid light bulbs.
subject: HttpSession and HttpRequest in Spring.