« Return to Thread: dispatching to a different jsp using DWR - is it posible?

Re: dispatching to a different jsp using DWR - is it posible?

by lvcster :: Rate this Message:

Reply to Author | View in Thread

hi,
I tried to interprete your response,

Remote.method(function(goto) {
document.location = goto;
});

What exactly is the Remote.method(function(goto)? is it the Java class method? is the goto the page i want to dispatch to?

could you please gimme a simple eg?

Joe Walker-3 wrote:
I'm not sure what you need.

If you want to include one page in another, you might mean something like
this: http://getahead.org/dwr/server/generic

Or if you need to visit another page, something like this?

Remote.method(function(goto) {
  document.location = goto;
});

Joe.

On Jan 3, 2008 2:05 PM, lvcster <lvcster@gmail.com> wrote:

>
> hi ya'll.
>
> Could someone please tell me how do we dispatch to the different jsp using
> DWR
>
> in plain servlets
> RequestDispatcher dispatcher =
> getServletContext().getRequestDispatche("myjsp.jsp");
> dispatcher.forward(request, response);
> now how do we do this in DWR, or does it works the same way?
>
> Thanks in advance.
> lvcster.
> --
> View this message in context:
> http://www.nabble.com/dispatching-to-a-different-jsp-using-DWR---is-it-posible--tp14597366p14597366.html
> Sent from the DWR - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@dwr.dev.java.net
> For additional commands, e-mail: dev-help@dwr.dev.java.net
>
>

 « Return to Thread: dispatching to a different jsp using DWR - is it posible?