<%@ page import="com.websina.bean.*,com.websina.util.*,com.websina.util.log.Log" %> View and Print <%@ 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("
"); out.print(msg); out.print("
"); return; } if (!person.viewAllowed(entryId)) { String msg = MessageCode.get("servlet.issue.permission_error"); out.print("
"); out.print(msg); out.print("
"); return; } String projectId = person.getProject(); Project conf = Project.getInstance(projectId); String group = person.getGroup(); com.websina.util.Field field; String[] fields = conf.getFields(); Issue issue = null; String useCache = request.getParameter("useCache"); try { if (useCache != null) { issue = (Issue)session.getAttribute("issue"); } if (issue == null || issue.getId() != entryId) { issue = Issue.load(projectId, entryId); session.setAttribute("issue", issue); } } catch (Exception e) { if (e instanceof InfoException) { Log.info(e.getMessage()); } else { Log.error(e); } String _error = e.getMessage(); if (_error == null) { _error = "A runtime error occurred, check log for detail"; } out.print("
"); out.print(_error); out.print("
"); return; } String indexParam = ""; String idxStr = request.getParameter("index"); if (idxStr != null && idxStr.trim().length() > 0) { try { int idx = -1; idx = Integer.parseInt(idxStr.trim()); if (idx != -1) { indexParam = "&index=" + idx; } } catch (Exception e) {} } %> <% String msg = request.getParameter("msg"); if (msg != null) { %>
<%=msg%>
<% } %>

<% for (int ix=0; ix <% }} %>
<%=label.get("entryId", projectId)%> <%=entryId%> <% if (person.saveAllowed(entryId)) { %>   " onClick="location.href='edit.jsp?projectId=<%=projectId%>&entryId=<%=entryId + indexParam%>&useCache=1';"> <% } %>
 
<%=field_name%>   <%=field_value%>

<%@ include file="_trail.jspf" %>