views:

19

answers:

0

Hi.

I'm working with the spring mvc, and have the following problem:

This is for a specific view:

The controller instansiates an object (from now on, called listenObject) which runs a thread that listens for a response from a server. Right now, the controller returns a json object (to the view) if the listenObject have received a response from the server.

Here is what i need: I need the view to show some kind of response that it has been reached.

It is impossible to return anything to the view before i instansiate the listenObject, because then the listenObject won't be instansiated.

Is it some how possible to show anything on the view, before the controller return anything to it?

Thanks in advance, and i hope you understand what im asking for.

related questions