in the snippet below, the result page has an HTML tag with a language attribute. This seems to foil the parsing of the page--the title should be parsed as "Login", but no HTML tags are parsed at all, since the first html tag seems to disturb the parsing.
How can I get around this?
thanks,
larry
----------------------
WebConversation conversation = new WebConversation();
WebRequest request = new GetMethodWebRequest("http://http://jcorporate.com/Login.do?dbContext=default");
WebResponse response = conversation.getResponse(request);
String title = response.getTitle();
System.out.println( response.getText() );
System.out.println( "title is: " + title );
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
in the snippet below, the result page has an HTML tag with a language attribute. This seems to foil the parsing of the page--the title should be parsed as "Login", but no HTML tags are parsed at all, since the first html tag seems to disturb the parsing.
How can I get around this?
thanks,
larry
----------------------
WebConversation conversation = new WebConversation();
WebRequest request = new GetMethodWebRequest("http://http://jcorporate.com/Login.do?dbContext=default");
WebResponse response = conversation.getResponse(request);
String title = response.getTitle();
System.out.println( response.getText() );
System.out.println( "title is: " + title );
the target URL above has a typo. it should be
http://jcorporate.com/Login.do?dbContext=default
fyi, Russel responded to the bug report to say that latest prerelease should handle this:
https://sourceforge.net/tracker/?func=detail&atid=106550&aid=623268&group_id=6550