Tudor Andrei Raneti wrote:If you can generate HTML you can generate JSP IMO
Ummm, no. You can't. Any JSP syntax generated on the client will just be gibberish.
JSP and JavaScript cannot directly interact as the JSP gets executed on the server long before the HTML page it generates is sent to the browser where the JavaScript is evaluated.
You're right, I know JSP has to be parsed, and for that it needs sending to the server. The scenario i was thinking is the following: the problem is that the JSP on page is only temporary, so making a page refresh or self forward to self would return the old version of the page i think (because the server still has the old version, so a request will send the old version as a response). The chalange would be sending the new page as it is to the server and getting the parsed version of it back . It's beyond me at this point. Probably would need a special framework to do that, but i don't see the point.
There is no point as all that is not necessary in the face of techniques like Ajax. What the original poster needs to understand is how JSP really works and why what he's trying to do makes no sense and is non-causal.
Then he can post what he's really trying to accomplish and we can all figure out the best way to get it done.