Problem with JSP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tiijnar
    New Member
    • Nov 2008
    • 14

    Problem with JSP

    Hi,

    I have downloaded a HTML template from internet, for my jsp application. That HTML page consists of so many tables inside tables. I edited the code to have my information on that page. I made it into a JSP file by introducing <% %> tags and changed the extension to ".jsp".

    After executing this JSP file, if I want to select a line of information with mouse then all the information that is above the line is getting selected. This was not the problem when the page was a HTML file.

    But I need a JSP with the same template for my application.

    Iam attaching the JSP file with this thread. Can anyone solve my problem please....

    Thanks in Advance,
    Tiijnar
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    What did you put between the <% %>tags?

    Comment

    • chaarmann
      Recognized Expert Contributor
      • Nov 2007
      • 785

      #3
      I am pretty sure that you deleted some HTML-tags by accident (like DIV etc.)when you edited the HTML code to insert <% %>.
      Or in the original HTMl was some "<%" inside which is not displayed anymore, because you did not change it to "&lt%"

      Now you can go through it line by line and check for differences manually, or let a program do the work.

      1.) install winDiff
      2.) display the JSP page in your browser widow. Then choose view-Source-Code and paste it into one winDiff window
      3.) paste the original page into another window, and voila, the accidental differences show up!

      If there are no differences, the jsp-output behaves exactly like the original HTML

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        I use Kompare (on Linux).

        Comment

        Working...