Struts javascript 验证
嗨,朋友们,我想通过声明式 javascript 验证在 struts 中使用确认密码来验证密码,但它不起作用,请帮助我。
Hi friends I want to validate password with confirm password in struts through declarative javascript validation but its not working please helpme.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不建议在客户端(使用 JavaScript)执行此类验证。请遵循此建议,在服务器端获取密码并在那里进行验证。
但是,我不知道您正在讨论哪种验证,如果您正在寻找愚蠢的密码匹配检查,请使用类似的内容:
对于此 HTML
但请记住安全性是否可能涉及进行服务器端检查! !!
It's not suggested to perform such validations in client side (using javascript). Follow this advice, take the password in the server side and do your validation there.
However, I don't know which kind of validation you are taliking about, if you're looking for a silly password match check, use something like that:
for this HTML
But remember if the security could be involved doing SERVER SIDE CHECK !!!!