Two Laptop Bag*
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 Android Security Essentials Live Lessons this week in the Android 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: 41124
    
  45
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: 60785
    
  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]
 
jQuery in Action, 2nd edition
 
subject: Is there a need to recompile servlet?
 
Similar Threads
WSAD5 problem
I need help with this situation regarding form post parameters
Question on Changes made in JSP to convert in servlet
jsp errors in syntax
Servlets vs JSP