/* Automatically generated.
 * Copyright (c) 2000-2006 by SAP AG, Walldorf.,
 * http://www.sap.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of SAP AG, Walldorf. You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms
 * of the license agreement you entered into with SAP.
 * Do not edit.
 */

import ro.emid.common.utils.ObjectUtils;
import java.util.List;
import ro.emid.common.types.CategoryOD;
import ro.emid.common.db.CategoryODAccessDB;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public class JEE_jsp_WEB_2d_INF_pagelet_admin_ajax_getCategoriesDispecerFromServer_1471592526467 extends com.sap.engine.services.servlets_jsp.lib.jspruntime.JspBase{

	public void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
	{
		//isXml=false
		JspFactory  _jspFactory     = JspFactory.getDefaultFactory();
		PageContext pageContext = _jspFactory.getPageContext(this,request,response,null,true,32768,true);
		ServletConfig config = pageContext.getServletConfig();
		ServletContext application = pageContext.getServletContext();
		com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext = (com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl) pageContext;
		com.sap.engine.services.servlets_jsp.server.application.InjectionWrapper _jspx_resourceInjector = ((com.sap.engine.services.servlets_jsp.server.application.ServletContextImpl)_jspx_pageContext.getServletContext()).getApplicationContext().getInjectionWrapper();
		HttpSession session = pageContext.getSession();
		if (!response.isCommitted()) {
		response.setContentType("text/html;charset=UTF-8");
		}
		JspWriter   out     = pageContext.getOut();
		java.lang.Object page = this;
		try {
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(1,53);to=(2,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(2,35);to=(3,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(3,52);to=(4,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(4,57);to=(5,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(5,0);to=(10,2)]
			
    long parentId = ObjectUtils.getIntValue(request.getParameter("parentId"), 0);
    long selectedValue = ObjectUtils.getIntValue(request.getParameter("selectedValue"), 0);
    boolean disabled = ObjectUtils.getStringValue(request.getParameter("disabled")).equals("true");
    String selectName = ObjectUtils.getStringValue(request.getParameter("selectName"));

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(10,2);to=(13,4)]
			out.print("\r\n<respmesg>\r\n\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(13,4);to=(13,66)]
			 List list = CategoryODAccessDB.getChildCategs(parentId); 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(13,66);to=(15,37)]
			out.print("\r\n\r\n    <select class=\"gSAPSelect\" name=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(15,37);to=(15,52)]
			out.print(selectName);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(15,52);to=(15,54)]
			out.print("\" ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(15,54);to=(15,84)]
			out.print(disabled? "disabled" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(15,84);to=(17,8)]
			out.print(">\r\n        <option value=\"-1\" >Selectati:</option>\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(17,8);to=(18,62)]
			 for (int i = 0; i < list.size(); i++) {
            CategoryOD category = (CategoryOD) list.get( i);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(18,62);to=(19,27)]
			out.print("\r\n            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(19,27);to=(19,48)]
			out.print(category.getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(19,48);to=(19,50)]
			out.print("\" ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(19,50);to=(19,106)]
			out.print(category.getId() == selectedValue ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(19,106);to=(19,108)]
			out.print(" >");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(19,108);to=(19,131)]
			out.print(category.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(19,131);to=(20,8)]
			out.print("</option>\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(20,8);to=(20,15)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/ajax/getCategoriesDispecerFromServer.jsp";from=(20,15);to=(23,0)]
			out.print("\r\n    </select>\r\n</respmesg>\r\n");
// end
		} catch (ThreadDeath tde) { throw tde;
		} catch (OutOfMemoryError ome) { throw ome;
		} catch (Throwable t) {
			if (!(t instanceof SkipPageException)) {
				try {
					out.clear();
				} catch(java.io.IOException _jspioex) {}
				_jspx_pageContext.handlePageException(t);
			}
		}finally{
			_jspFactory.releasePageContext(pageContext);
		}
	}

}
