Robert Wiscup wrote:
Multiple issues. Here you're trying to use JavaScript inside
Java, *and* you're setting an attribute in the *current* request. I'd suggest reading up on how web applications work before proceeding much further--you're due for tears and frustration without understanding the lifecycle of Java, JavaScript, HTTP requests, and the like.
The only way data gets from a browser to a server is via form submissions, XHR (Ajax) requests, etc.
@Sue: have a care regarding line length and weird formatting.