[英]JSP page yes/no dialog box
I have three fields on JSP Update page userid, name and ssn.. I would like to have simple dialog box saying "You already have ssn, are you sure you want to modify it?" 我在“ JSP更新”页面的用户ID,名称和ssn上有三个字段。我想有一个简单的对话框,说“您已经有ssn,确定要修改吗?”。 depending on the user's yes or no response than it performs the task?
取决于用户的是或否响应,而不是执行任务? Is there a way I can add something on my java code to make this happen.. any help would be great.. thank you..
有没有一种方法可以在我的Java代码上添加一些东西来实现这一目标..任何帮助都将非常有用..
You should use java script for this. 您应该为此使用Java脚本。
<script type="text/javascript">
var response = confirm ("You already have ssn, are you sure you want to modify it?")
if (response){
//do yes task
}else{
//do no task
}
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.