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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
web services creation SOAP vs REST 5 56
HashTable highest marks enumeration alternative 9 43
JavaFX TableView not displaying correctly 3 57
What's wrong with this code? 4 26
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

860 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