File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pro Jakarta Struts, Second Edition : Development Question

 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • 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 !
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.

 
Junilu Lacar
Bartender
Pie
Posts: 6529
21
Java Linux Mac Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hope someone can justify it ...how bout mr.John ?
 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic