📄 newresponseaction.java
字号:
package forum;
import javax.servlet.http.*;
/**
* Represents the logic behind viewing the details of a topic with a HTML form
* underneath in which to type a new response. This extends the ViewTopicAction and
* simply forwards to a different view.
*
* @author Simon Brown
*/
public class NewResponseAction extends ViewTopicAction {
/**
* Peforms the processing associated with this action.
*
* @param request the HttpServletRequest instance
* @param response the HttpServletResponse instance
* @return the name of the next view
*/
public String process(HttpServletRequest request, HttpServletResponse response) {
System.out.println("NewResponseAction : Processing request");
super.process(request, response);
return "/new-response.jsp";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -