Ok. Thanks for all the comments, they have been most helpful. On the point of the jsessionid, it works with or without the id there. I have it in as a check for something completely different and have since removed it anyway. Thanks for the comments on it though.
I have found that the problem is not actually in the form bean (which is extending the ActionForm class), but more to do with *when* I attempt to access the bean. I have this situation. * The form is filled and the user submits. * Struts is forwarded to my ActionClass for this form. ---- Problem starts here ---- * I need the information from that bean, to activate some business logic, so I take the form from the execute() parameter list and pass this to the business layer (Where it has no content!!). * After the business layer has finished, I put the form in the request as follows SignalSelectForm currentForm = (SignalSelectForm)form; request.setAttribute(StrutsCXConstants.CURRENTFORM, currentForm); and then forward it to a servlet. ---- Problem ends here ---- * The servlet then gets the form using the *exact* same CURRENTFORM, and then processes the form in *exactly* the same way as the business layer does (it is the same code) but it gets the data out. Any ideas?? Cheers, and thanks again for the comments, Simon ----- Original Message ----- From: "Trieu, Danny" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Monday, March 24, 2003 5:19 PM Subject: RE: Form not populating from post to struts. Jsessionid is being generated by the <html:form/> tag. The problem is in your form bean implementation of the indexed property named 'signals'. In your form bean you didn't implement your 'signals' property as indexed property correctly. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 6:43 AM To: [EMAIL PROTECTED] Subject: RE: Form not populating from post to struts. I know that, but simply I've never had to pass that info using a form. :-] Why do you put the session id in the form? > -----Original Message----- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] > Sent: Monday, March 24, 2003 3:29 PM > To: [EMAIL PROTECTED] > Subject: RE: Form not populating from post to struts. > > jsessionid=XXX is the browsers way of passing session info..And it is > not passed as a normal üparameter(some.do?jsessionid=XXX)..So what u > have suggested will not work.. > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, March 24, 2003 3:22 PM > To: [EMAIL PROTECTED] > Subject: RE: Form not populating from post to struts. > > > Try this: > > action="/strutscx/signal.do?jsessionid=8AF18163C316123869B5EFBFAD6BC91 > 2" > > > > -----Original Message----- > > From: Simon Kelly [SMTP:[EMAIL PROTECTED] > > Sent: Monday, March 24, 2003 3:18 PM > > To: Struts Users Mailing List > > Subject: Form not populating from post to struts. > > > > Hi all, > > > > Cannot for the life of me spot the problem here. > > > > Could someone check the following and see if there is an obvoius > > error that would mean struts wouldn't populate the form. > > > > Cheers > > > > Simon > > > > Form, stripped from the html: > > ==================== > > [snip] > > <form name="signalSelectForm" > > action="/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC > > 912" > > method="post"> > > [snip] > > <input value="fp1v1" name="tables" type="checkbox"> > > [snip] > > <input value="fp1v1.eg1_hv_01" name="signals" type="checkbox"> - > > eg1_hv_01<br> > > <input value="fp1v1.eg1_mag_01" name="signals" type="checkbox"> - > > eg1_mag_01<br> > > <input value="fp1v1.eg1_mag_02" name="signals" type="checkbox"> - > > eg1_mag_02<br> > > [snip] > > <input value="submit" type="submit"> > > > > > > Form and action-mapping from struts-conf.xml: > > ================================ [snip] > > <form-bean name="signalSelectForm" > > type="com.katrin.presentation.actionform.SignalSelectForm"> > > </form-bean> > > [snip] > > <action path="/signal" > > name="signalSelectForm" > > scope="request" > > validate="false" > > type="com.katrin.presentation.action.SignalSelectAction"> > > <forward name="success" path="/StrutsCXServlet" /> > > </action> > > > > Form: > > ===== > > > > public class SignalSelectForm extends ActionForm{ > > > > private ArrayList tables = new ArrayList(); > > private String startDate; > > private String endDate; > > private String dateSearchType; > > private ArrayList signals = new ArrayList(); > > > > public void setTables(String newtable) { > > this.tables.add(newtable); > > } > > > > public void setStartDate(String date) { > > this.startDate = new String(date); > > } > > > > public void setEndDate(String date) { > > this.endDate = new String(date); > > } > > > > public void setDataSearchType(String type) { > > this.dateSearchType = new String(type); > > } > > > > public void setSignals(String newsignal) { > > this.signals.add(newsignal); > > } > > > > public ArrayList getTables() { > > return this.tables; > > } > > > > public String getStartDate() { > > return this.startDate; > > } > > > > public String getEndDate() { > > return this.endDate; > > } > > > > public String getDataSearchType() { > > return this.dateSearchType; > > } > > public ArrayList getSignals() { > > return this.signals; > > } > > > > public void reset() { > > this.tables.clear(); > > this.startDate = new String(""); > > this.endDate = new String(""); > > this.dateSearchType = new String(""); > > this.signals.clear(); > > } > > } > > > > Institut fuer > > Prozessdatenverarbeitung > > und Elektronik, > > Forschungszentrum Karlsruhe GmbH, > > Postfach 3640, > > D-76021 Karlsruhe, > > Germany. > > > > Tel: (+49)/7247 82-4042 > > E-mail : [EMAIL PROTECTED] > > > > > > -------------------------------------------------------------------- > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > IMPORTANT: > This e-mail transmission is intended for the named addressee(s) only. > Its contents are private, confidential and protected from disclosure and > should not be read, copied or disclosed by any other person. > If you are not the intended recipient, we kindly ask you to notify the > sender immediately by telephone (+41-91-612 26 11), > to redirect the message to the account "[EMAIL PROTECTED]" and to delete > this > e-mail. > E-mail transmissions may be intercepted, altered or read by unauthorized > persons and may contain viruses. Therefore, it is recommended that you use > regular mail or courier services for any information intended to be > confidential. However, by sending us messages through e-mail, you > authorize > and instruct us to correspond by e-mail in the relevant matter. > Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > IMPORTANT: This e-mail transmission is intended for the named addressee(s) only. Its contents are private, confidential and protected from disclosure and should not be read, copied or disclosed by any other person. If you are not the intended recipient, we kindly ask you to notify the sender immediately by telephone (+41-91-612 26 11), to redirect the message to the account "[EMAIL PROTECTED]" and to delete this e-mail. E-mail transmissions may be intercepted, altered or read by unauthorized persons and may contain viruses. Therefore, it is recommended that you use regular mail or courier services for any information intended to be confidential. However, by sending us messages through e-mail, you authorize and instruct us to correspond by e-mail in the relevant matter. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]