• 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

dispatch action not working

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get an error "Request[/ViewData] does not contain handler parameter named dispatch" when I try to run my action.

my config file:


my jsp:


my action:



What am i doing wrong??

Thanks
mannu
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
reply
    Bookmark Topic Watch Topic
  • New Topic