• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help with a JSP problem i just ran into involving loops...  RSS feed

 
Nick Icenroad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all-
New here, just registered. I have been a web developer for about 8 years. Mostly into flash mx development, Coldfusion and SQL programming. I recently was given a task on a project involving JSP. As every IS shop is, deadlines are insane, and im getting in over my head with this JSP. We are running WebSphere (IBM), which is built with JSP pages and templates.
What it does now: On the admin section, you can create pages in a quick place. When you view the web site, on the left nav is links of all your pages. As it is now, there is top level navigation. (level 1) links. When you click on a top level link, if that has children pages, the link drops down and shows the children pages. Simple enough.
The problem: The way the code is now, when you click on a link, any link parent or child, that link gets a white background to highlight the link you are at. Every other link, both parent and children remain the same background color. I need to get it so when you click on a parent link, the parent link gets a white background color HOWEVER i also need the children pages that link has to get a different color background as well. So when you click on a link, the page your at is white, but all children pages it has is a unique color from other links so you know what area you are in.
The code: There are two things that basically work this. The JSP page for the left nav bar, and the styles.css file that pulls in style sheets for the table cells and links.
Leftnav.jsp -

As you can see it runs a loop at the top with booleans. I am very un familar with this.
The styles.css file it refers to-

So you can see it runs some kind of loop at the top of jsp file, and somehow determines what is what. But with it being a loop, i have no idea how to do what i need any suggesitons? THANKS!
[ August 20, 2003: Message edited by: Bear Bibeault ]
[ August 20, 2003: Message edited by: Nick Icenroad ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nick, Welcome to the Ranch!
Here's a helpful tip: When placing code in your posts, using the UBB code tags will preserve the formatting. This helps others look at your code (especially large block such as you posted).
I took the liberty of adding such tags to your post, but it didn't help much since the formatting had already been lost. You might want to edit your post and replace the code with the indented/formatted version to help others help you.
hth,
bear
 
Nick Icenroad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I edited my post and re-pasted in my code.
Any suggestions?
 
Nick Icenroad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you need to narrow the problem down a bit. Your JSP also seems to use some custom tags (prefixed wps that the readers here are not familiar with. You might need to include an explanation of how those tags work for people to try and understand your problem.
hth,
bear
 
Joe Pluta
Ranch Hand
Posts: 1376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The WPS: tags are from WebSphere Portal Server. And that's about all I can contribute on that particular subject .
Joe
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!