A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Joined: Nov 22, 2007
Nov 22, 2007 06:03:00
Im trying to pass the value got from the struts-tag to the
variable in the
page. However Im not able to get the output. Can you guys help me on this please...
<logic:notEmpty name="TreeBean" property="list"> <logic:iterate id="Type" name="TreeBean" property="list" indexId="i"> <br/><bean:write name="Type" /> </logic:iterate> </logic:notEmpty>
Here the list can be populated in the jsp page. However I want the values into JSP list. Im not able to populate the same..
<% List jspList = null; %>
I want the values into the jspList variable for further processing. Can you guys please help me on this....
Joined: Feb 15, 2005
Nov 24, 2007 08:12:00
It depends on what scope your TreeBean property is in. If it's in request scope, the following would work:
List jspList = ((TreeBean)request.getAttribute("TreeBean")).getList();
Don't get me started about those stupid
Struts +retrieving values from text area
Problem with html:select
Writting Nested Properties
Struts1.1 ( TreeView & Paging)
I need ur support in sorting out the struts issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014