Questions tagged [valuestack]

The ValueStack is a context for the beans evaluated via the EL expressions.

The ValueStack is a context for the beans evaluated via the EL expressions. ValueStack allows multiple beans to be pushed in and dynamic EL expressions to be evaluated against it. When evaluating an expression, the stack will be searched down the stack, from the latest objects pushed in to the earliest, looking for a bean with a getter or setter for the given property or a method of the given name (depending on the expression being evaluated).

One of the known implementations of the ValueStack is OGNL (Object Graph Notation Language). OGNL allows for dynamic OGNL expressions to be evaluated against it.

The XWork provides extension to OGNL and support for the ValueStack. While OGNL operates under the assumption there is only one "root", XWork's ValueStack concept requires there be many "roots".

The value value stack internals page: http://struts.apache.org/docs/value-stack-internals

92 questions
1
vote
3 answers

Can I access properties of another action which is not on the ValueStack in Struts 2?

I have two JSP pages displaying two lists from two different actions: page A displays employee list, page B displays department list. Both pages have a common text field (included from a third JSP page) on the top to search employees by…
z.e.88
  • 33
  • 6
1
vote
2 answers

Accessing specific value in a list of values

I have a dictionary that looks like: {'153': |T-shirt| |200| |0| |0|, '764': |Jeans| |350| |0| |0|, '334': |Hatt| |59| |0| |0|, '324': |Skor| |250| |0| |0|, '234': |Tröja| |300| |0| |0|, '543': |Jacka| |400| |0| |0|} This means that I for…
Bardolf
  • 17
  • 4
1
vote
0 answers

Exceptions with Struts Tag

I am getting below exception with Netbeans 7.0.1 and Struts 2.2.3 Its quite weird as the jsp pages which used to work suddenly starts giving below exception. Mostly,it looks like problem with deployment or library configuration. Please…
Atul
  • 1,694
  • 4
  • 21
  • 30
1
vote
1 answer

How to select a specific object from the action class

How do I select a specific object from the action class when pulling up multiple objects in JSP. From my action class I pass through Struts five of the same object. In JSP how would I select a specific object and property of the object to display on…
Aaron
  • 224
  • 1
  • 4
  • 13
1
vote
1 answer

(Struts2) How to add new parameters into Action instance from an interceptor?

I want to make an interceptor to pre-process XML request. In this interceptor, it parse the XML and put the processed info into ValueStack so that it can map to the instance in the action. However, I have tried so many methods but none of them is…
PatYuen
  • 11
  • 1
  • 3
0
votes
1 answer

some basic queries regarding value stack in struts 2?

I am new to strut 2 though I have worked on struts 1.2.In one of the pexisting project jsp file I have following code: