Get all parameters from JSP page

后端 未结 6 1365
无人共我
无人共我 2020-12-01 03:33

I have n number of text fields named in the form \"Question.....\". How can I get all the parameters which starts with \"question\" from the JSP page to the Action?

6条回答
  •  无人及你
    2020-12-01 04:20

    Even though this is an old question, I had to do something similar today but I prefer JSTL:

    
         
    ${par.key} = ${par.value[0]}; //whatever
        
    
    

提交回复
热议问题