Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

webwork.valueStack attribute

Posted on 2009-03-30
4
Medium Priority
?
736 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 2000 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

972 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