File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

Joined: Jan 10, 2002
Posts: 63852

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

[Asking smart questions] [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

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
problem were solved.thanks for helping
I agree. Here's the link:
subject: property tag problem
jQuery in Action, 3rd edition