Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing html forms, etc... in Java?

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't know that this was possible. How would you go about doing this(simple code)?

I've tried to google it, but haven't gotten any of the code I'm looking for.

Justin Fox
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "implement"? HTML forms are processed in Java through the servlet API (so you need a servlet container like Tomcat).
 
Paul Clapham
Sheriff
Posts: 21581
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's possible that the question was about sending the same request, under program control, that a browser would send for an HTML form.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65338
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without a well-thought-out question, it's a mystery what the OP really means.
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
lol sorry...

what I meant was, having a name textbox, subject textbox, and a message textarea, and when the person hits submit, e-mail it to someone. But not in html, in pure java in an applet.

Justin Fox
 
Paul Clapham
Sheriff
Posts: 21581
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, sure, if you're asking about an applet then you could design a Swing form with text boxes and buttons that looked just like an HTML form. I'm not quite clear on the "it" that is going to be e-mailed when the user clicked the Submit button. And I'm not quite sure why this got into the Servlets forum in that case. But apart from that, sure. Google for "java swing tutorial".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic