• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlets contents not being updated

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i have created a HTML form in which the user can select from a list of dropdown menus. on clicking on the submit button, a servlet performs the necessary calculations and displays the results (a map) to the user.
i use Eclipse IDE (with sysdeo tomcat plugin) to create my servlets.
in Tomcat home ie tomcat>servlets-examples, i create a new folder (Display) and store my HTML program and other necessary files.
then in eclipse, i create a package and store my servlets files in it. i then include my servlets in the web.xml file available in tomcat/webapps/servlets-examples/WEB-INF

the problem i am facing is that:
when i make changes to my servlet code via Eclipse and run the Tomcat, these changes are not being updated. ie in my browser i use the URL

http://localhost:8085/servlets-examples/Display

(Display is the folder in which all my programs are present)

by typing the above URL, i get a list of all my files ie my HTML file, my servlet files etc. now i click on the servlet file here, the changes that i had made via Eclipse are not being updated here.
as a result of this, my HTML program fails to work.

i want to know how this problem can be solved???

thanks in advance....
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not certain I understand your question.

Sometimes with Tomcat, I spend too much time puzzled by some strange behavior, only to remember that darn work folder messes with my application (and my head). I then stop Tomcat, delete the work folder contents, start Tomcat, and things get cleared up (well, the application gets cleared up, at least).

Of course, you might also be experiencing browser caching problems.

Any luck?
 
I guess everyone has an angle. Fine, what do you want? Just know that you cannot have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic