This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes Is there a need to recompile servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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: 35439
    
    9
Yes, and you also need to reload the web app.


Android appsImageJ pluginsJava web charts
Priya chek
Greenhorn

Joined: Feb 12, 2013
Posts: 8
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: 56529
    
  14

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Is there a need to recompile servlet?
 
Similar Threads
WSAD5 problem
jsp errors in syntax
Servlets vs JSP
Question on Changes made in JSP to convert in servlet
I need help with this situation regarding form post parameters