jsp中动态提交action与弹出确认对话框
jsp页面中根据一个checked是否被选中来弹出不同的确认对话框。
<script type="text/javascript">
function modifyDetail() {
var v = document.getElementById("isDelete");
if(v.checked) {
return confirm("Are you sure delete?");
}else {
return confirm("Are you sure update?");
}
}
</script>
jsp页面中根据一个checked是否被选中来弹出不同的确认对话框,并提交不同的action。
<script type="text/javascript">
function modifyDetail() {
var v = document.getElementById("isDelete");
if(v.checked) {
var action = document.getElementById("f1");
f1.action = "delectBlacklist";
f1.submit;
return confirm("Are you sure delete?");
}else {
return confirm("Are you sure update?");
}
}
</script>
相关文档:
这是一个用户注册的页面,部分代码(没有错误)已略,可是不能实现form的action跳转
checkform()里明明有document.form.submit(),就是不能跳转,
能帮我看下问题出在哪吗?
这是照着书上的例子写的,注册和重置动都作是通过图片来处理的。
请不吝赐教,在下不胜感激。。。
<%@ page contentType="te ......
<%@ page language="java" import="kg.TestBean2;" %>
<%@ page contentType="text/html;charset=gb2312" %>
<html>
<head>
<title>HelloBean</title>
</head>
<body>
<%--
<%
kg.TestBean2 testbean=(kg.TestBean2)session.setAttribute("testbean");
if ......
也许很多高手都不削解决这个问题,但是我觉得对初学者来说这个问题还是要研究一会的,所以就记录下来了。
问题描述:
当你在Eclipse的程序中加入一个JSP文件后,整个Project 会报一个这样的Error.
问题原因:
默认Eclipse的编译环境是JRE,而JRE是不带编译器的,只有JDK才带编译器。所以必须把JDK作为你项目的Installe ......
struts-config:
<action path="/articleManage" name="articleManageForm" scope="request" type="auction.action.ArticleManageAction" validate="false">
<forward name="atriclesList" path="/WEB-INF/publish/articleManage/atriclesList.jsp"/>
<forward ......