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
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP & adding dynamically parameters" Watch "JSP & adding dynamically parameters" New topic

JSP & adding dynamically parameters

Francesco Pezzino

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 %>}" />+
I agree. Here's the link:
subject: JSP & adding dynamically parameters
It's not a secret anymore!