Ragazzi...non linciatemi... giuro che ho usato la ricerca ma nn ho trovato nulla del genere
Veniamo a noi...
ho una jsp con un form ed una checkbox :
Ora... quando premo Login mi richiama una servlet... il problema è che se la checkbox non è selezionata quindi non vale "TRUE" tadan :codice:<FORM METHOD = get ACTION = "\servlet\redirect"> <input type='text' value="" maxlength='25' name='USR' size='15'> <input type='password' maxlength='25' name='PWD' size='15'> <input type="checkbox" name="ricordami" value="TRUE"> Ricordami <input type='Submit' name='Submit' value='Login'> </FORM>
i parametri dalla servlet li prendo così :codice:type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException redirect.doGet(redirect.java:40) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs.
HELP!codice:String usr = req.getParameter("USR"), pwd = req.getParameter("PWD"), chk = req.getParameter("ricordami");



Rispondi quotando
