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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Yes, and you also need to reload the web app.
Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 51
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: 63349
    
  70

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?
 
It's not a secret anymore!