Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing


  • 3 years ago

guys ur posted it's helping me the programme right there

  • This Question is Open
  1. shahad_7
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    import*; import javax.servlet.*; import javax.servlet.http.*; public class ExampServlet extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<title>Example</title>" + "<body bgcolor=FFFFFF>"); out.println("<h2>Button Clicked</h2>"); String DATA = request.getParameter("DATA"); if(DATA != null){ out.println(DATA); } else { out.println("No text entered."); } out.println("<P>Return to <A HREF="../simpleHTML.html">Form</A>"); out.close(); } }

  2. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy