How do i get the selected index in jsp from a select "in the same page!!!"

i dont if it si possible but i want to get the selected index form a select implmenting javascript jsp an html something like this:
html:select property="slcLocation" onchange="updateList(this.form)">
<% for (int i=0; i< user.getNumLocaliza();i++)
out.println("<option selected>" + user.getLocation(i,1));
%>
</html:select> </div></td>
...

i try it in the same page but it fails, the code is:
<html:select property="slcLocation" onchange="document.location.href='cajaApertura.jsp?slcLocation='+this.options[this.selectedIndex].value">
<%
for (int i=0; i< user.getNumLocaliza();i++)
out.println("<option>" + user.getLocation(i,1));
%>
</html:select>
</div></td>
</tr>
<tr>
<td><div align="left"><font size="1"><strong><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif">Caja:</font></strong></font></div></td>
<td bgcolor="#C4B4F3"><div align="center">
<html:select property="slcCaja" onchange="document.location.href='cajaApertura.jsp?asdf='+this.options[this.selectedIndex].value">
<%
int caja;
if (request.getParameter("slcLocation")!=null)
//for (int i=0; i< cajaLocation.getNumCajas (request.getParameter("slcLocation"));i++)
for (int i=0; i< 3;i++)
caja = i+1;
out.println("<option> Caja p " + caja + request.getParameter("slcLocation"));
}else
for (int i=0; i< cajaLocation.getNumCajas (user.getLocation(0,1));i++)
caja = i+1;
out.println("<option> Caja " + caja);
%>
</html:select>
is this correct? what is my mistake?
tnks for your help

Similar Messages

  • How do I get the same song to play on the main menu and during scene select

    I would like the music to play continuously throught the menu and scene selection. As it is I have to drag the audio file into each scene selection, and the music starts at the beginning.
    At least, is there a way to remove the awful sound track that iDVD has on the themes?
    iMac 20 core Duo   Mac OS X (10.4.8)  

    Yes I can add audio, how do I get the same song to play throughout the chapter menus? I have 30 "chapters", which are scenes from an hour of home movie. Can the same song play continuously throughout the different chater menus?. As it is now, I have to drag an audio file into every submenu, and it starts the song at the beginning for each chapter menu.
    Otherwise, that same song that is preloaded on the theme is played. I hope this makes sence, kind of hard to explain. Thanks

  • How can I get the same candy crush level on my phone and iPad?

    How can I get the same candy crush level on my phone and iPad?

    The only way to synchronize is connecting to FaceBook. I just set up my girl friend's iPhone to connect with FaceBook, which then updated the phone's level; then I downloaded the app (again) on her iPad and selected connect to Facebook. I'm not sure what the downfall of synchronizing through FaceBook is.... all I can tell you is it worked and now her iPad shows the same level as her iPhone. Good luck!

  • How can i get the same itunes library on 2 macs

    how can i get the same itunes library on two different macs, without having to pay for icloud please.

    Copy everything from one computer to the other.

  • HT204053 If I have an apple ID for myself and my wife has just got a iPhone for the first time how can she get the same apps as I have for my iPhone and iPad

    If I have an apple ID for myself and my wife has just got a iPhone for the first time how can she get the same apps as I have for my iPhone and iPad by getting it off my iCloud?

    She can't from iCloud without setting up your iCloud account on her phone. But just sync the same apps from your iTunes Library on your computer to her phone.
    Your wife should setup her own iCloud account - which is separate to the iTunes Store accounts.

  • HT1349 How do I set up a speed dial on my iPhone 4s?  I am used to the bberry where I just keep my finger on a number in order to dial. This is very useful in the car.  How do I get the same effect on iPhone?

    How do I set up a speed dial on my iPhone 4s?  I am used to the bberry where I just keep my finger on a number in order to dial. This is very useful in the car.  How do I get the same effect on iPhone?

    I found a post from Alope that told me exactly how to fix it.
    Go to:
    Settings   - General   - Restrictions    -    put your pass code in   -     Facetime      -  turn the switch to ON
    Worked perfectly to stop the message that said, Not authorized to do that!

  • When I click on my Yahoo bookmarks, I only get the download Yahoo toolbar page, I downloaded the toolbar again and I still get the same page when I hit bookmark icon - how do I get my bookmarks back - they still show on Microsoft Explorer

    Question
    When I click on my Yahoo bookmarks, I only get the download Yahoo toolbar page, I downloaded the toolbar again and I still get the same page when I hit bookmark icon - how do I get my bookmarks back - they still show on Microsoft Explorer

    julianscars wrote:
    I don't get a page, all I get is the player popping
    Click the green jelly button at the top left of the player.

  • How can I get the same session with jdbc?

    HI
    After I create or use a JDBC connection,
    i do a query.
    How can I get the same session next time?
    thanks a lot!

    Hi qin,
    Unless I have misunderstood your question, a 'connection' and a 'session' are the same thing. When you obtain a database connection, you have created a database session. Once you close that connection, the session dies -- it no longer exists. You cannot obtain the same 'session' when you get another database 'connection' (after you closed the first one).
    Hope this answers your question.
    Good Luck,
    Avi.

  • How do i get the same desktop picture on my external monitor, as on my macbook pro, and get it to stay that way when unplugged?

    Everytime I use an external monitor with my macbook pro the desktop picture always changes to the same one as on my external hard drive...how do i get the external monitor to show the same picture as my macbook pro and keep it that way?

    Did you download the PC version? There is no DOS in OSX.
    Look for the Mac version of AutoCAD.

  • How do I get the newest page when loading a website? A website I looked at today is the same as it was earlier in the week, yet using my computer at work the same website has new information. How do I tweak my settings to download the newest page?

    When downloading a favorite website my computer at home is opening what seems to be the page saved previously, and not the newest version.

    Thank you for checking, Tom,
    I'm confused. What do YOU get when you push the feed button? And why is it working on yours and not either of my machines?
    Today, my Mac (w/Safari 4) gets the same error message: Safari can’t open the page Safari can’t open the page “feed:http://vibrationalvoyages/vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml”. The error is: “The feed could not be loaded because the content is not in a known feed format.”
    My little ASUS (with a Linux operating system) gets a screen that says "The requested URL was not found". The URL on that page is http://vibrationalvoyages./vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml
    On both error messages, the URL I was checking was:
    http://www.vibrationalvoyages.com/DivineLight_Vibrations_Principles_and_Applications/Divine_Light_Vibrations_Principles_ andApplications.html
    The last URL was, of course, the URL generated by iWeb.
    So, my question still is:
    HOW CAN I GET MY FEEDS TO WORK PROPERLY? If the problem is there shouldn't be an http:// after feed: then, how do I get iWeb to set it up properly?
    Any ideas?
    GG

  • My friend has a pass word on their ipad. its an inverted excelimation point. how would i get the same one on my computer?

    so i told my friend that i would update their ipad to ios 5 on my computer. she put a password on it(inverted exlelmation point) i have coppied many from the computer but none work. is it possible to get the same one???
    PLeae help!

    I'm not sure what you're asking.
    Option 1 on a Mac keyboard (at least one with the same settings as mine) gives an upside down exclamation point.
    On an iPad, hitting the 123 and holding down the exclamation point gives you access to the upside down version.

  • How can I display the same page when I'll press

    i have a jsp page. It contains user name & password.
    and a link like SIGNOUT COMPLETELY. when i press the back button it should show only this page.
    You have noticed one thing that when u sign out from YHAOO MAIL then a page is displayed
    USERNAME : [email protected]
    PASSWORD :XXXXXXXXXX
    SIGNOUT COMPLETELY
    when this page is dispalyed and u press the back button of the browser
    it displays the same page. How it happens?

    Kindly neglect the previous post.....
    Okay check something like this
    1).maintain either a HttpSessionListener or a session flag try to checkout whether the user is active or else close the PrintWriter.
    2).Prevent caching of the webpage by using customary meta tag or by response,setHeader("Cache-Control","no-cache");
    way...
    Guess tht shud work.....

  • How to stay on the same page after submitting the Page to commit the row.

    I have a page where I am accepting a ket column from the users , Now I want to have to buttons where user can enter one row and click 'Create & Exit' which would them to the menu. But another button would be 'Create' that would create the row in the table would keep user on the same page , so he/she can enter more rows.
    My 'Create & Exit' button has settings in 'Actions when Button Clicked'
    Action - Submit Page
    Execute Validation - Yes
    Database Action - SQL INSERT Action.
    My 'Create' button has settings in 'Actions when Button Clicked'
    Action - Redirect Page in this application
    Page - 9 (Same page)
    Database Action - SQL INSERT Action
    When this didn'tr work
    I changed
    Set This items - All the variable from the table
    With These Values - All the variable from the page
    Still this doesn't work.
    I very new to APEX application.

    Here's an approach:
    Delete your existing Create button and then redefine it as a copy of Create & Exit.
    Then create two Page Branches, one that branches back to your Menu when the Create & Exit is pressed and another Page Branch that remains on your current page when the Create button is pressed.
    Jeff

  • How do I get the startup page with tabs like "tools" etc.?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I have re-installed Firefox but how can I get a normal startup page with a normal toolbar (tabs like "Tools", slot for writing web address etc.)?
    == Firefox version
    ==
    3.6.6
    == Operating system
    ==
    Windows Vista
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; sv-SE; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-np-mswmp
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.3"
    *Default Plug-in
    *Shockwave Flash 10.0 r45
    *iTunes Detector Plug-in
    *CANON iMAGE GATEWAY Album Plugin Utility Module
    *Picasa plugin
    *4.0.50524.0
    *Office Live Update v1.5
    *Virtual Earth 3D 4.00090316005 plugin for Mozilla
    *NPWLPG
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *Nexus Personal Plug-Ins
    *Voddler Web Plugin
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers

    In Firefox 3.6 and later on Windows you can hide the menu bar via "View > Toolbars" or via the right click context menu on a toolbar.
    Press F10 or press and hold the Alt key down to bring up the menu bar temporarily.
    Go to "View > Toolbars" or right-click the menu bar or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
    See also [[Menu bar is missing]] and http://kb.mozillazine.org/Toolbar_customization

  • How do you get the same skin wrinkles to match all the different Ethnicity?

    Hello! this is my first time posting a question in this forum, hopefully there will be some clever people out there who can help me!
    I have a wrinkled eye texture (see below)
    How do I digitally manipulate it so that i can use this same texture to on top of other photos so that it fits/blends well with people of different ethnic origins?
    my aim is to make poeple looking older using the same texture.
    So far I've tried:
    - Making the texture black and white and use different filters, but it doesnt work on all the different skin colours and it doesnt look real.
    - Using Multiply filter after adjusting the original texture - that seems to work well except on people with darker skin, then the wrinkles are just too dark.
    I would like to know if anyone knows a simple way where i can make this texture works on all skin colours, with out going in and adjusting the wrinkle texture one by one according to each individual.
    hope my question isnt too confusing. any suggestions will be greatly appriciated!!

    Here is the texture I've been manipulating  all afternoon to try and achieve the looks i want.
    and when I put this texture over the top of other images and select Multiply, and adjusted the opacity, this is what i get....
    Now this kinda works?? but it still looks not as good on an asian person.
    Thanks by the way to everyone for all the tips, I really really appriciate it   and more suggestions for improvments are welcome!

  • IPad and IPhone synced to different PCs how do I get the same music on both devices? I used one PC to put CDs on ITunes but these don't appear on the phone which syncs to the Mac.

    I have 1 ITunes account but my IPad is synced to a Windows PC to download CDs onto my IPad and the Iphone is synced to the Mac. I was hoping that the CDs I'd put on the IPad from the Windows PC would automatically appear on my IPhone when both these devices were sharing the same Wi-Fi at home. This didn't really work very well and I've been left with the CDs showing on the list on my phone but when I try to play them, the different tracks keep scrolling fast and not playing. I've tried deleting them from the IPhone, but they just seem to retreat to ICloud.
    I've tried syncing the phone to the windows PC but this has just resulted in an error and I think this may be what has screwed the music up on my phone. I would just like to be able to listen to my CDs on my phone.
    Has anyone come across this before and resolved it?
    Thanks

    Terminology check here. Do you really mean a "CD"?  There's a difference in Cloud behavior between content from a physical CD you ripped (which only has Cloud content if you have iTunes Match) and an "album" you bought from the iTunes Store.
    Read references for Home Sharing.
    iTunes: How to share music and video - http://support.apple.com/kb/HT2688 - about Music Sharing and Home Sharing
    Home Sharing Support page - http://www.apple.com/support/homesharing/
    iOS: Setting up Home Sharing on your device - http://support.apple.com/kb/ht4557 - "With Home Sharing in iOS 4.3 or later, you can stream your entire iTunes library over your home Wi-Fi network from your Mac or PC right to your iPhone, iPad, or iPod touch."
    The above can get pretty complicated.  You are probably best off by syncing both devices to a single library and/or updating the libraries on both computers to have the same content.

Maybe you are looking for