本人在做一个BBS,当用户在点击某主题时,希望显示其提交的内容,
<table>
<tr>
<td><%=theUserCRS.getString("title")%></td>
<tr>
</table>
当用户点击上述列时,如何让它带参数执行某个action,如show.do?
<table>
<tr>
<td><%=theUserCRS.getString("title")%></td>
<tr>
</table>
当用户点击上述列时,如何让它带参数执行某个action,如show.do?
<input type="hidden" name="title">
<table>
<tr>
<td onclick="d(this)"><%=theUserCRS.getString("title")%></td>
<tr>
</table>
<script>
function d(obj){
document.forms[0].title.value=obj.innerHTML;
}
</script>
</form>
可以切换的话还不如将这个TD中的内容做成一个<html:link>导向一个action