Discussions

Web tier: servlets, JSP, Web frameworks: How do I write Javascript in a servlet ?

  1. How do I write Javascript in a servlet ? (2 messages)

    I need to write a client side "confirm" javascript in a servlet. Can anyone help me how to write that ?
  2. Hi,

    It is just as you write html in a servlet
  3. Embed your HTML in your servlet in the out.println and write the necessary Javascript as required. Also ,please remember that you are generating a DHTML through Servlet mostly and just embed the javascript inside..


    Prasath Balakrishnan
    prasathb@yahoo.com