GetParamter("") gets only half portion of String...

I am using jni to retreive data from database and use jsp to view in webpage...
When i use request.getParameter("name");
I am getting only half of my name String. i.e. If the name is John Smith, I am retreiving only John and no Smith :(
But when I print the value from by bean where I get the Database value I am seeing John Smith, only this JSP page is not displaying the full name...
Any hight lights are appreciated.
Thanks in advance.

Are you looking something like this to display the error stack on the browser itself...!!!!
try{
        //code which throws exception..
}catch(Throwable theException)
     out.println(stackToString(theException) ;
     private static synchronized String stackToString(Throwable aThrowable) {
          try {
               ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
               PrintWriter pw = new PrintWriter(byteStream, true);
               aThrowable.printStackTrace(pw);
               pw.flush();
               pw.close();
               byteStream.flush();
               byteStream.close();
               return byteStream.toString();
          } catch (Throwable ex) {
               return aThrowable.toString();
     }hope it may help you...

Similar Messages

  • How can to randomly color only half of the string?

    hello
    i need guidance in randomly coloring only half of the string, this string is also moving and changing color only in half part.
    suggestions will be appreciated, thx
    jenny

    Your best bet would be to use crayola or magic marker. If your colorblind, read the labels on the crayons and they will say what the colors are.

  • Urgent: get only half-data from InputStream

    Hello,
    I am using a client socket (java code) to get the data from server socket(Perl code), the getInputStream( ) get only the half-data from server. For example: the data in server is 12345678, what the client to get is 1357.
    Both socket use stream socket, tcp protocol,
    inBuffer = new BufferedInputStream(misClientSocket.getInputStream());
    while( (ch=inBuffer.read()) != -1 ){     
    System.out.print((char)inBuffer.read());
    or System.out.print((byte)inBuffer.read());
    even if I don't use BufferedInputStream, directly to use InputStream.read( ), it also get half-data.
    Please help me to know what is wrong!!!
    Thanks
    Lixin

    You just get every other byte because you call inBuffer.read() twice each time : once in the while condition then once in the while body. Just try this :
    inBuffer = new BufferedInputStream (misClientSocket.getInputStream());
    int ch;
    while( (ch=inBuffer.read()) != -1 ){
    System.out.print((byte)ch);
    } Matthieu

  • Guide me in coloring only half of the string

    i need to color only half of the sring..this is also moving string..how could i randomly color its half part?

    You must be more specific. Is it a textfield/textarea or just Graphics' drawString method? What do you mean with half of the string?

  • Only half of the audio gets imported in Composition!!!

    I use After Affects CS6. I have 8 videos. I import them to my Project and then import them all in one composition. Everything is fine: BUT one of the videos, has only half the sound. On top left, I see the green wave sign is full but as soon as I import it next to the other videos in the Composition, only half of the sound gets imported. I check the Audio in the composition for this video and can also see the green wave in half way through.
    I tried a new comporistion for this particular video, the same thing. I even closed everything down, open a very brand new project but still the same.
    No effect or anything is used. Again, all the 8 videos are being treated 100% indenticall. It is just this one that although the audio gets imported all in full in the Project but as soon as it is imported to the Composition, half of the sound gets disppeared.
    Please help me. I have to deliver this project to my customer :(((

    The videos come from my Camcorder and in MTS format.
    Yes. It opens fine in Premiere and other places. Even in After Effects, It imports all fine in the Project. The green waving audio sign is there to see and all fine. But as soon as I import it to the Composition, only half od the audio gets importet.
    Well, like I said, EVERYTHING is 100% the same amoung all these 8 videos. They were shot at the same day, same everything. All the other 7 work just they way they should. Its just THIS one with this issue.
    I just even un-installed the AE and re-installed it but still the same. New project, new composition, .. THIS video gets only half audio when in Composition.

  • Vuescan Preview Showing Only Half Screen On 2012 Mac Mini

    Hi there,
    I have a 2012 i7 2.3Ghz quadcore Mac Mini fitted with an Areca Thunderbolt 12TB RAID and running 10.8.2, and using the latest version of Vuescan, am getting only half the screen when going onto Preview from our Minolta Dimage Scan Multi Pro scanner, which is connected via a Firewire 800 to 400 cable.
    One would think it is a problem of the software or OS but no......when running it on a mid-2010 2.4Ghz i5 Macbook Pro on SL 10.6.8 and on another 2011 Mac Mini we have (also running 10.8.2), the Vuescan runs perfectly and previews normally. So I am wondering.......what is the cause of the problem? Could it be to do with the Firewire port, interference from the Thunderbolt port, or simply that we have a defective motherboard? Would appreciate any help or suggestions, thanks.

    HI AngusParker,
    Just wanted to say thanks.....your tip definitely helped me solve this problem!
    It was indeed the screen calibration that was the main issue...once that was done the screen went back to normal.
    cheers!

  • Getting a complete portion of an XML String (With tag names)

    Im working on an application that processes a huge amount of xml strings. Im using xpath since it makes it much easier to select and navigate through the tags. The only thing I can't do is get a complete portion of an XML string, for example, if i have
    <article>
    <articlebody>
    </articlebody>
    <references>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    </references>
    </article>
    I need to get the complete <reference> portion to parse later, so i need the following string:
    <references>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    </references>
    How can i do this using xpath? is it even possible? if not how else can i do it? (don't want to use regular expressions and string manipulation)
    Thanks for you help

    Im not sure if this really qualifies as using DOM, but this is all i do to get the data i want from the files (when i only want to get the text value of an element:
    InputSource inputSource = new InputSource(new StringReader(metadata));
    return xpath.evluate(expression, inputSource, returnType);where metadata is a String containing meta data, and return type is usually string or number.
    Im using Java 5 and
    Could you please explain a little more how to do this?
    Thank you

  • I purchased extra icloud storage to back up my phone and photos. Purchased a new phone and went to download phtotos on new phone and only a portion of my photos are back on my new phone. How do I find all my photos and get them on my new phone

    I purchased extra icloud storage to back up my phone and phots. Purchased a new phone and went to pull my photos from icloud and only a portion trasferred to my new phone. How do I get all of the photos moved to my new phone?

    Not photos, just data synced with iCloud shown in Settings>iCloud.  If you don't have sufficient storage to back up to iCloud, back up to your computer instead using iTunes (connect you phone to your computer, open iTunes, click on the name of your phone in iTunes, go to ths Summary tab of your iTunes sync settings and click Back Up Now).  Also transfer your purchases to your iTunes library (connect your phone to your computer, open iTunes and go to File>Devices>Transfer Purchases). If you have photo stream photos older than 30 days tha you wan to save, save these to your camera roll before backing up (tap Select, tap the photos, tap the share icon -- box with upward facing arrow, then tap Save to Camera Roll).
    When setting up your new phone, when given the option choose Restore from iTunes Backup and restore the backup you made earlier.

  • I purchased an album but only half the songs will download. How do I get the other half to download?

    I purchased an album but only half the songs will download. How do I get the other half to download?

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copy of the track and try redownloading a fresh one.
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • Only half of the body just below the camera and steel side of camera side is getting heated up just after 10 , 15 mins of usage i my iphone  4 is it normal...as earlier the body was not heating up even after 2 hours....the problem started after updating t

    only half of the body just below the camera and steel side of camera side is getting heated up just after 10 , 15 mins of usage i my iphone  4 is it normal...as earlier the body was not heating up even after 2 hours....the problem started after updating to 6.1.2
    iPhone 4, iOS 6.1.2

    Hi, did you ever solve this problem?
    My 1 year old -- ha! one month out of warranty -- iPhone 4 has been having a nearly identical problem over the past few days.
    It started by dying completely so I had the battery replaced, thinking it was simply battery issue.
    It then worked again for a moment but started doing exactly what you describe, going through a reset cycle (longer than 30 seconds but who's counting). And it felt quite warm.
    Did hard reset, plugged into wall charger and MBP USB but the new battery wouldn't even get a full charge (a whopping 92% after nearly two days). It would even lose battery when plugged in if I opened an app. And all the while plugged in, if I left the phone on, it would cycle through these resets. So I turned it off to try to charge it.
    Now suddenly, it's dead again. Totally black, and hard reset does nothing. Up until two days ago there was nothing wrong whatsoever with this phone! And I hadn't even installed a new app that could be the root of the issue. No idea whatsoever what caused this.
    Any help would be much appreciated!!

  • HT1725 I purchased an album and it downloaded. However, one song on the album has only half the song. I've tried to "download" the "available downloads", but the darn itunes states that it's already been downloaded. How do I get the rest of the song?

    I purchased Alanis Morisette new album. All the songs have downloaded, or so it said. While listening to the album, only half of "celebrity" downloaded. I've checked the "available downloads" section and it says that all have been downloaded.
    How do I get the rest of the song to download? I've read the support page about wifi issues, blah blah blah. Not the issue.
    Thanks for any help.

    Assuming you are in a region where you are allowed to redownload your past purchases, delete the broken files from your iTunes library, go to the iTunes Store home page, click the Purchased link from the Quick Links section in the right-hand column, then select Music and Not on this computer. You should find download links for your tracks there.
    If you don't see them straight away it may help to close and restart iTunes.
    While downloading select Downloads in the left-hand column and make sure Allow Simultaneous Downloads is unticked.
    If the problem persists, or that facility is not yet available in your region, contact the iTunes Store support staff through the report a problem links in your account history, or via Contact Support.
    See also: HT2519 - Downloading past purchases from the App Store, iBookstore, and iTunes Store
    tt2

  • TS1424 i ordered a album i didnt want and to top it off the sangs are only half there how do i delete purchase and refund my money so i can get the right album?

    i ordered a album i didnt want and to top it off the sangs are only half there how do i delete purchase and refund my money so i can get the right album?

    There are no refunds.
    If the songs are incomplete then delete and redownload:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I need to parse a String and get only the numbers in the String.

    I have a string like this
    <div class="leader"><div class="leaderLeft">Top Wraps:</div><div class="leaderRight">4</div></div><br/><div class="leader"><div class="leaderLeft">Bottom Wraps:</div><div class="leaderRight">2</div></div><br/><div class="leader"><div class="leaderLeft">Spiral-Up:</div><div class="leaderRight">3</div></div><br/><div class="leader"><div class="leaderLeft">Spiral-Down:</div><div class="leaderRight">3</div></div><br/>and I need to get only those numbers out of it. I came up with a way to kind of do it using patterns and splitting the text but that doesn't help me because sometimes the string is a little different. Like this:
    <div class="leader">
         <div class="leaderLeft">Top Wraps:</div>
         <div class="leaderRight">2</div>
    </div><br/>
    <div class="leader">
         <div class="leaderLeft">Bottom Wraps:</div>
         <div class="leaderRight">2</div>
    </div><br/>
    <div class="leader">
         <div class="leaderLeft">Spiral-Up Wraps:</div>
         <div class="leaderRight">3</div>
    </div><br/>
    <div class="leader">
         <div class="leaderLeft">Spiral-Down Wraps:</div>
         <div class="leaderRight">3</div>
    </div><br/>It has paragraph spacers in it. Is there anyway to possibly do this. I have tried everything I could think of. Thanks a bunch guys.

    dothedru22 wrote:
    The only problem I'm having is find tutorials working with strings with xpath. All the ones I've found were working with .xml files.That's the least of your problems. Just change the example so that instead of parsing from a file, they parse from a StringReader.

  • TS1362 Two weeks ago Purchasing 60 songs from iTune store.So Two of them play only half of song and then jumping to another songs.What is could be?Or can i get repair this two downloads?

    Two weeks ago Purchasing 60 songs from iTune store.So Two of them play only half of song and then jumping to another songs.What is could be?Looks like is not been downloaded full.Can i get this two songs to play correct?Many thanks Aleksejs!!!

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the dodgy tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • HT1689 Downloaded an album from itunes and only half of the songs will download to my ipad.  error says file cannot be converted.  How do I get this fixed or request a refund since I can't use the item purchased?.

    Downloaded and album from itunes and only half of the songs will download to my ipod.   Error message says file cannot be converted.  How do I fix this or get a refund from itunes?

    Welcome to the Apple Community.
    Try deleting the problematic file (electing to remove original file if/when prompted) and then re-downloading the file from the iTunes store.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option at the bottom of the screen of the iTunes app (or video app) on your iOS device.
    If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.

Maybe you are looking for

  • Live Cam Voice OR wireless connection; not both

    My new Live! Cam Voice blocks my wireless Internet connection. The Webcam works fine for taking photos and making little videos. But if I'm online, and plug the Webcam into a USB port, my connection is cut and I cannot restore it. Unplug the Webcam a

  • Can connect to LAN wirelessly but can not connect to the internet.

    The problem: I can connect to the wireless router and modem router wireless and can browse the router setting web pages etc without issue. However i can not browse the internet, send or receive mail etc. The setup: A Belkin/iinet modem connects to th

  • A1000 low memory crashes

    IdeaTabA1000L-F, android 4.1.2, kernal 3.4.0, serial HGC1W5PYMany months ago i came on this site looking for a solution about my low memory problems, d/l a updated software fix for this which lasted a whole day. Installed an external sd card and move

  • Service line item related query.

    Hi , i am creating one project and want to copy one service activity with all line items from my another project, the activity is containing more then 200 line items please tell me how to copy a single service ativity from one project to another proj

  • Support for ActiveSync Smart Forward and Smart Reply still missing?

    Hi, am I right that current device OS (tested 10.3.1.1565) is still *not* supporting ActiveSync options "Smart Forward" and "Smart Reply"? If so, is there an ETA when these options will be supported? Thanks in advance, Frankl