Hey all,
        Sorry in advance for this long post.
        Here's a question for you all that are also familiar with doing
things using XML/XSL.
        I have a page that I'm implementing that has a select box. Depending
on the value that u select in the select box. The remaining input fields on
the page will change. I know that I could have done this with a javascript
(playing with innerhtml or something like) but there is way to much data and
it all comes from the server side. So instead.. I'm debating on 2 different
models.
        1) Everytime the select box changes values.. it posts back to a
Servlet and the Servlet gets the info that the page will need to update
before sending it back to the page.
        Works great (most of us probably have done it before). but i'm
concerned that this might create more network traffic than necessary.
        2) Implement that whole thing using an XML page that has ALL the
information and an XSL stylesheet that will show the select box and only the
information pertaining to the value in the select box. When a user selects a
new value.. javascript code will get kicked off to update the XSL with new
parameters and refresh the page.
        I dont know what the implications of that approach might be..
although earlier this week someone on this post mentioned that XSLT
translations killed performance on their server.
        Which approach do you think is better? Is there another approach
that I should consider?
-Tim

-------------------------------------
Gin-Ting Chen
[EMAIL PROTECTED]
727-738-3000 x6549
Sun Certified Programmer
Sun Certified Web Component Developer
BEA Certified Developer

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to