Jsp menu update problem

Hi All
This is my problem. I have a jsp with 1 select menu and 2 text boxes
I want it to look like this
|Select Menu |\/| code. | Color. |
When a name is selected in the select menu I want the code and color to change aswell
All the values are in a vector and because the <input>'s are out side the for loop they only display the last value
function updateDetails()
document.form.code=????
<select name="names" onClick="updateDetails()">
<%int rowCount2 = result.size();%>
<%      
for(int s=0; s<rowCount2; s++)
Vector entry2 = (Vector) result2.elementAt(s);
%>
<option value='<%=entry2.elementAt(0)%>'>
<%=entry2.elementAt(1)%>
</option>
<%}%>
</select>
<input type='text' name='code' value='<%=entry2.elementAt(2)%>' >
<input type='text' name='color' value='<%=entry2.elementAt(3)%>' >
Has anyone any ideas how this can be done.
Thanks,
Ys

I think you want some client-side processing. Try<%! String[] codes = {"#000000","#FFFFFF"}; %>
<script language="JavaScript">
var code = new Array(<%=codes.length%>);
code[0] = "";
<%
for(int i = 0; i < codes.length; i++) {
%>
    code[<%= i + 1 %>] = "<%=codes%>";
<%
%>
function changeValues()
var val = code[document.forma.color.selectedIndex];
document.forma.code.value = val;
</script>
</head>
<body>
<form name="forma"><center>
Please select a color: <select name="color" size="1" onChange="javascript:changeValues()">
<option></option>
<option>White</option>
<option>Black</option></select>
</select> HTML code: <input type="text" name="code" size="60"> 
</form>
</body>
</html>Of course, this is only a starting point and there are limitations.

Similar Messages

  • Why doesn't the "recent items" menu update?

    The recent items menus on Final Cut Pro and DVD Studio neve update, cna clearing the menu doesn't help...how can I fix this?

    don't know, but there are certain basic troubleshooting steps that might help.  Delete FCP and DVDSP preferences using preference manager (go to digital rebellion's site for free download)
    www.digitalrebellion.com
    Do other programs' recent items update?  Does the systems recent items in the apple menu update?  If not, it's probably an os problem rather than an final cut studio problem.  You might try repairing permissions in the diskutility.

  • Nano Update Problem

    I have just updated my 6th Gen Nano and now the screen is slow and also won't rotate. Anyone know whats up

    Oh dear, I seem to have just fixed it all by myself!
    In case anybody was wondering for their own reference, I had it stuck on "manual update" by mistake.
    To change to "automatic update" (updating just by pressing the appropriate option on the File menu), right-click the iPod in the Source list. Then choose "iPod Options". Then choose "automatically update all songs and playlists" on the Music sub-menu.
    Problem solved
      Windows XP  

  • Has the updating problem been solved?

    My feed was approved earlier today, but I am having some problems getting my page on the iTunes store to update.
    RSS: http://davefarmar.libsyn.com/rss
    Storefront: http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=210951638
    (Note: I have already pinged iTunes per the spec. I have also already tested the feed via a manual subscription request through the iTunes pulldown menu and successfully received the updated files.)
    Modifications made to my initial episode are not appearing on my iTunes store page.
    A test post that I added has also not appeared at the store.
    Has the updating problem, which I saw posted about shortly before the new year, been solved?
    Thanks, Dave.

    Looks like I just needed to be more patient (the updates have now showed up . . . sorry).

  • How to fix Software Update Problem?

    I was do some update includes new 10.5.1, iTunes, QuickTime, and many more, but today I test to check new update I got blank list and I was try to do via Terminal and got this message
    Software Update Tool
    Copyright 2002-2007 Apple
    XML parser error:
    Encountered unexpected EOF
    Old-style plist parser error:
    Malformed data byte group at line 1; invalid hex
    What's going on? and How to fix it my Leopard Software Update Problem

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any Apple Software Update entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install using an iTunesSetup.exe (or iTunes64Setup.exe) downloaded from the Apple Website:
    http://www.apple.com/itunes/download/
    Does it go through properly this time?

  • Problems playing on radio after update, problems playing on radio after update

    anyone having problems playing video from ipod,ipad or iphone on kenwood indash tvs since updating to ios 5

    HI,
    You can setup your Yahoo account via Mac Mail.
    Open the Mail app. From the menu bar click Mail / Preferences then select the Accounts tab, then select *Account Information*. Click + at bottom of the window under Accounts.
    That way you don't need Safari to access your Yahoo mail account.
    Since you haven't updated your software as yet, you should do that. Bear in mind, the percentage of users that post with 10.6.5 update problems here are less then 1% of all Mac users. Being a tech support forum it's normal to see posts for help. But not everyone has problems with updates. Very difficult to compare one users experience to another given the mix of third party apps, peripherals, and devices. No two systems are identical.
    Click your Apple menu / Software Update... make sure and repair permissions after the updates are installed.
    Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    Always make sure there is enough free space on the startup disk. Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. *Make sure you always have a minimum of 15% free disk space.*
    Carolyn

  • Update problem - VBDATA table

    Dear All,
    We have update problems in our Quality systems, and also in every R/3 system that we create from a Production system copy.
    Sometime the UPD and UP2 work processes hung without apparent reason.
    In the SM50 I can see one or more of my update processes running for a lot of time (many hours) on the table VBDATA without perform any action.
    In the tcode SM12 I donu2019t see any kind of lock, and I donu2019t understand why only sometime this problem happens.
    Of course, from the SM13 I can see that during this problem the system is not able to perform any kind of update.
    As I told in the beginning of the message, I have the same problem in other two R/3 systems, both created with a system copy from the production system.
    The Production and the Developer systems seem not affected by this problem.
    Have you got any idea about the reason of the problem?
    Even if the Production systems is not directly affected, all the IT department is not able to work on the Quality system (or any other Test system), and the only workaround is to kill the UPD (or UP2) WPs affected.
    Thanks in advance,
    Federico Biavati
    My R/3 System is a 4.7 on SLES9 and Oracle 10.2.0.2

    Hello Siva,
    This is what I did:
    > Check how many entries do you have in VBDATA currently.
    More than 1.000 in every SAP systems that Iu2019m creating from Production
    > You might want to run the reorganize updates program to clear the old updates
    > that are pending/in error
    Good point!!
    After the reorganization (ST14 u2013 Reorganize update requests) the table VBDATA is empty.
    Iu2019ll check and Iu2019ll let you know if the problem is definitively solved.
    Thanks for you help,
    Federico

  • Chart x scale update problem

    LabVIEW  8.5.1
    Sweep Chart Problem
    The x scale values do not update until after the 2nd sweep.  The red line cursor gets to the end of the sweep and starts the next, but the scale numbers do not update until the next sweep starts.
    It appears to be a problem with the chart, since it happens with any vi with a sweep chart.  I've used versions 6 through 7 for years and never seen this.  I've only recently moved to a new job with a new machine and version 8.5.1., so I'm not sure what to try.
    I've included a simple example.
    Thanks much,
    JSC321
    Attachments:
    Chart Sweep Scale Update Problem.vi ‏32 KB

    You have a typical race condition!
    There is no data dependency between the property node and the while loop, so in your case the loop starts executing first and the property node starts slightly later, immediately erasing the first point. Execution order is not defined.
    All you need to do is add a data dependency, e.g. as with the error cluster in the image. This forces the property node to complete before the loop is allowed to start.
    (Execution order is enforced even if the wire value is not even used inside the loop )
    Try it!
    Message Edited by altenbach on 12-23-2008 11:08 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HistoryRace.png ‏10 KB

  • Updating problem...I have a update that starts out going through but then does not finish just keep running

    also with the update problem it says software update and below the running bar it says connecting to the server

    Please do the following:<br><br>
    #Go to [http://www.mozilla.com/en-US/firefox/fx/?ref=logo Download Firefox 4.0.1] and download a fresh installation file to the desktop.<br><br>
    #Then go to Add/Remove Programs, scroll down to "Mozilla Firefox" and remove it, choosing to keep your bookmarks, customizations etc., (''don't checkmark the box'').<br><br>
    #Then reboot and delete the folder called "Mozilla Firefox" at this location: C:\Program Files\Mozilla Firefox<br><br>
    #Finally run the installation file you downloaded to the desktop earlier.<br>
    Your bookmarks, customizations etc., are maintained in a different location and will become available to you again once you complete the installation.

  • 10.5.7 update problems

    After installing the 10.5.7 update, Mail, iTunes and iPhoto will not run anymore. Anyone else having this problem?

    jjtopspin wrote:
    Before I came to these apple discussions re: update problems with 10.5.7, I tried to update this version yesterday and at the end of the download this message came up, the update "Mac OS X update" can't be saved. The digital signature for this package is incorrect. The package may have been tampered with or corrupted since being signed to Apple.
    I got the same message. The downloaded file that generated the message was only about 560 KB, indicating it was an incomplete download. I moved it to the trash & tried again. The second download attempt succeeded. I had a minor if nerve-wracking issue with the update (the blue looping screen reported in another topic in this forum) but after a forced shutdown & restart the update was completed successfully.
    I have since updated my two other Macs so all those listed in my profile are now running 10.5.7. All do so without any problems & in fact work better & more stably than ever before.
    I doubt that I'm unusual in this respect. Some users will have problems but I believe most won't, & for those that do most problems will turn out to be caused by something other than the update itself. So it has been for every previous Leopard update; I see no reason to think this one will be any different.

  • Cache update problem in Integration Directory

    Hi all,
    We have a cache update problem in our PI development server.
    If we try to edit, save and activate any of the ID objects, under Cache notifications>Central Adapter Engine> all these objects are displayed as gray items.
    We have tried:
    1. Clearing the SLD Data Cache.
    2. Did SXI_CACHE complete refresh.
    3. Did CPA cache refresh.
    4. Did a complete cache refresh of the server.
    5. Restarted the server.
    But still the problem has not bee resolved. Could you pls provide your inputs and resolution points.
    Thank you very much.
    regards,
    Jack Nuson

    HI Jack ,
    first try to manually update the cache from ID select on your cache notifiaction and click on delta cache refresh button and refresh button .IF it does not yied any result then
    Perform a full cache refresh using the URL
    http://<host>:<port>/CPACache/refresh?mode=full . If the cache refresh happens properly then your problem will get resolved other wise you have to see the cache log to view why it failed there it will show you the exact reason . You might need to restart your java server also if the problem persist .
    Regards,
    Saurabh

  • Twitter Update Problem

    Seems I have a Twitter Update problem. 1. I have no pirated software on my computer either from the App Store or anywhere else. 2. I did buy a set off templates for iWork through the App Store with my Bosses Apple ID (it's for work). Is that really the problem. That's ridiculous.  The apple ID is mine, as is much of the software, but it's a computer use for work. If this is true it makes the App Store a lot less useful.

    my apologies I was so annoyed. I didn't bother to state my issue. The issue is: Twitter is constantly asking to be updated. Even after it's updated. Even if it's deleted. I looked at the forums for a solution and found that people were having this problem who installed pirated app store apps.
    I am logged into the app store on my account. All but one of the apps on my machine that come from the app store are on my account. However there is one piece of software on my account that I purchased, by logging out and logging in with her ID, purchasing it, installing and logging out, and again logging in as myself. I don't have an issue with that app. However Twitter, which was installed under my username, constantly says it needs to be updated. Hope that makes it clearer.

  • HT4623 Update problem

    Hello
    How do i solve problem when i'am doing my update from 5.1 to 6.1.2 the massage (3194) occured. Please help me to solve this update problem.
    I'am using iphone 4

    See this support document http://support.apple.com/kb/ts4451

  • TS3694 im trying to restore my iphone and itunes doesnt allow it to restore without updating. problem is that i have the latest update on my iphone so why is it forcing me to wait for a 7hr update download when i already have the update and only need to r

    im trying to restore my iphone and itunes doesnt allow it to restore without updating. problem is that i have the latest update on my iphone so why is it forcing me to wait for a 7hr update download when i already have the update and only need to restore?

    Sadly, the iPhone 3G can not be upgraded beyond iOS 4.2.1.

  • Im trying to update, but all it does is backup my phone, My itunes is updated, BTW, I just went to Apple bar, i had previous problem with prior phone, now im having this update  problem with thyis new phone, someone HELP!!

    Im trying to update, but all it does is backup my phone, My itunes is updated, BTW, I just went to Apple bar, i had previous problem with prior phone, now im having this update  problem with thyis new phone, someone HELP!!

    Same here and this is driving me crazy. I can buy, but can't upgrade. Grrr.

Maybe you are looking for

  • Time Capsule won't back up due to "sparse bundle" how do I fix this?

    I recently updated to IOS6 now my time machine will not back up... due to some "sparse bundle" issue.  Can anyone help me fix this?

  • How to enable the SAVE LAYOUT button?

    When using CALL METHOD G_ALVGRID_HDR->SET_TABLE_FOR_FIRST_DISPLAY, how do I enable the SAVE LAYOUT push button? It shows the Change layout button but does not allow me to save the layout as the SAVE LAYOUT button is not available. I am using the foll

  • How do you NOT sync Apple TV purchases to iTunes?

    This question is on behalf of my parents who have Apple TV - which i bought for them and i have become their tech support on 24 hour call >< Background: My parents share the same account. Dad uses the PC computer with iTunes where my mother only uses

  • Extra Storage & Backup

    I have a flat-panel iMac G4/800, and with the purchase of a new Canon Rebel XT (8MP digital camera), I'm losing hard disk space fast! I'm looking for an external storage solution that will allow me: 1) To have a good deal more available hard drive sp

  • Authorization access failed

    Hi Experts, I am trying to do the Reversal of PGI. Using VL09 I entered the document num and tried execute REVERSAL. System was throwing an error " You are not authorised to reverse goods issue for shipping point XXX". Then I tried SU53 checking my a