Hello, Is there a way to access a form member (textfield, textArea, and so on) in a JSP page? I mean is there an equivalent to javascript's
What I actually want to do is to take the text from a textField and pass it as a parameter to another jsp with the click of a custom button (not the default <input type=submit> ) :
Tom.
[This message has been edited by Tom Diamond (edited October 15, 2001).]
Karen Berx
Greenhorn
Joined: Oct 15, 2001
Posts: 3
posted
0
I don't think you can do it in JSP only. You can do a get on your current JSP page. Then you can receive the parametervalues of your form-fields. Or use javascript in your JSP-pages. I do that. Greetz Karen
well remember that JSP is server side, so your <%= %> tags won't have anything in them, because the client side has to fill them in first.
what about simply calling javascript inline? I'm not too good at javascript, but I remember having to do something very similar to this.. tomorrow at work I'll look it up and post, if my memory isn't totally shot.
Tom Diamond
Ranch Hand
Joined: May 10, 2001
Posts: 98
posted
0
Thanx. I 've tried Javascript and it works just fine but if anyone knows something more I would like to know... Tom.