Forums Register Login
Accessing HTML values in JSP without submitting
I'm trying to access a value in a textbox through JSP without submitting the page. Any suggestions? There doesn't seem to be a mechanism for it, as request.getParameter() only gets values from the requesting page. Also, in a scriptlet, all statements must be complete, so can't do something like this:
String s = new String("
<script type="text/javascript" defer="defer">
//do something with String s
Any suggestions? Thanks.
I think you should start with a plain HTML file containing the Javascript that works the way you want, then turn that into a JSP page.
I think you are confusing the roles of Javascript on the client and server-side programming. JSP can only work with a browser request.

author of:
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
Thread Boost - a very different sort of advertising

This thread has been viewed 487 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 26, 2018 15:27:21.