将会话值与文本框进行比较 [英] Compare session value with textbox
本文介绍了将会话值与文本框进行比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我可以在我的jsp中获取会话值,现在我想比较会话值是否与文本框匹配,如果匹配,它会将用户重定向到另一个页面,否则它将保持同一页面,我是不知道怎么办,请帮忙。非常感谢!
Hi I could get my session values in my jsp, now I want to compare the session value whether it matches the textbox, if it matches, it will redirect the user to another page else it will remain the same page, I am not sure how to proceed, please help . Much thanks!
推荐答案
if ( session.getAttribute("KinkyKeyValue").equals(someTextbox.gettext()) ) {
// startParty();
}
将是典型的解决方案 - 但你可能也想到了这一点。那真正的问题在哪里?
would b a typical sollution - but you probably figured that out too. So where is the real problem?
这篇关于将会话值与文本框进行比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文