Tengo el siguiente codigo pero al ejecutarlos me muestra un error
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
import="java.sql.*"
import="java.util.*"
import= "javax.servlet.*"
import= "javax.servlet.http.*"
import= "javax.servlet.jsp.*"
errorPage="" %>
<%@ page session="true"%>
<h3>Adivinador de Numeros</h3>
<%!
public static final int WAY_LO = 0;
public static final int WAY_HI = 101;
public static final String PARMSKEY ="jspcr.sessions.numguess.parameters";
public class Parameters {
int lo;
int hi;
int numGuesses;
int state;
}
%>
<%
Parameters pars=(Parameters) session.getAttribute(PARMSKEY);
if (pars== null)
{
pars= new Parameters();
pars.state=0;
session.setAttribute(PARMSKEY, parms);
}
%>
Error JSP:
--------------------------------------------------------------------------------
URI de Solicitud:/Sesiones/Def.jsp
Excepción:
oracle.jsp.provider.JspCompileException: Errores de compilación:d:\oracle\oracle9i\apache\apache\htdoc s\_pages\_sesiones\_Def.javaLine # Error 83 Method getAttribute(java.lang.String) not found in interface javax.servlet.http.HttpSession. Parameters pars=(Parameters) session.getAttribute(PARMSKEY); 88 Undefined variable: parms session.setAttribute(PARMSKEY, parms);
at oracle.jsp.app.JspJavacCompiler.compile(JspJavacCo mpiler.java)
at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoade r.java)
at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader. java)
at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.j ava)
at oracle.jsp.app.JspApplication.dispatchRequest(JspA pplication.java)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
at oracle.jsp.JspServlet.internalService(JspServlet.j ava)
at oracle.jsp.JspServlet.service(JspServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:588)
at org.apache.jserv.JServConnection.processRequest(JS ervConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnecti on.java:294)
at java.lang.Thread.run(Thread.java:484)
que estare haciendo mal ,,,