portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: jakarta-jetspeed-2/portals-bridges/struts/src/java/org/apache/portals/bridges/struts StrutsPortlet.java
Date Tue, 30 Nov 2004 20:22:52 GMT
ate         2004/11/30 12:22:52

  Modified:    portals-bridges/struts/src/java/org/apache/portals/bridges/struts
                        StrutsPortlet.java
  Log:
  Support configurable HelpPage parameter.
  Thanks to Thiwanka Wimalasuriya for pointing this out.
  
  Revision  Changes    Path
  1.8       +8 -1      jakarta-jetspeed-2/portals-bridges/struts/src/java/org/apache/portals/bridges/struts/StrutsPortlet.java
  
  Index: StrutsPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portals-bridges/struts/src/java/org/apache/portals/bridges/struts/StrutsPortlet.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StrutsPortlet.java	27 Nov 2004 01:04:12 -0000	1.7
  +++ StrutsPortlet.java	30 Nov 2004 20:22:52 -0000	1.8
  @@ -142,6 +142,8 @@
           this.defaultCustomPage = getCustomPageParameter(config);
           this.defaultEditPage = getEditPageParameter(config);
           this.defaultViewPage = getViewPageParameter(config);
  +        this.defaultHelpPage = getHelpPageParameter(config);
  +        
           if (this.defaultViewPage == null)
           {
               // A Struts Portlet is required to have at least the
  @@ -190,6 +192,11 @@
       protected String getViewPageParameter(PortletConfig config)
       {
           return config.getInitParameter(PARAM_VIEW_PAGE);
  +    }
  +    
  +    protected String getHelpPageParameter(PortletConfig config)
  +    {
  +        return config.getInitParameter(PARAM_HELP_PAGE);
       }
       
       public void doEdit(RenderRequest request, RenderResponse response)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message