alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Struts example source code file (viewSource.jsp)

This example Struts source code file (viewSource.jsp) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

action, action, configuration, java, page, page, sources, sources, unknown, unknown

The Struts viewSource.jsp source code

<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<html>
<head>
    <title>View Sources

    <jsp:include page="/ajax/commonInclude.jsp"/>
</head>
<body>
<h1>View Sources

<sx:tabbedpanel id="test">
	<sx:div id="one" label="Page" >
        <h3>${empty page ? "Unknown page" : page}
<pre>
<s:iterator value="pageLines" status="row">
${row.count}: <s:property/>
</pre>
    </sx:div>
    <sx:div id="two" label="Configuration" >
        <h3>${empty config ? "Unknown configuration" : config}
<pre>

<s:iterator value="configLines" status="row">
<span style="background-color:yellow">${configLine - padding + row.count - 1}: 
${configLine - padding + row.count - 1}: <s:property/>
</pre>
    </sx:div>
    <sx:div id="three" label="Java Action">
        <h3>${empty className ? "Unknown or unavailable Action class" : className}
<pre>
<s:iterator value="classLines" status="row">
${row.count}: <s:property/>
</pre>
    </sx:div>
    
</sx:tabbedpanel>

</body>
</html>

Other Struts examples (source code examples)

Here is a short list of links related to this Struts viewSource.jsp source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.