Need Help Using El In Javascript To Get Value From Model
I have a an object stored in the model called 'domain', which has two methods, getDescriptionEn() and getDescriptionFr(). I need the description depending on the current locale. He
Solution 1:
By the time your javascript gets a chance to run on the client the JSP has already been evaluated (along with any EL) and you won't be able to access model that way.
However, you can do all that you want directly in the JSP. Use ${pageContext.request.locale}
to access the locale of the client's request and pass it on to your method.
Post a Comment for "Need Help Using El In Javascript To Get Value From Model"