Why don't you use a wizard sort of an interface? The first page merely
displays the primary key (drop-down) and a "Next" button.  Upon submission,
you can populate the remaining fields into HTML form elements in the next
page.  This way, you can avoid JavaScript (no bloated HTML).  A much cleaner
solution, I would think.

--Shrisha

----- Original Message -----
From: "Bozidar Dangubic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 1:11 PM
Subject: Providing Data Lookup


> Hello everyone,
>
> I am working on an input for for a distributed java enterprise system and
I
> ran into a problem. I am developing a form that is used for data entry
into
> a system. The contains certain amount of static data that is stored in the
> database. Most of this data contains keys that are associated with certain
> entities in the system. What I am trying to accomplish on the input form
is
> when person who is inputing the data enters a key for a certain entity, I
> want to populate several fields on the form that compromise the rest of
the
> entity data given the key. I have created cache objects that are used to
> load all static information to a java class. But I cannot access any JSP
> object from the javascript unless it can be evaluated at the time of the
> compilation. What I need to do is dynamically lookup information stored in
> my cache objects based on the input of the user. I created javascript code
> that populates the missing fields, but I cannot access JSP object
> dynamically. I solved the problem using LiveConnect from Netscape by
> embedding an applet into my input form and using LiveConnect to
dynamically
> lookup information that I have stored in caches. I do not like this
solution
> since it involves applets which I am trying to avoid application-wide. I
was
> wondering if someone is aware of the slickest solution that will support
the
> functionality that I need.
>
> Thanks in advance
>
> Bozidar Dangubic
> Software Developer
> FuGEN Technologies
>
>
===========================================================================
> 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