Hi,

  Let me know can't we embed a Java Script as follows, it gives an error at the
run time what's wrong.What this code does is, once U click the button it
calls the function 'hello()'.for the time being ignore the other stuff.
Can't we concatenate strings as I have done.



public class simpleservlet  extends HttpServlet{
  public void doGet(HttpServletRequest req,HttpServletResponse res)
               throws ServletException,IOException {
....
...
out.println("<HTML><HEAD>");
out.println("<script language=javascript>");
out.println("fuction hello()");
out.println("{confirm("+"Are U there"+");}");
out.println("</script>");
....
out.println("<input type=button value=Click onclick="+"hello()"+">");
...
...

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to