struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: Insane problems with s:select
Date Mon, 27 Aug 2007 19:55:48 GMT
I'm using the select tag and it seems to work fine, I'm using
Collections, Maps, multiple values, pretty much everything.

You are not forced to use a Map, you can use Collection or an
Enumeration, and then specify which field is the key, with listKey and
which field is the value with listValue.

@Pavel: can you post the section of the page that has the select tag?

musachy

On 8/27/07, Session A Mwamufiya <smwamufi@andrew.cmu.edu> wrote:
> That happened to me once, and it ended up that the s:select tag was improperly written.
 Make sure that you are returning an appropriate map<string, string> from the function
that is associated to the list attribute in s:select.  It expects a map that maps IDs to strings
that get displayed.
>
> Hope it helps,
> Session
>
>
> > Hey guys I am having really crazy problems with s:select. Here's what
> > happens I have a jsp page with a s:form in it. Then I have a Collection
> > defined up top that gets from the session just like this
> > session.getAttribute...Also my page is actually a tile. I started doing
> > this from scratch but whenever I have this s:select tag in it puts like my
> > tile within the same tile so it looks a page within the same page. Um lets
> > see if I get rid of s:form it still does that. The only time its fine is
> > when I actually remove the s:select tag but then of course its not
> > displaying my list...well its not displaying my list even if I do have
> > s:select. So if anybody can provide some help that would be terrific.
> > Thanks.
> >
> > -- Pavel Sapozhnikov xFact, Inc pavel@xfact.com
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


Mime
View raw message