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 8305249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:04:05+00:00 2026-06-08T18:04:05+00:00

I have a jsp based web application. The source is kept in C:/MyApp/src .

  • 0

I have a jsp based web application.

The source is kept in C:/MyApp/src. Here it contains the controllers and other .java files.

After building the application via eclipse. I copied the .war file to Apache/WebApps folder. Apache Tomcat expanded it and the web-application is working perfectly.

From the last couple of days I edited a lot of pages directly in Apache/WebApps folder. Now I want to edit a .java file in C:/MyApp/src/..

Now I want to use that updated .java file in my Apache/WebApps but don’t want to rebuild the whole code via eclipse. If I do so my changes that I made in Apache/WebApps folder will be lost.

What should I do?

  • 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-06-08T18:04:08+00:00Added an answer on June 8, 2026 at 6:04 pm

    Follow the changes as suggested by @bpgergo or else …

    You can configure your tomcat server with Eclipse and are starting and stopping the server from eclipse then you can add your project to the configured Server in eclipse.

    Eclipse can be configured to auto-deploy the changes to the server, so whenever you change anything like a JSP or a java file the server will automatically take the changes without you deploying your WAR file.

    But since java changes are not hot-deployable eclipse would restart the server whenever you save changes to your java file.

    If you want to deploy java changes without restarting the server you can also try using JRebel (it is free for 30 days :-)).

    For now I would suggest (if you don’t want to go the above mentioned way. The following is a very crude method and should be avoided in the future)

    1. compile the .java file into a .class in eclipse.
    2. shut-down the server
    3. copy the .class file to the exact location on the server in WEB-INF/classes/..
    4. restart the server
    5. This would keep your JSP changes intact and also will reflect the .java changes

    Hope this helps.

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

Sidebar

Related Questions

Hi I have a page in my java/jsp based web application which shows list
I have an already developed web application based on struts 1.2 which contains jsp
I have a java based web application(struts 1.2). I have a requirement to display
I have simple web application based on JSP. Root of application looks like this:
I am a student and I have developed a web application based on JSP.
The Issue: We have a Java web application, based on Apache MyFaces Trinidad. We
I have a java web application that uses form based authentication. If a standard
I have a java based web application. This is the behaviour I am seeing
I have to make a navigator menu for a web application (based these: java,
I have a JSP java application that has a name AAA-master so currently my

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.