How To Pass Image From One Jsp To Another Jsp
On a button click I call a script to get the canvas Image. I take the location. I need to pass this image source into another jsp file where I need to display this image. Can you
Solution 1:
If you meant you will load that second page with image on a button click from the first page(for which you have pasted code)then just update the code as:
{
var canvas = document.getElementById("canvas");
var dataUrl = canvas.toDataURL();
//-- Following code can be placed wherever you want to call another page.window.location = "urlToSecondJSPPage.jsp?imgUrl="+dataUrl;
}
And then imgUrl(url parameter) can be accessed from second page.
Post a Comment for "How To Pass Image From One Jsp To Another Jsp"