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 Mod Operator 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 "Mod Operator" Watch "Mod Operator" New topic
Author

Mod Operator

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Hi,

How do I use Modulous operator in struts...I have to use logic:equal tag or it can be done in any other way?
Michal Bienek
Greenhorn

Joined: Jun 17, 2002
Posts: 29
As far as I'm aware, there are no taglibs for mathematical operations in the Struts framework.
You'll have to perform the operation between scriptlet tags, or (the better solution) is perform anything you need within the action that's the predecessor for your jsp page. You jsp should, in theory, not need to perform such calculations, merely present the results.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mod Operator