Tommy:
Thanks again for you comments which I really enjoy.
Apologies to all for this thread being slightly off topic (even though
scripting has its place in JSP/servlet development!!!)

Yea, I am looking forward to DOM1 regardless of its potential lack of
backward compatibility with any browser. I have a beta of NS 6.0 but I'l
check the URL you provide to check I have the latest.

In response to you comment #2, the reason why we cannot obtain attribute
values from the session object the way you describe is simply we are not
planning (at this time) to build dynamic scripts using JSP or servlets. The
primary reason for this is that I am in charge of client side design and I
need to be able to test and debug my scripts now. Also we believe this
affords us a good deal of decoupling/isolation well in keeping with the
model 2 concept.
'course I don't mind being proven wrong if you can provide superior
arguments...

Regards



-----Original Message-----
From: Tommy Enqvist [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: How to combine javascipt within JSP ?


-----Original Message-----
From: Sicaud Patrice [mailto:[EMAIL PROTECTED]]

*** OK. I did not know that. Our script is aimed at DOM1. So, I hope those
problems will be fiexed in NS 6.0.

Netscape 6 will be a different beast alltogether. As you probably know
Netscape have ditched backwards compatibility totally and are basically
developing a new browser. They are supposed to follow W3C's recommendations
and not add any of their own "cool things", but--sadly--not any of IE's cool
things either. Anyway, NN6 should have complete support for HTML 4.0, DOM 1,
CSS 1, JS 1.4 (I think). If only Microsoft would follow the same path, life
would be so much more enjoyable for web developers. If you (or anyone else)
is curious about NN6 it's available for download at
http://www.netscape.com/download/... It's cool with a Netscape browser that
doesn't understand document.layers!


*** What I mean by that is as follows:
    If all JSPs have script tag pointing to the same .js file, than all
global object variables will be loaded in all of them and they will all
start with the same defaults. Also, even if I do see the need for keeping
session variables on the server, these are not directly available to
javascript and they also be meaningless for client processing (as in default
state for page elements and whatnot), so we like to maintain client-wide
states in the script.

Hmm, are you sure you can't access session variables from your js code? What
happens if you put something like this in your jsp page:

<script>
        var someVariable = <%= getSessionVariableValue %>;
...
</script>
? I can't see why that wouldn't work...

Actually, I think I misunderstood what you wrote in your first message. I
thought you tried to keep the variables's values between pages with
JavaScript--something we both (obviously) know can't be done.


Regards,

Tommy Enqvist

===========================================================================
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