/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: Jan 10, 2003
 * Time: 11:29:41 PM
 * To change this template use Options | File Templates.
 */
package com.company.plugins;

import com.novell.emframe.dev.Task;
import com.novell.emframe.dev.TaskContext;

import javax.servlet.http.HttpServletRequest;
import java.util.Properties;

public class ViewExampleTask extends Task
{
	public boolean execute(TaskContext context, Properties resultStrings)
	{
      HttpServletRequest req = context.getRequest();
      
		if( req.getParameter( "ViewExampleMenuFrame" ) != null )
		{
			setUIPage( "sdk/ViewExampleMenuFrames.jsp" );
		}
		else if( req.getParameter( "ViewExampleMenuHeader" ) != null )
		{
			setUIPage( "sdk/ViewExampleMenuHeader.jsp" );
		}
		else if( req.getParameter( "ViewExampleMenu" ) != null )
		{
			setUIPage( "sdk/ViewExampleMenu.jsp" );
		}
		else
			setUIPage( "sdk/ViewExampleFrames.jsp" );
      
      return true;
    }
}
