Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Help needed in STRUTS integration

    Hi,

    I am trying to invoke action class from a dynamic form. I have seen the example given but that is not adequate. So can you please tell how would i invoke a action class from a dynamic form when submitted. Here i dont want the page transition but only the form values should be submitted. Any links to tutorials or example codes would come handy.

    Please help. Thanking you in advance

    #2
    Hi ev.kaushik,

    What does your Struts Action return?

    If the Action is part of a legacy application and returns HTML, you can call dynamicForm.getValues() and pass those values as the "params" argument of HTMLFlow.setContentsURL(). However we would recommend getting away from this architecture ASAP and replacing it with a modern architecture

    If your Struts action is meant to return data, for instance, records to display in a ListGrid, then start with Chapter 6 of the QuickStart Guide, DataBinding, and follow the links to further documentation and examples from there.

    Comment


      #3
      Thank you isomorphic. I ill try that out. But one more thing i am not able to achieve is, I have a dynamic form.

      Let me put my requirement clear.

      I have a form with three select boxes. I have a button. Now i donot want a usual HTML submit. i have to just send those form field values to the server and print them on the console.
      Secondly, the values which has been sent to the server side sould be printed in a window/label on the same page, WITHOUT REFRESHING the page.

      Can i achieve this? If yes, how?

      Please help!!!

      Comment


        #4
        Your questions seem to have been answered several times over the past few days, for instance here and here. The forums software automatically sends notifications of these responses. Are you not receiving these?

        Comment

        Working...
        X