Results 1 to 7 of 7

Thread: Need to understand how java sites work

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Posts
    323

    Need to understand how java sites work

    Hi all,

    I know this an ASP.Net site, but perhaps someone here could help me understand something regarding a site that I am rewriting in ASP.Net that was orginally in java.

    I looked at the home page of this site (home.jsp). I right clicked in IE and did a View Source. I saw something that confuses the hell out of me and hopefully someone can help me understand if it's right or not.

    When I look at the source, I see multiple <html></html> and <body></body> tags. I was always under the impression that a web page had a single <html></html> and <body></body> tag, not multiples.

    I checked a site where I know I am using an iframe, and I only see the link to the content of the iframe, not the actual HTL generated by the ASPX page in the iframe.

    Is it possible that there should be multiple head and body tags within a page? Is this a hold out from the days of frames? (It's an old site).

    Any info y'all can provide would be greatly appreciated

    Thanks,
    J

  2. #2
    Member
    Join Date
    Oct 2009
    Location
    UK
    Posts
    40

    Re: Need to understand how java sites work

    You are really going to struggle with rewriting jsp in .net if you can't even answer these basic questions about HTML.

    The HTML spec would tell you that you can only have one html, head and body tag per page: http://dev.w3.org/html5/spec/Overview.html

    I would suggest you try a browser other than IE. If you want to view the source of an iframe then you just right click it and select view source from the context menu.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Posts
    323

    Re: Need to understand how java sites work

    I know that the HTML spec says 1 of each, that's why I am asking the question.

  4. #4
    Member
    Join Date
    Oct 2009
    Location
    UK
    Posts
    40

    Re: Need to understand how java sites work

    The HTML spec is correct. Always.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Posts
    323

    Re: Need to understand how java sites work

    So what you are saying is that my assumption about there being multiple head and body tags being wrong is correct. No matter what, an html page should only have 1 html and 1 body tag (which I believe to be true) and if there is more than one, then there is a major problem.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Posts
    323

    Re: Need to understand how java sites work

    So i can tell the original developer that the code that is being generated and displayed is completely screwed up. That however they did they did it wrong.

  7. #7
    Member
    Join Date
    Oct 2009
    Location
    UK
    Posts
    40

    Re: Need to understand how java sites work

    Give the URL to the w3c validator and it will tell you everything that is wrong with the page in great detail: http://validator.w3.org/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width