Hey Musachy here's my page from start to end: agencyRef is defined in the
Action class in Java



<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ page import="java.util.*,com.xfact.struts2login.util.*,
com.xfact.struts2login.value.WebAppUserVO"%>

<%@ taglib prefix="s" uri="/struts-tags" %>

<table cellpadding="2" border="0" cellspacing="0" width="100%">

<tr>

<td align="left" valign="top" width="100%" bgcolor="#FFFFFF">

<span class="header">

Multiple Agencies Detected

</span>

<hr noshade size="1" color="black">

</td>

</tr>

<tr>

<td class="topInstructionCell" colspan="3" align="left" valign="top" width=
"100%">

<span class="normal">

Please select an agency.

</span>

</td>

</tr>

<tr>

<td colspan="3" align="left" valign="top" width="100%">

<span class="normal">

&nbsp;<br>&nbsp;<br>

</span>

</td>

</tr>



<tr>

<td align="left" valign="top" width="100%" bgcolor="#FFFFFF">

<div class="normal">

<!-- -->

<table width="95%" align="center">

<tr>

<td width="45%" valign="top">

<div class="normal">

<s:actionerror/>

<p>

The system has detected that you belong to multiple agencies.

Please select the agency you would like to use to access this application.

</p>



</div>

</td>

<td width="5%" valign="top">

<span class="normal">

&nbsp;

</span>

</td>

<td width="45%" valign="top">

<div class="normal">

<s:form action="submitRequestUserAgency" method="post">

<table border="0" width="100%">

<tr>

<td height="25" width="30%" align="right">

<span class="normalBold">

<span class="requiredFieldMarker"><s:text name="
requiredFieldMarker.displayname"></s:text></span><s:text name="
agencyID.displayname"></s:text>:&nbsp;

</span>

</td>

<td width="70%" align="left">

<span class="normal">

<s:select list="agencyRef" label="Select Agency" name="agencyId"
listKey="agencyId"
listValue="agencyDesc">

</s:select>

</span>

</td>

</tr>

<tr>

<td colspan="2">

<span class="normal">

&nbsp;

</span>

</td>

</tr>

<tr>

<td colspan="2" align="center">

<span class="normal">

<input type="submit" value="Submit Agency Selection">

</span>

</td>

</tr>

</table>

</s:form>

</td>

</tr>

</table>

<!-- -->

</td>

</tr>

</table>



On 8/27/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>
> 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 <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Pavel Sapozhnikov
xFact, Inc
[EMAIL PROTECTED]

Reply via email to