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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:42:44+00:00 2026-05-27T07:42:44+00:00

I have came across an issue where i am unable to find a solution.I

  • 0

I have came across an issue where i am unable to find a solution.I am working on a web-application and have to impliment Oauth, things are working fine for me except one issue,in my redirect back URL from Yahoo i am getting several parametersand i need to access few of them in my action class.

Now i can easily create a property in my action class with its getter and setter methods but the name of the property is

openid.response_nonce

and my Eclipse editor will not allow me to name a variable like this.Though one solution is add RequestAware interceptor in my action class and access the parameter.

my Question is can i access it without using RequestAware inteceptor?

  • 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-27T07:42:45+00:00Added an answer on May 27, 2026 at 7:42 am

    There isn’t a RequestAware interceptor… There is a Servlet-Config interceptor which will check if your action has one of the following interfaces: ServletContextAware, ServletRequestAware, ServletResponseAware, ParameterAware, RequestAware, SessionAware, ApplicationAware, PrincipalAware.

    The Servlet-Config interceptor is part of the default-stack, which you are probably already using. So there is no additional cost or configuration required to use one of the aware interfaces.

    That aside, if you have a parameter called “openid.response_nonce” which contains a string, you should be able to refer to it with:

    //following not tested, and not checked for syntax errors
    
    private Map openid = new HashMap();
    //In Constructor{
      oauth.put("response_nonce","");
    }
    //create BOTH a getter and setter for openid
    public getOpenid(){
      return openid;
    }
    
    public setOpenid(Map openid){
      this.openid = openid;
    }
    

    Now struts2 should be able to figure out how to set the value… I think, sorry didn’t test it. You could always create a class called Openid with a response_nonce property(along with the appropriate getters and setters for that Class)… but I think in this case it might be best to just use RequestAware if you only need that single property.

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

Sidebar

Related Questions

I'm making a tabbed application, and i came across an issue. I have a
So.. The issue I have came across is I am migrating a client's web
I have came across an issue with my application when using the iPad. For
I have came across similar threads on this issue but am yet to find
I have came across strange issue with Windows Command Prompt and MySQL. Somehow command
I am working on one website and came across css issue. Mozilla and Chrome
I came across the following issue: I have a main simple page on which
I came across the following issue: I have this model public class Region {
I experimenting with Flex Styling, and I came across an alignment issue. I have
Recently we came across an issue to support side by side installation. We have

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.