struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Affan Qureshi" <quere...@etilize.com>
Subject Re: parameter in session
Date Mon, 28 Oct 2002 13:02:42 GMT
I think placing the Form Bean in the session scope will help.
/* A
----- Original Message -----
From: "Marcus Biel" <Marcus.Biel@bmw.de>
To: <struts-user@jakarta.apache.org>
Sent: Monday, October 28, 2002 4:57 PM
Subject: parameter in session


> Hi,
>
> I got an select box, where you can select a value. When you hit submit,
> you get displayed a list of data records that fit to that value.
> But the selected value should get stored for the whole session,
> so if you hit on "edit" or "delete" that you directly get displayed the
> table,
> wihout selecting the value another time.
>
>
> At the moment I got something like this:
>
> <html:form action="selectPlant.do" method="POST">
> <html:select property="plantSelection" size="1">
> <html:options collection="plantList" property="mo"/>
> </html:select> <br>
> <html:submit/>
> </html:form>
> <logic:present parameter="plantSelection">
> <table>
> <tr>
> <td>data record</td>
> <html:link page="/editGroup.do"></html:link>Edit</td>
> </table>
> </logic:present>
> (The real page is much more complicated, but this should do it to
> understand the problem faster)
>
> So when I hit edit, I want to be able to edit the data record on the
> same page. Therefore when backwarding to this page,
> the table directly needs to get shown, without to hit on the submit
> button.
>
> Got me ?
>
>
> If you understan what I mean, help would be appreciated.
>
> 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>
>


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


Mime
View raw message