Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7716433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:38:13+00:00 2026-06-01T02:38:13+00:00

From my JSP, I am sending a GET request with a parameter called jobDetails

  • 0

From my JSP, I am sending a GET request with a parameter called jobDetails which contains some Chinese characters [encoded with URLEncoder.encode()]. Now in the doGET() of my servlet, I need to write the data to a file. When I do

request.getParameter("jobDetails"); // this one retrieves wrong characters

There is a solution for this setting the URIEncoding="UTF-8" in

 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>

tag of Tomcat but our architect is hell bend on not to change the existing tomcat settings. I tried with setting a filter for setting the characterEncoding() for request inside doFilter() as mentioned in BalusC’s blog. But this one works for POST requests only. Is there any other solution to this other than changing the Tomcat settings ? I am using Tomcat 6 and jdk 1.6.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:38:14+00:00Added an answer on June 1, 2026 at 2:38 am

    I found a way somehow… I imported org.springframework.web.bind.ServletRequestUtils class from org.springframework.web-3.0.0.RELEASE.jar and used the following for parsing the parameter ‘jobDetails’ from ‘request’ object:

    String jobDetails = new String((ServletRequestUtils.getStringParameter(request, "jobDetails")).getBytes("ISO-8859-1"), "UTF-8");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sending multipart/mixed content message from JSP to servlets but when I used ServletFileUpload.isMultipartContent(request);
From first.jsp I am sending some parameters to result.jsp as - <a href=result.jsp?itemId=${itemId}&itemName=${item.itemName}&itemCode=${item.itemCode}')>Show Items</a>
I'm sending the request from Display.jsp to TrialShow.jsp page, but whenever I call ${pageContext.request.requestURL}
I am calling a jsp based on 2 parameters which is passed from jsp
My JSP-application requires some configuration; so I created the Settings class which is a
Can i send object or bean instead of sending parameters in jsp request to
My problem: I am sending a request to a servlet from an AJAX function
M sending the parameters from the jsp page, the code is <s:url id=url action=searchAction>
From JSP file accessed another JSP file which acts like java class, this used
I am using ajax in my jsp page to get all the values from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.