This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes returning value from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "returning value from servlet" Watch "returning value from servlet" New topic

returning value from servlet

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
I am calling a servlet from flex.Need to get some value in flex that servlet is having.How can i do that.
I think servlet can't return any value.But, is there any way that i can get it done.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Servlets return response, not values.

If you need to return a value, you probably shouldn't be using a servlet.

[Asking smart questions] [About Bear] [Books by Bear]
Ankit Garg

Joined: Aug 03, 2008
Posts: 9453

Well I don't know the details of flex too much. But why don't you set the value in the session and access it from flex??

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: returning value from servlet
It's not a secret anymore!