alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
</tr> </c:when> <c:when test="${page == 1}" > <tr> <th>Breed <td> </tr> </c:when> <c:when test="${page == 2}" > <tr> <th>Name <td> </tr> </c:when> <c:when test="${page == 3}" > <tr> <th>Birthdate () <td> </tr> </c:when> </c:choose> <tr> <th colspan="2"> <c:choose> <c:when test="${empty prevPage}"> <input type="submit" value="Previous" disabled/> </c:when> <c:otherwise> <input type="submit" name="_target </c:otherwise> </c:choose> <c:choose> <c:when test="${empty nextPage}"> <input type="submit" value="Next" disabled/> </c:when> <c:otherwise> <input type="submit" name="_target </c:otherwise> </c:choose> <input type="submit" name="_finish" value="Finish"/> <input type="submit" name="_cancel" value="Cancel"/> </th> </tr> </table> </form:form> <p style="text-align:center;">">- -

Other Spring Framework examples (source code examples)

Here is a short list of links related to this Spring Framework petAdd.jsp source code file:

Spring Framework example source code file (petAdd.jsp)

This example Spring Framework source code file (petAdd.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 - Spring Framework tags/keywords

cancel, finish, finish, new, next, next, pet, pet, previous, previous

The Spring Framework petAdd.jsp source code

<%@ include file="/WEB-INF/jsp/include.jsp" %>

<c:choose>
    <c:when test="${empty page}">
        <c:set var="page" value="0"/>
    </c:when>
    <c:otherwise>
        <c:set var="page" value="${page}"/>
    </c:otherwise>
</c:choose>

<c:choose>
    <c:when test="${page == 3}">
        <c:set var="nextPage" value="${null}"/>
    </c:when>
    <c:otherwise>
        <c:set var="nextPage" value="${page + 1}"/>
    </c:otherwise>
</c:choose>

<c:choose>
    <c:when test="${page == 0}">
        <c:set var="prevPage" value="${null}"/>
    </c:when>
    <c:otherwise>
        <c:set var="prevPage" value="${page - 1}"/>
    </c:otherwise>
</c:choose>

<h1>Add New Pet

<portlet:actionURL var="formAction">
    <portlet:param name="action" value="add"/>
    <portlet:param name="_page">
</portlet:actionURL>

<form:form modelAttribute="pet" method="post" action="${formAction}">

    <form:errors path="*" cssStyle="color:red"/>
	
	<table border="0" cellpadding="4">
		<c:choose> 
			<c:when test="${page == 0}" >
				<tr>
				    <th>Species
				    <td>
... 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.