| Author |
Struts: Duplicate Form Submission Handling
|
Matt Connors
Greenhorn
Joined: Sep 08, 2004
Posts: 23
|
|
I am trying to properly handle duplicate form submission in my Struts application. In my .jsp I put the following hidden field: <html:hidden property="org.apache.struts.taglib.html.TOKEN" /> and I receive the this error message: "javax.servlet.jsp.JspException: No getter method for property org.apache.struts.taglib.html.TOKEN of bean org.apache.struts.taglib.html.BEAN" Can someone tell me what I'm doing wrong? Is there a different way to set up this hidden field? Thanks in Advance, Matt
|
 |
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
|
|
Struts handles this automatically. You do not need to add the html:hidden tag. If you've html:form on the jsp and a previous action did saveToken(request); it will slip the hidden field in right after the opening form html tag.
|
A good workman is known by his tools.
|
 |
Matt Connors
Greenhorn
Joined: Sep 08, 2004
Posts: 23
|
|
|
You are correct - thanks!
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: Struts: Duplicate Form Submission Handling
|
|
|