blob: e1d687fa1e2864c9b9ca744189ff973511885a7b [file] [log] [blame]
<%--
Document : deletebusiness
Created on : Feb 27, 2013, 8:39:54 PM
Author : Alex O'Ree
/*
* Copyright 2001-2008 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
--%>
<%@page import="org.apache.juddi.webconsole.resources.ResourceLoader"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../csrf.jsp" %>
<%
if (request.getMethod().equalsIgnoreCase("POST")) {
UddiHub x =UddiHub.getInstance(application, session);
String msg=(x.deleteBusiness(request.getParameter("id")));
if (msg.contains(ResourceLoader.GetResource(session, "errors.generic")))
response.setStatus(406);
out.write(msg);
}
%>