webwork.valueStack attribute

Posted on 2009-03-30
Last Modified: 2013-11-24
Hi, I have an application using webwork (Struts2), spring, hibernate application.In the UI, it uses extjs to display Grid. In the legacy application, there are following two lines. Where the variable "webwork,valueStack" comes from? Is it application variable or webwork system variable?
OgnlValueStack stack = (OgnlValueStack)request.getAttribute("webwork.valueStack");

Grid grid = (Grid)stack.findValue("grid");

Open in new window

Question by:JianJunShen
  • 2
  • 2
LVL 92

Assisted Solution

objects earned 500 total points
ID: 24017592
I'd say a filter (or similar) is adding ww's ValueStack to the request


Author Comment

ID: 24017690

Shows an example. It is a system object. Then I do not know whether "grid" is a data/parameter in some Action?! How to set it in valueStack?
LVL 92

Assisted Solution

objects earned 500 total points
ID: 24023983

Accepted Solution

JianJunShen earned 0 total points
ID: 24032676
Value stack could be fetched as follows:

OgnlValueStack stack = (OgnlValueStack)request.getAttribute("webwork.valueStack");

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to parse custom JSON to POJO java 4 56
Eclipse Neon and jdk 1.8.0 11 138
github account with ecipse 1 42
oracle 11g 23 50
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now