在很多的列表中,后面的操作一栏会有删除链接,并且会让你确认。此处的代码: <a href='javascript:deleteCategory("<%=article.getId() %>")'>删除</a>
javascript函数<script>
function deleteCategory(articleId)
{
if(confirm('是否真的要删除该记录'))
window.location='<%=request.getContextPath()%>/info/infoArticleEdit.htm?order=delete&articleId='+articleId;
}
</script>
一些链接:<input class="button3" type=button value="返回" onclick="javascript:window.location='<%=request.getContextPath() %>/info/infoArticleList.htm'">
<td>文件名:<a href='<%=request.getContextPath()%>/info/infoArticleEdit.htm?order=download&fileId=<%=accessory.getId() %>'><%=accessory.getFileExt() %></a>
<c:url value="........" />
一些传值
<input type=hidden name=order value=save>
<input type=hidden name=id value="<c:out value="${infoArticle.id}" />">
<input type=hidden name=navId value="<%=request.getParameter("navId") %>">
<input type=hidden name=fileCount value=1>
posted on 2006-10-25 16:32
lovetq 阅读(174)
评论(0) 编辑 收藏