JSP-trying to sen parameter with the requestin a link.

Hi!
I have a page ShowAllCustomers where I show All Customer that are in a databas.
They are stored in A List of Customer objects
In the end of the row I hav ea update link.
In this link I have a link to next page and I also want to pass the custimer number so that I can get this specific customer and load her data into the <input....> tag.
Problems The customernumber value is not passed in the variabel (kNamn).
The code in the link:
The kod trying to retrieve the value is:
<%=request.getParameter("kNamn") %>
What can I do? I shouldn't be so difficult to get it to work.????

The code in the link:
Okay, you are mixing HTML and JSP. Remember to insert a value from JSP into the HTML output you need to use <%= ... %> around the JSP value. Additionally, the href quotes must be completely surrounding the link address... so the JSP value must be inserted between the quotes, not after. So the final code looks like:<a href="UpdateCustomer.jsp?kNamn=<%=kund.getFNamn()%>">As a warning, there is a limited subset of characters that are allowed in the URL, any special charactes (like ;, ', ", comma, umlaut-characters, spaces, ...) may cause errors. So you maye wamt to pass the parameter value through java.net.URLEncoder.encode(string, "UTF-8") to protect against these errors:
<a href="UpdateCustomer.jsp?kNamn=<%=java.net.URLEncoder.encode(kund.getFNamn(), "UTF-8")%>">

Similar Messages

  • I am trying to download lion with the thumb drive how do i back up my files is time machine good enough or must i transfer everything to my hard drive

    I am trying to download lion with the thumb drive how do i back up my files is time machine good enough or must i transfer everything to my hard drive

    A erase of the drive or boot partition is not always necessary.
    Flashing question mark at boot could be a easy fix, sometimes it's the firmware that simply forgot what bootable volume to boot from.
    Try holding the Option key down while booting the machine, a choice of bootable options appears, select your OS X and boot up.
    When you get in, head to System Preferences > Startup disk and set it again new. This will tell the firmware what to boot from. Test it to see.
    Now if you don't have a selection of bootable options, it could be that the drive is dead, or OS X is erased or corrupted so it can't boot.
    You'll have to run through this list of fixes to see what's going on, if you need a hardware fix or what, I've also included links if you can't fix it and need to recover your data etc.
    (If it's not remmebering your boot selection then also run through the list to reset things.)
    Step by Step to fix your Mac

  • I tried updating my iPhone3g through itunes. Now i'm stuck in recovery mode and i've EVERYTHING even websites and such but nothing worked out! I've also tried restarting and fiddling with the home button but nothing still worked. Please help!

    I tried updating my iPhone3g through itunes. Now i'm stuck in recovery mode and i've EVERYTHING even websites and such but nothing worked out! I've also tried restarting and fiddling with the home button but nothing still worked. Please help! What should I do??

    Well, if you've indeed tried EVERYTHING, then you'll need to bring your phone to Apple for evaluation.

  • I updated my 4s to ios7 and the phone is now completly dead. I tried to restore it with the new itunes but it won't restore. If you can't get the download be glad! Anyone have any ideas other than going out and buying a new Samsung phone?

    I updated my 4s to ios7 and the phone is now completly dead. I tried to restore it with the new itunes but it won't restore. If you can't get the download be glad! Anyone have any ideas other than going out and buying a new Samsung phone? I don't really need a paper weight.

    No not jailbroken. After the update which took about 45 minutes. The phone went black. Dead. Wouldn't restart. Using the new itunes I tried to restore it. It went through the motions; the white Apple and progress bar appeared on the iphone screen. Then I got a message "Itunes has detected an iphone in recovery mode. You must restore this iphone before it can be used with itunes." Then the phone went completly dead again. I Repeated the process and got the same results. Is there another way to restore the phone if it's dead, besides itunes?

  • My iTouch will not restore becuase for some reason it won't reconize it. I merely tried to update it with the newest software and every thing went to sh--. Now it is just stuck on the screen showing the apple sign. Can anyone help me.

    My iTouch will not restore becuase for some reason it won't reconize it. I merely tried to update it with the newest software and every thing went to sh--. Now it is just stuck on the screen showing the apple sign. Can anyone help me.

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • My 2g i-phone is in recovery mode after trying to restore it with the latest i-tune version. it has a sim card ,but it wasn't activate it.I was just using with free wi-fi.what shall i do

    my 2g iphone is stuck in recovery mode after trying to restore it with the latest itune version. It does have a sim card but is not connect it ,I was only using it with wi-fi. Now i-tune will not connect it only show i-phone. I did manage to restore it again ,but then it will go back to restore mode.
    What shall i do now?
    Thanks

    Restore ?
    How ?

  • Hi you know i can't make the MIDI connection network from my iMac to my iPad 3 appears 192.168.1.69:5004 refused the connection request. ill appreciate so much your help I'm trying to do it with the animoog for iPad

    hi you know i can't make the MIDI connection network from my iMac to my iPad 3 appears 192.168.1.69:5004 refused the connection request. ill appreciate so much your help I'm trying to do it with the animoog for iPad

    Hi James and welcome.....
    Try the help here for Windows 7.
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    Carolyn

  • I've lost my iPhone is any way of tracking it I have rang and put a bar on it and also tried to track it with the my friends app and its a no show :(

    I've lost my iPhone is any way of tracking it I have rang and put a bar on it and also tried to track it with the my friends app and its a no show :(

    The lost iPhone has to be turned on.
    iCloud> Find my Phone ( if you had it turned to "on." )

  • HT4557 I'm trying to set up my iphone for home sharing and its says unable to set up home sharing. My password is correct, I've tried it three times with the same message. Any help?

    I'm trying to set up my iphone for home sharing and its says unable to set up home sharing. My password is correct, I've tried it three times with the same message. Any help?

    Hello daltonfromgbr
    Check out the article below to troubleshoot you issue with connecting to Home Sharing. It will walk you through checking firewall settings as well as your network connection.
    Troubleshooting Home Sharing
    http://support.apple.com/kb/ts2972
    Regards,
    -Norm G.

  • I dropped the phone, but not light ! I tried to start it with the restoration and upgrading but I do not , what can I do

    I dropped the phone, but not light ! I tried to start it with the restoration and upgrading but I do not , what can I do ?

    If you dropped the device and cannot get it to start up, then you have probably damaged it to the point it needs to be looked at by Apple or your Authorized Apple Service Provider, whomever handles service in your location. User damage is not covered under warranty, so be prepared to pay.

  • TS3694 I tried updating my iPhone with the latest update.  It downloads the update to my computer fine, but when it tries to update the phone, I keep getting a fault code of 3014.  I've tried it four times.

    I tried updating my iPhone with the latest update.  It downloads the update to my computer fine, but when it tries to update the phone, I keep getting a fault code of 3014.  I've tried it four times.

    Try taking it to the nearest Apple Store. They should have computers there that they can use to get your iPhone out of recovery mode. Make an appointment first.

  • Hello. I recently bought an Iphone 5S. I tried to charge it with the original charger that came with the phone and it doesn´t work...The cable is good, I´m charging the phone via my PC. I read many answers posted here but no one helped me. Thanks in

    Hello. I have a new Iphone 5S and the charger taht came with the phone doesn´t charge my Iphone. The cable is good because I´m charging the phone via my PC. I tried every recomendation posted here but none helped me...I live in Argentina and we don´t have local support here, I would´ve ask for a new one but it´s not an option here. Does anyone know what can I do? Thanks in advance. Regards.

    I live in China as well and my iPhone5s is the model A1530 I bougth outside China. I have the same problem as Nikatnight with the iPhone while the iPad Air (wifi only) is working like a charm. It must be definitely something related to the carrier since I was abroad few days ago and everything worked well.
    If you pay attention at the source of your maps, you'll discover they are provided by AutoNavi instead of TomTom and make them appear in chinese with their own border interpretation. Queries are only acceppted in Chinese (p.e. if I type in english "Los Angeles International Airport"  it replies it cannot locate it)
    I suppose everything will be fine when you'll be out of censorship....
    Perhaps iOS  Apple Maps are absolutely useless for expatriate in China.
    Use Google Maps instead
    BTW, I'm surprised how much Apple might prostrate towards hard power Governments.... No matter what, money are always on top!

  • Roll back when trying to install iTunes with the version higher than 10.5

    I insall successfully with the iTunes with the version under 10.5. But my iPhone is not supported with those version. So I tried the new versions that are higher than 10.5 but a problem occurred during the installation.
    "An error occurred during the installation of assembly 'Microsoft.VC80.CRT,type="Win32",version=8.0.50727.6195",publicKeyToken="1fc8b3 b9a1e18e3b",processorArchitecture="x86"'
    Please refer to Help ans Support for more information. HRESULT:0x800736FD."
    When I click OK, it rolls back. Then it started to run the rest apps of iTunes.
    Anyone can help me, please!
    Thank in advance!

    Maybe no one can help!

  • I was trying to open finder with the pinwheel spinning when I accidently hit the off button. When restarting a small image of the finder icon blinked on

    I was trying to open finder while the pinwheel was spinning & I accidentally hit the off button.  When I tried to restart I get a gray screen & after about a minute in the middle of the screen appears a half inch by half inch image of the finder icon that blinks on & off with a question mark. Thats all it does, no other functions work just the icon blinking on & off with the question mark.  Please help, I really hope I didn't destroy my mac.
    Julian

    A flashing question mark appears when you start your Mac
    Question (?) Mark, Blinking Folder, or Gray Screen at Startup
    These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
    A flashing question mark appears when you start your Mac
    Mac OS X- Gray screen appears during startup
    In most cases the problems may be caused by one or more of these:
    Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
    Boot drive's directory has been corrupted - Repair with Disk Utility.
    Critical system files are damaged or deleted - Reinstall OS X.
    The disk drive is physically non-functional - Replace the hard drive.
    Note that the information I have provided is what Apple recommends, If other users suggest different solutions than found here, then be sure what they recommend does not impact on your warranty, if any, or ability to get continuing Apple service.
    Please don't start removing drives or changing cables unless you know what you are doing and have exhausted other non-invasive alternatives outlined here. If you perform any work yourself that is unapproved by Apple, then you will void any warranty you may have and lose all further Apple Support.
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD. Simply boot from the Recovery HD to perform the above.
    Reinstall Snow Leopard Without Erasing The drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Reinstalling Lion/Mountain Lion Without Erasing The Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Trying to put pics on a flashdrive and keep getting error that there is not enough free space when there is.  I tried to empty trash with the flash drive in but still not working.  Help!

    Trying to copy photos in folder on desktop to a flash drive but keep getting error that there is not enough free space when there is.  I read to delete trash with the flash drive in but that still doesn't work.  Help!!

    How is the flash drive formatted? Open Disk Utility (Applications>Utilities) and see how it's formatted - that might be the problem.
    Clinton

Maybe you are looking for

  • I need help reviewing my mini-max algorithm

    Hi, I've created a game of chess bottom up - I've been working on it for about one year now. This is a for fun project that I'm working on for pleasure, not a homework assignment or some. I have reached the point where I'm interested in making a comp

  • I'm having problems using Firefox when opening up PDF files that are called from jsp.

    I'm trying to open my billing statement in pdf format. When I click on the link, Firefox 4 takes me to the dowload page and starts to download a readPDF.jsp file. How come Firefox is asking for that? When I use IE 7 I get no problems. Please advise o

  • [Help]ask drives for ms-6351

    I have a pc with mircro-star board, model ms-6351 in my company, it was shipped from our hk office. but now, we have lost all information about it. I can only find its audio driver is AD1881A. who can help me and tell me its drivers for video and net

  • CS3 Photoshop keeps crashing

    Not having the best of luck with Adobe support(web support tells me to seek voice support, voice support advises me to seek web support, and the loop continues) so I hope someone here has an idea of what I need to do since I'm just about ready to can

  • WMV, MP4 is low quality after rendering.

    I have an AE template that I downloaded from youtube where all I had to do was change the logo and render it out. I want to render it in WMV or MP4 because the file size would be small but when I render it out, the file is small but the quality is te