1 5 package org.exoplatform.portlet.exomvc; 6 7 import javax.portlet.RenderRequest; 8 import javax.portlet.RenderResponse; 9 10 import org.exoplatform.portlet.exomvc.config.Configuration; 11 16 public class JSPPage extends Page { 17 private String jspPage_ ; 18 19 public String getJSPPage() { return jspPage_ ; } 20 public void setJSPPage(String s) { jspPage_ = s ; } 21 22 public void render(RenderRequest req, RenderResponse res) throws Exception { 23 Configuration config = getConfiguration() ; 24 String pageURL = getPageURL(res) ; 25 req.setAttribute(PAGE_URL, pageURL) ; 26 config.getJSPResourceManager().dispatch(jspPage_, req, res) ; 27 } 28 } | Popular Tags |