I'm adding an object to my ModelAndView
in spring and forwarding to my jsp view. I need to access that object in my jquery. Is this possible without first putting the value in a hidden field? How is it done?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- java.lang.IllegalArgumentException: Cannot set to
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
This will resolve the model attribute added by
model.addAttribute("modelAttribute", value)
probably, you can save the model attribute in a hidden field and access it onload as below.
Add c:out around the
${modelAttribute}
in the jsp.