<p>How do I pass a parameter from a page's useBean in JSP to a servlet in Java? I have some data in a form that gets passed no problem with a submit button, but no way to send anything else. Please help? Here is my code:</p>

<pre><code>&lt;input name = "deleteGameButton" type = "submit" value = "Delete"
 onclick = "submitToServlet('DeleteGameServlet');"&gt;
</code></pre>

<p>Here is the corresponding javascript:</p>

<pre><code> function submitToServlet(newAction)
 {
   document.userGameForm.action = newAction;
 }
</code></pre>

<p>I'd like the servlet to have access to userBean</p>

<pre><code> &lt;jsp:useBean id = "userBean" scope = "session" class = "org.project.User" /&gt;
</code></pre>

You kind of mess things here.
onclick() is Javascript and executed on client side. It has no (direct) way to update session-scoped bean. That bean is left on server-side, and was used when the HTML page was
generated
. To pass parameters back to servlet you need to use good old form fields, and submit the form.
Add more fields to the form, set their values before submit, then submit.
In Servlet call request.getParameter("name");
P.S. To automate this kind of things
USE STRUTS
. :-) Struts does exactly what you want: before passing the parameters to action, it populates the bean with those parameters. Transparently.