File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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:
Problem with html:select
Struts +retrieving values from text area
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