📄 performsearch.java
字号:
package com.learnweblogic.ch4;
import javax.servlet.http.*;
public class PerformSearch extends HttpServlet {
public void service(HttpServletRequest req, HttpServletResponse res) {
HttpSession session = req.getSession(false);
if (null != session) {
ViewMappingBean viewMapping = (ViewMappingBean) session.getAttribute("viewMapping");
// Normally, you might call business logic, and update the
// state of the ViewMappingBean.
// Replace the UserSearchBean with safe presentation version
UserSearchBean bean = (UserSearchBean) req.getAttribute("searchBean");
req.setAttribute("searchBean", new UserSearchHelper(bean));
}
return;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -