spring - How to get the redirected status message from the url to the jsp page? -


this catch block upload fail functionality.

catch(exception e){             e.printstacktrace();             model.addattribute("uploadfailurestatus", servermessagekeys.upload_failure.getcode());         } 

if upload fails, in url like

http://127.0.0.1:8080/....../masterinfo?uploadfailurestatus=upload.failure.status

i have show status message in jsp page. pleae me.

you can parameter value using jsp request object.

i.e. request.getparameter('uploadfailurestatus');


Comments