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

The Archive Base Latest Questions

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

From what i understand the new Struts2 – the value stack stores the action

  • 0

From what i understand the new Struts2 – the value stack stores the action objects and put those member variables of the action objects onto itself – hence like a virtual object. Supposedly on my html using struts2 tag, i want to display one of the member variable but there are few of them having the same name.

<s:property name="memberpropertyname"/>

The value stack access this name from top to bottom. What if the top one is the incorrect one? How does it resolve it and pick say the last one – which is the one for me.

Any help please ..

  • 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-17T22:00:10+00:00Added an answer on June 17, 2026 at 10:00 pm

    If your application actually has a legitimate reason to shade values, you have a few options. In general, however, the top-most stack item (usually the action) should be the thing exposing data to the view layer.

    You can directly access whatever is at a specific stack depth via array notation:

    <s:property value="[1].memberProperty"/>
    

    This bypasses the top-most item on the stack and examples the next one down explicitly.

    This is almost never necessary in a reasonable application. At most you might need to directly access an action property, for example, during an iteration, or if something has been <s:push>ed onto the stack (also rare). Accessing action properties is simple:

    <s:property value="#action.memberProperty"/>
    

    I’d suggest if you find that you need to access data lower in the stack than the action, and the action is obscuring the view to those lower layers, that you’re doing it wrong. If nothing else, whatever is putting the object you need onto the stack before the action is pushed should push an object that’s unlikely to be exposed by an action.

    For example, a filter that sticks some app-wide data might use a generic name:

    <s:property value="corp.somethingUseful"/>
    

    Without understand your usecase and how this situation has come to be it’s difficult to provide more specific assistance. My gut reaction is that something has gone wrong, though.

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

Sidebar

Related Questions

From what I understand, in standard C++ whenever you use the new operator you
I'm new to cakephp, but from what I understand all of the database interaction
I was trying out System.Json (Beta) from NuGet. Also, trying to understand this new
I am new to Struts2 and would want to understand how exactly does it
Just new to the Cocoa Framework - I understand from this question here that
i want to understand from the below code y the value of static variable
As you can probably understand from the question itself, I'm new to Java. I
As I understand from reading this post about the new invokedynamic bytecode instruction in
I'm still new to web programming and Rails in general. From what I understand,
As you can understand from title, i modified Settings.cs file.Added some properties, some code

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.