Hi everybody, in my application I have a form where I need to get some results from a database. In this form there are 2 buttons that call 2 JSP pages because I need one JSP page to know the results from the database as they are and the other one to know total results for every user is in the table of my database. I handle these buttons in my Action class by extending my Action class as DispatchAction.In my struts-config.xml file I define for this Action class the parameter "results_type" to work with the 2 buttons. For the pagination of my tables in my JSP pages I use Displaytag.It is also working fine and I can also save these tables in the PDF format.But,in the user table I added a link for every user and it is possible to see a chart about user's work with this link. If I try to see the table in the PDF format before to see the chart for an user,it works fine.The problem that I have is when I decide to see for first the chart for a user, to come back in my JSP page with the table and I try to see the table in the PDF format.I get this error:
javax.servlet.ServletException: Request[/joblogs] does not contain handler parameter named 'result_type'. This may be caused by whitespace in the label text. org.apache.struts.actions.DispatchAction.unspecified(DispatchAction.java:222) org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:256) org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) 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
So,I think I was able to save the table in the session so when I go back I can see the table as it was before.But,if I try to click the PDF label to see my label,I cannot do this because it is not possible to know the value of the parameter "result_type". How can I solve this problem? I need a solution before Wednesday. Thanks,Mattia.