Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 632519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:05:08+00:00 2026-05-13T20:05:08+00:00

I currently have a primary Java Web App Project which houses some Servlets, JSPs

  • 0

I currently have a primary Java Web App Project which houses some Servlets, JSPs and static HTML pages. Later on, I also created a second Eclipse Google Web Toolkit Project (GWT). Now, after finishing the GWT Project, I want to integrate or merge the GWT Project (while retaining its RPC capabilities with Servlets) with the Primary Java Web App Project. In which directory do I need to copy-paste the files and folders from GWT Project to Java Web App Project? Keep in mind that I want to export the fully compiled JavaScript code rather than Java byte code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:05:08+00:00Added an answer on May 13, 2026 at 8:05 pm

    You can put all the Java files from your GWT project exactly where they were in the GWT project. I think your gwt.xml file can stay the same also. In your web.xml file, you’ll need to define the servlet(s) that you use in GWT, for example if gwt.xml has <servlet path="/MyService" class="com.catfish.server.MyServiceImpl"/> then web.xml will need:

    <servlet>
      <servlet-name>MyService</servlet-name>
      <servlet-class>com.catfish.server.MyServiceImpl</servlet-class>
    </servlet>
    

    and

    <servlet-mapping>
      <servlet-name>MyService</servlet-name>
      <url-pattern>/module-path/MyService</url-pattern>
    </servlet-mapping>
    

    Then use an ant build script to compile the GWT into WebContent/module-path. You can still run your GWT project using the GWT standalone browser, but when you want to run everything together, you’ll compile the GWT project and then run Tomcat or Jetty or whatever servlet engine you’re using. And you’ll need to put the path to your generated GWT JavaScript app in whatever JSP or static page uses it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have an app that has a UIScrollView with paging as the primary
I have a project that includes some Java APIs, some resource files, and some
Background : I currently have a Web Forms, ASP.NET 3.5/C# application which I'm interested
I have a table users with primary index userId . Currently, each user has
I have a table with a auto-incremented primary key: user_id. For a currently theoretical
I currently have a table of concentrations, which are linked to a table of
I currently have one project that currently contains multiple packages. These packages make up
I currently have a deployed app (fortworth.herokuapp.com) that I am attempting to sort movies
We have 2 java web apps both are read/write and 3 standalone java read/write
Suppose that I have a list of business primary key numbers and a java

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.