This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 61457
    
  67

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: property tag problem