aspose file tools*
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 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 » 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: 41574
    
  54
Yes, and you also need to reload the web app.


Ping & DNS - my free Android networking tools app
Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 44
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: 61066
    
  66

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is there a need to recompile servlet?