• 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

Pro Jakarta Struts, Second Edition : Development Question

 
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, Mr.John Carnell, in struts or tomcat , what are the file after modified require to restart tomcat ? thank you !
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Normally : tomcat must restart after modifies class file, configuration file but now in tomcat you can use Tomcat Manager to stop/reload/start/deploy/undeploy web application so you don't restart tomcat server after change something.
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a question, in struts , if i develop a system with features that allow user to modify the values of application.properties file, eg: button label, error message ..etc , should we need to restart tomcat after modified?
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Alvin chew:
i have a question, in struts , if i develop a system with features that allow user to modify the values of application.properties file, eg: button label, error message ..etc , should we need to restart tomcat after modified?



If you modified "application.properties " file , you don't restart tomcat server , you can use in Tomcat manager and RELOAD in your web application.

Good luck :
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is it possible we can activate the reload function of tomcat by using code ? say if we build a web application which provide mentioned features let name it "resource configuration" , is strange to ask customer to restart tomcat right ? can we code it as keeping it as behind to activate reload function ?
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Alvin chew:
is it possible we can activate the reload function of tomcat by using code ? say if we build a web application which provide mentioned features let name it "resource configuration" , is strange to ask customer to restart tomcat right ? can we code it as keeping it as behind to activate reload function ?



It's posible but i don't know how to do it.

I'm have been use ant for build web application and call tomcat to reload it.

 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The current docs say that you can send commands to the Manager web app via HTTP requests. I'm not sure what versions support this. You can ask that question in the Tomcat forum or just try it out yourself and see if the version you're using supports it.
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, there , tomcat can be set to reload , is that means , after modify the servlet or any configuration file, we need not to restart tomcat ?
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Alvin chew:
hi, there , tomcat can be set to reload , is that means , after modify the servlet or any configuration file, we need not to restart tomcat ?



You need to auto reload/redeploy Tomcat or not?
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hope someone can justify it ...how bout mr.John ?
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, if i create a page with html form which is using html tag in struts say "newuser.jsp", with action="action/company", is it necessary i must also code the actionform as well in order to make it display ?





because we i run the it , it show me error like "Cannot retrieve mapping for action /action/company" ...

can anyone clarify this error caused ? thank you
[ August 02, 2004: Message edited by: Alvin chew ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic