viewsrcbody.jsp

来自「jakarta-struts-1.2.4-src」· JSP 代码 · 共 39 行

JSP
39
字号
<%@ page language="java" %>
<%@ page errorPage="/common/viewSrcBodyError.jsp" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%-- Include requested resource file.
  If file is not found, Exception is thrown, and catched by the errorPage 
  directive (see above). Error page show a message.   
--%>

  <%-- Import component attributes, if any.
   --%>
   

<tiles:importAttribute/>

<logic:notPresent name="srcPath" >
  <logic:present parameter="src" >
  <bean:parameter id="srcPath" name="src" />
  </logic:present>  
</logic:notPresent>
     

<logic:present name="srcPath" >
<bean:define id="srcPathVar" name="srcPath" type="java.lang.String"/>
<bean:resource id="src" name="<%=srcPathVar%>" />
<strong>file '<%=srcPathVar%>'</strong>
<br>
<pre>
<bean:write filter="true" name="src" scope="page"/>
</pre>
<br>
</logic:present>

<logic:notPresent name="srcPath" >
No source specified !
</logic:notPresent>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?