So I'm doing a project and it involves writing a servlet in java that accesses an sql database. That servlet is accessed through a front end jsp page, and all this is hosted on tomcat. I've got all my files in the right place, and when I try to open it on Tomcat, I get this...
Exception Report
Message Unable to compile class for JSP:
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.apache.jasper.JasperException: Unable to compile class for JSP: 
An error occurred at line: [32] in the jsp file: [/index.jsp]
textBox cannot be resolved to a variable
29:             <form action = "/Project3/main" method = "post" style="margin-top: 15px;" class="text-center">
30:                 <div class="form-group row">
31:                     <div class=" col-sm-12 col-md-12 col-lg-12">
32:                         <textarea name="textBox" class="form-control" id="textBox" rows="8" cols="50"><%= textBox %></textarea>
33:                     </div>
34:                 </div>
35: 
An error occurred at line: [45] in the jsp file: [/index.jsp]
result cannot be resolved to a variable
42: 
43:     <div class="text-center">
44:         <%-- jsp statement with out sql response--%>
45:         <%= result %>
46:     </div>
47: 
48: 
So I've got two variables that can't be resolved in my jsp file that can't be resolved. Not sure what this means. Here's the body of my jsp code:
<body>
    <div class="container-fluid ">
        <row class="row justify-content-center">
            <h1 class="text-center col-sm-12 col-md-12 col-lg-12"> Remote Database Management System </h1>
            <div class="text-center col-sm-12 col-md-12 col-lg-12"> You are connected to the Project 3 Database.</div>
            <div class="text-center col-sm-12 col-md-12 col-lg-12"> Please enter sql query or update statement.</div>
            <form action = "/Project3/main" method = "post" style="margin-top: 15px;" class="text-center">
                <div class="form-group row">
                    <div class=" col-sm-12 col-md-12 col-lg-12">
                        <textarea name="textBox" class="form-control" id="textBox" rows="8" cols="50"><%= textBox %></textarea>
                    </div>
                </div>
                <button style="margin-bottom: 15px;" type="submit" class="btn btn-dark">Execute Command</button>
                <button onClick="reset();" style="margin-bottom: 15px;" type="reset" class="btn btn-dark">Clear Form</button>
            </form>
        </row>
    </div>
    <div class="text-center">
        <%-- jsp statement with out sql response--%>
        <%= result %>
    </div>
    </div>
</body>
</html>
Textbox and Result are both variables in the java code for the servlet btw. Any help would be appreciated thanks!
 
    