File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "So simple...?" Watch "So simple...?" New topic

So simple...?

nikos sokaf
Ranch Hand

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

Joined: Nov 08, 2001
Posts: 15385
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:
subject: So simple...?
It's not a secret anymore!