File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 303
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


I agree. Here's the link:
subject: HttpSession and HttpRequest in Spring.
It's not a secret anymore!