Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Removing Unnecessary Characters from Servlet class

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Removing Unnecessary Characters from Servlet class

    hi guys ,
    I have a requirement , I have created dynamically in table in JSP with common name as

    for(i=0;i<count;i++){
    var name="EmailCookie"+i;
    var getData =readCookieSearch(name); // reading the values from COokie
    if(getData !=null){
    var element = document.createElement("input");
    element.setAttribute("type", "hidden");
    element.setAttribute("value",getData);
    element.setAttribute("name", "EmailData");
    var foo = document.getElementById("fooBar");
    //Append the element in page (in span).
    foo.appendChild(element);
    }

    now I am retriviing this EmailData value from servlet class
    as request.getParametervalues("EmailData");
    what means When I displaying these values on sysout then instead of Apstrpes(') ,hypens( - ) these are getting as ? in the place of hiphen and Apstrpoes
    For Example
    on JSP page we have Let’s Talk Synergy – group disability insurance top up
    in Java class we have Let?s Talk Synergy ? group disability insurance top up


  2. #2
    Junior Member
    Join Date
    Oct 2011
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Removing Unnecessary Characters from Servlet class

    Hi,
    I think there is some content type issue is there in your jsp.

    bean factory
    Last edited by abani; December 18th, 2011 at 02:03 AM.

Similar Threads

  1. Java Not Removing Panels?
    By Pantheon8 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: August 17th, 2011, 07:54 PM
  2. Help: Bug with removing data from a Hash Map
    By seabeach in forum Collections and Generics
    Replies: 4
    Last Post: August 11th, 2011, 11:54 AM
  3. collecting information/moving from servlet to servlet
    By CBird in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 1st, 2011, 07:04 PM
  4. Arraylist removing element
    By Stn in forum Loops & Control Statements
    Replies: 6
    Last Post: January 9th, 2011, 08:14 PM
  5. Removing the middle cell
    By Shyamz1 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 7th, 2010, 01:35 PM