wood burning stoves 2.0*
The moose likes Spring and the fly likes access Response object. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "access Response object." Watch "access Response object." New topic
Author

access Response object.

Amitosh Mishra
Ranch Hand

Joined: Feb 11, 2010
Posts: 49
Hi all,

is there any way to access response object explicitly in controller method where it is not declared in method arguments.

regards
Amitosh
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Why would you need to? Declaring it as a method parameter on your controller will signal Spring to inject it in for you. Is there a scenario where this wont work for you?


[How To Ask Questions][Read before you PM me]
Amitosh Mishra
Ranch Hand

Joined: Feb 11, 2010
Posts: 49
That is fine...

I am asking this out of curiosity only.

regards
Amitosh
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Yeah to my knowledge there is not.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: access Response object.
 
Similar Threads
Overriding
how to maintain reference to the response object
Response object does not have getHeader
Doubt in Request Dispatcher
Doubt on Filters