aspose file tools*
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 Spring in Action this week in the Spring 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
Author

JSP <a href> tags breaks page functionality

Tom Shypulski
Greenhorn

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>
</div>

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


David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jan 02, 2009
Posts: 8
[color=#444444]
[/color]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP <a href> tags breaks page functionality