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

Servlets return response, not values.

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ankit Garg

Joined: Aug 03, 2008
Posts: 9321

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