Skip to content

Instantly share code, notes, and snippets.

@maggandalf
Created April 20, 2011 17:08
Show Gist options
  • Select an option

  • Save maggandalf/931974 to your computer and use it in GitHub Desktop.

Select an option

Save maggandalf/931974 to your computer and use it in GitHub Desktop.
New Stock Form.
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form:form id="stock" modelAttribute="stockInfo">
<table>
<tr>
<td>
Stock:
</td>
<td>
<form:input path="name"/>
</td>
</tr>
<tr>
<td>
Threshold:
</td>
<td>
<form:input path="threshold"/>
</td>
</tr>
<tr>
<td>
Trade At:
</td>
<td>
<form:input path="tradeAt"/>
</td>
</tr>
<tr>
<td colspan="2">
<input id="submit" type="submit" value="Submit" />
</td>
</tr>
</table>
</form:form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment