📄 formaction.java
字号:
package com.x4ee.portlet.samples.mvcpart.actions;
import java.io.IOException;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletException;
import com.x4ee.portlet.mvcportlet.core.ActionConfig;
import com.x4ee.portlet.mvcportlet.core.ActionProcessor;
import com.x4ee.portlet.mvcportlet.core.BaseRequestProcessor;
public class FormAction extends BaseRequestProcessor implements ActionProcessor {
public String process(ActionRequest request, ActionResponse response,
ActionConfig config) throws PortletException, IOException {
// TODO Auto-generated method stub
String strusername=request.getParameter("username");
String strpwd=request.getParameter("password");
//--将参数放到request中
response.setRenderParameter("username",strusername);
response.setRenderParameter("password",strpwd);
//--设置转发页面参数
response.setRenderParameter("showmsg","showmsg");
//---以下可以进行数据库等操作---
//--------------------------
return "default";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -