Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何从JSTL转换为字符串?_Java_Jsp_Jstl - Fatal编程技术网

Java 如何从JSTL转换为字符串?

Java 如何从JSTL转换为字符串?,java,jsp,jstl,Java,Jsp,Jstl,我想从jstl中的selected复选框将行发送到jsp。在获得selected row值后,需要将其发送到jsp请求。因此我想转换为toString 如果我使用${product}将隐式调用方法toString()。仅使用 <input type="checkbox" value="${product}"/> As@Alex说EL call toString()方法使用字符串[]newenddate=req.getParameterValues(“newenddate”);从j

我想从jstl中的selected复选框将行发送到jsp。在获得selected row值后,需要将其发送到jsp请求。因此我想转换为toString


如果我使用
${product}
将隐式调用方法
toString()

仅使用

<input type="checkbox" value="${product}"/>


As@Alex说EL call toString()方法使用字符串[]newenddate=req.getParameterValues(“newenddate”);从jstl隐式设置,bean类“product”。如何迭代该值?请,您能更好地解释这个问题,或者发布一个新的答案,使其更清晰和合适。
<input type="checkbox" value="${product}"/>