• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Control CSS on a Jsp Page

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joined: Jul 22, 2009
Messages: 3


[Post New]posted Today 9:51:46 PM
Quote Edit [Up]
hi,
I have one issue with my web site home page which is a three column div layout where left column div contains
Ex: <UL><LI>First Link< LI><LI>Second Link< LI></UL>. I have around 20 links on the page.(Similar to Yahoo Home Page).
Basically i am going to implement a authentication kind of thing where i will be getting a value through java bean after performing security validation and all for which link is to be displayed and which link should not be displayed for each user.

Accordingly i have two css classes in one will have a attribute called visibility:visible and another class visibility :hidden.
Now i want to assign these classes to each UL TAG dynamically .
How can i achieve this?
Kindly help me out to solve this problem.
Thanks &Regards
Naveen
 
Sheriff
Posts: 67597
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

kongati naveen wrote:Now i want to assign these classes to each UL TAG dynamically .


You'll need to explain what you mean by this.
 
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"CSS Classes" are you referring css files as CSS Classes if yes then you can use Javascript to set the visibility as hidden or visible on some action in javascript itself with one css file .Also can you paste sample code here.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic