Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mod Operator

 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!