<form action = "dex1.jsp" >
<b>Name: </b> <input type = "text" name = "sname"/> <br>
<b>Age: </b> <input type = "text" name = "sage"/> <br>
<input type = "submit" name = "s" value = "Add" />
<input type = "submit" name = "s" value = "Remove" />
<input type = "submit" name = "s" value = "View" /> <br>
have just started learning JSP. was learning about declaraton tags and scriptlets. and this was my first code. so its looks like i have a lot to learn. anyway could you please tell what was the error in my code. thanks in advance.
As it stands, the most likely cause of the error is forgetting to import a class or a typo. Check all that carefully. And be aware that Hashtable is an older class that is rarely used.
As a beginner, it's important to know that putting script lets, and declarations, and Java code in a JSP is a very poor practice that has been discredited since 2002. Modern JSP uses the JSTL and EL in place of Java code.