× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Ron,

Not sure that's possible - Javascript is running in the client's browser
and your Java objects (such as the vector) only exist inside the server's
JVM.  If I understand right what you're trying to do, you just want a drop
down list with dates in it (which I assume are unique) and when you pick a
different date, update values elsewhere on the page from where they're
stored in the object in the vector.

All you really need to do is get the drop down list to contain the dates -
don't worry about trying to put the actual objects it.  Since the dates are
unique you could write a method easy enough to scan through the vector
looking for the object with a particular date.  So if in your JSP, you loop
around the elements in your vector converting the date into a suitable
display format and outputting it as an <OPTION> tag, you should get your
drop down box fine.  Then if you put this inside an HTML form you can have
the form submit the chosen date back to another servlet which will convert
the display format date back into a regular date object, find the correct
object from the vector, and call a JSP to update the display?  It'll mean
the page reloads each time you pick a different date but that shouldn't be
too much of a problem.

Hope this helps,

Nigel Gay,
Computer Patent Annuities.



|---------+------------------------------>
|         |           RPower@xxxxxxxxxx  |
|         |           Sent by:           |
|         |           java400-l-bounces@m|
|         |           idrange.com        |
|         |                              |
|         |                              |
|         |           19/04/2005 08:55 AM|
|         |           Please respond to  |
|         |           Java Programming on|
|         |           and around the     |
|         |           iSeries / AS400    |
|         |                              |
|---------+------------------------------>
  
>--------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                 |
  |       To:       Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>                  |
  |       cc:                                                                   
                                 |
  |       Subject:  Re: In significant need of help.                            
                                 |
  
>--------------------------------------------------------------------------------------------------------------|




It's a combination Java and JSP.

I'd like to access the vector in my javascript so that I can load the
values like a record selector.  Forgive me, I'm new to java and I'm
feeling lost lol.  If this were RPG I'd be done already.  Mind you I love
what you can do in here though.

Ron Power
Programmer
Information Services
City Of St. John's, NL
P.O. Box 908
St. John's, NL
A1C 5M2
Tel: 709-576-8132
Email: rpower@xxxxxxxxxx
Website: http://www.stjohns.ca/
___________________________________________________________________________
Success is going from failure to failure without a loss of enthusiasm. -
Sir Winston Churchill




Pete Helgren <Pete@xxxxxxxxxx>
Sent by: java400-l-bounces+rpower=stjohns.ca@xxxxxxxxxxxx
19/04/2005 12:15 PM
Please respond to
Java Programming on and around the iSeries / AS400
<java400-l@xxxxxxxxxxxx>


To
Java Programming on and around the iSeries / AS400
<java400-l@xxxxxxxxxxxx>
cc

Subject
Re: In significant need of help.






Ron,

I have done this but we use FreeMarker as a template engine and it
actually renders the Hash into an item list.

Are you creating the HTML from within a Java program?  Are you using
JSP's?  Do you want to use the vector object directly in your HTML form?

I am just trying to get a sense of how you want to render the vector
into a list with HTML (again, we let FreeMarker do that in the servlet)

Pete Helgren


RPower@xxxxxxxxxx wrote:

>I'm completely lost at this point.  I wish I could send a screenshot to
>the list to explain what I want to accomplish, but I'll try to with
words.
> Here goes:
>
>I have a browser window that displays a customer's information.  Below
the
>customer's information I have a form that shows the bulk garbage details
>for that customer.  We want the user to be able to use a drop down box
>that shows the bulk garbage received date in it, and use that to navigate

>thru my record.
>
>I've created and loaded a bulk garbage object that I've loaded into a
>vector that I'm using on the page. However, I don't know if this is right

>or wrong, and I can only access the very first index of the vector to
show
>the  record.  I need to know what should I use here to make this easy to
>accomplish?  Hashtable, vector?  And once I have it loaded, how will I
use
>the drop down box selection as my navigation?  TIA,
>
>Ron Power
>Programmer
>Information Services
>City Of St. John's, NL
>P.O. Box 908
>St. John's, NL
>A1C 5M2
>Tel: 709-576-8132
>Email: rpower@xxxxxxxxxx
>Website: http://www.stjohns.ca/
>___________________________________________________________________________

>Success is going from failure to failure without a loss of enthusiasm. -
>Sir Winston Churchill
>
>
--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.








********************************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.
********************************************************************************


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.