I'm pretty sure you can't do this:

<a href="/myContext/myRemoteServiceServlet?
param1Name=param1Value&param2Name=param2Value">

I think what you need to do is something like this:

1) Edit your JSP page to link in the GWT app, e.g.

<head>
 <title>Some Application</title>
    ......
    ......
    <meta name='gwt:module' content='com.foo.myapp.MyGWTModule'>
    <link rel=stylesheet href="MyGWTModule.css">
     ......
     ......
</head>
<body>
     ......
     ......
     <script language="javascript"
src="com.foo.myapp.MyGWTModule.nocache.js"></script>
    <iframe id="__gwt_historyFrame" style="width:0;height:0;border:
0"></iframe>
     .......
     .......
    <DIV id="MyGWTApp">
     </DIV>
     .......
     .......
</body>

2) In onModuleLoad():

     RootPanel.get("MyGWTApp").add(aWidget);

3) Use the GWT RPC mechanism from within your GWT module code to fetch
data and populate your GWT widgets as per GWT documentation.

4) You can use more than one id tagged DIV to house different widgets
at different locations within the same JSP page. So you can have a
Tree here and a Grid there for example. Load them from onModuleLoad(),
not the JSP itself.

5) so far so straight forward, but what I do not believe you can do is
to add, say, a GWT Tree to JSP1, and then a GWT Grid to JSP2 from the
same GWT module because a GWT module is basically a javascript file
that gets loaded into a single page. You can do it by using separate
GWT modules for each JSP (the so-called "mini-app" approach), but that
is not always convenient. Therefore you need to have a think about how
you go about this since you may find you can't easily do exactly what
you had in mind.

regards
gregor



On Dec 3, 8:03 am, GWT Newbie <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am attempting to do a similar integration.
> I explain what I try to do here :
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> Can you be of any help ? Thanks
>
> Hieu
>
> On 2 déc, 20:18, gregor <[EMAIL PROTECTED]> wrote:
>
> > Hi Arul,
>
> > What are you attempting?
>
> > If you want to replace your entire existing Struts/JSP based UI with
> > GWT in one iteration but retain existing server-side services, then
> > perhaps the easiest way is to replace your Action classes with GWT RPC
> > servlet methods and just copy most of your Action.perform(..) code to
> > these GWT RemoteServiceServlet methods (minus the JSP redirect and
> > bean binding bits, plus preparing the beans for return to GWT client).
> > Your application UI would then load and run from a single HTML file
> > (which is optimal for GWT) and you can throw the old Struts stuff
> > away.
>
> > If on the other hand you want to (or must) either a) embed a bit of
> > GWT sparkle into individual existing JSPs or b) incrementally replace
> > JSPs over time,  then the situation is more complicated. You need to
> > explain your constraints and what you need to do.
>
> > regards
> > gregor
>
> > On Dec 2, 1:56 pm, Arul <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
> > >    Want to replace existing presentaion layer alone by GWT.
> > > Current application stores session value in servlet for processing in
> > > JSP.
>
> > > The same way , How a GWT tool will be used to diplay those values
> > > stored in session(servlet)?
>
> > > Thanks
> > > Arul
--~--~---------~--~----~------------~-------~--~----~
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