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 653131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:20:53+00:00 2026-05-13T22:20:53+00:00

In my web application, I use strust2 url tag to pass parameters like id

  • 0

In my web application, I use strust2 url tag to pass parameters like id etc., For example, I use a link to delete an entity and I use param to pass the id of the entity to be deleted. And I follow this throughout my web app for adding, editing, deleting an entity.

During run time, sometimes, I don’t get the params to be stored in my action’s bean properties. When I see the link that is generated, I get something like

<a href='/projit1/p/discuss/viewDiscussion.action?d=11&amp;amp;amp;projid=11&amp;amp;disid=4'>

What are these amps for ? why do they sit in between the action calls (made by link via url tag actions ) ? By the time I traverse back and forth in my web app, I get 10s and 20s of amp sitting in the request URL. What is the problem here ? Please help.

  • 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-05-13T22:20:53+00:00Added an answer on May 13, 2026 at 10:20 pm

    In HTML, XHTML and XML certain characters are treated specially. The special characters used the most are less then (<) and ampersand (&). The < is only valid at the beginning of a tag, while the & is used to encode character entities (special characters, characters that can’t be typed, etc.). Because & is special and can not appear as part of an attribute value it is encoded as &amp; and while it may look strange if you don’t know why, the href value in your question is almost correct. In the same manor < should be encoded as &lt; to ensure correct browser behavior. Not encoding these characters MAY work but is NOT GUARANTEED to work.

    The problem with your URL is with multiple amp; what this indicates is the href has been encoded multiple times. The first time & was changed to &amp; at that time another parameter was added with it’s & separator. The whole URL was then encoded a second time changeing the first & to &amp;amp; and the second to &amp;. Then for some reason the URL was encoded a third time causing the first to change to &amp;amp;amp; and the second to &amp;amp;. To remove the excess amp;s you need to ensure the URL is only encoded for HTML once not multiple times.

    Your resulting tag should look like this:

    <a href='/projit1/p/discuss/viewDiscussion.actiond=11&amp;projid=11&amp;disid=4'>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need my ASP.NET web application to use silverlight controls in my web page.
I create new ASP.NET web application that use SMTP to send message. The problem
Normally I create web application projects and use code-behind, but I have a requirement
In the web-application I'm developing I currently use a naive solution when connecting to
I have a web application that makes heavy use of the Session state to
In a web application, is it acceptable to use HTML in your code (non-scripted
I'm writing a web application in Python, intended for use by teachers and pupils
Scenarion: I am having a web application which is going to use SqlServerReport(SSRS) sitting
I am writing a web application using PHP. I want to use the MVC
Suppose you have two seperate ASP.NET Web Application projects that both need to use

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.