Menu

parsing <html lang="en"> not supported?

2002-10-14
2002-10-31
  • Larry Hamel

    Larry Hamel - 2002-10-14

    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 );

     

Log in to post a comment.

Auth0 Logo