Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make Struts2 select tag readonly

I want my <s:select> to be readonly, I don't want it to be disabled because I have to submit the value of <s:select> to my action class.

Here is other question related to this (Question), but the answer given has not worked here.

Is there any way to readonly my <s:select>, how can I achieve this???

like image 342
earthmover Avatar asked Sep 11 '25 22:09

earthmover


1 Answers

You can make the <s:select> tag disabled and have a hidden field having its name and value. so, that it can be sent in the request to the server for processing.

like image 115
Keerthivasan Avatar answered Sep 13 '25 12:09

Keerthivasan