Solved

webwork.valueStack attribute

Posted on 2009-03-30
4
647 Views
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

0
Comment
Question by:JianJunShen
  • 2
  • 2
4 Comments
 
LVL 92

Assisted Solution

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

0
 

Author Comment

by:JianJunShen
ID: 24017690
http://www.opensymphony.com/webwork/wikidocs/TutorialLesson04-01.html

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?
0
 
LVL 92

Assisted Solution

by:objects
objects earned 500 total points
ID: 24023983
0
 

Accepted Solution

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

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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
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.

746 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

9 Experts available now in Live!

Get 1:1 Help Now