Including JSP page into GWT

496 views
Skip to first unread message

Ramesh

unread,
Feb 28, 2008, 3:51:42 AM2/28/08
to Google Web Toolkit
We are thinking of converting our web applicaiton using GWT. One of
the issues is how
to use the existing JSPs in my GWT application. I want make
asynchronous calls to these JSP pages and display output on my
screen.


I designed the screen using GWT which contains the portions like
TopLinks, Menu and BodyPanel. .Whenever i am going to click on links,
it should make a asynchronous call to JSP and the result of JSP has to
be displayed on Body section of screen.

How can i get this done. How can i get the jsp page output to somepart
of screen in GWT.


I am having an idea but didnt know the way to do it. My Idea is
Every JSP page will generate a html code and writes to browser screen
which we are able to look, I want to take this html content and
display on my Body part of the screen using HTML widget.

If any one come to know, Please let me know.

obesga

unread,
Feb 28, 2008, 7:30:19 AM2/28/08
to Google Web Toolkit
If it is HTML plain code ( with no Javascript ), that could be easy,
just use

SimplePanel oSimplePanel = new SimplePanel();
HTML oHtml = new HTML()
oSimplePanel.add(oHtml);
[...]
oHtml.setHTML(html);

http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/gwt/user/client/ui/HTML.html
http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/gwt/user/client/ui/SimplePanel.html

That will create a simple <div></div> that will include HTML
dinamically as you take data from JSP
Use asyncGet to navigate thougth server ( as a JSP is a 'scripted'
servlet )

http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/gwt/user/client/HTTPRequest.html


Oskar

walden

unread,
Feb 28, 2008, 10:14:01 AM2/28/08
to Google Web Toolkit
This is all well and good, but you can hardly call it "converting our
web application to GWT". You're missing all the magic. To get the
magic, you have to do design. Are you interested in doing it right?

Walden

On Feb 28, 7:30 am, obesga <obe...@gmail.com> wrote:
> If it is HTML plain code ( with no Javascript ), that could be easy,
> just use
>
> SimplePanel  oSimplePanel = new SimplePanel();
> HTML oHtml = new HTML()
> oSimplePanel.add(oHtml);
> [...]
> oHtml.setHTML(html);
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g...http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g...
>
> That will create a simple <div></div> that will include HTML
> dinamically as you take data from JSP
> Use asyncGet to navigate thougth server ( as a JSP is a 'scripted'
> servlet )
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g...
>
> Oskar
>
> On 28 feb, 09:51, Ramesh <Ramesh.Tallapan...@gmail.com> wrote:
>
>
>
> > We are thinking of converting our web applicaiton using GWT. One of
> > the issues is how
> > to use the existing JSPs in my GWT application. I want make
> > asynchronous calls to these JSP pages and display output on my
> > screen.
>
> > I designed the screen using GWT which contains the portions like
> > TopLinks, Menu and BodyPanel.  .Whenever i am going to click on links,
> > it should make a asynchronous call to JSP and the result of JSP has to
> > be displayed on Body section of screen.
>
> > How can i get this done. How can i get the jsp page output to somepart
> > of screen in GWT.
>
> > I am having an idea but didnt know the way to do it.  My Idea is
> > Every JSP page will generate a html code and writes to browser screen
> > which we are able to look, I want to take this html content and
> > display on my Body part of the screen using HTML widget.
>
> > If any one come to know, Please let me know.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages