Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing form members...

 
Tom Diamond
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx.
I 've tried Javascript and it works just fine but if anyone knows something more I would like to know...
Tom.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic