KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlet > exomvc > JSPPage


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

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 /**
12  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
13  * @since Nov 7, 2004
14  * @version $Id$
15  */

16 public class JSPPage extends Page {
17   private String JavaDoc jspPage_ ;
18   
19   public String JavaDoc getJSPPage() { return jspPage_ ; }
20   public void setJSPPage(String JavaDoc s) { jspPage_ = s ; }
21   
22   public void render(RenderRequest req, RenderResponse res) throws Exception JavaDoc {
23     Configuration config = getConfiguration() ;
24     String JavaDoc pageURL = getPageURL(res) ;
25     req.setAttribute(PAGE_URL, pageURL) ;
26     config.getJSPResourceManager().dispatch(jspPage_, req, res) ;
27   }
28 }
Popular Tags