I would also recommend you evaluate the SRC attribute of the <SCRIPT> tag. I
have always found it better to farm out my scripts to a separate .js file.
Of course, you do need to download the file when the page loads but this is
more than offset by the following facts
- it is harder for your users to view your scripts since there are not part
of your page source
- you don't clutter your JSP with a lot of scripting. You just need the bare
minimum (event handler source points and the like)
- if you load the script file in all your JSPs, you can declare and maintain
global script variables. (remember that your scripts and script variables
are wiped out as your users move from page to page).

Good luck


-----Original Message-----
From: Naveen Gupta [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 21, 2000 11:01 PM
To: [EMAIL PROTECTED]
Subject: Re: How to combine javascipt within JSP ?


just use <script language="javascript">
          javascript functions
                <script>
in head of jsp file and it will work as in ordinary HTML files

-----Original Message-----
From: Muhammad Arsyad [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 6:28 AM
To: [EMAIL PROTECTED]
Subject: How to combine javascipt within JSP ?


Dear all,

Could you advise to me, How to combine javascript code within JSP ?
May be this is a dummy question or ugly question....  I'm sorry about
this,
cause I'm still new
on this.
I want to add javascript into my JSP, and I don't know how to make it.

thanks in advance.
regards,
arsyad.

========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
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".
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".
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

Reply via email to