public void __validate( ) throws Exception
public boolean __validate( ) throws Exception
	public void __validate( ) throws Exception	{		// get Locale		Locale locale = BirtTagUtil.getLocale( (HttpServletRequest) pageContext				.getRequest( ), viewer.getLocale( ) );		// Set locale information		BirtResources.setLocale( locale );		// Validate requester name		// if isCustom is true, the requester name should be required.		if ( viewer.isCustom( )				&& ( viewer.getName( ) == null || viewer.getName( ).length( ) <= 0 ) )		{			throw new JspTagException( BirtResources					.getMessage( ResourceConstants.TAGLIB_NO_REQUESTER_NAME ) );		}		// Report design or document should be specified		if ( viewer.getReportDesign( ) == null				&& viewer.getReportDocument( ) == null )		{			throw new JspTagException( BirtResources					.getMessage( ResourceConstants.TAGLIB_NO_REPORT_SOURCE ) );		}		// If preview reportlet, report document file should be specified.		if ( viewer.getReportletId( ) != null				&& viewer.getReportDocument( ) == null )		{			throw new JspTagException( BirtResources					.getMessage( ResourceConstants.TAGLIB_NO_REPORT_DOCUMENT ) );		}	}