File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic