aspose file tools*
The moose likes Struts and the fly likes Pro Jakarta Struts, Second Edition : Development Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Pro Jakarta Struts, Second Edition : Development Question " Watch "Pro Jakarta Struts, Second Edition : Development Question " New topic
Author

Pro Jakarta Struts, Second Edition : Development Question

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
hi, Mr.John Carnell, in struts or tomcat , what are the file after modified require to restart tomcat ? thank you !
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
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.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
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

Joined: Jul 04, 2003
Posts: 1312
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

Joined: Jan 08, 2004
Posts: 834
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

Joined: Jul 04, 2003
Posts: 1312
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.

Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4456
    
    6

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.


Junilu - [How to Ask Questions] [How to Answer Questions]
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
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

Joined: Jul 04, 2003
Posts: 1312
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

Joined: Jan 08, 2004
Posts: 834
hope someone can justify it ...how bout mr.John ?
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
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 ]
 
jQuery in Action, 2nd edition
 
subject: Pro Jakarta Struts, Second Edition : Development Question