Мне нужен скрытый ввод, чтобы содержать значение, переданное строкой запроса через URL JSP.
URL выглядит как ... http://nowhere.com/myapp/blah.jsp?key=12345
JSP выглядит как ...
<html>
<body>
<input id="key" type="hidden" value="<%=request.getParameter('key')%>" />
</body>
</html>
Это вызывает ошибку 500 ...
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 3 in the jsp file: /myapp/blah.jsp
Invalid character constant
1: <html>
2: <body>
3: <input id="key" type="hidden" value="<%=request.getParameter('key')%>" />
4: </body>
5: </html>