File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to pass a parameter to value in logic:lessThan Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to pass a parameter to value in logic:lessThan" Watch "How to pass a parameter to value in logic:lessThan" New topic
Author

How to pass a parameter to value in logic:lessThan

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 249
How to pass a parameter to value in logic:lessThan?
i.e. logic:lessThan will use a variable (not a constant) in value.
I tried the following code but it does not work at run time : the logic:lessThan test always fail.
jsp:
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

Please don't start a new topic when you have a previous topic open. It will waste peoples' time and duplicate any effort in this topic.
I will lock the other topic.
As for your question, the documentation says:
The constant value to which the variable, specified by other attribute(s) of this tag, will be compared

so it sounds like the value attribute must be a "constant".


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass a parameter to value in logic:lessThan