Salome HOME
*** empty log message ***
[tools/siman.git] / Workspace / .metadata / .plugins / org.eclipse.wst.server.core / tmp0 / wtpwebapps / Siman / jsp / readDescription.jsp
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2     pageEncoding="ISO-8859-1"
3 %>
4 <%@ taglib prefix="s" uri="/struts-tags"
5 %>
6 <%@ page import="org.splat.simer.OpenObject"%>
7 <%
8 //  On the contrary of Struts tags, the Java implementation allows the HTML contents of knowledge values to be displayed
9     String      entitype    = request.getParameter("entity");   // Study or Knowledge element
10     OpenObject  object      = (OpenObject)session.getAttribute(entitype + ".open");
11     String      description = object.getDisplayedDescription();
12 %>
13 <table cellpadding=0 cellspacing=0 border=0 class=text>
14 <%  if (description != null) {
15 %><tr>
16     <td><%=description%></td>
17   </tr>
18 <%  }
19 %><tr height=2><td></td></tr>
20   <tr height=18>
21     <s:if test="%{writeAccess == 'true' && stepEnabled == 'true'}">
22       <td>
23         <img src="<s:url value="/skin/icon.add.png"/>" border="none" title="<s:text name="tooltip.adddescription"/>" />
24       </td>
25     </s:if>
26   </tr>
27 </table>