parameter in session

2002-10-28 Thread Marcus Biel
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
tddata record/td
html:link page=/editGroup.do/html:linkEdit/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




Re: parameter in session

2002-10-28 Thread Affan Qureshi
I think placing the Form Bean in the session scope will help.
/* A
- Original Message -
From: Marcus Biel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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
 tddata record/td
 html:link page=/editGroup.do/html:linkEdit/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




Re: parameter in session

2002-10-28 Thread Marcus Biel
 Hi,

I got this:
action-mappings type=org.apache.struts.action.ActionMapping
action path=/selectPlant type=CreatePlantTableAction
name=plantSelectionForm scope=session input=/index.jsp
/action

(scope=session in action)

Or should I add scope=session to my form-bean mapping ???
 form-bean name=plantSelectionForm type=PlantSelectionForm
scope=session /

?


thx,
marcus

[EMAIL PROTECTED] schrieb:
 
 I think placing the Form Bean in the session scope will help.
 /* A
 - Original Message -
 From: Marcus Biel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 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
  tddata record/td
  html:link page=/editGroup.do/html:linkEdit/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

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