home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 May
/
CMCD0505.ISO
/
Software
/
Shareware
/
Programare
/
bugzero
/
jsp
/
edit.jsp
< prev
next >
Wrap
Text File
|
2005-03-31
|
1KB
|
43 lines
<%@ page
import="com.websina.bean.*,com.websina.util.*,com.websina.util.log.Log"
%>
<html>
<head>
<title>Edit and View</title>
<script LANGUAGE="JavaScript" src="script/attachment.js"></script>
</head>
<body topmargin=0>
<%@ include file="_header.jspf" %>
<%
String issueStr = request.getParameter("entryId");
int entryId = 0;
try {
entryId = StringUtil.toInt(issueStr);
} catch (NumberFormatException e) {
String msg = MessageCode.get("number.format_error_issue");
msg = StringUtil.replace(msg, issueStr);
out.print("<center><font color=red><b>");
out.print(msg);
out.print("</b></font></center>");
return;
}
if (!person.viewAllowed(entryId)) {
String msg = MessageCode.get("servlet.issue.permission_error");
out.print("<center><font color=red><b>");
out.print(msg);
out.print("</b></font></center>");
return;
}
%>
<% String msg = request.getParameter("msg");
if (msg != null) { %>
<center><font color=red><b><%=msg%></b></font></center>
<% } %>
<%@ include file="_issueform.jspf" %>
<%@ include file="_trail.jspf" %>
</body></html>