Answered Questions

  • Pass Control from one JSP page to another

    Write Sample Code to pass control from one JSP page to another?

    raman

    • Nov 12th, 2014

    hi, you want to call it inside of server ? then save your values to session and do include ( if you want to continue on top page ) or (redirection) forward - if you want to finish on called page exa...

    delindia

    • Jan 3rd, 2012

    The RequestDispatcher objects forward method to pass the control. The response.sendRedirect method

    Code
    1. <%      response.sendRedirect("RedirectIfSuccessful.html");            %>
    2.  
    3. <%
    4. String st=request.getParameter("n");
    5. if(st==""){
    6. getServletContext().getRequestDispatcher("/form.jsp").forward(request, response);
    7. }
    8. else{
    9. getServletContext().getRequestDispatcher("/welcome.jsp").forward(request, response);
    10. }
    11. %>
    12.  

  • what is difference between runnable and thread ?why we use static class

    AMIT GURJAR

    • Sep 21st, 2012

    Sir please tell me that when a thread never return desired result then why we use it?