webwork/src/resources/skeleton build.xml,NONE,1.1 formtest.jsp,NONE,1.1 index.html,NONE,1.1
[email protected] Sat, 01 Nov 2003 10:26:42 -0800
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/resources/skeleton
In directory sc8-pr-cvs1:/tmp/cvs-serv28147/src/resources/skeleton
Added Files:
build.xml formtest.jsp index.html
Log Message:
Added skeleton project, with the zipfile generated when building dist.
Amazing that someone thought it's a good idea to check in a zip file
Also removed docbook xml, it's not used anymore.
--- NEW FILE: build.xml ---
<?xml version="1.0"?>
<project name="Skeleton" default="compile" basedir=".">
<target name="init">
<tstamp/>
<property name="lib.dir" value="${basedir}/WEB-INF/lib"/>
<property name="src.dir" value="${basedir}/WEB-INF/src"/>
<property name="build.dir" value="${basedir}/WEB-INF/classes"/>
<!-- allow user to override properties -->
<property file="${basedir}/build.properties"/>
</target>
<target name="compile" depends="init">
<!-- the classpath includes everything in WEB-INF/lib -->
<path id="core.class.path">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<!-- first ensure that the classes directory exists -->
<mkdir dir="${build.dir}" />
<!-- we compile all our sources -->
<javac srcdir="${src.dir}" destdir="${build.dir}" debug="on" deprecation="off" optimize="off">
<classpath refid="core.class.path"/>
</javac>
<!-- ...and copy over all our resources -->
<copy todir="${build.dir}">
<fileset dir="${src.dir}">
<include name="**/*.properties" />
<include name="**/*.xml"/>
<include name="**/*.vm"/>
</fileset>
</copy>
</target>
<target name="clean" depends="init">
<!-- delete everything in the classes dir -->
<delete dir="${build.dir}"/>
</target>
</project>
--- NEW FILE: formtest.jsp ---
<%@ taglib uri="webwork" prefix="webwork" %>
<%@ taglib uri="webwork" prefix="ui" %>
<%@ taglib uri="webwork" prefix="iterator" %>
<link rel="stylesheet" type="text/css" href="template/standard/styles.css" title="Style">
<html>
<head>
<title>Form Test</title>
</head>
<body>
<h1>Form Test</h1>
<center>
<form action="<webwork:url page="formtest.action"/>" method="POST">
<table width="350" border="0" cellpadding="3" cellspacing="0">
<ui:textfield label="'User'" name="'user'"/>
<ui:textarea label="'Comments'" name="'comments'" cols="30" rows="8"/>
<tr><td colspan="2" align="center">
<input type=submit value="Update">
</td></tr>
</table>
</form>
</center>
</body>
</html>
--- NEW FILE: index.html ---
<HTML>
<HEAD>
<TITLE>Skeleton</TITLE>
</HEAD>
<BODY>
<LI>Skeleton</LI>
<UL>
<LI><A href="formtest!default.action">Form test</A></LI>
</UL>
</BODY>
</HTML>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/