Solved

How can I hide a link in my JSP page.

Posted on 2003-11-06
4
235 Views
Last Modified: 2012-05-04
Hi, i have this link

<a href="abc.jsp" > ABC </a>

But i would like to make this link invisible for user. Only selected user where informed that there is a hidden link on particular positions can able to know where to click on it.

How?
0
Comment
Question by:fks2
  • 2
4 Comments
 
LVL 49

Accepted Solution

by:
Ryan Chong earned 150 total points
ID: 9698350
You may make your page password protected, means if a user is logged in, the content will changed accordingly.

To hide the above link, you may need user to login.

if the session is detected, with specified value, show to link, else not show.

Example:

<%
if (session.getAttribute("showlink") != null) {
    if (session.getAttribute("showlink").toString().equals("yes")) {
           %><a href="abc.jsp" > ABC </a>
<%
   }
}
%>
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 9698618
I agree with ryancys.
but if you don't already have a login page and there is no plan for it. the direct solution is:
<a href="abc.jsp">&nbsp;&nbsp;</a>
of course, you can use style to change mouse pointer and underlining.
0
 

Expert Comment

by:webhsu
ID: 9781237
Or you can make the font the same color as the background - using css.

<html>
<head>
.itemlink:link {TEXT-DECORATION: none; font-family: Verdana, Arial, Helvetica, sans-serif; color: #white; font-size:13 ;}
</head>

<body bgcolor=white>
<a href="abc.jsp" > ABC </a>
</body>

etc.

and as kenneth said above, you can also change mouse pointer.
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 9826307
fks2, I believe the B grade is unfair to ryancys. experts will also check you grading history before they answer your future questions.
How to grade:
http://www.experts-exchange.com/help/qnaFAQ.jsp#3
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
maven scope 1 120
rebasing and merging used in SCM 1 63
AlarmClock Challenge 35 145
how to hide hide popup page refresh second time? 10 82
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now