Top.Mail.Ru
March 20th, 2005 - Java developers — LiveJournal
? ?

Java developers

March 20th, 2005
Image

06:46 pm - Imagesugarplumkitty - Another day, another lab I'm stuck on

I'm using netbeans because it was pretty easy to pick up and it had all the JSP support programs installed with it.

Lab 6
Working with JSP's
Write a program using JSP's to provide an application to simulate message dispatch to cabs. Your application must provide the following features 1. Select a vehicle label from a pre-defined list and dispatch message (80 characters) to one vehicle or multiple vehicle(s). 2. After sending the message display last 10 messages on the form.


I thought I'd finished it until I re-read the description before packaging it up and realized I'd missed the multiple cabbies option. The java.awt.Choice object I'd gotten to work will only do one cabbie. Darn it!

So I've switched to java.awt.List instead and it looks straightforward. I've filled the list with five first names. They display perfectly. I can select them just fine. However, when I try to fill a String array with getSelectedItems() it seems to be giving me addresses or hex values or something. I tried getSelectedIndexes() into an int array instead and got the same result.

all the detailsCollapse )

Once I get this solved I'm on to the final lab with roughly 24 hours to deadline. I might just make it!

Thanks! This community rocks!
Powered by LiveJournal.com
Image