• 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

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 ?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic