Javascript is no different than HTML to your JSP page.
out.println("<script language=\"javascript\">alert(\"Foo\")</script>");
Is really no different than this:
out.println("Foo");
The servlet container does not care. It's just a string that is written to the
buffer and flushed to the client as an HTTP response. Abstract!
suhdkaar asdas wrote:
> hi
> plzz reply back if u have any doubts on this .... i am working on the same
> problem...
> thanks
> Sudhakar
>
> >From: "Vani V." <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: JSP and Java script
> >Date: Thu, 3 May 2001 18:40:20 +0530
> >
> >Hi,
> > Eduardo was right. You can put it like your HTML. If you still
> >want the actual syntax I have given it below.
> >
> ><script language="javascript">
> >Put your javascript code here
> ></script>
> >
> >Regards,
> >Vani V
> >
> >-----Original Message-----
> >From: Nikhil Singhal [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, May 03, 2001 3:18 PM
> >To: [EMAIL PROTECTED]
> >Subject: JSP and Java script
> >
> >
> >Hi all,
> >How can I add Java script code in my JSPs?
> >Suppose I have a JSP which displays an HTML form and it also has some
> >JSP
> >code for doing some DB retrival for the form. I need to verify some
> >fields
> >using Java script.
> >How can I do it?
> >Thanks
> >Nikhil
> >
> >========================================================================
> >===
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >===========================================================================
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
--
Erik I Morton
Software Developer
------------------
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets