A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
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();
I agree. Here's the link:
I need ur support in sorting out the struts issue
Struts1.1 ( TreeView & Paging)
Writting Nested Properties
Problem with html:select
Struts +retrieving values from text area
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015