Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

howto validate applet data

 
Max Benjamin
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a bit of a noob question but here it goes:
I'm currently developing an applet that pulls data from a text file located on my host and displays it. I would like the user to be able to edit that text and then upload the edited text back to the server. I don't have the option of running java on my host and I'm wondering if there is a way to validate the data being sent to the host server using ruby. Can I send the data in an http post and validate it with ruby? How would I do this, what docs I should look at, etc?
Thanks for any help,
Max
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets can use HTTP to communicate with the server where they are hosted, so they can upload data via a POST (e.g., using the HttpUrlConnection class). The Applets FAQ has some links about this. While those primarily talk about using servlets on the server, the language being used on the server really has no impact on the client side. (Of course, you won't be able to serialize Java objects to a Ruby server, but that's kind of a given.)
 
Max Benjamin
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much. I will give it a go.
Best,
Max
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic