Reputation: 21
<jsp:forward page="Update_job.jsp?ename=<%=ename%>"/>
Here i got error that says: "java.lang.IllegalArgumentException: [=] is not a hexadecimal digit "
Is there any way to sort it out?
Upvotes: 0
Views: 988
Reputation: 152
you may try this:
<jsp:forward page="URL" >
<jsp:param name="ParamName1" value="ParamValue1" />
<jsp:param name="ParamName2" value="ParamValue2" />
</jsp:forward>
also for more exploration go through this link http://www.gulland.com/courses/jsp/actions/forward
Upvotes: 1
Reputation: 1395
I suggest you explore using the JSP Expression Language together with JSTL.
For example, ${temp} will result in a search for the variable, in this case temp, within the page, request, session and application scopes. Much nicer than using scriptlets and JSP expressions.
In this way you can eventually get rid of all the inline Java from your JSP.
Upvotes: 0