JSP is compiled into html on the server, so resetting selection boxes based upon
data input should be done in Javascript. Simple data validation is a good
example (i.e. you need a numerical entry).
As far as your second issue, it really depends on what "actions" are being done.
JSP can only do as much as HTML on the client side. The power of JSP is the
processing on the server.
As a recommendation, I would use JSP model 2.
-Ed
"Tom Miller" <[EMAIL PROTECTED]> on 06/06/2000 12:59:39 PM
Please respond to "A mailing list about Java Server Pages specification and
reference" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: EDWARD M. BORISO/EMPL/VA/Bell-Atl)
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