wood burning stoves*
The moose likes Servlets and the fly likes Is there a need to recompile servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Is there a need to recompile servlet?" Watch "Is there a need to recompile servlet?" New topic
Author

Is there a need to recompile servlet?

Amit Singh Hora
Greenhorn

Joined: Dec 23, 2012
Posts: 8
Hi All,
I want to know if there is a need to recompile the servlet if i made changes in @WEebservlet annotation
say i made changes in @WebInitParam changed the name or the value of the parameter then do i need to recompile my servlet ??
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39575
    
  27
Yes, and you also need to reload the web app.


Ping & DNS - updated with new look and Ping home screen widget
Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 41
yes,have to restart the server once you made any changes in web.xml and server class
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60072
    
  65

Priya chek wrote:yes,have to restart the server once you made any changes in web.xml and server class

No, the server does not need to be restarted. As Ulf has already pointed out, only the web app need be reloaded.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there a need to recompile servlet?
 
Similar Threads
WSAD5 problem
I need help with this situation regarding form post parameters
Servlets vs JSP
Question on Changes made in JSP to convert in servlet
jsp errors in syntax