问题描述
请指导我想要代码只想在浏览器上用编辑按钮显示表格。
如果我点击编辑就应该更改。
这一切都在JSP中或struts with mysql。
哪个更容易获得JSP或struts?
please guide i want code just want to show table on browser with edit button.
if i click on edit it should be change.
this all be in JSP or struts with mysql.
which get more easy JSP or struts?
推荐答案
<table>
<tr><th>Student name</th><th>Class</th></tr>
< s:iterator value =requisitionreportstatus =statusxmlns: s =#unknown>
< s:property value =studentname>< s:property value =classname>
<s:iterator value="requisitionreport" status="status" xmlns:s="#unknown">
<s:property value="studentname"><s:property value="classname">
</table>
4。创建jquery并添加方法viewdetails(action,studentid)
示例
函数viewdetails(action,studentid){<
//添加ajax发布操作并将结果返回为json
}
4. create jquery and add method viewdetails(action,studentid)
example
function viewdetails(action,studentid){
// add ajax post action and return result as json
}
这篇关于如何在JSP或struts中显示gridview表并给出编辑按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!