logo       

Re: Re: ReverseAjax newbie: msg#00169

java.dwr.user

Subject: Re: Re: ReverseAjax newbie

Of course it is possible.

I really need to see your DWR configuration and may be your java and jsp files. You probably know that to use WebContext your request need to be
inside a http request.

Regards,
Daniel

Predrag Stojadinovic wrote:
Nadam se da mozete :o)))
(I'm gonna write in English for others ;o)

Since that post I've changed and changed and changed, and eventually I got the
Reverse Ajax to work but there is one problem which I found and I'm hoping that
it is my mistake.

From what I gather I can only make calls to static methods / static classes from
javascript. In other words, I can only call:

TableAjaxHandler.getData()

And then in there I can use WebContext, ScriptSession and Util to send back data
or call javascript methods etc. So, in a way I succeeded. But sadly not really!

So THE QUESTION now is this: Is it possible to create an instance of some Java
class using DWR? I created a card game with applets, but would like to switch to
Ajax if it is possible. So I need my jsp page to communicate with just one
instance of some Java class and be controlled by it. Can this be done?

THANKS A MILLION!

Pedja


---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe-EyPigyGktj4FDOXUYO6UHQ@xxxxxxxxxxxxxxxx
For additional commands, e-mail:
users-help-EyPigyGktj4FDOXUYO6UHQ@xxxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise