posted 19 years ago
Technically, it won't be an issue. JSP is just a templating mechanism after all. It just outputs text, that text can be anything you like.
You might potentially have some issues with extra spaces being generated by the JSP. HTML doesn't worry about extra white space, but javascript might.
Also you will still have to call your page .jsp for it to be interpreted by the jsp engine.
Also be aware that you will have to download this javascript every time.
Is the dynamic part dynamic on every request, or just for each session?
Potentially might there be caching issues with this approach?
Hope this helps,
evnafets