如何用 EL 表达式与 JSTL 将 inputList 中的数据显示在inupt中如何实现?

 在jsp页面中解析 request 中名字为\"data\"的数据,其结构包含两个元素 List<String> inputList 与 String btnTxt,要求用 EL 表达式与 JSTL 将 inputList 中的3条数据显示在3个inupt中,将 btnTxt 中的内容显示在 button 按钮上);

data是list集合还是map集合

 

<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>

<%
	String data = request.getContextPath();
%>

</head>
<body>	

	  <tbody id="databody">
	  
		<c:forEach items="${data[0]}" var="inputList">
			<input name="input1" value=${inputList.value1} >
			<input name="input2" value=${inputList.value2} >
			<input name="input3" value=${inputList.value3} >
			<button onclick="btnTxt('${data[1]}')">button</button>	
		</c:forEach>
		
	  </tbody>
	  
</body>
</html>

 

<c:forEach items="${data[0]}" var="inputList">
	<input name="input1" value=${inputList} >			
</c:forEach>
<button onclick="btnTxt('${data[1]}')">button</button>