jsp示例

 1 JSP:
 2 <portlet:actionURL var="exportURL">
 3     <portlet:param name="<%= ActionRequest.ACTION_NAME %>" value="export" />
 4 </portlet:actionURL>
 5 
 6 <form action="<%= exportURL %>" method="post" name="<portlet:namespace />fm">
 7     <input type="text" name="<portlet:namespace />test" />
 8 
 9     <input type="submit" value="Export" />
10 </form>
11 action:
12 public class PDFPortlet extends MVCPortlet {
13     public void export(ActionRequest actionRequest,
14             ActionResponse actionResponse) throws Exception {
15         String test = ParamUtil.getString(actionRequest, "test");
16     }
17 }

 



posted @ 2013-01-29 18:16  sohanyu  阅读(139)  评论(0编辑  收藏  举报