package jeus_jspwork;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import org.kldp.ebmsh.cpa.ejb.CpaManagerHome;
import org.kldp.ebmsh.cpa.ejb.CpaManager;
import java.lang.reflect.Method;
import org.kldp.ebmsh.cpa.Cpa;
import java.net.URL;
import java.io.File;
import java.io.FileInputStream;
import java.io.BufferedInputStream;

public final class _500_index_5fjsp extends jeus.servlet.jsp2.runtime.HttpJspBase
    implements jeus.servlet.jsp2.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=EUC-KR");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");


	String str = "test.xml";
	
	out.println( str.substring(0, str.indexOf(".")) );

	if(true) 
		return ;
	
	try {
		Context ctx = new InitialContext();
		
		CpaManagerHome home = (CpaManagerHome)ctx.lookup("CpaManager");
		
		CpaManager manager = home.create();
		
		Cpa cpa = manager.getCpa("BizboxTest");
		
		out.println(manager);
		
//		out.println(cpa);
		
		//out.println( 	cpa.getPartyInfos()[0].getPartyName() );
	}
	catch(Throwable t) {
		t.printStackTrace();
	}
	
	
	/*Method[] methods = manager.getClass().getMethods();
	
	for(int i = 0; i < methods.length; i++) {
		out.println(methods[i] + "<br>");
	}*/

    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
