aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "HttpSession and HttpRequest in Spring." Watch "HttpSession and HttpRequest in Spring." New topic
Author

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
Greenhorn

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

}


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpSession and HttpRequest in Spring.