I have some JAVA Servlets that pass some variables to JSP files, the requirement is to convert JSP files to use only HTML and JAVASCRIPT, because the files will reside on the client side so they wont get compiled if JSP is used.
JavaScript(ajax, jQuery, etc...) needs to act as a connector between the server side and the client side...
How can i access JSP variables such as ${beanName.propertyName} purely with JavaScript?
The article How to use Servlets and Ajax? almost answers this question, but it shows examples if the return type of Servlets are JSON objects, however in my case they are TEXT/HTML