Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpSession and HttpRequest in Spring.  RSS feed

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

}


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!