Results 1 to 2 of 2

Thread: Two submit button with two captions

  1. #1
    Join Date
    Aug 2005
    Posts
    12

    Default Two submit button with two captions

    I have a jsp page with two submit button and their captions
    are "Next" and "Previous". And my question is:
    If i click any of these buttons how i can know which button
    i pressed.....so that i can set the view in web-flow.xml file....
    based on the caption of those buttons

  2. #2
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    Study the examples that come with SWF, they illustrate many uses-cases, including this one. You'll have to encode the event name in the name of the submit button, like this:

    <input type="submit" name="_eventId_myEventId" value="My Button Label" />

    Erwin

Similar Threads

  1. Replies: 8
    Last Post: Oct 30th, 2012, 11:33 AM
  2. Handling multiple submit button
    By anieshuk in forum Web
    Replies: 15
    Last Post: Mar 28th, 2011, 02:04 AM
  3. Replies: 3
    Last Post: Aug 26th, 2005, 01:36 AM
  4. Replies: 1
    Last Post: Jul 27th, 2005, 09:12 AM
  5. Replies: 1
    Last Post: May 16th, 2005, 08:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •