File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes Can I include GWT page inside a JSP page ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Can I include GWT page inside a JSP page ?" Watch "Can I include GWT page inside a JSP page ?" New topic

Can I include GWT page inside a JSP page ?

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Can I use the include techniques to include my main GWT's page (like KitchenSink.html) inside a JSP page ? or GWT pages should be standalone ?
Prabhakar Chaganti
Ranch Hand

Joined: Nov 30, 2004
Posts: 50
You can include your GWT page inside a JSP. Just create a jsp include that can put out the HTML for the GWT page. Make sure it has the GWT js stuff and the meta information.


Packt Author Page (
Samrat Kakustam
Ranch Hand

Joined: May 21, 2009
Posts: 56
Hi Prabhakar,
Can you please explain what should be in the meta-tag? I have been trying a lot. I made a menu using GWT, copied all the files and included the html file in a jsp page. In the browser when I see the source, it is properly included but I dont get anything as output.
I will be very thankful for any help.

SCJP 5.0
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 1136

does the resulting page have the script tag with the js url as src ?
if it does, does the js file reside at the location the script tag is pointing to ?

I agree. Here's the better link:

I agree. Here's the link:
subject: Can I include GWT page inside a JSP page ?
It's not a secret anymore!