This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
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

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