Package org.apache.jsp

Source Code of org.apache.jsp.lead_jsp

package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import com.sourcetap.sfa.ui.UIScreenSection;
import com.sourcetap.sfa.ui.UIQuery;
import com.sourcetap.sfa.util.UserInfo;
import com.sourcetap.sfa.util.Preference;
import com.sourcetap.sfa.ui.UIScreenSection;

public class lead_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(1);
    _jspx_includes.add("/includes/getScreenPreference.jsp");
  }

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

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

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=ISO-8859-1");
      pageContext = _jspxFactory.getPageContext(this, request, response,
            null, true, 8192, true);
      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\r\n");
      org.ofbiz.entity.GenericDelegator delegator = null;
      synchronized (application) {
        delegator = (org.ofbiz.entity.GenericDelegator) pageContext.getAttribute("delegator", PageContext.APPLICATION_SCOPE);
        if (delegator == null){
          throw new java.lang.InstantiationException("bean delegator not found within scope");
        }
      }
      out.write("\r\n\r\n");

String action = request.getParameter("action");
if ( (action == null ) || ( action.length() < 1) )
{
   Preference pref = Preference.getInstance(delegator);
   UserInfo userInfo  = (UserInfo) session.getAttribute("userInfo");
   action = pref.getPreference( userInfo.getPartyId(), userInfo.getAccountId(), "SCREEN_ACTION", UIScreenSection.ACTION_SHOW_INSERT);
}


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

String leadId = "";
if (request.getParameter("leadId") != null) {
  leadId = request.getParameter("leadId");
}

      out.write("\r\n");
      out.write("<FRAMESET ROWS=\"365, *\" BORDER=\"0\" FRAMEBORDER=\"no\" FRAMESPACING=\"0\">\r\n");
if (!leadId.equals("")) {
      out.write("\r\n ");
      out.write("<FRAME NAME=\"headerFrame\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\" SCROLLING=\"AUTO\" SRC=\"leadHeader?leadId=");
      out.print(leadId);
      out.write("&action=");
      out.print(UIScreenSection.ACTION_SHOW);
      out.write("\">\r\n");
} else {
      out.write("\r\n ");
      out.write("<FRAME NAME=\"headerFrame\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\" SCROLLING=\"AUTO\" SRC=\"leadHeader?action=");
      out.print(action);
      out.write("\">\r\n");
}
      out.write("\r\n  This application requires Internet Explorer 5.0 or greater\r\n ");
      out.write("</FRAME>\r\n");
if (leadId.equals("")) {
      out.write("\r\n ");
      out.write("<FRAME NAME=\"contentFrame\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\" SCROLLING=\"AUTO\" SRC=\"leadList?action=");
      out.print(UIScreenSection.ACTION_QUERY);
      out.write("&savedQueryName=");
      out.print(UIQuery.LAST_QUERY_NAME_URL_ENCODED);
      out.write("\">\r\n");
} else {
      out.write("\r\n ");
      out.write("<FRAME NAME=\"contentFrame\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\" SCROLLING=\"NO\" SRC=\"leadTabs?leadId=");
      out.print(leadId);
      out.write("\">\r\n");
}
      out.write("\r\n ");
      out.write("</FRAME>\r\n");
      out.write("</FRAMESET>\r\n\r\n");
    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0)
        out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }
}
TOP

Related Classes of org.apache.jsp.lead_jsp

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.