【发布时间】:2014-02-27 00:18:52
【问题描述】:
我正在尝试从网页获取输入并查询数据库,如果输入与数据库匹配,则转到下一页并“登录”
<sql:query var="result">
SELECT * from Customer where customer_number=1;
</sql:query>
<form>
Enter your surname<input type="text" name="surname"/><br><br>
Enter your passphrase <input type="text" name="passphrase"/>
<input type="submit" name="B1" value="Submit" />
</form>
<c:if surname="${result.rows[0]['surname']}">
<p>My salary is: <c:out value="${salary}"/><p>
</c:if>
目前它获取数据库的一行,但我需要它在数据库中搜索一个参数,然后如果存在,则检查该元组的另一个参数。目前我收到一个错误:
HTTP Status 500 - /withdraw_basic.jsp (line: 23, column: 0) According to the TLD or the tag file, attribute test is mandatory for tag if
我不知道为什么会失败。 我是新手,所以要温柔。谢谢
【问题讨论】: