• Post Reply Bookmark Topic Watch Topic
  • New Topic

What are other mechanism to get and post values to or from in HTML form?  RSS feed

 
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I have a question that I want to get some values from the server based on some input Id send from my view page.I am getting what I want.

But I have made a form like this


<form action="http://localhost:8080/WebFormSpringHibernate/search" method="get">
<label style="font-size: 20px; margin-left: 40px;">Id</label><input type="text" id="search_id"/><br>
<input type="submit" value="Submit"/>
</form>



I want to know is there any other way then form that I can pass values to server side servlets(or any..)?

hope you can understand.Please ask if not

Thanks
 
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anything that makes an http request to the server can pass data back.

images, iframes, stylesheets, external scripts, XMLHttpRequest Object, etc
 
Author and ninkuma
Marshal
Posts: 66689
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags rather than quote tags when posting code.

What's wrong with the form approach? You haven't said. It's hard to advise something else when we don't know what you are trying to accomplish.

The form can easily be turned into an Ajax request with something like the jQuery Forms plugin if needed.
 
Men call me Jim. Women look past me to this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!