Ragazzi ho una jsp un bean una servlet e un form.
Devo prendere i dati dal form attraverso la servlet e incremntare un intero e passarlo alla jsp. Ho fatto tutto, la stringa la riesco a passare alla jsp ma l'intero no. Sapete come si fa? Aiutatemi.
Ripeto solo con la stringa funziona.
Grazie a tutti quelli che rispondono.

Questo è il codice della jsp:
Più sotto c'è l'errore che mi da.

codice:
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD><TITLE>kgkhg</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
    <%@page contentType="text/html" import="java.util.*,beanProva.*" %>

    <BODY>
    <h1> incrementa </h1>

    <LI> CIAO
    <% BeanRisposta beanRisposta = (BeanRisposta) session.getAttribute("beanrisposta");
    String incre= beanRisposta.getOpzione();
    int numero= Integer.parseInt(beanRiposta.getParametro());

    %>
    <h1> Il risultato è : <%= numero %><%= incre %>to</h1>


    </BODY>
    </HTML>
codice:
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 10 in the jsp file: /incrementa.jsp
Generated servlet error:
BeanRisposta cannot be resolved to a type

An error occurred at line: 10 in the jsp file: /incrementa.jsp
Generated servlet error:
BeanRisposta cannot be resolved to a type

An error occurred at line: 10 in the jsp file: /incrementa.jsp
Generated servlet error:
beanRiposta cannot be resolved


	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	Prova.gotoPage(Prova.java:13)
	Prova.doGet(Prova.java:37)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs