Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
dispatch action not working
Pranav Sharma
Ranch Hand
Posts: 261
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I get an error "Request[/ViewData] does not contain handler parameter named dispatch" when I try to run my action.
my config file:
<action name="AccessDataForm" path="/ViewData" scope="request" type="efi.edcs.caseIntake.actions.ViewDataAction" input="/accessData.jsp" validate="false" parameter="dispatch"> <forward name="viewResults" path="/caseIntake/viewCaseData.jsp" contextRelative="true"></forward>
my
jsp
:
. . . <TD align="center" valign="top"><html:link action="/ViewData"><bean:write name="result" property="nm" /></html:link><html:hidden property="dispatch" value="pg1"/></TD> . .
my action:
public class ViewDataAction extends DispatchAction { public ActionForward pg1( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception{ .... return(forward); ....}
What am i doing wrong??
Thanks
mannu
Merrill Higginson
Ranch Hand
Posts: 4864
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The html:hidden tag will not provide the required dispatch parameter if you're trying to invoke the action from a link. You have to specify dispatch as a parameter when the link is invoked. Here's how I'd do it:
<a href="ViewData.do?dispatch=pg1"><bean:write name="result" property="nm" /></a>
Merrill
Consultant,
Sima Solutions
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Indexed Setting/properties
how to prevent double submission?
Struts logic:iterate + html:link
Cannot find bean in any scope
problem in tiles application
More...