aspose file tools
The moose likes Servlets and the fly likes returning value from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "returning value from servlet" Watch "returning value from servlet" New topic
Author

returning value from servlet

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 409
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
Marshal

Joined: Jan 10, 2002
Posts: 56183
    
  13

Servlets return response, not values.

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: returning value from servlet
 
Similar Threads
session in distributed web application
Help me in send redirct
WSAD Load on startup
getting TOMCAT_HOME inside servlet
responsexml in javascript using ajax