Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 737
  • Last Modified:

webwork.valueStack attribute

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
JianJunShen
Asked:
JianJunShen
  • 2
  • 2
3 Solutions
 
objectsCommented:
I'd say a filter (or similar) is adding ww's ValueStack to the request

0
 
JianJunShenAuthor Commented:
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
 
objectsCommented:
0
 
JianJunShenAuthor Commented:
Value stack could be fetched as follows:

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

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now