• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

DispatchAction coding problem ~~mod pls check this thread, display problem,tq

 
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, good day, i having problem in configuration of DIspatchAction

html form link :



ProductAllAction.java :


[ September 09, 2004: Message edited by: Alvin chew ]
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You do your returns like this:



No need for the extra set of brackets
 
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Alvin,

Some more description of the problem would be helpful (maybe a stacktrace). Also, a look at some action-mappings in the configuration file would be nice.

Sheldon
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry, it work but actually because my netbeans ide having problem, it doesn't save my configuration for actionmapping , anyway, below is my action mapping code

struts-config.xml


program description:
i have 10 html page, each of it contains 1 form, every form contain single "summit" button, when user click button , the form will send and data will save into database

- the solution for this scenario is using DispatchAction (am i using the right way?)

- is that means i have to come out 10 same action PATH with each of it attached a own actionForm, and different parameter for each action path ?
 
Legend has it that if you rub the right tiny ad, a genie comes out.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic