Jonilie Echavez wrote:However, when i submit the form, i want to pass the value selected in the dropdown list to the property called value. Is it possible to do this?
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Attribute paramOptions:[report.ParamOptions@daa6d1, report.ParamOptions@fde3c7]
Attribute getAttribute paramSelected:null
Attribute param.getValue:
Attribute paramOptions:[report.ParamOptions@daa6d1, report.ParamOptions@fde3c7]
Jonilie Echavez wrote:In the Action page, i get the paramOptions like this:
Output:
Attribute paramOptions:[report.ParamOptions@daa6d1, report.ParamOptions@fde3c7]
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
deepika bhatia wrote:
you should pass thsi list to service class from the action class and using List Collection,you should extract each element of the list in a variable using a for loop and then you can use your specific value.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Jonilie Echavez wrote:This is the result when the value put in dropdown, the request.getAttribute("value") was also null.
>>Attribute param.getValue:
>>request.getAttribute value: null
property* :
Name of the request parameter that will be included with this submission, set to the specified value.
name :
The attribute name of the bean whose properties are consulted to determine which option should be pre-selected when rendering this input field. If not specified, the bean associated with the enclosing <html:form> tag is utilized.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Everyone is a villain in someone else's story. Especially this devious tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|