0

I am trying render a jsp on the web browser but the tomcat is not parsing page directive in it. kindly help me in understanding where am i going wrong and how page directives are rendered internally.

Thanks

JSP:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>
            Sample
        </title>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    </head>
    <body>
        <button id="generateTicket">Generate Ticket</button>
        <div id='ticket'></div>
        <script>
            $("#generateTicket").click(
                    function(){
                        console.log("Generate ticket");
                        $("#ticket").load("generateTicket");
                    });
        </script>
    </body>
</html>

output i see in browser enter image description here

Pavan Kumar
  • 71
  • 1
  • 6

0 Answers0