wood burning stoves*
The moose likes Struts and the fly likes property tag problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "property tag problem" Watch "property tag problem" New topic
Author

property tag problem

Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
hey guys,
I want to know how jsp property tag works.
I'm using struts2 for my application.

<s:property value="agentComLifePK.policyTermTo" /></td>

can any one explain how this value tag works? why use this dot operator???
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
The <s:property> tag retrieve the data from valuestack

you set the object agentComLifePK in action class
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You use the "dot" notation so you can access object properties.
Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
THANKS GUYS,
problem were solved.thanks for helping
 
 
subject: property tag problem
 
Similar Threads
logic: equal question
How do iknow whether a link was clicked or not
Issue with the property attribute of logic:iterate
JSTL forEach tag in struts problem
<jsp:useBean>