*/
public final class WMSContentAction extends ConfigAction {
public ActionForward execute(ActionMapping mapping, ActionForm form,
UserContainer user, HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
WMSContentForm contentForm = (WMSContentForm) form;
boolean enabled = contentForm.isEnabled();
if (contentForm.isEnabledChecked() == false) {
enabled = false;
}
String onlineResource = contentForm.getOnlineResource();
WMSConfig config = getWMSConfig();
config.setEnabled(enabled);
config.setOnlineResource(new URL(onlineResource));