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>
相关文档:
一、安装JDK 首先下载JDK 5.0(JDK 5.0的下载页面为:http://java.sun.com/j2se/1.5.0/download.jsp); 然后运行JDK 5.0安装程序jdk-1_5_0_06-windows-i586-p.exe,安装过程中所有选项保持默认;最后配置JDK的环境变量:在“我的电脑”上点右键—>“属性”—>“高级”& ......
try {
URL url = new URL("http://www.163.com");
InputStream is = url.openStream();
byte[] buffer = new byte[1024];
  ......
前几天,湖南SEO在用jsp写一个企业站程序的时候,因为要参加项目答辩竞选,所以就想为自己写的程序搞几个亮点,因为搞SEO久了,不自觉就会想到伪静态,但是在百度查了一个下午,只查到了urlrewrite架包的下载地方,和架设方面的文章,并没有jsp(JAVA)伪静态的具体操作示范,有的也只是,单页面的伪静态的写法,这里我就重头 ......
一、
问:org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "192.168.254.103", user "postgres",database "postgres", SSL off
答:PostgreSQ数据库为了安全,它不会监听除本地以外的所有连接请求,当用户通过JDBC访问是,就会报一些以上的异常。要解决这个问题 ......