File: viewSrcBody.jsp

package info (click to toggle)
libstruts1.2-java 1.2.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 47,516 kB
  • ctags: 29,430
  • sloc: xml: 90,344; java: 71,078; jsp: 31,692; makefile: 10; sh: 2
file content (38 lines) | stat: -rw-r--r-- 1,083 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<%@ 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>