Here
is a link to the JSP file that's used for this example. It looks like you
might need to add the SQL that's used to create the table in the first
place.
HTH,
Matt
<%-- Create temporary table --%>
<c:if test="${empty applicationScope.tableCreated}"> <sql:transaction dataSource="jdbc/appfuse">
<sql:update>
DROP TABLE IF EXISTS temp_user </sql:update> <sql:update> CREATE TABLE temp_user ( id BIGINT not null AUTO_INCREMENT, username VARCHAR(50), firstName VARCHAR(100), lastName VARCHAR(100), primary key (id) ) </sql:update> <sql:update
var="updateCount">
INSERT INTO temp_user (username, firstName, lastName) VALUES ('mraible', 'Matt', 'Raible') </sql:update> <sql:update var="updateCount"> INSERT INTO temp_user (username, firstName, lastName) VALUES ('tomcat', 'Tomcat', 'User') </sql:update> </sql:transaction> <c:set var="tableCreated" scope="application" value="true" /> </c:if>
|
Title: Message