【发布时间】:2011-07-13 10:54:35
【问题描述】:
我连接到一个网站,使用 JSoup 查找“文本字段”ID,输入值,现在我需要将其输出。
有人可以帮我正确编码以将“修改后的”文档流式传输回网站吗?
if (source == enter2)
{
String URL = "http://www.clubvip.co.za/Login.aspx";
Element number;
Element pass;
Element keyword;
try {
Document doc = Jsoup.connect(URL).get();
number = doc.getElementById("ctl00_ContentPlaceHolder1_CellNumberRadText").attr("value", "number");
System.out.println(number);
pass = doc.getElementById("ctl00_ContentPlaceHolder1_PasswordRadText").attr("value", "password");
System.out.println(pass);
keyword = doc.getElementById("ctl00_ContentPlaceHolder1_KeyWordRadText").attr("value", "keyword");
System.out.println(keyword);
【问题讨论】: