Hi all, i have this jsp: ... <s:iterator value="listPazienti" var="_paziente"> <s:url var="urlShow" action="show"> <s:param name="paziente.id" value="#_paziente.id" /> </s:url> <tr> <td><s:a href="%{urlShow}">Mostra</s:a></td> <td>${_paziente.nome}</td> <td>${_paziente.cognome}</td> <td><s:date name="#_paziente.dataNascita" format="dd MMMMM" /></td> <td>${_paziente.luogoNascita}</td> </tr> </s:iterator> ...
and this is the method for the action show: public String show() throws Exception { try { paziente = pazienteDao.get(paziente.getId()); System.out.println("PAZIENTE:" + paziente ); } catch (Exception e) { e.printStackTrace(); } return SUCCESS; } this is the struts.xml <package name="paziente" namespace="/" extends="default"> <action name="search" method="search" class="it.tesina.actions.PazienteAction"> <result>/jsp/infermiere/index.jsp</result> <result name="input">/jsp/infermiere/index.jsp</result> </action> <action name="show" method="show" class="it.tesina.actions.PazienteAction"> <result>/jsp/infermiere/profiloPaziente.jsp</result> </action> </package> and this is the error that i recive when I click on Mostra (Show) (<s:a href="%{urlShow}">Mostra</s:a>): GRAVE: Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:770) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:505) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) and the browser show: *type* Exception report *message*** *description* *The server encountered an internal error () that prevented it from fulfilling this request.* *exception* java.lang.IllegalStateException org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:770) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:505) org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) *note* *The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs.* * * i don't know what is the problem!!! :| please help me! tnx Fabio