mailhomepage.jsp

来自「it is online banking syastem in java」· JSP 代码 · 共 20 行

JSP
20
字号
<!--
     Checking with the help of ConnectionBean and UserCredentials
     that the connection established or not due to any reason. 
     If yes then it calls Frames.jsp and if not then it calls LoginPage.jsp
-->

<jsp:useBean id="MyConnectionBean" scope="session" class="UserPack.ConnectionBean"/>
<jsp:useBean id="MyBean" scope="session" class="UserPack.MailUserCredentials"/>
<jsp:setProperty name="MyBean" property="*" />


<%
   MyConnectionBean.establishConnection(MyBean.getUser(),MyBean.getPassword());
   if((MyConnectionBean.checkLogin()) == 0){
%>
 <jsp:forward page="LoginPage.jsp" />
<% }else{ %>
 <jsp:forward page="Frames.jsp" />
<% } %>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?