I have on one occasion hit the Undeploy link, wiping out developement files. Yes, that's my fault, but Undeploy is right next to Reload. Is it possible to either move the Undeploy link to a separate column and/or even better, have a confirm option? This is a very scary command that is rarely used in most scenarios.
I don't know if that kind of yes/no dialog is doable with Javascript. Maybe, so I'm waiting for your patch :)
Undeploy is routinely used by people on the mailing list to remove the current version of a webapp before deploying a new one (at the same context path).
Is it possible to create confirm page without JavaScript? I use manager application via lynx
And whoever uses the Manager webapp via Ant will not have access to any confirmation screen. I don't think this will be done. If you really want it, submit a patch.
This javascript confirmatino should only be on the html interface so this should not effect the ant interface (i.e., calling the undeploy command directly). Rather, the html interface should "intercept" the click and confirm that you really want to do this (and you realize that it's about to delete all of your files) before it sends the GET back to tomcat with the undeploy command. I'll do this one (it's easy enough :) Daniel
Just a ping reminder to mark this issue as closed once you've committed the fix to CVS.
Created attachment 12620 [details] HTMLManagerServlet
Created attachment 12621 [details] LocalStrings.properties
I've added JavaScript confirmation for manager actions. Thanks for the patch Vitor, but I didn't use it. I only saw it after committing, although it's pretty close (I didn't i18n the confirmation message).
The Javascript-code in the manager for 5.5.1 is invalid and doesn't work in IE neither in Mozilla. Reason are the missing apostrophs (') around "Are you sure". Current: onclick="return(confirm(Are you sure?))" Correct: onclick="return(confirm('Are you sure?'))"
That's odd: the apostrophes are there in CVS (and were for 5.5.1).
*** This bug has been marked as a duplicate of 29823 ***
Oops, marked wrong duplicate, reopening.
Fixed ;) It turns out java.text.MessageFormat requires double-quoting of single quotes.
Horray! I like it, thanks guys! :)