我正在用JSP编写应用程序,我正在尝试使用display标签来显示表格。我在显示的页面和显示标签表上有几个按钮。当我加载应用程序时按钮工作,但是当我点击表格页面时,它们会停止重定向到它们应该到达的位置。这是按钮的HTML代码:
<form action="index" method="post">
<input type="hidden" name="action" value="add">
<h3>Enter formula:</h3>
<input type="text" name="formula" id="formula"><br>
<label> </label>
<input type="submit" value="Insert" class = "button">
</form>
<br />
<h3>Or press Delete or Modify:</h3>
<form action = "index" method = "post">
<input type="hidden" name="action" value="delete">
<input type="submit" value="Delete" class = "button">
</form>
<label> </label>
<br />
<form action = "index" method = "post">
<input type="hidden" name="action" value="modify">
<input type="submit" value="Modify" class = "button">
</form>
这是表格html:
<display:table name = "table" sort = "list" pagesize = "10" id = "table1" export = "true" >
<display:column property = "id" title = "ID" group = "1" sortable = "true" headerClass = "sortable" />
<display:column property = "formula" title = "FORMULA" group = "2" sortable = "true" headerClass = "sortable" />
<display:setProperty name = "export.excel.filename" value = "FormulasTable.xls" />
<display:setProperty name = "export.pdf.filename" value="FormulasTable.pdf" />
<display:setProperty name="export.csv.filename" value="FormulasTable.csv" />
<display:setProperty name="export.pdf" value="true" />
</display:table>