how to copy java application TextArea content to a web page text area using java?
I need copy java application TextArea content to a webpage TextArea using the same java application. where should I start to learn how to do that?
OK here's an example
I want to post a thread in my favorite forum, so I use this URL(http://myfavoriteforum.com/addpost.html) a page will appear with text areas for thread title and body.
now instead of writing my post into these text areas I go to my java application which contains a jTextArea1 for thread title, jTextArea2 for thread body and a jButton.
I write the title "new movie" and the body "blah...blah..." into the application's text areas Respectively.
the question is how to copy the texts "new movie" and "blah...blah..." from the applicat开发者_运维问答ion's text areas to that forum page text areas by pressing the jButton?
I you mean upoad it to a web site, then you have to learn how to do a web service. You can do that in java using a basic servlet with a doGet
method, passing the text as a parameter in the url of the web request from your android device to your web server.
It's like the big picture. What you wanna do is interesting and will teach you the essence of web services and backend computing for android apps but it's not trivial.
Regards, Stéphane
精彩评论