/*
 * @(#)DataWebBeanTag.java
 *
 * Copyright 2000-2002 by Oracle Corporation,
 * 500 Oracle Parkway, Redwood Shores, California, 94065, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Oracle Corporation.
 */

package oracle.jbo.html.jsp.datatags;

import oracle.jbo.html.DataSource;

public class DataWebBeanTag extends WebBeanTag
{
   String sDataSource; // Required attribute, does not need initialization

   public void setDatasource(String sDataSource)
   {
      this.sDataSource = sDataSource;
   }

   protected void initializeBean()
      throws Exception
   {
      DataSource ds = Utils.getDataSourceFromContext(pageContext, sDataSource);

      oracle.jbo.html.DataWebBean dwb = (oracle.jbo.html.DataWebBean)wb;
      
      dwb.initialize(pageContext, ds);
   }
}
