Results 1 to 2 of 2

Thread: How to keep the command, once and for all?

  1. #1
    Join Date
    Aug 2005
    Location
    Brazil
    Posts
    5

    Default How to keep the command, once and for all?

    Hi folks!

    I've been given the task to program an use case's flow with only two
    JSPs to be exhibited upon the auspices of a controller and, 'til now,
    I´ve got nothing but a headache.

    As the command I have a POJO (got from a DAO) associated
    bidirectionaly with another one whose contents are supposed to be
    initialized and edited by a "fill-visualize-alter" sequence of steps
    within the offending flow.

    The problem arises in the "alter" step, in which the flow is
    redirected to the initial JSP - the very one I had used to fill in the
    inputs binded to the properties of the associated object. I ain't been
    able to access the contents of the just initialized object, albeit I
    do can access the properties of the one obtained from the DAO.

    I overheard someone saying in other posts that there are two ways to
    tackle the problem:

    1. One might use hidden inputs in the JSP whose controls are not
    binded to the command as a maneuver to force Spring to keep the
    reference to that object, or

    2. One can control the flow with an instance a subclass of
    AbstractCommandController with its sessionForm attribute set to
    true.

    I´m still not convinced that the first sugestion is a good way to
    handle the problem, although it solved the puzzle; whereas the second
    doesn´t seem to work as I'd like it to.

    Any clues?
    Any criticisms?
    Any sugestions?

    Anyway, thanks in advance!

  2. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Maybe look at wizardFormController?

Similar Threads

  1. Replies: 8
    Last Post: Sep 23rd, 2004, 01:12 AM

Posting Permissions

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