A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Struts 2.0 migration logic:present tag
Didier Varon
Greenhorn
Joined: Jul 14, 2005
Posts: 23
posted
Dec 22, 2008 13:14:00
0
Hi,
I am migrating a
struts
1.3 application and I haven't found how to migrate the <logic
resent role="someRole">
<!-- some html code for someRole users-->
</logic
resent>
Does anyone know how's it done?
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Dec 22, 2008 13:42:00
0
<s:if...>
Didier Varon
Greenhorn
Joined: Jul 14, 2005
Posts: 23
posted
Dec 22, 2008 13:44:00
0
Thank you David,
But if I have more than one role do I have to iterate over the roles collection on the Principal object?
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Dec 22, 2008 14:01:00
0
That, or create an accessor so you can determine if a specific role is present in a single call.
I agree. Here's the link:
http://aspose.com/file-tools
subject: Struts 2.0 migration logic:present tag
Similar Threads
logic:present tag with roles
populating jsp page dynamically using form beans
How to nest tags?
Validate if a field is present
When to use logic:present tag
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter