permaculture playing cards*
The moose likes JSP and the fly likes So simple...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "So simple...?" Watch "So simple...?" New topic
Author

So simple...?

nikos sokaf
Ranch Hand

Joined: May 01, 2004
Posts: 57
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Apr 16, 2004
Posts: 305
You can use the implicit request object in a Servlet to access the form fields on submission:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: So simple...?
 
Similar Threads
built a program that can directly run in the same page
Page download time calculation
JSP And Javascript - How to
How to get random dropdownlist javascript value at the server site
Call a JacaScript function from Java Bean