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

Struts example source code file (orders-edit.jsp)

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

amount, back, back, client, doctype, doctype, id, orders, orders, public, transitional//en, transitional//en, w3c//dtd, xhtml

The Struts orders-edit.jsp source code

<!DOCTYPE html PUBLIC 
	"-//W3C//DTD XHTML 1.1 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
<%@taglib prefix="s" uri="/struts-tags" %>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>Order 
</head>
<body>
    <s:form method="post" action="%{#request.contextPath}/orders/%{id}">
    <s:hidden name="_method" value="put" />
    <table>
        <s:textfield name="id" label="ID" disabled="true"/>
        <s:textfield name="clientName" label="Client"/>
        <s:textfield name="amount" label="Amount" />
        <tr>
            <td colspan="2">
                <s:submit />
            </td>
    </table>
    </s:form>    	
    <a href="<%=request.getContextPath() %>/orders">Back to Orders
</body>
</html>
	

Other Struts examples (source code examples)

Here is a short list of links related to this Struts orders-edit.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.