Okay found the solution [of course right _after_ posting to the list ;) ].
First thing is I described the problem a little bit wrong. The List is stored
in the application context, not the session. Here is the tag that works.
<s:select name="pojo.property"
list="#application['listStoredInApplicationContext']" listKey="listKeyProperty"
listValue="listValueProperty"></s:select>
Hope that helps someone not get stuck ;)
Nathan
----- Original Message -----
From: "Nathan Anderson" <[EMAIL PROTECTED]>
To: "users" <[email protected]>
Sent: Tuesday, October 2, 2007 1:23:22 AM (GMT-0800) America/Los_Angeles
Subject: [appfuse-user] Struts2 <s:select> problem
Howdy folks,
I'm in this weird predicament where I have an error on my Struts 2 JSP page,
but rather than throwing an exception I get nothing... just a completely blank
page [even "view source" is completely empty]. But process of elimination I
have narrowed down the problem to a single line of code in my JSP, but I've
tried every variation I can think of and the error continues.
<s:select name="pojo.property" list="${listStoredInSessionContext}"
listKey="keyProperty" listValue="listValueProperty"></s:select>
Basically, I'm trying to populate a dropdown on my pojoForm.jsp page and save
the selected item to that POJO instance. But so far I can't get Struts to
render the page. The frustrating thing is I can output the contents of the
List with the following tag:
<c:out value="${listStoredInSessionContext}"/>
Any folks out there that have used Struts2 in this way?
Thanks,
Nathan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]