• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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: 66823
168
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!