JSP post does not work with specific texts sent through multiple JSP flow
Issue
- The text below does not go through the multiple JSP flow.
select */somename from tablename
- Consider an application with a simple WAR, consisting of two JSP pages,
index.jsp
andprintrequest.jsp
. - Inside
index.jsp
you have a simple form:
form action="printrequest.jsp" method="post"
input type="text" name="select_text"
input type="submit" value="Send Request"
- Inside
printrequest.jsp
you the text is simply printed:
request.getParameter("select_text");
- In some environment the call never goes to the
printrequest.jsp
when the select_text is select * from tablename or select somename from tablename. - However it will work if select_text is hello testemp
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.