My scenario is like this:
- I need to have config properties (key and value from .properties file located at server side) at my javascript side.
- I created a filter and read that properties file (using ResourceBundle), created a map of these key/values, put the map in session.
- In jsp, a input hidden field is there to get the session attribute, but in javascript, that jsp element is returning map as string, so i have to apply string operations to get the values. Not a good approach, I think.
- I created a filter and read that properties file (using ResourceBundle) and put each key/values in session.
- In JSP, I have same no of input hidden fields to get corresponding session attributes .