Spring MVC with AJAX / JSON - Loading a new page - how can I access the URL data?

RequestMapping(value="/nextpage/{ID}", method=RequestMethod. GET) public String getCreateForm(@PathVariable("ID") int id, Model model) { /** Do something **/ model. AddAttribute("ID", id); return "nextpage/nameofthejsp"; } and in your nextpage/nameofthejsp JSP, ID will be accessible: ${ID}.

Oh yes, tis is what I am searching for. But how can I access it in the frontend system. Perhaps you can tell me how to put this into a JavaScript alert(); message?

– Tim Dec 16 '10 at 15:38 1 @Tim It would be: alert('your id is ${id}'); jstl has been used to print the id value. You can find more info about jstl in ibm. Com/developerworks/java/library/j-jstl0211.

Html – Javi Dec 16 '10 at 17:18.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions