Re: [Htmlparser-user] Button Links
Brought to you by:
derrickoswald
From: Derrick O. <der...@ro...> - 2007-04-01 15:56:20
|
I'm not sure what your question is. As it says in the FAQ example a StringBean is used: bean = new StringBean (); bean.setConnection (connection); mText = bean.getStrings (); But a parser could be used by just replacing the last three lines in the try block with: parser = new Parser (); parser.setConnection (connection); // ... do parser operation So, you are actually passing the fully functional URL connection object to the Parser instead of making it do a GET behind the scenes on a (string) URL. If what you are asking is how to use the parser, check out the Parser javadoc, basically get a list of nodes and do something with it: NodeList list = parser.parse (null); // do something with your list of nodes. ----- Original Message ---- From: Cliff Holbrook <cli...@gm...> To: htmlparser user list <htm...@li...> Sent: Sunday, April 1, 2007 1:21:27 AM Subject: Re: [Htmlparser-user] Button Links So after the POST has been completed sucessfully, how does one than perform parsing operations on what has occurred? In other words, how would the URL of the site the program gets routed to be found? On 3/31/07, Derrick Oswald <der...@ro...> wrote: The button is probably in a form with a POST type submission method required. You can see how to handle POST for a form in the FAQ under How can I use POST to fetch a page? ----- Original Message ---- From: Cliff Holbrook < cli...@gm...> To: htm...@li... Sent: Saturday, March 31, 2007 11:06:15 PM Subject: [Htmlparser-user] Button Links I am trying to create a java program that will follow a series of links. However, the first link is not a link per se, but a button, and the link parser doesn't recognize it as a link. The source of the button is <input type="submit" value= "Sign in" /> I am fairly new at using this, so I would appreciate some pointers on where to look to find out how to accomplish this. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Htmlparser-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlparser-user ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Htmlparser-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlparser-user -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Htmlparser-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlparser-user |