facebook

general struts question

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #224644 Reply

    gemino
    Member

    i want to fill a html:select field with a DynaActionFormBean.

    the solution i know is to create an ActionForm as usual, containing an array elemtnt. but how do i create such an array element in a dynaactionform? thats what i am not understanding. is there no possibility to create an array entry in a dynaactionform?

    in the actionForm it looks like this:

    private user[] user = new user[0] + getter & setter

    in the dynaactionform i only have the possibility to define objects like jav.lang.String or something like this (also com.myproject.user but is this an array????)

    i hope its a bit clear waht i mean 😉

    #224659 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft dev, this has nothing to do with MyEclipse.

    AFAIK the DynaForms are like Hashtables, I don’t know that you can do what it is that you want… unless you can store multiple values under the same key and the select will use an iterator to express them in a list or dropdown for you.

    I would suggest checking the Struts documentation and asking in the mailing list, someone could likely answer this for sure for you in a few minutes (we just don’t have that much experience with DynaForms).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: general struts question

You must be logged in to post in the forum log in