Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247
WebSVN – general – Blame – /hostadmiral/branches/hibernate3/webapp/deleting.jsp – Rev 1057

Subversion Repositories general

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1014 dev 1
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
949 dev 2
<%@ page import="java.util.*,ak.hostadmiral.core.model.*" %>
3
<%@ taglib uri="/WEB-INF/struts-bean.tld"      prefix="bean"     %>
4
<%@ taglib uri="/WEB-INF/struts-logic.tld"     prefix="logic"    %>
5
<%@ taglib uri="/WEB-INF/struts-html.tld"      prefix="html"     %>
6
<%@ taglib uri="/WEB-INF/ak-backpath.tld"      prefix="backpath" %>
958 dev 7
<%@ taglib uri="/WEB-INF/ak-strutsx.tld"       prefix="strutsx"  %>
949 dev 8
<%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core"     %>
9
<html>
10
 
11
<head>
12
	<meta http-equiv="expires" content="0">
1010 dev 13
	<title><bean:message key="ak.hostadmiral.page.deleting.title" /></title>
958 dev 14
	<link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
949 dev 15
</head>
16
 
17
<body>
18
 
1010 dev 19
<h1><bean:message key="ak.hostadmiral.page.deleting.title" /></h1>
949 dev 20
 
1057 dev 21
<p>
22
	Deleting <strutsx:message name="object" property="typeKey" />
23
	<em><strutsx:message name="object" property="identKey" valuesProperty="identParams" /></em>
24
</p>
949 dev 25
 
1057 dev 26
<p>
27
	Following changes will be done is system as cascade effect of deleting the object:
28
</p>
949 dev 29
<ul>
30
<%
31
	Collection cascade = (Collection)request.getAttribute("cascade");
32
 
1057 dev 33
	Stack stack = new Stack();
34
	Iterator i = cascade.iterator();
35
 
36
	while(true) {
37
		if(!i.hasNext()) {
38
			if(stack.isEmpty()) {
39
				break;
40
			}
41
			else {
42
				i = (Iterator)stack.pop();
43
				%></ul><%
44
				continue;
45
			}
46
		}
47
 
48
		CascadeDeleteElement e = (CascadeDeleteElement)i.next();
49
 
949 dev 50
        pageContext.setAttribute("e", e);
958 dev 51
		%><li>
52
			<logic:equal name="e" property="effect" value="1">
53
				FORBIDDEN
54
			</logic:equal>
55
			<logic:equal name="e" property="effect" value="2">
56
				delete
57
			</logic:equal>
58
			<logic:equal name="e" property="effect" value="3">
59
				change
60
			</logic:equal>
61
			<strutsx:message name="e" property="object.typeKey" />
62
			<em><strutsx:message name="e" property="object.identKey" valuesProperty="object.identParams" /></em>
63
		</li><%
1057 dev 64
 
65
		if(e.getCascade() != null) {
66
			stack.push(i);
67
			i = e.getCascade().iterator();
68
			%><ul><%
69
		}
949 dev 70
	}
71
%>
72
</ul>
73
 
74
<br>
1010 dev 75
<backpath:currentlink action="<%= (String)request.getAttribute("action") %>" paramId="id" paramName="object" paramProperty="id"><bean:message key="ak.hostadmiral.page.deleting.delete" /></backpath:currentlink>
76
<backpath:backlink><bean:message key="ak.hostadmiral.page.deleting.back" /></backpath:backlink>
949 dev 77
 
1057 dev 78
<p>
1014 dev 79
	<bean:message key="ak.hostadmiral.page.general.version" />:
80
	<bean:write name="projectVersion" />
81
</p>
82
 
949 dev 83
</body>
84
 
85
</html>