Re: Nobody answers....(solved)
The problem came from struts-config.xml. I badly wrote the forward tag! Sorry for the noise I made, for such a little problem! Thank you for people who tried to help me! Nathalie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Nobody answers....
You discription of what you want to achieve is unclear. What do you mean by displaying B.jsp twice? Do you want to the contents of B.jsp twice then C.jsp? -Original Message- From: Nathalie Foures [mailto:[EMAIL PROTECTED]] Sent: 22 January, 2003 11:22 To: [EMAIL PROTECTED] Subject: Nobody answers Hi all! I have already sent this message but nobody answered...So I send it again, because I do need your advices! I use Struts 1.1b2. I want to display several times, the same jsp page. I have three views : A.jsp, B.jsp, C.jsp. If the user select one item on A.jsp, B.jsp has to be displayed once, and then C.jsp. If the user select two items on A.jsp, B.jsp has to be displayed twice, and then C.jsp. ...etc. In struts-config.xml : ... action path=/A type=AAction name=AForm scope=request forward name=B path=/B.jsp/ /action action path=/B type=BAction name=BForm scope=request foward name=B path=/B.jsp/ forward name=C path=/C.jsp/ /action ... The bean BForm has a reset method, so that ActionServlet could put it in the initial state back, when recycling. All works fine, when I only select one item. One B.jsp page is displayed, and then the C.jsp page. But when I select more than one item, the first B.jsp is displayed, and not the following ones. Instead, I get an alert box that tells me that the document is empty and that I have to contact my administrator system. I have no Tomcat error messages : the logs file only says that all stops when the BAction forward to B.jsp. Does the problem come from bean form recycling or populating, or something else? Thank you very much for your answers! Nathalie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Nobody answers....
First, I want to thank you for your answer! du Plessis, Corneil C a écrit : You discription of what you want to achieve is unclear. What do you mean by displaying B.jsp twice? Do you want to the contents of B.jsp twice then C.jsp? yes I want the contents of B.jsp several times. I explain : the user should be able to fill in the B.jsp several times. At the server side, the same bean-form and the same action should be used. Thsi works, when B.jsp is displayed once, but not if it is displayed more than once! Is it clear enough? Nathalie -Original Message- From: Nathalie Foures [mailto:[EMAIL PROTECTED]] Sent: 22 January, 2003 11:22 To: [EMAIL PROTECTED] Subject: Nobody answers Hi all! I have already sent this message but nobody answered...So I send it again, because I do need your advices! I use Struts 1.1b2. I want to display several times, the same jsp page. I have three views : A.jsp, B.jsp, C.jsp. If the user select one item on A.jsp, B.jsp has to be displayed once, and then C.jsp. If the user select two items on A.jsp, B.jsp has to be displayed twice, and then C.jsp. ...etc. In struts-config.xml : ... action path=/A type=AAction name=AForm scope=request forward name=B path=/B.jsp/ /action action path=/B type=BAction name=BForm scope=request foward name=B path=/B.jsp/ forward name=C path=/C.jsp/ /action ... The bean BForm has a reset method, so that ActionServlet could put it in the initial state back, when recycling. All works fine, when I only select one item. One B.jsp page is displayed, and then the C.jsp page. But when I select more than one item, the first B.jsp is displayed, and not the following ones. Instead, I get an alert box that tells me that the document is empty and that I have to contact my administrator system. I have no Tomcat error messages : the logs file only says that all stops when the BAction forward to B.jsp. Does the problem come from bean form recycling or populating, or something else? Thank you very much for your answers! Nathalie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Nobody answers....
I have already sent this message but nobody answered...So I send it again, because I do need your advices! It would be easier to help you if you used meaningful names and described the problem you're trying to solve by doing this. When you say B.jsp has to be displayed twice do you mean stacked one above the other on the same web page, or sequentially, B.jsp, then the user submits, then B.jsp again. I'm guessing that you have a need for the form to grow dynamically, but it's not clear exactly what you want. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
RE: Nobody answers....
Are you trying to use a jsp page (included) to display some data that is iterated from another jsp page? If not, could you explain further? If so, then you should consider revisiting that design decision. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org/ The man who does not read good books has no advantage over the man who cannot read them. - Mark Twain (1835-1910) -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 9:37 AM To: 'Struts Users Mailing List' Subject: RE: Nobody answers I have already sent this message but nobody answered...So I send it again, because I do need your advices! It would be easier to help you if you used meaningful names and described the problem you're trying to solve by doing this. When you say B.jsp has to be displayed twice do you mean stacked one above the other on the same web page, or sequentially, B.jsp, then the user submits, then B.jsp again. I'm guessing that you have a need for the form to grow dynamically, but it's not clear exactly what you want. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Nobody answers....
James Mitchell a écrit : Are you trying to use a jsp page (included) to display some data that is iterated from another jsp page? no, I am not. If not, could you explain further? I want to display the same form several times, consecutively. The first page A.jsp displays a form, on which the user can select several items. For example, the user selects two items. When the user submits this form, the A-bean-form is populated with the selected items. Then, the A-action saves these items and then forwards to B.jsp. On the form displayed by the B.jsp page, the user can choice specific parameters for the first selected item on A page. When the user submits this form, the B-bean-form is populated, and then the B-Action saves these parameters and forwards to B.jsp, for the user to select specific parameters for the second selected item on A page. But it doesn't work...B.jsp displays nothing... Thanks for your help! If so, then you should consider revisiting that design decision. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org/ The man who does not read good books has no advantage over the man who cannot read them. - Mark Twain (1835-1910) -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 9:37 AM To: 'Struts Users Mailing List' Subject: RE: Nobody answers I have already sent this message but nobody answered...So I send it again, because I do need your advices! It would be easier to help you if you used meaningful names and described the problem you're trying to solve by doing this. When you say B.jsp has to be displayed twice do you mean stacked one above the other on the same web page, or sequentially, B.jsp, then the user submits, then B.jsp again. I'm guessing that you have a need for the form to grow dynamically, but it's not clear exactly what you want. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Nobody answers....
On the form displayed by the B.jsp page, the user can choice specific parameters for the first selected item on A page. When the user submits this form, the B-bean-form is populated, and then the B-Action saves these parameters and forwards to B.jsp, for the user to select specific parameters for the second selected item on A page. But it doesn't work...B.jsp displays nothing... 10 a.jsp - Initial user selection 20 Action for a.jsp - takes stuff entered in a.jsp and builds stuff for b.jsp 30 b.jsp - Display options for item in a.jsp and as built in 20 40 Add item to shopping cart or an array or something 50 GOTO 10 - I'm assuming there's a way to stop this process. So you have a looping form submission that stops only when the user is done doing what they're doing. If your problem is that the form elements on b.jsp are not getting prepopulated you'll need to look at your Action that is associated with a.jsp, and the business logic it uses. It sounds like you're problem lies in line 20. Make sure you are properly prepopulating the ActionForm object that is used in b.jsp; if it's not set up correctly it won't display the data you need. Basically yours, -= J -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]