The s:select tag doesn't have much to do with the namespace.

What you'll want to do is something like this:

<s:form action="myAction">
<s:select name="myProperty" list="backingList" listKey="field1"
listValue="field2" label="Choose a thing"/>
<s:submit />
</s:form>

Then you just have to make sure that your action ('myAction') has getters
and setters for 'myProperty', a getter for 'backingList', and that each
element of 'backingList' has fields 'field1' and 'field2', both of which
have public getters.

Does this help?

jk

On Thu, Jun 12, 2008 at 9:34 AM, kukudas <[EMAIL PROTECTED]> wrote:

>
> hi,
>
> basicly i can't find any working example, howto set the value which was
> choosen into a variable so i can use this in my beans. i've tryied using
> the
> namespace which didn't work.
> someone can provide me with an working example would be awesome thanks.
>
> greets
>
> kuku
> --
> View this message in context:
> http://www.nabble.com/Struts-2-s%3Aselect-question-tp17800089p17800089.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Reply via email to