Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to send the value to jsp from swing textfield  RSS feed

 
kalpana kp
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there,
can any one help me how to pass data from swing.I write a swing program that displays text field ,when user enters a letter that letter will be

getting by this code String c=mytextfiled .getText();

This value is printed in command promt.

i want to send this 'c' value to a jsp,
for this i use URL

URL ul= new URL("http://localhost:8080/sCRIPT/some.jsp?value=-----");

how to send the user entered value to jsp
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"shiny" -

Welcome to the JavaRanch! We don't have many rules around the ranch, but we do have a policy on displayed names... Please adjust your displayed name to meet the JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!