Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

So simple...?

 
nikos sokaf
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I asked some advises at others forums, and i take some good answers.
Let me ask something at mentors of javascript...
I am developing a little web server...
My problem is on client page:
I wanna send a value-string at my server using http 1.1, value that i take from a textfield by pressing a submit button...
How can i do that using the familiar code of java (i guess javascript is like java but for me that i work at java 2 platform, has many diffrenses) and not cgi or other?
Thank you for your guidelines,if any!
nikos sokaf...
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java and JavaScript are nothing alike in my opinion.
If you want to send data to the server you are going to have to use a form submission with a jsp.
Moving this to jsp...
 
Jeffrey Hunter
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the implicit request object in a Servlet to access the form fields on submission:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic