]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
54a35c6b7aa86ab46717f427a2b5c918e931c825
[tools/siman.git] /
1 package org.apache.jsp.jsp;
2
3 import javax.servlet.*;
4 import javax.servlet.http.*;
5 import javax.servlet.jsp.*;
6 import org.splat.simer.OpenObject;
7
8 public final class readDescription_jsp extends org.apache.jasper.runtime.HttpJspBase
9     implements org.apache.jasper.runtime.JspSourceDependent {
10
11   private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
12
13   private static java.util.List _jspx_dependants;
14
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;
18
19   private javax.el.ExpressionFactory _el_expressionfactory;
20   private org.apache.AnnotationProcessor _jsp_annotationprocessor;
21
22   public Object getDependants() {
23     return _jspx_dependants;
24   }
25
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());
32   }
33
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();
38   }
39
40   public void _jspService(HttpServletRequest request, HttpServletResponse response)
41         throws java.io.IOException, ServletException {
42
43     PageContext pageContext = null;
44     HttpSession session = null;
45     ServletContext application = null;
46     ServletConfig config = null;
47     JspWriter out = null;
48     Object page = this;
49     JspWriter _jspx_out = null;
50     PageContext _jspx_page_context = null;
51
52
53     try {
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();
62       _jspx_out = out;
63
64       out.write("\r\n");
65       out.write("\r\n");
66       out.write("\r\n");
67
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();
72
73       out.write("\r\n");
74       out.write("<table cellpadding=0 cellspacing=0 border=0 class=text>\r\n");
75   if (description != null) {
76
77       out.write("<tr>\r\n");
78       out.write("    <td>");
79       out.print(description);
80       out.write("</td>\r\n");
81       out.write("  </tr>\r\n");
82   }
83
84       out.write("<tr height=2><td></td></tr>\r\n");
85       out.write("  <tr height=18>\r\n");
86       out.write("    ");
87       if (_jspx_meth_s_005fif_005f0(_jspx_page_context))
88         return;
89       out.write("\r\n");
90       out.write("  </tr>\r\n");
91       out.write("</table>");
92     } catch (Throwable t) {
93       if (!(t instanceof SkipPageException)){
94         out = _jspx_out;
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);
98       }
99     } finally {
100       _jspxFactory.releasePageContext(_jspx_page_context);
101     }
102   }
103
104   private boolean _jspx_meth_s_005fif_005f0(PageContext _jspx_page_context)
105           throws Throwable {
106     PageContext pageContext = _jspx_page_context;
107     JspWriter out = _jspx_page_context.getOut();
108     //  s:if
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();
120       }
121       do {
122         out.write("\r\n");
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))
126           return true;
127         out.write("\" border=\"none\" title=\"");
128         if (_jspx_meth_s_005ftext_005f0(_jspx_th_s_005fif_005f0, _jspx_page_context))
129           return true;
130         out.write("\" />\r\n");
131         out.write("      </td>\r\n");
132         out.write("    ");
133         int evalDoAfterBody = _jspx_th_s_005fif_005f0.doAfterBody();
134         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
135           break;
136       } while (true);
137       if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
138         out = _jspx_page_context.popBody();
139       }
140     }
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);
143       return true;
144     }
145     _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.reuse(_jspx_th_s_005fif_005f0);
146     return false;
147   }
148
149   private boolean _jspx_meth_s_005furl_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_s_005fif_005f0, PageContext _jspx_page_context)
150           throws Throwable {
151     PageContext pageContext = _jspx_page_context;
152     JspWriter out = _jspx_page_context.getOut();
153     //  s:url
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);
162       return true;
163     }
164     _005fjspx_005ftagPool_005fs_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_s_005furl_005f0);
165     return false;
166   }
167
168   private boolean _jspx_meth_s_005ftext_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_s_005fif_005f0, PageContext _jspx_page_context)
169           throws Throwable {
170     PageContext pageContext = _jspx_page_context;
171     JspWriter out = _jspx_page_context.getOut();
172     //  s:text
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);
181       return true;
182     }
183     _005fjspx_005ftagPool_005fs_005ftext_0026_005fname_005fnobody.reuse(_jspx_th_s_005ftext_005f0);
184     return false;
185   }
186 }