This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes JSP <a href> tags breaks page functionality Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JSP <a href> tags breaks page functionality" Watch "JSP <a href> tags breaks page functionality" New topic

JSP <a href> tags breaks page functionality

Tom Shypulski

Joined: Jan 02, 2009
Posts: 8
I have a simple if else statement that checks for a user object, if user is logged in it shows there name along with two options 1. Change Passord 2. Logout. If the user is not logged in a login box appears. Problem is when I place the <a href> tags in between the <div> the user functionality will not work for logged in users. If I remove the <a href> tags from the <div> everything works fine.

The user functionality is a variety of forms that are displayed depending on the tab selected. The tabs are created useing javascript and CSS.

<div id #navlogin>
<a href="/logout.jsp"> logout</a>
<a href="/changepassword.jsp"> change password</a>

Any insight into what could be causing this would be appreciated.

David Newton

Joined: Sep 29, 2008
Posts: 12617

We'd have to see all the HTML/JSP/etc.
Tom Shypulski

Joined: Jan 02, 2009
Posts: 8
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63232

Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JSP <a href> tags breaks page functionality
It's not a secret anymore!