Hi there,

I've got an Action, that creates a Vector,
that is stored in an ActionForm.
The Action scope is set to "session".

Now I am forwarding to a jsp, and when a user hits "submit" another
action gets called that uses the same Vector of the same ActionForm.
Anyways, it only returns an empty Vector to the jsp.
I am 99% sure that my actions are working correctly. But how about the
flow of actions ?
I mean, the first action is building the Vector. Then I got a form that
uses the second action, and this form is a selectbox,
that gets filled with the String elements of the Vector that is sitting
in my ActionForm that is shared by both actions.
To be sure that my Vector doesn't get reset I did not reset the
Vector(not sure if necessary).
Anyways, the selectbox I get created is empty!
I guess I missunderstood the struts action procedure ?!

To recall: First of all I am calling the first action using my browser:
/createPlantList.do
then a Vector of Strings gets created and gets stored in "myActionForm"
when done, the action forwards to index.jsp. There I got a form like
this:
<html:form action="getAlaskaGroups.do" method="POST">
        <html:select property="plantSelection" size="1">
                <html:options property="plantList"/>
        </html:select> <br>
        <html:submit/>
</html:form>

Explanation:
getAlaskaGroups.do is an Action that takes the plantSelection the user
did,
and by this it creates another Vector filled with data records.

The selectbox is filled dynamically with my Vector I created in the
prior action "createPlantList.do".
Both Actions share the same form in order to make this work. (not sure
if necessary)
Here I am using my plantList Vector to fill the selectbox:
<html:options property="plantList"/>

I guess this complicated nested procedure confuses Struts in some way.
Maybe you will suggest to use the "nested" tag, but I am forced to use
Struts 1.02.

Any other suggestions to make this work ??

thanks in advance.

marcus

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to