1 package org.apache.jsp.jsp;
3 import javax.servlet.*;
4 import javax.servlet.http.*;
5 import javax.servlet.jsp.*;
6 import org.splat.simer.OpenObject;
8 public final class readDescription_jsp extends org.apache.jasper.runtime.HttpJspBase
9 implements org.apache.jasper.runtime.JspSourceDependent {
11 private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
13 private static java.util.List _jspx_dependants;
15 private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fif_0026_005ftest;
16 private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005furl_0026_005fvalue_005fnobody;
17 private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005ftext_0026_005fname_005fnobody;
19 private javax.el.ExpressionFactory _el_expressionfactory;
20 private org.apache.AnnotationProcessor _jsp_annotationprocessor;
22 public Object getDependants() {
23 return _jspx_dependants;
26 public void _jspInit() {
27 _005fjspx_005ftagPool_005fs_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
28 _005fjspx_005ftagPool_005fs_005furl_0026_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
29 _005fjspx_005ftagPool_005fs_005ftext_0026_005fname_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
30 _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
31 _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
34 public void _jspDestroy() {
35 _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.release();
36 _005fjspx_005ftagPool_005fs_005furl_0026_005fvalue_005fnobody.release();
37 _005fjspx_005ftagPool_005fs_005ftext_0026_005fname_005fnobody.release();
40 public void _jspService(HttpServletRequest request, HttpServletResponse response)
41 throws java.io.IOException, ServletException {
43 PageContext pageContext = null;
44 HttpSession session = null;
45 ServletContext application = null;
46 ServletConfig config = null;
49 JspWriter _jspx_out = null;
50 PageContext _jspx_page_context = null;
54 response.setContentType("text/html; charset=ISO-8859-1");
55 pageContext = _jspxFactory.getPageContext(this, request, response,
56 null, true, 8192, true);
57 _jspx_page_context = pageContext;
58 application = pageContext.getServletContext();
59 config = pageContext.getServletConfig();
60 session = pageContext.getSession();
61 out = pageContext.getOut();
68 // On the contrary of Struts tags, the Java implementation allows the HTML contents of knowledge values to be displayed
69 String entitype = request.getParameter("entity"); // Study or Knowledge element
70 OpenObject object = (OpenObject)session.getAttribute(entitype + ".open");
71 String description = object.getDisplayedDescription();
74 out.write("<table cellpadding=0 cellspacing=0 border=0 class=text>\r\n");
75 if (description != null) {
77 out.write("<tr>\r\n");
79 out.print(description);
80 out.write("</td>\r\n");
81 out.write(" </tr>\r\n");
84 out.write("<tr height=2><td></td></tr>\r\n");
85 out.write(" <tr height=18>\r\n");
87 if (_jspx_meth_s_005fif_005f0(_jspx_page_context))
90 out.write(" </tr>\r\n");
91 out.write("</table>");
92 } catch (Throwable t) {
93 if (!(t instanceof SkipPageException)){
95 if (out != null && out.getBufferSize() != 0)
96 try { out.clearBuffer(); } catch (java.io.IOException e) {}
97 if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
100 _jspxFactory.releasePageContext(_jspx_page_context);
104 private boolean _jspx_meth_s_005fif_005f0(PageContext _jspx_page_context)
106 PageContext pageContext = _jspx_page_context;
107 JspWriter out = _jspx_page_context.getOut();
109 org.apache.struts2.views.jsp.IfTag _jspx_th_s_005fif_005f0 = (org.apache.struts2.views.jsp.IfTag) _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.get(org.apache.struts2.views.jsp.IfTag.class);
110 _jspx_th_s_005fif_005f0.setPageContext(_jspx_page_context);
111 _jspx_th_s_005fif_005f0.setParent(null);
112 // /jsp/readDescription.jsp(21,4) name = test type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
113 _jspx_th_s_005fif_005f0.setTest("%{writeAccess == 'true' && stepEnabled == 'true'}");
114 int _jspx_eval_s_005fif_005f0 = _jspx_th_s_005fif_005f0.doStartTag();
115 if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
116 if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
117 out = _jspx_page_context.pushBody();
118 _jspx_th_s_005fif_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
119 _jspx_th_s_005fif_005f0.doInitBody();
123 out.write(" <td>\r\n");
124 out.write(" <img src=\"");
125 if (_jspx_meth_s_005furl_005f0(_jspx_th_s_005fif_005f0, _jspx_page_context))
127 out.write("\" border=\"none\" title=\"");
128 if (_jspx_meth_s_005ftext_005f0(_jspx_th_s_005fif_005f0, _jspx_page_context))
130 out.write("\" />\r\n");
131 out.write(" </td>\r\n");
133 int evalDoAfterBody = _jspx_th_s_005fif_005f0.doAfterBody();
134 if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
137 if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
138 out = _jspx_page_context.popBody();
141 if (_jspx_th_s_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
142 _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.reuse(_jspx_th_s_005fif_005f0);
145 _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.reuse(_jspx_th_s_005fif_005f0);
149 private boolean _jspx_meth_s_005furl_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_s_005fif_005f0, PageContext _jspx_page_context)
151 PageContext pageContext = _jspx_page_context;
152 JspWriter out = _jspx_page_context.getOut();
154 org.apache.struts2.views.jsp.URLTag _jspx_th_s_005furl_005f0 = (org.apache.struts2.views.jsp.URLTag) _005fjspx_005ftagPool_005fs_005furl_0026_005fvalue_005fnobody.get(org.apache.struts2.views.jsp.URLTag.class);
155 _jspx_th_s_005furl_005f0.setPageContext(_jspx_page_context);
156 _jspx_th_s_005furl_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_s_005fif_005f0);
157 // /jsp/readDescription.jsp(23,18) name = value type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
158 _jspx_th_s_005furl_005f0.setValue("/skin/icon.add.png");
159 int _jspx_eval_s_005furl_005f0 = _jspx_th_s_005furl_005f0.doStartTag();
160 if (_jspx_th_s_005furl_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
161 _005fjspx_005ftagPool_005fs_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_s_005furl_005f0);
164 _005fjspx_005ftagPool_005fs_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_s_005furl_005f0);
168 private boolean _jspx_meth_s_005ftext_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_s_005fif_005f0, PageContext _jspx_page_context)
170 PageContext pageContext = _jspx_page_context;
171 JspWriter out = _jspx_page_context.getOut();
173 org.apache.struts2.views.jsp.TextTag _jspx_th_s_005ftext_005f0 = (org.apache.struts2.views.jsp.TextTag) _005fjspx_005ftagPool_005fs_005ftext_0026_005fname_005fnobody.get(org.apache.struts2.views.jsp.TextTag.class);
174 _jspx_th_s_005ftext_005f0.setPageContext(_jspx_page_context);
175 _jspx_th_s_005ftext_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_s_005fif_005f0);
176 // /jsp/readDescription.jsp(23,76) name = name type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
177 _jspx_th_s_005ftext_005f0.setName("tooltip.adddescription");
178 int _jspx_eval_s_005ftext_005f0 = _jspx_th_s_005ftext_005f0.doStartTag();
179 if (_jspx_th_s_005ftext_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
180 _005fjspx_005ftagPool_005fs_005ftext_0026_005fname_005fnobody.reuse(_jspx_th_s_005ftext_005f0);
183 _005fjspx_005ftagPool_005fs_005ftext_0026_005fname_005fnobody.reuse(_jspx_th_s_005ftext_005f0);