Getting to next JSP from Servlet

I am getting a 404 when I try to redirect from my servlet to an error page. The code that I am testing is....
catch (SQLException es)
LOG.error("Unexpected error in Login.createUser.Error
message = " + es);
session.setAttribute(Constants.MESSAGE, es.getMessage());
session.setAttribute(Constants.ERROR_TITLE, "Login error: " + Constants.SQL_ERROR);
resp.sendRedirect(Constants.ERROR_PATH);
I have a compiled java class called Constants where the ERROR_PATH is defined as
/** Constant name used in obtaining the path to the error page. */
public static final String ERROR_PATH = "/Jsp/error.jsp";
My JSP pages are located at the root...
myapp
....Jsp
....WEB-INF
........classes
My web.xml looks like this
<servlet>
<servlet-name>errorPage</servlet-name>
<jsp-file>/Jsp/errorPage.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>error</servlet-name>
<url-pattern>/Jsp/error.jsp</url-pattern>
</servlet-mapping>
Can anyone point me in the right direction....Thanks

I tend to use a utility method called redirectToResource in particular to redirect from any servlet to any JSP :
/** This method will still work when the server is configured to
*   listen to  port 80 rather than port 8080 (default in Tomcat)
public void redirectToResource (HttpServletRequest req,
                                 HttpServletResponse resp,
                              String resourceName)
                     throws ServletException, IOException
   int serverPort    = req.getServerPort();
   String scheme     = req.getScheme();
   String serverName = req.getServerName();
   StringBuffer urlBuffer = new StringBuffer(40);
   urlBuffer.append(scheme + "://" + serverName);
   urlBuffer.append(":" + serverPort);
   urlBuffer.append(resourceName);
    String location = resp.encodeRedirectURL(urlBuffer.toString());
    resp.sendRedirect(location);
}

Similar Messages

  • 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?

  • 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.

  • Returning ResultSet to jsp from servlet

    Hi,
    I am trying to return a ResultSet (generated in servlet) to a jsp page, but get a "java.lang.ClassCastException" error. Here is my description of what i'm doing....
    I have a search screen (SearchInventory.jsp) that the user goes to to perform the search based on a few variables. When the search button is clicked, i go to a servlet (SearchInventory.java) which gets a ResultSet. In the servlet, i am storing the ResultSet into a bean object, and finally use the RequestDispatcher to redirect to the .jsp page. (and get the "java.lang.ClassCastException" error).
    Here is the relevant code from all parts of the app:
    SearchInventory.java:---------------------------------------------------------------------
    SearchBean sbean=new SearchBean();
    String QueryStr="select ProdName from products";
    Statement stmt=conn.createStatement();
    rs=stmt.executeQuery(QueryStr);
    sbean.setSearchRS(rs);
    req.getSession(true).setAttribute("s_resbean",sbean);
    HttpSession session=req.getSession(true);
    session.setAttribute("s_resbean",rs);
    req.setAttribute("sbean",rs);
    String url="/SearchInventory.jsp";
    RequestDispatcher dispatcher=getServletContext().getRequestDispatcher(url);
    dispatcher.forward(req,res);
    SearchBean.java:
    public class SearchBean extends HttpServlet{
    private int searchFlag=0;
    private static ResultSet searchRS;
         public void setSearchRS(ResultSet rs){
              this.searchRS=rs;
    And finally, the .jsp page..SearchInventory.jsp:
    <%@ page language="java" import="java.lang.*,java.sql.*,javax.sql.*,PopLists.PopInvLists,beans.SearchBean"%>
    <jsp:useBean scope="session" id="s_resbean" class="beans.SearchBean" />
    ResultSet search=(ResultSet)request.getAttribute("s_resbean");
    If i don't cast it to type ResultSet, i get the following error, which leads me to believe that i should be casting it to a Result Set.
    C:\Apache\tomcat_4.1.29\work\Standalone\localhost\DBTest\SearchInventory_jsp.java:75: incompatible types
    found : java.lang.Object
    required: java.sql.ResultSet
    ResultSet search=request.getAttribute("s_resbean");
    Please help...
    Thanks in advance,
    Aditya.

    Yikes...i realized some of my many problems...i'm using setAttribute multiple times here...(shown by arrows at the end)
    sbean.setSearchRS(rs);
    req.getSession(true).setAttribute("s_resbean",sbean);//<--
    HttpSession session=req.getSession(true);
    session.setAttribute("s_resbean",rs);//<--
    req.setAttribute("sbean",rs);//<--
    I've tried using one at a time since, and it still doesn't work. How exactly should i be setting the attribute. I don't think any of the methods listed above are completely correct...cause it's never worked!:(
    Is anything that i've done correct? (ie. bean/jsp). I'm really starting to doubt myself now. I've been reading up on this, and some people say that one shouldn't return a ResultSet to the jsp, but instead return an ArrayList. Is this correct? If so, how do i convert an ResultSet to an ArrayList?
    -Aditya.

  • Passing vectors into JSP from Servlet and passing data back to Servlet

    I have been building an MVC application.
    It has a controller which instantiates classes and evokes methods to
    populate vectors. These vectors are then passed into a JSP. This part of the application works fine.
    What I am having trouble with is a new JSP I have designed; this will
    display the data that is actioned by the FORM action. This is actioned
    based on the Search criteria entered by the user. Based on this a further vector is populated and brought back to the JSP as a vector
    and this is rendered via the TABLE tag. Again this works fine.
    Against each of the rows displayed, I have a print checkbox which can be checked by the user. On checking the records they want to print, they should then hint a Print button which should go back to the Servlet and print the data. THIS IS WHERE I HAVE THE PROBLEM. On going
    back to the servlet the checkbox values are not displayed, rather
    the values that initially populate the JSP. How do I get these new values back into the vector and hence accessible from the Servlet.
    Any help with be very much appreciated.
    Chris

    Thanks for this.
    Just to clarify I am not using Struts.
    What I am having difficulties with is the fact that:
    I can't get the checked values back to the Servlet - they keep the values they have in the bean - so as part of instantiating the bean class I set the value of the item to 'off'. The user will then check
    the checkbox which should presumbably set the value to 'on'. This isn't happening because the setter method of the bean is not evoked again
    because I don't come into this JSP again - the Servlet has finished here
    and now needs to print the records. It can't do this because as
    far as it is concerned nothing has changed since it last passed through
    the vector to the JSP.
    Even when I do the following:
    Enumeration paramNames = request.getParameterNames();
    String param = null;
    while (paramNames.hasMoreElements())
    param=(String)paramNames.nextElement();
    System.out.println("parameter " + param + " is " +
    request.getParameter(param));
    what comes back is the valus of 'off' as opposed to 'on'.
    The other thing is that 'request.getParameterNames()' only works
    with the first record in the vector, i.e. it doesn't fetch any other
    records that are rendered in the <TABLE> tag.
    In desperation is there anybody out there who can help me.
    Thanks
    Chris
    I am going to assume you are using a MVC framework
    like Struts or very similar (I am assuming that from
    the language you are using).
    When the servlet passes the vector back to the JSP
    page and you render the HTML that is passed back the
    client your Vector is gone. The Vector is not
    available at the HTML level that is being viewed at
    the browser.
    When the user selects the checkboxes and submits the
    page (by clicking the print button) the controller
    servlet (called ActionServlet in Struts, yours maybe
    called something else) forwards the request to the
    appropriate JavaBean and Servlet to process the
    request. Either the JavaBean has to recreate the
    Vector (not recommended) or the processing Servlet can
    (better). You can do this by recreating the Vector
    from scratch for the HttpRequest parameters or, at the
    time of the initial request, saving Vector to a
    session and then updating with the data you get back
    from the client (again from the HttpRequest
    parameters).
    Either way you have to work with
    HttpRequest.getParameter().

  • How to go to new jsp from servlet.

    In the results page, if a button is clicked, i go to servlet, then come back to display data from database in another page. It works fine but the problem is that I wnat to open up a new browser and display the target page there and not the results page.
    results.jsp --> click button --> go to servlet --> display data on resultDetails.jsp (same browser window).
    I want resultDetails.jsp in a new browser window.
    my code in results.jsp is:
    <input type = \"button\" onclick = \"location.href = 'Controller.wss?page=RESULT_DETAILS_PAGE&cmd_id="+cmdId+"'\" value = \"see details..\">
    how can i change this. I am using java in jsp and out.println for any html content.
    Thank you in advance. Any help (with/without) examples would be appreciated.
    Bhavna.

    1. Create a jsp (popup.jsp) file with the content you want for the pop up window (eventually read some parameters from the request, if you need)
    2. when creating the resultDetails.jsp generate a JavaScript that opens the pop-up jsp file using someting like:
    <script>
    window.open("popup.jsp?param1=<%=param1%>&param2=<%=param1%>");
    </script>

  • Getting .txt file data from servlet

    I am having problem finding the file I use "reguli.txt" to define page rules of a website.
    I use this file in a servlet.The file I copied it in the project folder,and also in /web/web-inf folder.
    The problem is I cant find the file without using all the path in this line: File filename = new File("reguli.txt");
          String filepath = filename.getAbsolutePath();
                FileInputStream file = new FileInputStream(filepath);
                InputStreamReader isr = new InputStreamReader(file);
                BufferedReader br = new BufferedReader(isr); I tried also:
    ServletContext context = getServletContext();
                InputStream contextPath = context.getResourceAsStream("/reguli.txt");
                InputStreamReader isr = new InputStreamReader(contextPath);
                BufferedReader br = new BufferedReader(isr);And I still get the same error:
    SEVERE: StandardWrapperValve[Servleet]: PWC1406: Servlet.service() for servlet Servleet threw exception
    java.io.FileNotFoundException: D:\Users\Stefan\GlassFish_v3_Prelude\glassfish\reguli.txt (The system cannot find the file specified)
    What am I doing wrong?

    Put the file directly under your webapps root context and access using following code
            String filename = "/InputFile.txt";
            ServletContext context = getServletContext();
            InputStream is = context.getResourceAsStream(filename); regards,
    nirvan.

  • 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 get the next FACTORYDATE

    Hello all,
    Can somebody show me how to get the next (FACTORYDATE) from SAP in the objective to check and validate the shipto date in the ISA b2b application.
    Thanks in advance.

    Hi Manuel,
    my email: [email protected]
    thank you in advance,
    Djamel.

  • Next Double from a String

    I have used a Scanner Object before to read doubles from an input, but how do I get the Next double from a String?
    Used this in the past:
    Scanner input = new Scanner(System.in);
    double num = input.nextDouble();I am looking for something like this:
    String example = "100.00";
    double num = example.nextDouble();Any suggestions?

    Specifically a String like this "50.05text", where it will drop the "text" part. and only return 50.05.

  • How to get an ArrayList Object in servlet from JSP?

    How to get an ArrayList Object in servlet from JSP?
    hi all
    please give the solution for this without using session and application...
    In test1.jsp file
    i am setting values for my setter methods using <jsp:usebean> <jsp:setproperty> tags as shown below.
    After that i am adding the usebean object to array list, then using request.setAttribute("arraylist object")
    ---------Code----------
    <jsp:useBean id="payment" class="com.common.PaymentHandler" scope="request" />
    <jsp:setProperty name="payment" property="strCreditCardNo" param="creditCardNumber" />
    <%-- <jsp:setProperty name="payment" property="iCsc" param="securityCode" /> --%>
    <jsp:setProperty name="payment" property="strDate" param="expirationDate" />
    <jsp:setProperty name="payment" property="strCardType" param="creditCardType" />
    <%--<jsp:setProperty name="payment" property="cDeactivate" param="deactivateBox" />
    <jsp:setProperty name="payment" property="fAmount" param="depositAmt" />
    <jsp:setProperty name="payment" property="fAmount" param="totalAmtDue" /> --%>
    <jsp:useBean id="lis" class="java.util.ArrayList" scope="request">
    <%
    lis.add(payment);
    %>
    </jsp:useBean>
    <%
    request.setAttribute("lis1",lis);
    %>
    -----------Code in JSP-----------------
    In testServlet.java
    i tried to get the arraylist object in servlet using request.getAttribute
    But I unable to get that arrayObject in servlet.....
    So if any one help me out in this, it will be very helpfull to me..
    Thanks in Advance
    Edward

    Hi,
    Im also facing the similar problen
    pls anybody help..
    thax in advance....
    Litty

  • Unable to get the errorlogin.jsp to run correctly in a servlet.

    I am attempting to read the users input using jsp and run the servlet LoginServlet to cross check the database to see if that are in the database. The problem i am having is that i can get the login working but am unable to get the errorlogin to run if the details are incorrect. Can anyone see where i have gone wrong? Thanks!
    package Login;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class LoginServlet extends HttpServlet {
        @Override
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            try {
                try {
                    Connection con = DBConnect.DbConnection.getConnection();
                    Statement st = con.createStatement();
                    String user = request.getParameter("t1");
                    String pass = request.getParameter("t2");
                    String strSQL = "SELECT username, password FROM users "
                            + "WHERE username = '" + user + "' "
                            + "AND password = '" + pass + "'";
                    ResultSet rs = st.executeQuery(strSQL);
                    String username, password;
                    HttpSession session = request.getSession();
                    while (rs.next()) {
                        username = rs.getString("username");
                        password = rs.getString("password");
                        if (user.equals(username) && pass.equals(password)) {
                            response.sendRedirect("next.jsp");
                        } else {
                            response.sendRedirect("errorlogin.jsp");
                } catch (ClassNotFoundException cnfe) {
                    cnfe.getMessage();
            } catch (SQLException sqle) {
                sqle.getMessage();
    }

    How do You ensure that an exception is raised? Do You see any info in log files?
    Not sure if this helps but try:
        response.sendRedirect(request.getConextPath()+"/errorlogin.jsp");In this case errorlogin.jsp should be put on the same level as WEB-INF directory is.

  • Accessing String assigned in a JSP from a Servlet?

    Hello all, I was wondering if there is a way to access a String object that was assigned by an HttpSession object in a JSP from a Servlet. What happens is, in my application a user logs in, an HttpSession object is instantiated and all of the user credentials are assigned within a JSP like:
    HttpSession httpSession = request.getSession( false );
    String userName = httpSession.getAttribute("userName);
    ...{code}
    Next, I have a Servlet (which is really just a Proxy to a different server), that I need to log some information with, namely the userName String. Is there a way I can access that String without instantiating another HttpSession object? Because when the timeout occurs (or when the user clears his cache I have found), the HttpSession becomes invalidated (even if I use  +HttpSession#getSession( true )+) and the +HttpSession#getAttribute+ call fails (userName is just null). So is this possible to do?
    Thanks in advance!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    dnbphysicist wrote:
    I understand you cannot recover attributes from a dead session, this is why I wanted to be able to access a variable that is pulled from the Session immediately after login so I can still get to it even once the session is dead.
    Normally a session doesn't go dead after login.
    I imagine that by using application scope the app would confuse the userName with other users that are logged in?Certainly. It was just an example. But your data clearly belongs in the session, so just keep it in the session. If the session get invalidated while it should not get invalidated, then your problem truly lies somewhere else.
    I am definitely not arguing you latter point either :) A lot of this code I inherited unfortunately from previous developers and we are in desperate need of a redesign.I wish you much luck with that.

  • Passing database results from servlets to jsp

    Hi everyone,
    I have been trying to do what i thought would be a very simple thing...perform a search based on some criteria, and return the query result back to be displayed on a jsp page.
    I have a jsp page where some dropdown lists are populated on entry to the page. This works fine. I want to (eventually!) perform the search based on what is selected in these dropdowns. When i click the search button, i invoke a servlet called "SearchInventory.java" which gets the result. I then store this result in an ArrayList object. I then set a bean property (bean name->SearchBean, property->inventory) from within the servlet, and redirect back to the search page. This works if the query only gets back one column.
    Unfortunately, when i ask for more than one column in the query, i get a "java.lang.NullPointerException" error.
    Here is my code for all segments:
    JSP:
    <%@ page language="java" import="java.util.ArrayList,java.lang.*,java.sql.*,javax.sql.*,PopLists.PopInvLists,beans.SearchBean"%>
    <%
    SearchBean sbean=new SearchBean();
    ArrayList myAry=sbean.getInventory();
    int size=myAry.size();
    %>
    <%
              for(int i=0;i<size;i++){
                   String pname=(String)myAry.get(i);
         %>               
    <%}%>
    Servlet:
    String QueryStr="select ProdName,ManufName from products";// where ProdID="+ProdID;
    Statement stmt=conn.createStatement();
    rs=stmt.executeQuery(QueryStr);
    while(rs.next()){
         rowAry.add(rs.getString(1));
         rowAry.add(rs.getString(2));
         rowSetAry.add(rowAry.clone());
    sbean.setInventory(rowSetAry);
    req.getSession(true).setAttribute("s_resbean",sbean);
    res.sendRedirect("/DBTest/SearchInventory.jsp");
    In the servlet, i have also tried the following method of redirecting back to jsp page:
    String url="/SearchInventory.jsp";
    RequestDispatcher dispatcher=getServletContext().getRequestDispatcher(url);
    dispatcher.forward(req,res);
    ...this gives me a java.lang.ClassCastException
    here is my "bean" class:
    public class SearchBean extends HttpServlet{
         private int searchFlag=0;
         private static ArrayList inventory;
         public static ArrayList getInventory(){
              return inventory;
         public void setInventory(ArrayList rs){
              this.inventory=rs;
    When i perform a query that selects just one column, and doesn't use any sort of search fields for selecting, it does seem to work. for eg, : "select ProdName from products" as the query will return the product names successfully.
    Now, i realize what i'm doing is not correct....however, i don't know what the correct way of doing this is. Can someone please please show me how i should be going about doing all of this? It really shouldn't be difficult, but I just can't seem to get it to work.
    Thanks in advance,
    Aditya

    U have instantiated a search bean and populated its member variable i.e Array list , and added that bean to the session as an attribute. Then again why u need to instantiate the search bean in the jsp page.
    What has to be done.
    In the jsp page instead of instantiating the search bean ,get the search bean from the session attribute.
    statement to be removed : SearchBean bean=new SearchBean()
    statement to be added : SearchBean bean = session.getAttribute("bean");

  • 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

Maybe you are looking for

  • Deactivate document splitting for company code in IDES

    Hi, am not able to deactivate document splitting. When I try to deactivate and then save an error pop up show the message 'Define the commitment item as a document splitting characteristics ' . The path for Deactivating the Doc splitting is SPRO---Fi

  • Apps no longer copy from phone to itunes

    Has anyone else seen this? I downloaded a few apps while on the go on to my iphone 3g. When I get home and try to sync again the apps never copy back into iTunes. Anyone have any ideas?

  • Error while starting sqlplus in SunSolaris-5.8

    Hello, I'm getting below error when I start sqlplus in sunOS-5.8. I'm just giving following command. $sqlplus It giving the error like, Message file sp1<lang>.msb not found Error 6 initializing SQL*Plus Any info on this would be very useful.. Thanks,

  • Tuning 12c Cloud Control (Grid).

    Hello All. Ive installed the latest version of 12c Cloud Control and since I was previously using 11gr2 Grid, I can tell you its amazingly improved! It still has the system moving window, but i like the way things are layed out and categorized now. I

  • I can't import my contacts

    Hi guys, anyone has any ideas why I can't import my hotmail contacts, when I check the console it shows this? Is there something wrong with the javascript library for windows live? It would be greatly appreciated if anyone can point us in the right d