JSP Redirection fails, from Servlet

Hi I have simple web application, where im doing some java operation in servlet and Req dispatching to JSP page
Most of the the times, on first request i see JSP null pointer exception and in the next request service runs fine.
Below is the error msg
<Apr 23, 2014 2:35:12 PM EDT> <Warning> <HTTP Session> <BEA-100094> <The session id: y107TYHGnQTzJjJqndgvXDjky7bv1Q9LpHBNbBDyT4tJfyLl1RMF has been accessed from 7205002717985624119S:3.239.16.221:3.239.16.221:15001,3.239.16.221:15002:dev:soa_server1, a server that is not the primary (2944952919000475971S:3.239.16.221:[15002,15002,-1,-1,-1,-1,-1]:3.239.16.221:15001,3.239.16.221:15002:dev:soa_server2). The request URL was: NONE>
<Apr 23, 2014 2:35:12 PM EDT> <Warning> <HTTP Session> <BEA-100094> <The session id: y107TYHGnQTzJjJqndgvXDjky7bv1Q9LpHBNbBDyT4tJfyLl1RMF has been accessed from 7205002717985624119S:3.239.16.221:3.239.16.221:15001,3.239.16.221:15002:dev:soa_server1, a server that is not the primary (2944952919000475971S:3.239.16.221:[15002,15002,-1,-1,-1,-1,-1]:3.239.16.221:15001,3.239.16.221:15002:dev:soa_server2). The request URL was: NONE>
<Apr 23, 2014 2:35:12 PM EDT> <Warning> <HTTP Session> <BEA-100094> <The session id: y107TYHGnQTzJjJqndgvXDjky7bv1Q9LpHBNbBDyT4tJfyLl1RMF has been accessed from 7205002717985624119S:3.239.16.221:3.239.16.221:15001,3.239.16.221:15002:dev:soa_server1, a server that is not the primary (2944952919000475971S:3.239.16.221:[15002,15002,-1,-1,-1,-1,-1]:3.239.16.221:15001,3.239.16.221:15002:dev:soa_server2). The request URL was: NONE>
<Apr 23, 2014 2:35:12 PM EDT> <Warning> <HTTP Session> <BEA-100094> <The session id: y107TYHGnQTzJjJqndgvXDjky7bv1Q9LpHBNbBDyT4tJfyLl1RMF has been accessed from 7205002717985624119S:3.239.16.221:3.239.16.221:15001,3.239.16.221:15002:dev:soa_server1, a server that is not the primary (2944952919000475971S:3.239.16.221:[15002,15002,-1,-1,-1,-1,-1]:3.239.16.221:15001,3.239.16.221:15002:dev:soa_server2). The request URL was: NONE>
<Apr 23, 2014 2:35:12 PM EDT> <Warning> <HTTP Session> <BEA-100094> <The session id: y107TYHGnQTzJjJqndgvXDjky7bv1Q9LpHBNbBDyT4tJfyLl1RMF has been accessed from 7205002717985624119S:3.239.16.221:3.239.16.221:15001,3.239.16.221:15002:dev:soa_server1, a server that is not the primary (2944952919000475971S:3.239.16.221:[15002,15002,-1,-1,-1,-1,-1]:3.239.16.221:15001,3.239.16.221:15002:dev:soa_server2). The request URL was: NONE>
map size is :1
java.lang.NullPointerException
        at jsp_servlet.__downloaddocument._jspService(__downloaddocument.java:140)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
        at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
        at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
        at com.ge.render.servlets.GenerateReportServlet.doPost(GenerateReportServlet.java:81)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Please let me know, if you need source code of the files.
Please help.
_____________________________My JSP Page:_________________________________________
<%@ page contentType="text/html; charset=US-ASCII" pageEncoding="US-ASCII"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Properties"%>
<%@ page import="java.net.HttpURLConnection"%>
<%@ page import="java.net.URL"%>
<html>
    <head>
        <script type="text/javascript">
          function preloader() {
              document.getElementById("loading").style.display = "none";
              document.getElementById("content").style.display = "block";
          //preloader
        window.onload = setTimeout(preloader, 60000);
        </script>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta>
        <meta http-equiv="Connection" content="keep-alive"></meta>
        <link type="text/css" rel="stylesheet" href="CSS/GridTable.css"/>
    </head>
    <body>
        <table width="100%" height="100%" class="gridtable">
            <tr height="80">
                <th colspan="2">
                    <jsp:include page="/common/header.jsp"/>
                </th>
            </tr>
            <tr>
                <td>
                    <div id="loading" align="center" style="display:block">
                        <img src="images/loader.gif" alt="Loading..."></img><br></br>
                        <p>
                            Please wait. Report generation is in progress. <br>
                             Report generation time depends on number of reports being submitted.
                        </p>
                    </div>
                    <div id="content" align="center" style="display:none">
                        Report Generation Results.<br></br><br></br>
                          <table>
                        <%
                   Properties props = new Properties();
  props=(Properties)session.getAttribute("props");
                       Properties eProps = new Properties();
  eProps=(Properties)session.getAttribute("exeProps");
                        String name = null;
                HashMap<String, String> map= (HashMap<String, String>)request.getAttribute("url");
//                 HashMap<String, String> Names= (HashMap<String, String>)request.getAttribute("names");
                 String key=null ;
             System.out.println("map size is :"+map.size());
             String Customer=null;
          if(!(map.isEmpty())){
          Iterator keySetIterator =map.keySet().iterator();
           while(keySetIterator.hasNext()){
              key = keySetIterator.next().toString();
               Customer=props.getProperty(key);
           if(Customer == null){
           Customer=eProps.getProperty(key);
           if(map.get(key).toString().equals("ErrorMessage.jsp")){
                               %>
                <tr>        <td><b>
                            <%=Customer%></b>
                         Report Generation Failed
                        <a href="<%=map.get(key)%>">click here</a>
                         to see error. </td></tr>
                        <%
           }else{
           %>
                            <tr>
                                <td width="55%">
                                    <b>
                                        <%=Customer%></b>
                                </td>
                                <td width="25%">Ready</td>
                                <td width="50%">
                                    <a href="<%=map.get(key)%>" target="_blank">click here</a>
                                </td>
                            </tr>
                        </table>
                        <%}
      }}%>
                    </div>
                    <br></br>
                    <div id="backbutton" align="center">
                        <a href="LoginSuccess.jsp">Back</a>
                    </div>
                </td>
            </tr>
            <tr height="40">
                <td colspan="2">
                    <jsp:include page="/common/footer.jsp"/>
                </td>
            </tr>
        </table>
    </body>
</html>
________________________Servlet code_______________________________________________
public class GenerateReportServlet extends HttpServlet {
  private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    Properties FusionProps=null;
    @Override
    public void init(ServletConfig config) throws ServletException {
       super.init(config);
       try{
           FusionProps=new Properties();
        FusionProps.load(getServletContext().getResourceAsStream("/WEB-INF/Properties/Fusion.properties"));
       }catch(Exception e){
           e.printStackTrace();
  public void doPost(HttpServletRequest request,
                     HttpServletResponse response) throws ServletException,
                                                          IOException {
      String[] list1= request.getParameterValues("custs");
     if(list1 == null){
      request.setAttribute("msg", "<b><font color=\"red\">Select atleast one ReportID for custome report generation</font><b>");
      RequestDispatcher rd =
        request.getRequestDispatcher("/LoginSuccess.jsp");
      rd.forward(request, response);
    else{
         try{
         GenerateReportDAO gr=new GenerateReportDAO();
        HashMap<String, String> cust_urls = new HashMap<String, String>();
        HashMap<String, String> url_stats = new HashMap<String, String>();
         int count=list1.length;
        long starttime=System.nanoTime();
            String proxy=FusionProps.getProperty("ProxyHost");
            String port=FusionProps.getProperty("ProxyPort");
            String RUrl=FusionProps.getProperty("Url");
            String RToken=FusionProps.getProperty("xyz");
            String Furl=FusionProps.getProperty("SOACReqReceiver");
        for(int i = 0; i < count; i++)
            String URL = gr.generateReport(list1[i],proxy,port,RUrl,RToken,Furl);
             cust_urls.put(list1[i], URL);
            if(URL=="ErrorMessage.jsp"){
                    cust_urls.put(list1[i], URL);
        long completeTime=System.nanoTime();  
         System.out.println("Total Elapsed time "+ (completeTime-starttime) + "NanoSeconds");
        request.setAttribute("url", cust_urls);
       // request.setAttribute("stats", url_stats);
     //   request.setAttribute("names", cust_names);
    RequestDispatcher rd =
      request.getRequestDispatcher("/DownloadDocument.jsp");
    rd.forward(request, response);
         catch(Exception e){
             e.printStackTrace();
             request.setAttribute("msg", "Server encountered internal error, Please try again. If error persists contact corporate oracle soa team.");
             RequestDispatcher rd =
               request.getRequestDispatcher("/ErrorMessage.jsp");
             rd.forward(request, response);

i have found the class and decompiled it. Pasting the contents below.
I have tried to find something from it. didnt help.
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name:   __downloaddocument.java
package jsp_servlet;
import java.io.*;
import java.util.*;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import weblogic.jsp.internal.jsp.JspFunctionMapper;
import weblogic.servlet.jsp.*;
import weblogic.utils.http.HttpParsing;
public final class __downloaddocument extends JspBase
    implements StaleIndicator
    public __downloaddocument()
    private static void _releaseTags(PageContext pageContext, JspTag t)
        while(t != null)
            DependencyInjectionHelper.preDestroy(pageContext, t);
            if(t instanceof Tag)
                Tag tmp = (Tag)t;
                t = ((Tag)t).getParent();
                try
                    tmp.release();
                catch(Exception exception) { }
            } else
                t = ((SimpleTag)t).getParent();
    public boolean _isStale()
        boolean _stale = _staticIsStale((StaleChecker)getServletConfig().getServletContext());
        return _stale;
    public static boolean _staticIsStale(StaleChecker sci)
        return sci.isResourceStale("/DownloadDocument.jsp", 0x1459066fe00L, "10.3.6.0", "US/Eastern");
    private static byte[] _getBytes(String block)
        try
            return block.getBytes(_WL_ORIGINAL_ENCODING);
        catch(UnsupportedEncodingException u)
            _WL_ENCODED_BYTES_OK = false;
        return null;
    public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        ServletConfig config = getServletConfig();
        javax.servlet.ServletContext application = config.getServletContext();
        JspTag _activeTag = null;
        Object page = this;
        PageContext pageContext = JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
        response.setHeader("Content-Type", "text/html; charset=US-ASCII");
        JspWriter out = pageContext.getOut();
        ByteWriter _bw = (ByteWriter)out;
        _bw.setInitCharacterEncoding(_WL_ORIGINAL_ENCODING, _WL_ENCODED_BYTES_OK);
        JspWriter _originalOut = out;
        HttpSession session = request.getSession(true);
        try
            response.setContentType("text/html; charset=US-ASCII");
            _bw.write(_wl_block0Bytes, "\r\n");
            _bw.write(_wl_block0Bytes, "\r\n");
            _bw.write(_wl_block0Bytes, "\r\n");
            _bw.write(_wl_block1Bytes, "\r\n\r\n");
            _bw.write(_wl_block0Bytes, "\r\n");
            _bw.write(_wl_block2Bytes, "\r\n<html>\r\n    <head>\r\n        <script type=\"text/javascript\">\r\n          function preloader() {\r\n              document.getElementById(\"loading\").style.display = \"none\";\r\n              document.getElementById(\"content\").style.display = \"block\";\r\n          }\r\n          //preloader\r\n         // window.onload = setTimeout(preloader, 10000);\r\n        </script>\r\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"></meta>\r\n        <meta http-equiv=\"Connection\" content=\"keep-alive\"></meta>\r\n        <link type=\"text/css\" rel=\"stylesheet\" href=\"CSS/GridTable.css\"/>\r\n    </head>\r\n    <body>\r\n        <table width=\"100%\" height=\"100%\" class=\"gridtable\">\r\n            <tr height=\"80\">\r\n                <th colspan=\"2\">\r\n                    ");
            String __page = "/common/header.jsp";
            String __queryParams[][] = new String[0][];
            String __encoding = request.getCharacterEncoding();
            if(__encoding == null)
                __encoding = "ISO-8859-1";
            if(__queryParams.length == 0)
                pageContext.include(__page);
            else
                pageContext.include(HttpParsing.makeURI(__page, __queryParams, __encoding));
            _bw.write(_wl_block3Bytes, "\r\n                </th>\r\n            </tr>\r\n             \r\n            <tr>\r\n                <td>\r\n                   <div id=\"loading\" align=\"center\" style=\"display:block\">\r\n                        <img src=\"images/loader.gif\" alt=\"Loading...\" ></img><br>\r\n                        <p> Please wait. Report generation is in progress. <br>\r\n                           Report generation time depends on number of reports submitted.</p>\r\n                    </div>\r\n                    <div id=\"content\" align=\"center\" style=\"display:none\" >\r\n                        Report Generation Results.<br><br>\r\n                       \r\n                         \r\n                        ");
            Properties props = new Properties();
            props = (Properties)session.getAttribute("props");
            Properties eProps = new Properties();
            eProps = (Properties)session.getAttribute("exeProps");
            String name = null;
            HashMap map = (HashMap)request.getAttribute("url");
            String key = null;
            System.out.println((new StringBuilder("map size is :")).append(map.size()).toString());
            if(map.size() < 5)
                _bw.write(_wl_block4Bytes, "\r\n             <script type=\"text/javascript\">\r\n              window.onload = setTimeout(preloader, 60000);\r\n              </script>\r\n             ");
            else
            if(map.size() > 5 && map.size() < 10)
                _bw.write(_wl_block5Bytes, "\r\n             <script type=\"text/javascript\">\r\n              window.onload = setTimeout(preloader, 80000);\r\n              </script>\r\n             ");
            else
            if(map.size() > 10)
                _bw.write(_wl_block6Bytes, "\r\n             <script type=\"text/javascript\">\r\n              window.onload = setTimeout(preloader, 100000);\r\n              </script> \r\n             ");
            String Customer = null;
            if(!map.isEmpty())
                for(Iterator keySetIterator = map.keySet().iterator(); keySetIterator.hasNext();)
                    key = keySetIterator.next().toString();
                    Customer = props.getProperty(key);
                    if(Customer == null)
                        Customer = eProps.getProperty(key);
                    if(((String)map.get(key)).toString().equals("ErrorMessage.jsp"))
                        _bw.write(_wl_block7Bytes, "\r\n                         \r\n                      <b>\r\n                            ");
                        out.print(String.valueOf(Customer));
                        _bw.write(_wl_block8Bytes, "</b>\r\n                         Report Generation Failed\r\n                        <a href=\"");
                        out.print(String.valueOf(map.get(key)));
                        _bw.write(_wl_block9Bytes, "\">click here</a>\r\n                         to see error.\r\n                         \r\n                        ");
                    } else
                        _bw.write(_wl_block10Bytes, "\r\n          <table>\r\n          <tr> <td width=\"55%\">\r\n           <b> ");
                        out.print(String.valueOf(Customer));
                        _bw.write(_wl_block11Bytes, "</b> </td><td width=\"25%\">Ready</td>\r\n          <td width=\"50%\"><a href=\"");
                        out.print(String.valueOf(map.get(key)));
                        _bw.write(_wl_block12Bytes, "\" target=\"_blank\">click here</a></td></tr></table>\r\n            ");
            _bw.write(_wl_block13Bytes, "\r\n                    </div>\r\n                    <br></br>\r\n                    <div id=\"backbutton\" align=\"center\">\r\n                        <a href=\"LoginSuccess.jsp\">Back</a>\r\n                    </div>\r\n                </td>\r\n            </tr>\r\n             \r\n            <tr height=\"40\">\r\n                <td colspan=\"2\">\r\n                    ");
            String __page = "/common/footer.jsp";
            String __queryParams[][] = new String[0][];
            String __encoding = request.getCharacterEncoding();
            if(__encoding == null)
                __encoding = "ISO-8859-1";
            if(__queryParams.length == 0)
                pageContext.include(__page);
            else
                pageContext.include(HttpParsing.makeURI(__page, __queryParams, __encoding));
            _bw.write(_wl_block14Bytes, "\r\n                </td>\r\n            </tr>\r\n        </table>\r\n    </body>\r\n</html>");
        catch(Throwable __ee)
            if(!(__ee instanceof SkipPageException))
                for(; out != null && out != _originalOut; out = pageContext.popBody());
                _releaseTags(pageContext, _activeTag);
                pageContext.handlePageException(__ee);
    private static boolean _WL_ENCODED_BYTES_OK = true;
    private static final String _WL_ORIGINAL_ENCODING = "US-ASCII".intern();
    private static final String _wl_block0 = "\r\n";
    private static final byte _wl_block0Bytes[] = _getBytes("\r\n");
    private static final String _wl_block1 = "\r\n\r\n";
    private static final byte _wl_block1Bytes[] = _getBytes("\r\n\r\n");
    private static final String _wl_block2 = "\r\n<html>\r\n    <head>\r\n        <script type=\"text/javascript\">\r\n          function preloader() {\r\n              document.getElementById(\"loading\").style.display = \"none\";\r\n              document.getElementById(\"content\").style.display = \"block\";\r\n          }\r\n          //preloader\r\n         // window.onload = setTimeout(preloader, 10000);\r\n        </script>\r\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"></meta>\r\n        <meta http-equiv=\"Connection\" content=\"keep-alive\"></meta>\r\n        <link type=\"text/css\" rel=\"stylesheet\" href=\"CSS/GridTable.css\"/>\r\n    </head>\r\n    <body>\r\n        <table width=\"100%\" height=\"100%\" class=\"gridtable\">\r\n            <tr height=\"80\">\r\n                <th colspan=\"2\">\r\n                    ";
    private static final byte _wl_block2Bytes[] = _getBytes("\r\n<html>\r\n    <head>\r\n        <script type=\"text/javascript\">\r\n          function preloader() {\r\n              document.getElementById(\"loading\").style.display = \"none\";\r\n              document.getElementById(\"content\").style.display = \"block\";\r\n          }\r\n          //preloader\r\n         // window.onload = setTimeout(preloader, 10000);\r\n        </script>\r\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"></meta>\r\n        <meta http-equiv=\"Connection\" content=\"keep-alive\"></meta>\r\n        <link type=\"text/css\" rel=\"stylesheet\" href=\"CSS/GridTable.css\"/>\r\n    </head>\r\n    <body>\r\n        <table width=\"100%\" height=\"100%\" class=\"gridtable\">\r\n            <tr height=\"80\">\r\n                <th colspan=\"2\">\r\n                    ");
    private static final String _wl_block3 = "\r\n                </th>\r\n            </tr>\r\n             \r\n            <tr>\r\n                <td>\r\n                   <div id=\"loading\" align=\"center\" style=\"display:block\">\r\n                        <img src=\"images/loader.gif\" alt=\"Loading...\" ></img><br>\r\n                        <p> Please wait. Report generation is in progress. <br>\r\n                           Report generation time depends on number of reports submitted.</p>\r\n                    </div>\r\n                    <div id=\"content\" align=\"center\" style=\"display:none\" >\r\n                        Report Generation Results.<br><br>\r\n                       \r\n                         \r\n                        ";
    private static final byte _wl_block3Bytes[] = _getBytes("\r\n                </th>\r\n            </tr>\r\n             \r\n            <tr>\r\n                <td>\r\n                   <div id=\"loading\" align=\"center\" style=\"display:block\">\r\n                        <img src=\"images/loader.gif\" alt=\"Loading...\" ></img><br>\r\n                        <p> Please wait. Report generation is in progress. <br>\r\n                           Report generation time depends on number of reports submitted.</p>\r\n                    </div>\r\n                    <div id=\"content\" align=\"center\" style=\"display:none\" >\r\n                        Report Generation Results.<br><br>\r\n                       \r\n                         \r\n                        ");
    private static final String _wl_block4 = "\r\n             <script type=\"text/javascript\">\r\n              window.onload = setTimeout(preloader, 60000);\r\n              </script>\r\n             ";
    private static final byte _wl_block4Bytes[] = _getBytes("\r\n             <script type=\"text/javascript\">\r\n              window.onload = setTimeout(preloader, 60000);\r\n              </script>\r\n             ");
    private static final String _wl_block5 = "\r\n             <script type=\"text/javascript\">\r\n              window.onload = setTimeout(preloader, 80000);\r\n              </script>\r\n             ";
    private static final byte _wl_block5Bytes[] = _getBytes("\r\n             <script type=\"text/javascript\">\r\n              window.onload = setTimeout(preloader, 80000);\r\n              </script>\r\n             ");
    private static final String _wl_block6 = "\r\n             <script type=\"text/javascript\">\r\n              window.onload = setTimeout(preloader, 100000);\r\n              </script> \r\n             ";
    private static final byte _wl_block6Bytes[] = _getBytes("\r\n             <script type=\"text/javascript\">\r\n              window.onload = setTimeout(preloader, 100000);\r\n              </script> \r\n             ");
    private static final String _wl_block7 = "\r\n                         \r\n                      <b>\r\n                            ";
    private static final byte _wl_block7Bytes[] = _getBytes("\r\n                         \r\n                      <b>\r\n                            ");
    private static final String _wl_block8 = "</b>\r\n                         Report Generation Failed\r\n                        <a href=\"";
    private static final byte _wl_block8Bytes[] = _getBytes("</b>\r\n                         Report Generation Failed\r\n                        <a href=\"");
    private static final String _wl_block9 = "\">click here</a>\r\n                         to see error.\r\n                         \r\n                        ";
    private static final byte _wl_block9Bytes[] = _getBytes("\">click here</a>\r\n                         to see error.\r\n                         \r\n                        ");
    private static final String _wl_block10 = "\r\n          <table>\r\n          <tr> <td width=\"55%\">\r\n           <b> ";
    private static final byte _wl_block10Bytes[] = _getBytes("\r\n          <table>\r\n          <tr> <td width=\"55%\">\r\n           <b> ");
    private static final String _wl_block11 = "</b> </td><td width=\"25%\">Ready</td>\r\n          <td width=\"50%\"><a href=\"";
    private static final byte _wl_block11Bytes[] = _getBytes("</b> </td><td width=\"25%\">Ready</td>\r\n          <td width=\"50%\"><a href=\"");
    private static final String _wl_block12 = "\" target=\"_blank\">click here</a></td></tr></table>\r\n            ";
    private static final byte _wl_block12Bytes[] = _getBytes("\" target=\"_blank\">click here</a></td></tr></table>\r\n            ");
    private static final String _wl_block13 = "\r\n                    </div>\r\n                    <br></br>\r\n                    <div id=\"backbutton\" align=\"center\">\r\n                        <a href=\"LoginSuccess.jsp\">Back</a>\r\n                    </div>\r\n                </td>\r\n            </tr>\r\n             \r\n            <tr height=\"40\">\r\n                <td colspan=\"2\">\r\n                    ";
    private static final byte _wl_block13Bytes[] = _getBytes("\r\n                    </div>\r\n                    <br></br>\r\n                    <div id=\"backbutton\" align=\"center\">\r\n                        <a href=\"LoginSuccess.jsp\">Back</a>\r\n                    </div>\r\n                </td>\r\n            </tr>\r\n             \r\n            <tr height=\"40\">\r\n                <td colspan=\"2\">\r\n                    ");
    private static final String _wl_block14 = "\r\n                </td>\r\n            </tr>\r\n        </table>\r\n    </body>\r\n</html>";
    private static final byte _wl_block14Bytes[] = _getBytes("\r\n                </td>\r\n            </tr>\r\n        </table>\r\n    </body>\r\n</html>");
    private static JspFunctionMapper _jspx_fnmap = JspFunctionMapper.getInstance();

Similar Messages

  • Request dispatcher and jsp pages called from servlets

              Given the following webapp directory structure:
              root/
              jsp/
              ..all jsp files
              web-inf/
              classes/
              /servlets
                   ..all servlet files
              /com
              ..all other java class files
              I have the jsp directory coded as: jspdir = "/jsp/" (and have tried variations
              on this theme)
              I try to open a new jsp page with the following code in a servlet in the above
              servlet directory:
                   RequestDispatcher rd;
                   rd = getServletContext().getRequestDispatcher(jspdir + myjsp.jsp);
                   rd.forward(req, res);
              rd continues to return null.
              The jsp pages are not registered in the web.xml file for this webapp, if that
              makes any difference.
              Does anyone have any suggestions?     
              [problem.txt]
              

    I create a small sample and put these files into /jsp in my war context
              it works fine, please send me the example code you are using and the
              environment description of the deployed application
              I attached my samples, that work
              Filip
              ~
              Namaste - I bow to the divine in you
              ~
              Filip Hanik
              Software Architect
              [email protected]
              www.filip.net
              "Bill Blackmon" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Yes, I am able to access the jsp pages with the url listed.
              >
              > "Filip Hanik" <[email protected]> wrote:
              > >The weblogic servlet engine, is by default mapping anything that ends
              with
              > >*.jsp to be a JSP.
              > >so there shouldn't be a problem. You didn't answer my first question,
              > >are you able to access your JSP through the browser?
              > >http://localhost:7001/root/jsp/myjsp.jsp
              > >
              > >Filip
              > >
              > >--
              > >~
              > >Namaste - I bow to the divine in you
              > >~
              > >Filip Hanik
              > >Software Architect
              > >[email protected]
              > >www.filip.net
              > >"Bill Blackmon" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> The code you are reading in the message here was pasted in and
              > >> looks bad, so maybe that's what you are referring to? The dispatcher
              code
              > >is called
              > >> in the service() method of the servlet.
              > >> I have a suspicion that the jsp directory needs to be defined someplace
              > >-
              > >weblogic.properties
              > >> or web.xml?, though I don't see this in any of the examples that come
              > >with
              > >the product.
              > >>
              > >>
              > >>
              > >> "Simon Ng" <[email protected]> wrote:
              > >> >
              > >> >Hello Bill,
              > >> > Did you put a <BR>
              > >> >return;
              > >> ><BR>
              > >> >statement right after the dispatcher.forward() statement? Well, I am
              > >assuming
              > >> >your
              > >> >code is in the doPost() or doGet() methods.
              > >> >
              > >> >Simon
              > >> >
              > >> >
              > >> >"Filip Hanik" <[email protected]> wrote:
              > >> >>if you do http://localhost:7001/root/jsp/myjsp.jsp
              > >> >>
              > >> >>do you get a result?
              > >> >>
              > >> >>make sure you have the right character case on the filename.
              > >> >>
              > >> >>Filip
              > >> >>
              > >> >>--
              > >> >>~
              > >> >>Namaste - I bow to the divine in you
              > >> >>~
              > >> >>Filip Hanik
              > >> >>Software Architect
              > >> >>[email protected]
              > >> >>www.filip.net
              > >> >>"Bill Blackmon" <[email protected]> wrote in message
              > >> >>news:[email protected]...
              > >> >>>
              > >> >>> Given the following webapp directory structure:
              > >> >>> root/
              > >> >>> jsp/
              > >> >>> ..all jsp files
              > >> >>> web-inf/
              > >> >>> classes/
              > >> >>> /servlets
              > >> >>> ..all servlet files
              > >> >>> /com
              > >> >>> ..all other java class files
              > >> >>>
              > >> >>>
              > >> >>> I have the jsp directory coded as: jspdir = "/jsp/" (and have tried
              > >> >>variations
              > >> >>> on this theme)
              > >> >>> I try to open a new jsp page with the following code in a servlet
              > >in
              > >> >the
              > >> >>above
              > >> >>> servlet directory:
              > >> >>> RequestDispatcher rd;
              > >> >>> rd = getServletContext().getRequestDispatcher(jspdir + myjsp.jsp);
              > >> >>> rd.forward(req, res);
              > >> >>>
              > >> >>> rd continues to return null.
              > >> >>>
              > >> >>> The jsp pages are not registered in the web.xml file for this
              webapp,
              > >> >>if
              > >> >>that
              > >> >>> makes any difference.
              > >> >>>
              > >> >>> Does anyone have any suggestions?
              > >> >>>
              > >> >>
              > >> >>
              > >> >
              > >>
              > >
              > >
              >
              [filipInclude.jsp]
              [filipForward.jsp]
              [filip.jsp]
              

  • Urgent....How can i redirect to my jsp page from servlet in init() method..

    How can i redirect to my jsp page from servlet in init() method..Becoz that servlet is calling while server startsup..so im writing some piece of code in init() method..after that i want to redirect to some jsp page ...is it possible?
    using RequestDispatcher..its not possible..becoz
    RequestDispatcher rd = sc.getRequestDispatcher("goto.jsp");
    rd.foward(req,res);
    Here the request and response are null objects..
    So mi question can frame as how can i get request/response in servlet's init method()..

    Hi guys
    did any one get a solution for this issue. calling a jsp in the startup of the servlet, i mean in the startup servlet. I do have a same req like i need to call a JSP which does some data reterival and calculations and i am putting the results in the cache. so in the jsp there in no output of HTML. when i use the URLConnection i am getting a error as below.
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:707)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:705)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:519)
    at com.toysrus.fns.alphablox.Startup.callJSP(Unknown Source)
    at com.toysrus.fns.alphablox.Startup.init(Unknown Source)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
    so plz do let me know how to call a jsp in the start up of a servlet.
    Thanks
    Vidya

  • Error message from servlet to jsp

    Hi again,
    I have servlet and check error on this servlet then i would like
    to send error message to jsp page.Every error message will send to
    same JSP page.So JSP must receive message from Servlet.Can i do this?
    Please give me details and some sourcecode.I will appreciate for your helps.

    you could do something like this..
    request.setAttribute("error", stringErrormessage);
    Then in the jsp just do
    <%= request.getAttribute("error") %>
    That will print an errormessage.
    Basically, by setting anything on the request and then redirecting to that page you cn display it...
    //Johan

  • Hi, i've a question, how to comunicate from servlet to a JSP and viceversa?

    i would like to know how to do this and if its possible an example i'll appretiate it much. thanks

    You have a mechanism called "forwarding", with which you can pass control from one resource (servlet/jsp) to another resource (servlet/jsp). You do this using a RequestDispatcher, which you can get from the HttpServletRequest object. If for example you want to forward to "index.jsp" which is in the root of your web application, you would do this in your servlet:
    RequestDispatcher rd = request.getRequestDispatcher("/index.jsp");
    rd.forward(request, response);
    return;(watch the return statement, you must manually return after a forward, or else the servlet will continue executing!). A forward will NOT create a new request, the same request is passed to the new resource (to create a new request, use a redirect in stead, also done with the RequestDispatcher).
    To pass objects between the two resources when doing a forward, use request.setAttribute(), request.getAttribute() and jsp:useBean.

  • Applet in jsp from servlet, but error: ClassNotFoundExcep

    The problem that I'm having is already mentioned a couple of times in this forum, but unfortunately I haven't found a solution, in thread http://forum.java.sun.com/thread.jspa?forumID=33&threadID=239405 is proposed solution but it's not working for me.
    I'm developing a project in IBM's Websphere Developer Studio 5.1.1. and JRE that I'm using for this project is 1.4.2. I have created servlet "CompanyDocument.java" and applet "SimpleApplet.java". Applet was created as single project and then imported into this one, that means that it's contained in current project as "SimpleAppletPackage.jar". I have placed jar in folder "Applets", Websphere automatically creates folder "simpleAppletPackage" and in it's root complied "SimpleApplet.class".
    When I put following code in the jsp page applet works correctly when application is runed.
    <APPLET code="simpleAppletPackage/SimpleApplet.class" codebase="Applets" archive="SimpleAppletPackage.jar" width="250" height="250"></APPLET>
    But I wanted to create jsp from servlet. So I used this code within servlet:
    out.print("<APPLET code=\"simpleAppletPackage/SimpleApplet.class\" codebase=\"Applets\"");
    out.print("archive=\"SimpleAppletPackage.jar\" width=\"250\" height=\"250\"></APPLET>");
    But I get an error (when running, no error when compiling). The error is copied from Java console:
    load: class simpleAppletPackage/SimpleApplet.class not found.
    java.lang.ClassNotFoundException: simpleAppletPackage.SimpleApplet.class
    at sun.applet.AppletClassLoader.findClass AppletClassLoader.java:162)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:566)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:619)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:548)
    at sun.applet.AppletPanel.run(AppletPanel.java:299)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:265)
    at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43)
    at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149)
    ... 9 more
    In the same time I'm creating some more code from servlet and it works with no errors and is shown in browser properly (it consists of connection to Oracle, formatting table, and presenting data within that table).
    Any idea? I'm totally stuck.

    In your browser, look at the HTML code that gets sent to the browser and see if there is something wrong with it.
    Specifically, I would look at the code near the <APPLET ..></APPLET> tags, both before and after and look for stray quotes, brackets, or what not.
    Finally, I would look inside the <APPLET ...> tag. It appears to me that the output will probably be:
    <APPLET code="simpleAppletPackage/SimpleApplet.class" codebase="Applets"archive="SimpleAppletPackage.jar" width="250" height="250"></APPLET>See, you may be missing a space between the "Applets" and the archive=. Try making the second out.print look like this:
    out.print(" archive=\"SimpleAppletPackage.jar\" width=\"250\" height=\"250\"></APPLET>"); See the extra space at the start of the output?

  • Pass data from servlet to jsp using sendRedirect

    Hi,
    I am passing data from servlet to jsp using forward method of request dispatcher but as it doesn't change the url it is creating problems. When ever user refreshes the screen(browser refresh) it's re-loading both servlet and jsp, which i don't want to happen. I want only the jsp to be reloaded.
    Can I pass data from servlet to jsp using sendRedirect in this case. I also want to pass some values from servlet to jsp but without using query string. I want to set some attributes and send to jsp just like we do for forward method of request dispatcher.
    Is there any way i can send data using attributes(without using query string) using sendRedirect? Please let me know

    sendRedirect is meant as a true redirect. meaning
    you can use it to redirect to urls not in your
    context....with forward you couldn't pass information
    to jsps/servlets outside your own context.Actually, you can:
    getServletContext().getContext("/other").getRequestDispatcher("/path/to/servlet").forward(request, response)I think the issue here is that the OP would like to have RequestDispatcher.forward() also update the address in the client's browser. That's not possible, AFAIK. By the time the request is forwarded, the browser has already determined the URL of the servlet, and the only I know of way to have the browser change the URL to the forwarded Servlet/JSP is to send a Location: header (i.e. sendRedirect()). Remember that server-side dispatching is transparent to the client. Maybe there's some tricky stuff you can do with JavaScript to change the address in the address bar without reloading the page?
    Brian

  • How to send a message from Servlet to JSP

    Dear all,
    I have JSP, with JavaScript (AJAX). If the user click on the button, the text will be sent to a Servlet parsed by doGet() and the user get a response to his input, without reloading a page.
    How can I send a message to the users (JSP) from Servlet, if he didn't clicked any button and to other visitor of the page also? Is it possible? I think like a chat, the server sends a message to all users who are subscribed.
    I don't know, what should I get from user, maybe session, that I could send him personal or common messages in his textarea. I should also invoke some JavaScript function to update his page. I have met some chats, you don't do nothing and get messages. It is also without a JavaScript timer, which invokes doGet() method. Asynchronous, only when there is a message.
    Please help me with a problem.
    Thanks in advance.

    Hai ,
    You can send any message through response.sendRedirect();
    here is the coding try it
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class SimpleCounter extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    res.setContentType("text/plain");
    PrintWriter out = res.getWriter();
    String username="java";
    res.sendRedirect("http://localhost:8080/yourprojectname/jspfile.jsp?username="+username);
    }

  • How to pass a JavaBean from servlet to JSP?

    Hi there,
    I am working on a project that needs to handle quite a few client requests and I want to use the Front Controller pattern that is described in the J2EE pattern page.
    The steps described in the front controller pattern is that:
    1. A servlet (controller) process the client request.
    2. It calls the appropriate cammand object and the cammand object gets the data from the data source and returns a JavaBean that contains the required data.
    3. The servlet dispatch to the appropriate View (jsp page)
    4. The JSP page displays the data in the JavaBean to the user.
    However, I don't know how to pass the JavaBean from the servlet to the JSP page when the servlet forwards the control to the JSP page. Should I make the JavaBean with a request scope or higher? If so, how to uses it in the JSP page? Just refer by the ID of the JavaBean.
    If any one knows there is an example or tutorial on how to use this pattern, please let me know.
    Thank you !
    Regards
    Edmund

    Could you please give more info? i tried to do this, but always get a "Class not found exception":
    response$jsp.java:65: Class org.apache.jsp.TestBean not found. TestBean bean = null;
    although the class TestBean (no package name => defalt package) is in the WAR file and the Servlet seems to instantiate it (otherwise an exception would occur sooner in the TestServlet code).
    my JSP code is:
    <%@ page language="java" info="Response page" %>
    <jsp:useBean id="bean" class="TestBean" />
    <%
    TestBean bean2 = (TestBean) request.getAttribute("TheBean");
    %>
    <html>
    <body>
    Your value: <%= bean2.getValue() %><BR>
    My val: <%= bean2.getNewValue() %><BR>
    <P>
    Date: <%= new Date() %>
    <P>
    Neuen Wert eingeben
    </body>
    </html>
    --------------

  • How to send the values from servlet to jsp

    hi folks,
    I need to send a lot of values from servlet to jsp so that i can display the values in jsp. Any sollution for this. Its very urgent.
    Thanks in advance

    Hi lieo,
    Can u send me the sample code for that.
    Thank q

  • How to call JSp from Servlet??

    Hello,
    I want to call JSP page from servlet.I am using Visual Age For java 3.4. What is wrong in my code??
    if (userExists) {
    f.setErrors("userName","Duplicate User: Try a different username");
    getServletConfig().getServletContext().
    getRequestDispatcher("/jsp/forms/retry.jsp").
    forward(request, response);
    I am not able to get the o/p. Pls help.

    I can't see anything obvious, but did you take any steps towards doing output before this code (like openning an output stream)?
    Not clear what f.setErrors does - presumably stuffs the error message in an attribute of the request.

  • Parameter passing from servlet to jsp page

    Hi
    I m facing problem of parameter passing from servlet to jsp ..
    plz help me...
    I m using as ...
    in servlet code I m using ...
    request.setAttribute("string",parameter);
    and in jsp..
    request.getParameter("string");
    regard's
    JAI KUMAR

    Hi Jaykumar
    You should use
    <%= request.getAttribute("sting") %> or
    ${string}
    in your jsp. I think you are trying to retrive the parameter instead of attribute.
    Thanks

  • JSP  redirect  servlets

    I'm new to jsp and servlets.I'm using jwsdp .
    my index.jsp will call a servlet and servlet will redirect to
    jsp.both jsp files are in the root
    (\jwsdp-1_0\webapps\ROOT)
    1) where should i save the servlet ??
    2) How do i call index.jsp action to servlert??
    is this correct?
    action="servlet\MyServlet";
    3) How do i come to my second jsp
    response.sendRedirect("/Mysecond.jsp");

    I don't use jwsdp so I can't help with the first question.
    If MyServlet is your servlet class name then 2 is correct. Normally you would declare your servlet and make a URL mapping in your web.xml file.
    eg:
    <web-app>
    <servlet>
    <servlet-name>ProcessOrdersServlet</servlet-name>
    <servlet-class>com.company.ProcessOrdersServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ProcessOrdersServlet</servlet-name>
    <url-pattern>/ProcessOrders</url-pattern>
    </servlet-mapping>
    </web-app>
    then in your jsp <form action="ProcessOrders">
    For question 3.
    If you have finished processing in your servlet and want to send the next display page to the browser use:
    request.getRequestDispatcher( "nextpage.jsp" ).forward( request, response );
    This will also preserve any parameters and attributes in the request object.

  • How to call the EJB methods from servlet/jsp

    Hello ,
    i have write one ejb signOn having the method validateUser(username,password).i can able to call this function from client.java class.i want to know whether i can call this function from servlet.if yes then where to write that servlet and web.xml file.
    At present i m using weblogic server 8.1and i create directory call c:\ejb\demo and put the ejb files(home ,remote,ejb class ,client.java) then i have created .jar file and put in application file.
    Now i want to create a servlet for that i have to create a new directory and put the servlet,web.xml,weblogin-web.xml file and then create one .war file and put in application directory or do some thing extra.Please help me.
    Thanks In Advance
    [email protected]

    I think this might not be the most appropriate forum for your question. You might try a forum about ejb, or weblogic, or jndi.

  • Passing value from Servlet to JSP back to Servlet

    Hi all,
    I have a jsp page where a user submits a search string into a text box. The jsp forwards to a servlet which calls some java classes and checks a database. The classes generate a string which contains some html. The servlet then forwards back to the jsp which displays the the string:
    <c:out escapeXml="false" value="${requestScope.ampList}" />The user then performs another action on this outputted html which is a listbox and when the user clicks on the listbox the onchange method submits the form. The JSP forwards the listbox value and I would like it to forward the "ampList" as well but I cant figure out how to do this.
    Using a hidden input does not work because the string contains HTML. Does anyone have any ideas. I can just keep the search string stored a hidden input box but I would prefer not to regenerate the "ampList" as it means accessing the database again which will cause performance issues.
    Thanks for any input in advance,
    Tom

    Ha,
    Writing that message gave me an idea which worked:
    <input type="hidden" name="ampList" value="<c:out escapeXml="true" value="${requestScope.ampList}" />" />

Maybe you are looking for

  • Switching back to windows

    First off, I'm not sure if this belongs in the right section... Anyway, my dad had to take the mac to his office and bought a windows for regular use at home because we weren't fully happy with a mac. Before deleting the files on the mac, i saved the

  • Pages not cropping or rotating in Acrobat Professional 8.3.1

    I am using Acrobat Professional 8.3.1 on Mac 10.5.6. When cropping or rotating pages in Press Quality PDFs I have created in Distiller, the operation is sometimes ignored or says can't find pages when all is selected, choosing the option a number of

  • Mail Configuration in Nokia C5-00

    I am facing problem in configuring Email in my new Nokia C5-00. I am following below steps, Menu->Application->Email->New mail box, Entering Mailid (with domain [email protected], [email protected]) & Password, Next screen is getting with "Validating

  • Adobe Reader 9, Installer error 1635

    Hi, I have a problem updating Adobe Reader 9.4.2. to version 9.4.3 Direct after starting the update I receive the installer error: "1635 This patch package could not be opened. Verify that the patch package exists and that you can access it, or conta

  • Address Card photo disappears when exporting in Leopard

    Hi guys, Has anyone else out there experienced this? I can't see anything on the forums. When I export a vCard, the photo disappears. It doesn't matter which method I use (dragging the card to the desktop or exporting via the pull down menu). Thought