This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Conditional display of DisplayTable of DisplayTag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Conditional display of DisplayTable of DisplayTag" Watch "Conditional display of DisplayTable of DisplayTag" New topic
Author

Conditional display of DisplayTable of DisplayTag

Soumya Manjunath
Ranch Hand

Joined: Nov 28, 2007
Posts: 34
Guys,

I'm using DisplayTag library to display the table in my JSP. I'm using a Table Decorator to have a hyperlink to a column.
Now, I want to display th table with hyperlink to few users depending on their role. And I want to display a regular table
with no hyperlink to another set of users. So I'm using JSTL for the conditional check. But it is throwing errors as the start tag
is inside the condition.


The error is

Could anybody please help me to get around with it.


Thanks & Regards,<br />Soumya.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Are the errors at compile time?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Soumya Manjunath
Ranch Hand

Joined: Nov 28, 2007
Posts: 34
Thanks for your reply.

No, I don't get any compilation errors. When I try to access the page I get the above error.

Please give some inputs.
Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
Well Soumya,

when you try to access the page did you login as a user that is authorized or not?

Well, regardless of if the user is authorized or not, I think it's a bad idea how you have set up two different <display:table> withing <c:choose>

instead I think you should try this



BTW, why is
doesn't seem like that will work or makes sense if authorized is just a boolean not an object

Soumya Manjunath
Ranch Hand

Joined: Nov 28, 2007
Posts: 34
Thanks Davie. I made the changes as per your suggestion but the erros hasn't gone yet.



I get this unterminated flag error. Not sure how to get around with this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Conditional display of DisplayTable of DisplayTag