This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes data population problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "data population problem" Watch "data population problem" New topic

data population problem

Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
I am using struts2 framework

And everything works fine when I have my actions tags / result tags in the struts.xml file not using tiles
when I start sectioning code off into tiles I cann't retrieve that data any more

for example
<c:forEach var="myvar" items="itemlist" > ....etc myvar.propertytopopulate comes back as null always when using tiles.

But when I have it just a <result name="success" > myjsppage.jsp ...etc </result> in the struts.xml works fine

What could be going wrong ? I even tried request.getSession().setAttribute(...) but it still doesn't work.
I am think it must be some scope issue but I cann't figure it out.

Tiles are acting werid interms of scope and accessing data

My action tags are <action name="myactionsname" class="com.myclass...etc" method="sometimestomakeitdifferentfromdefaultexecutemethod" >
<result name="success" > ...etc </result>
I agree. Here's the link:
subject: data population problem
jQuery in Action, 3rd edition