Struts 2 - Setting hidden properties and retrieving in an action
posted 6 years ago
Having spent the last 3/4 hour doing something relatively straightforward, I would appreciate some advice. In the past, I've created a jsp containing hidden attributes. I've then retrieved them from an action and made use of their value.
For some reason, I have an action which does not appear to be picking up the hidden attributes from request scope.
The snippet from the jsp in question containing the hidden attribs is as follows:
when submitting this form via the input, this forwards to the action viewA, executing method aMethod. A snippet from this action:
If I debug in Eclipse, I can see these hidden attributes in the request's parameter map. This was also the case in the other action which works.
For some reason, calling get for attrib1 & attrib2 results in null values.
Would appreciate any pointers as to why this may be happening.