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

  • SEARCH
  • Home
  • 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 8104317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:48:27+00:00 2026-06-05T23:48:27+00:00

I have a url, something like this localhost:8080/foo.action?param1=7&param2=8&param3=6 When this is the Url (as

  • 0

I have a url, something like this localhost:8080/foo.action?param1=7&param2=8&param3=6

When this is the Url (as it is), request.getParmeter("param2") gives me 8 [Correct]

i) When the encoding converts this url to localhost:8080/foo.action?param1=7%26param2=8%26param3=6

In this case, request.getParameter("param1") gives me 7&param2=8&param3=6

ii) When the encoding converts this url to localhost:8080/foo.action?param1=7&param2=8&param3=6

In this case, request.getParameter("param1") gives me 7 and request.getParameter("param2") gives me null

What is the correct way of retrieving the parameters? [Assuming that using one of the two Url encoding schemes is unavoidable]

(I am using struts actions)

  • 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-05T23:48:28+00:00Added an answer on June 5, 2026 at 11:48 pm

    You can call req.getQueryString() to get the whole query parameters and then do server side decoding based on whatever encoding methods you choose.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have URL like this: http://localhost/PMApp/temp.htm?ProjectID=462 What I need to do is to get
I have a url string like this: http://www.google.com/cse?cx=017840637368510444960:ny1lmky7r-0&client=google-csbe&output=xml_no_dtd&q=simon+g I need to send this url
For example if I have extjs ComboBox, and I have URL like http://localhost:8080?param=value1,value2,value3 How
I want to have use something like this: http://localhost/test/dummy instead of this: http://localhost/test/profile.php?id=dummy I
I have URL like: http://example.com#something , how do I remove #something , without causing
I have URL scheme for my blog like this: http://www.example.com/%YEAR%/%MONTH%/%CATEGORY%/%POST_TITLE%/ Now i want to
I have an url like this: http://www.w3schools.com/PHP/func_string_str_split.asp I want to split that url to
I'm new to cakephp...and I have a page with a url this: http://localhost/books/filteredByAuthor/John-Doe so
I have a view with the two HtmlHelpers that produce links, something like this
Using github like chain routes in rails I have URLs similar to this: 'localhost:3000/document_managers/[:module_name]'

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.