transaction.jsp

<%@ page contentType="text/html; charset=euc-jp" %>
<%@ taglib uri="jruntags" prefix="jrun" %>

<%--

<jrun:transaction>
<jrun:sql datasrc="taglib">
update Table1 set amount=amount+10 where id=2
</jrun:sql>
<jrun:sql datasrc="taglib2">
update Table1 set amount=amount-10 where id=2
</jrun:sql>
</jrun:transaction>

--%>

<%@ include file="html/header.html" %>
<table width="100%">
<tr>
<td><b>TRANSACTION タグ: 例 1: トランザクションでの 2 つのデータベースの更新</b> </td>
</tr>

<%--

<tr><td>
taglib: update Table1 set amount=amount+10 where id=2<br>
taglib2: update Table1 set amount=amount-10 where id=2<br>
完了しました。&lt;sql&gt; を使用して結果を表示してください。
</td></tr>

--%>

<tr>
<td align="right"> &nbsp;<br> <font size="2"><a href="transaction2.jsp">次へ</a></font> &nbsp;&nbsp;</td>
</tr>
</table>

<%@ include file="html/footer.html" %>