Lots of considerations here.......Javascript can keep your server requests
lower....
however, when databases are involved.........unless you can generate
Javascript arrays of small size (<200 items) and "pre-load" the HTML with
the data needed to process the screen, you are talking several server-side
trips.

Javascript's only real data repository with any usefullness is arrays.

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Hines, Bill
> Sent: Tuesday, June 06, 2000 1:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Design choices: JSP & Javascript
>
>
> Tom,
>
> JSP doesn't preclude JavaScript. We use JavaScript in our JSP pages to do
> things like change some select lists based on changes to others. Use the
> JavaScript onChange() call for those select boxes. We go out to
> the server,
> reload the contents of lists, and redisplay the page really fast. It works
> great.
>
> Bill Hines Hershey Foods
>
> -----Original Message-----
> From: Tom Miller [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 06, 2000 1:00 PM
> To: [EMAIL PROTECTED]
> Subject: Design choices: JSP & Javascript
>
> I have been asked to bring a bunch of PERL web functionality
> into a JSP environment. Many of the specs are requesting
> Javascript capabilities, like resetting "select" options on
> the fly, to match other "selection"s. I have read posts and
> book sections about the possibility of mixing Javascript and
> JSP, and have experimented a little. But I am asking myself,
> why not just do it all in JSP? and, is there anything
> available in Javascript that couldn't also be done in JSP,
> Beans, taglibs, etc.?
>
> Secondly, our chief designer would like to be able to
> control some actions to be "client side", preserving memory
> and processing resources on our server. If I opt for doing
> everything in JSP, does that preclude using client
> resources?
>
> Any thoughts or references will be appreciated.
>
> Tom Miller
>
> ==================================================================
> =========
> 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