Richard Rozema wrote the following on 4/7/2005 4:20 PM:
Stephane,

The problem I am now facing is that for this instance of the searchForm to
still exist
later on in the both .jsp's and the ListAction, the form needs to be stored
into session
scope. If I don't store it there, a new instance will be created upon every
call and I
will be given an empty List for criteria every time. However, since I want
to make the
pages into a tile I don't want the searchForm to go into session scope.

I hope this does help you, Stephane. And of course, any suggestions are
welcome (from anyone).


I'd use the Session for this, but I'm not going to fight that battle again. If you don't want to use the Session, show the form back into request scope before leaving you action. You'll have to make sure you give it the correct name or else do some tricks to get the name from the config file. A big pain if you ask me. When I want form values to persist across multiple requesta I use the Session and find it perfectly valid to do so.

Also, I didn't look at all your code you posted (heck, it was a lot:), but I'm guessing you also don't need to use those indexed properties.

I also don't see what you are trying to do here...

<html:text name="criterium" property="values" indexed="true" />

values is an Object[] (which I also don't think will play well with BeanUtils - I'd use List). How do you plan on entering in a String, which is what input type='text' will do and have it populate a text field?


-- Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to