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

Struts example source code file (index.jsp)

This example Struts source code file (index.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

ajaxremoteform, configured, data, data, default, editor, editor, notes, submit, submit, test, test, widgets

The Struts index.jsp source code

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<html>
<head>
    <title>Ajax Widgets
    <jsp:include page="/ajax/commonInclude.jsp"/>
</head>

<body>

<br/>
NOTES:
<ul>
    <li>Make sure that there is a 'value' attribute in the textarea with the content for the editor
    <li>This is experimental
</ul>


Default Editor configuration:<br/>
<s:form id="form1" action="AjaxRemoteForm" method="post">
    <sx:textarea name="data" cols="50" rows="10" value="Test Data 1" />
    <s:submit value="Submit"/>
</s:form>
<br/>

Configured Editor configuration:<br/>  
<s:form id="form2" action="AjaxRemoteForm" method="post">
    <sx:textarea id="editor2" name="data" cols="50" rows="10" value="Test Data 2">
        <s:param name="editorControls">textGroup;|;justifyGroup;|;listGroup;|;indentGroup
    </sx:textarea>
    <s:submit value="Submit"/>
</s:form>
<br/>

<s:include value="../footer.jsp"/>

</body>
</html>

Other Struts examples (source code examples)

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

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

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 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.