Since servlets know nothing of GUI, they do not offer any way to manage GUI behavior. 
JavaScript knows nothing of Java. They are two entirely different things. The only way 
they can communicate is via request parameters. So, if your customer requires that a 
particular thing happens when a certain value is selected from a drop-down list, you 
have to pass some value to the servlet in a request parameter. You can also use 
JSP/servlets to conditionally insert JavaScript into your HTML output. The book Web 
Development with Java Server Pages (Fields and Kolb, published by Manning) discusses 
this a little bit, but not to any great extent.

Liz
[EMAIL PROTECTED]
http://www.gymell.com

Doug Turner <[EMAIL PROTECTED]> wrote:
> Well, one of the advantages of using Servlets/JSP/Beans, supposedly, is the
separation of business/data logic from presentation.  I guess you are
finding one of the downsides.

I think the subject of effective gui in a browser is pretty big and pretty
distinct from server-side techniques, whether done in servlets or something
else.  I think you may have to concentrate on the gui area without
consideration of the server-side, and then work out the links to the
back-end (via JSP, etc.).  A good book on JSP should give some hints, but I
have none to recommend.

----- Original Message -----
From: Lietz, Carol
To:
Sent: Friday, July 21, 2000 11:43 AM
Subject: Servlets, Javascript, and GUI Behavior


> I am a pretty seasoned Java programmer and I've read Jason Hunter's book
and
> parts of James Goodwill's book, both on Servlets.  I'm looking for a
> tutorial, book, or class that gives more help on how to manage the GUI
> behavior my customer has requested in my servlet.   The customer has all
> kinds of things like "if I change the value in this drop-down, then I want
> ... to happen".
>
> I've read through many of the archives and have gotten some help, but am
> looking for more.   I've probably looked in the index of every Servlet
book
> at my local Border books for "Javascript" and haven't found more than a
> passing reference.  I even looked in Javascript books for "Servlets".
Seems
> like a servlet book with a healthy chapter on gui behavior would be a real
> asset.
>
> Bottom line:  Can anyone recommend a tutorial, book, or class which deals
> with managing the GUI behavior.
>
> Thanks,
> Carol Lietz
> Unigraphics Solutions
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to