The following is not working
<%session.setAttribute("key", ${key});%>
<c:redirect url="/example/request/first.jsp">
<c:param name="send" value="done"/>
<c:param name="key"><%= session.getAttribute("key") %></c:param>
</c:redirect>
result: "send=done&key=%24%7bkey%7d"
How would I pass my session attribute in so that the correct value would come across?
*update - What is happening is that I am saving a uploaded file to a directory on the server. I don't know how to accomplish that using a ajax call so I am using the form post method.
My ajax call which saves the record to the database is executing before my form post so the key(for that record) is lost once I get forwarded to the jsp page taking care of the file upload.
I am trying to redirect to my main page from there preserving the key so that I can load the record for the user. I was hoping that maybe session data could accomplish that for me by keeping the key from the ajax call to the form post. Messy I know... My solution needs to work on at least Internet explorer 8.