On Oct 23, 3:30 am, pepgrifell <[EMAIL PROTECTED]> wrote:
> hi,
>
> we are migrating our web app. to GWT but it's a big app. so we will
> migrate it by modules. In the Struts app. we have a toolbar with
> buttons that allows to access different "modules" of the app. We would
> like to migrate module a module. Let's say I have buttonA (module A),
> button B (module B) and button C (module C).
>
> I would like to know if I can call (and how) the GWT app. when I click
> button C in Struts app. (I have module C in GWT) I suppose I should
> call the entry page but then how can I redirect to the "page" I want ?

There may be some confusion here about "calling modules".  That's not
really what happens.  A module is a way to organize code, basically.
So when you say "I should call the entry page", that refers to having
the browser, via link or redirection or whatever, load the html for
your "C" application.  That's correct.  I'm not sure then what you
mean by "redirect to the "page" I want.  You should be there already.

> In the entry point I should receive some parameter (passed through the
> URL) to know which page I should load ...

Well, if the button push is selecting something at a finer level of
granularity than the 'sub-application', then you could use the
Window.Location.* methods for examining the URL, if that information
is encoded there.

>
> When the GWT app. will be load, I will have the same toolbar I have in
> Struts app. Then I would like that when I call button A or B and go
> back to Struts app.

How you do this depends on what kind of state management you need.  If
it's sufficient to back to an initial state in the front page of the
struts app (if that even means anything), then these buttons can act
like links and in effect do an HTTP GET on the front page.
Window.Location.replace will do that, by the way, from within the
button's click handler.  But if you really mean "go back", then maybe
it's History you want.

>
> I have two WAR's, one for Struts app. and the other for GWT app.

That would seem to me to complicate things.  Must you?

>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to