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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:08:17+00:00 2026-06-04T04:08:17+00:00

i am removing some attributes from ServletActionContext bu later on when i iterate the

  • 0

i am removing some attributes from ServletActionContext bu later on when i iterate the ServletActionContext the attributes keep showing.

ServletActionContext.getRequest().removeAttribute("myCategory");
ServletActionContext.getRequest().removeAttribute("title");

for (Enumeration e = ServletActionContext.getRequest().getParameterNames();  e.hasMoreElements();) {
    parameterName = (String) e.nextElement();
    parameterValue = ServletActionContext.getRequest().getParameter(parameterName);
    System.out.println(parameterName +":"+ parameterValue); 
}

and console keeps showing me myCategory:something and title:otherthing

can any one see what is wrong ?

  • 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-04T04:08:19+00:00Added an answer on June 4, 2026 at 4:08 am

    What you removed is attribute, but you are displaying paramater. These are two difference variables.

    Check ServletRequest.getParameterNames() and ServletRequest.getAttributeNames()

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

Sidebar

Related Questions

I'm having some trouble dynamically removing UITextFields from my scrollview when the user taps
I need some help with removing some elements from my page with jQuery, currently
I'm currently maintaining an "old" system written in C# .NET, removing some obsolete features
I want to clear the contents of some std::list . The order of removing
For a remoting framework, I need to keep some metadata about object that I'm
After removing hash from URL using window.location.hash='' page getting reloaded in firefox. EDIT Example:
When removing the selected attribute from options in a multiselect using .removeAttr(selected), the options
We're looking into moving our application from VS2008 to VS2010. We generate some COM
I've got a DOMNode object that has some attributes. $Node->attributes is a DOMNamedNodeMap ,
I'm getting some html data from remote server and before displaying it in the

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.