struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <>
Subject Re: Problem Sumitting Struts Form containing a drop down list <html:optionsCollection>
Date Tue, 10 Nov 2009 09:28:46 GMT
Hi Hanen,
firstly I see no attachements, maybe because they are deleted by
mailing list itself.
Secondly, if the problem You have is hard to explain,
then maybe You have trouble to understand it.

If You want to understand your problem better You need to shrink it to
minimum size,
best if this will be one action, one jsp, and one form.
Then keep in mind that Struts is based on HTTP, that give some restrictions,
and also remember how Struts workflow is done.
Ajax is also based on HTTP and the same restrictions apply.

Then try to describe your problem again,
but before sending it give it to someone else who will read it for You
and check if there is anything thats important.

These all are just general best practises to write a post on mailing list.
Keep in mind that if people doesn't understand your post they simply
tend to skip it,
or if some one like David have more time or more good will they ask
for more details.

At the end, i read your question two times,
and i don't understand what You are trying to achieve,
maybe that's me who is not bright enought,
but that's definitively your problem You want to solve.

Best greetings,
Paweł Wielgus.

2009/11/10 Hanen Ben Rhouma <>:
> Morning,
> If I give code details, no one will show interest with so much details and
> with only the description of my requirement no one also could understand,
> that's pretty complicated you know!!
> Well, let me represent it with another approach, by screeshots maybe is
> better (please take a look at my jsp page shown in the attached screeshot).
> By selecting one change ID I'd like to forward my form to another jsp page
> representing the details of the selected change (description, change number,
> creation date, user, workspace...).
> The problem is that I'm either using dojo to code the drop down list from
> user side (and the mapping between simple <input> parameters and a struts
> form <html:form> isn't that trivial to do), or I've tried also to code it
> from server side (eventhough it's too slow) by using a struts form
> <html:form action="someAction"> containing <html:optionsCollection> to
> represent the dynamic drop down list (here the problem is that
> <html:optionsCollection> will make use of the struts action "someAction" to
> retrieve the data necessary to fill the drop down list and not to code the
> form's behavior after submitting it.
> Hope that my point is clearer this time, I'll be really grateful if someone
> got a clue to all this headache :(((
> Regards,
> Hanen
> On Mon, Nov 9, 2009 at 7:06 PM, Kawczynski, David
> <> wrote:
>> I'd love to be able to help but am confused with what you are having
>> trouble with.  I think I heard something about wanting to modify the
>> action of a form based on the value selected in a drop-down.  I also
>> heard something about forwarding to another jsp page.  If you can
>> clarify your intent you may end up with a good pointer or two.
>> :)
>> > -----Original Message-----
>> > From: Hanen Ben Rhouma []
>> > Sent: Monday, November 09, 2009 12:49 PM
>> > To: Struts Users Mailing List
>> > Subject: Problem Sumitting Struts Form containing a drop down
>> > list <html:optionsCollection>
>> >
>> > Please, I need your help: I've spent more than one week on trying to
>> figure out how to submit a struts 1 form containing a drop down list
>> (using optionsCollection). The problem is that the items in the
>> optionsCollection refer to the action assigned to the form while I need
>> that same action to submit my form and trigger the forward to another
>> jsp page.  I'm loosing my cool temper in front of such futility, any
>> ideas PLEASE???
>> Notice:  This e-mail message, together with any attachments, contains
>> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New
>> Jersey, USA 08889), and/or its affiliates Direct contact information for
>> affiliates is available at that
>> may be confidential, proprietary copyrighted and/or legally privileged. It
>> is intended solely for the use of the individual or entity named on this
>> message. If you are not the intended recipient, and have received this
>> message in error, please notify us immediately by reply e-mail and then
>> delete it from your system.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message