我有问题,如果多个条件如果从句多个条件JSP
这里子句是代码
<% if(session.getAttribute("userid")!=null && session.getAttribute("type")=="admin"){ %>
,这是一套属性会话
if (resultset.next()) {
String type = resultset.getString("type");
session.setAttribute("userid",n);
session.setAttribute("type", type);
response.sendRedirect("company.jsp");
} else {
out.println("Invalid password <a href='index.jsp'>try again</a>");
}
一点也没有”工作。如何解决它?
可以更解释一下吗?是在company.jsp if子句?你想做些什么用if子句吗?你能解释一下吗 –
对不起,if子句在company.jsp中 –
你想用if语句检查一下吗? –