This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • 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 ]
 
John Smith
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do your returns like this:



No need for the extra set of brackets
 
Sheldon Fernandes
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • 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
  • 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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic