如何使用jsp在java中添加注册成功完整消息 [英] how to add registration sucess full messages in java using jsp

查看:101
本文介绍了如何使用jsp在java中添加注册成功完整消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

if (dist==null || dist=="")
  {
  alert("ಜಿಲ್ಲೆಯ  ಹೆಸರನ್ನು ಆರಿಸಿ");
  return false;
  }
  if (taluk_name==null || taluk_name=="")
  {
  alert("ತಾಲ್ಲೂಕು   ಹೆಸರನ್ನು ನಮೂದಿಸಿ ");
  return false;
  }
  if (uname==null || uname=="")
  {
  alert("ಹೆಸರನ್ನು ನಮೂದಿಸಿ ");
  return false;
  }
    if (mobile==null || mobile=="")
  {
  alert("ಮೊಬೈಲ್ ಸಂಖ್ಯೆ ನಮೂದಿಸಿ ");
  return false;
  }





点击提交按钮后会显示sucessfull消息。如何做



here after clicking the submit button sucessfull message will display. hw to do that

推荐答案

将最后的`else`添加到序列中并在那里写return true。

成功后你可以将控制重定向到另一个jsp页面,并在该jsp页面的`window.load`事件中,您可以编写成功警报消息。



请在此处查看答案

如何在提交过程完成后在jsp页面中创建警报消息 [ ^ ]



希望,它有助于:)
Add the final `else` to the sequence and write `return true` there.
On success you can redirect control to another jsp page and on `window.load` event of that jsp page you can write the success alert message.

See the answer here
how to create an alert message in jsp page after submit process is complete[^]

Hope, it helps :)


这篇关于如何使用jsp在java中添加注册成功完整消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆