📄 birthday.jsp
字号:
<html><head><title>Birthday JSP/Bean/DBHandler/Mail </title></head><body><%@ page import="java.util.*, MyNa.utils.*" errorPage="errorpage.jsp" %><jsp:useBean id="bbean" scope="session" class="birthday.BirthdayBean" /><jsp:setProperty name="bbean" property="*" /><% bbean.processRequest(request); %><% bbean.doCommand(); // usually, this is all we need after setting properties String msgtext=""; // accumulate messages here, if needed. String select=bbean.getJspcmd(); if("logout".equals(select)){ %> goodbye, come again soon.<% }else if("error".equals(select)){ %> oops, something went wrong: <%= bbean.getErrorString() %> Click your back button and try again, or tell us.<% }else if("change".equals(select)){ %> We changed <%= bbean.getNumberAffected() %> rows. <%@ include file="continue.jsp" %><% }else if("msgsent".equals(select)){ %> Congratulations, you sent a message. <%@ include file="continue.jsp" %><% }else if("list".equals(select)){ %> <%@ include file="list.jsp" %><% }else if("birthdaylist".equals(select)){ %> <%@ include file="birthdaylist.jsp" %><% }else { %> Unimplemented command [<%= select %>]; how did this happen?<% } %></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -