This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP & adding dynamically parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP & adding dynamically parameters" Watch "JSP & adding dynamically parameters" New topic
Author

JSP & adding dynamically parameters

Francesco Pezzino
Greenhorn

Joined: Oct 30, 2001
Posts: 7
Hi, I have a JSP that has a form, the value of one input field depends on some others. Basically I want to transfer all these parameters to a determined servlet, when I press submit the value must be calculated and this parameter added to the request, note that I cannot modify the servlet and the request must be sent with method post.
This servlet uses the method getParameter() to obtain the values from the form.
I would appreciate if someone has some idea how to implement all this stuff. Thanks Francesco
sampy jagan
Ranch Hand

Joined: Sep 17, 2002
Posts: 34
IF u want to do it on the client side use javascript to calculate and store it in hidden fields. If you want it to be done in server sidetry using
<jsp:forward page="{relativeURL | <%= expression %>}" >
<jsp aram name="parameterName"
value="{parameterValue | <%= expression %>}" />+
</jsp:forward>
 
Consider Paul's rocket mass heater.
 
subject: JSP & adding dynamically parameters
 
Similar Threads
request
JSP - Servlet interaction.
Passing values from JSP
HTML and Servlets
request.setAttribute and getAttribute problem