my dog learned polymorphism*
The moose likes Struts and the fly likes Solved: logic tag inside a logic tag : S1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Solved: logic tag inside a logic tag : S1" Watch "Solved: logic tag inside a logic tag : S1" New topic
Author

Solved: logic tag inside a logic tag : S1

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Hi ..

I'm writing something like this:



The logic is, I'm checking the today's date between two dates, i.e between startdate and endDate properties.

But this two things, not working together. If used single logic tag, whether greater than or less than, then it works !!

What might be the problem ?

Thanks.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1


Sorry, I found the answer.

The problem is , I'm considering them a date object, but they are plain string in the format, "dd/MM/yyyy" (Using DateFormat class). So when I swap the logic tags, by changing lessthan to greaterthan and vise a versa.. It works !!




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Solved: logic tag inside a logic tag : S1
 
Similar Threads
hbm file returning wrong result
logic:lessThan tag
Struts tag to obtain size of a Collection
Foreign key in hibernate
A little issue with <c:set ...>