Colors of html:link is not consistent

Hi,
I am using html:link in jsp for showing the links.
<html:link href="test.do" params="testParams" styleId="testlink" styleclass="testurl" />
while running the application and the link is visited, color of the link gets changed from blue to black. But when I go to next screen and come back, link color changes back to blue or sometimes shows as black. Its not consistent.
I thought of writing code in css. I am not sure how to do it.
Please help me how to make the color of the link consistent. Once visited, it should be black or else blue.
Thanks & Regards,
Nasrin.N

on your web page, if you click "View Source" does it show things in plain old HTML format as in Some Link Text ?
If it does then the above code I posted should work.
The selector "a" in the above code matches all anchor tags in the page, so there's no need to specify a class or an id , for the anchor tags.
But if you want only some links to be colored a certain way then you would add a class , or an id (which ever is appropriate) to those links.
If you assign a class then the CSS would have to include the class of that anchor tag.
So it would be something like
a.classname:link{
CSS is very simple, it could be learned in just one to two days, here's a good tutorial: http://www.w3schools.com/css/default.asp

Similar Messages

  • From time to time when I click a searched link the colr of visited links does not change. It works fine after I delete history and cookies. Can I fix that. I am using windows XP. Thankste

    From time to time when I click a searched link the color of visited links does not change. It works fine after I delete history and cookies. Can I fix that. I am using windows XP. Thanks

    Here's the error message I get.
    Note the TC is connected to my Airport Extreme via ethernet and my iMac is also connected to the AX via ethernet so it's not a wifi issue.
    I can see the TC in the finder so it's not 'gone' from the network either.
    Also note that just then the TM system pref pane was claiming a backup error, citing my 'network password' and still refusing to backup.  I waited 5 minutes and did some tidying of my office while I pondered this and then tried again and voila it worked ok.

  • HTML links in Vibe Feed and digest e-mails do not work on GW 8.0.3client

    I have GroupWise 8.0.3hp1 on NetWare 6.5.8 and a Vibe 3.3 install on
    SUSE 11 (the downloadable Vibe demo virtual machine from Novell's site).
    I have recently started upgrading GroupWise clients on Windows 7 PCs
    (64bit), and have been testing Vibe. I have run into a problem with
    HTML links in GW clients not working on PCs where the GW client has been
    upgraded.
    This problem occurs using the GroupWise 8.0.3hp2 and 8.0.3hp3 clients,
    but does not occur on a 8.0.2hp2 client, so it appears to be GroupWise
    client related. I haven't tested any other client versions.
    1. When using the GW 8.0.3 client, if I select any of the "Novell Vibe
    OnPrem", "Favorites", or "My Teams" folders, I can see the Vibe Feed
    display showing entries for sites I'm following. But clicking on the
    links in these entries does nothing, so I cannot use the Vibe Feed to go
    directly to files, profiles, etc. The same Vibe Feed links from the
    Vibe web browser interface or from a GW8.0.2hp2 client works fine.
    2. If I have e-mail digest notifications setup to let me know when
    changes are made to a folder or file in Vibe, the e-mails are delivered
    to me just fine. But once again, none of the links in the e-mails work
    when using the GW8.0.3 client. Clicking on them does nothing. If I
    look at the e-mail message source, I can copy-and-paste the URLs
    directly into a browser and they work fine, so the URLs themselves are
    correct. Again, these links work fine if I use the GroupWise WebAccess
    or a GW8.0.2hp2 client.
    Is the GW 8.0.3 client is blocking these HTML links? I receive no
    notification from the client asking whether to "unblock" any
    links/scripts/images when viewing messages with these Vibe links.
    Any suggestions for getting these to work on GW 8.0.3 client?
    Thanks,
    -Greg
    former e-mail for posting:
    [email protected]

    Greg,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Html:link not working in struts project driving me mad, please help...

    Afternoon all,
    Can anyone help me with an issue I'm having with my first struts project, I'm learning as I go.
    Anyway, I'm trying to create a bog standard hypertext link which passes a value back to a specified struts action. The flow of the application
    is as follows:
    1) search.jsp
    User enters a name and postcode to search on, then click submit
    2) searchAction
    Struts action 'search' is called and does the search in a back-end db.
    Each result found from search is created as a javabean (named resultsBean), and added to a list object. The list object is set as a request
    attribute named 'SearchResults'.
    The action is then forwarded on to another jsp page named results.jsp
    3) results.jsp
    The results.jsp page retrieves the list object from the 'SearchResults' attribute and loops through each entry
    in the list and converts each entry to the 'resultsBean' javabean object.
    Each resultsBean object has a getVirtualID method which stores a string value. This value is retrieved and a hypertext link is created which
    passes this value on to another struts action named 'select'.
    When this link is clicked on, the select struts action is called and the value passed as a parameter is retrieved.
    This is the part I can't get to work, I can't get the link to render properly. When I click the link the select action retrieves
    & lt;%= resultsBean.getVirtualID() & gt; as the value of the parameter 'vid' instead of the value stored in the getVirtualID method of the resultsBean.
    Listed below is the code from my results.jsp page. If anyone can help me get this to work I would be very grateful.
    Thanks in advance,
    Alex
    results.jsp code
    <%
       List searchResults = (List)portletRequest.getPortletSession().getAttribute("SearchResults");
    %>
    <div id="table_layout" style="width: 713px; margin: 0px 0px 0px 3px;">
      <div id="row">
        <div id="column"><img src='<%= response.encodeURL("/images/results.gif") %>' alt="" width="223" height="159" border="0" /></div>
         <div id="column" style="width: 30px;"></div>
         <div id="column">
          <div id="table_layout" style="width: 460px;">
            <div id="row" style="width: 430px; border-bottom: 1px solid #4e137d;">
              <div id="column" style="width: 155px;">Name</div>
              <div id="column" style="width: 10px;"> </div>
              <div id="column" style="width: 130px;">Address</div>
              <div id="column" style="width: 10px;"> </div>
              <div id="column" align="right" style="width: 120px;">References</div>
            </div>
    <% if (searchResults.size() > 0) {
           Iterator it = searchResults.subList(0, searchResults.size()).iterator();
           ResultsBean resultsBean = new ResultsBean();
           while (it.hasNext()) {
                resultsBean = (ResultsBean)it.next(); %>
            <div id="row" style="padding: 5px 0px 10px 0px;">
              <div id="column" style="width: 155px;"><html:link styleClass="results"  page="/select.do?vid='<%= resultsBean.getVirtualId() %>'" title="<%= resultsBean.getFullName() %>"><%= resultsBean.getFullName() %></html:link></div>
              <div id="column" style="width: 10px;"></div>
              <div id="column" style="width: 130px;"><%= resultsBean.getFullAddress() %></div>
              <div id="column" style="width: 10px;"></div>
              <div id="column" align="right" style="width: 120px;"><%= resultsBean.getReferenceIcons(portletResponse) %></div>
              <div id="column" style="width: 13px;"></div>
              <div id="column" style="width: 22px;"><input id="<%= resultsBean.getVirtualId() %>" name="ckbox" type="checkbox" value="" title="tick to select for merging" style="border: 0px solid #ffffff;"></div>
            </div>
    <%     }
       } %>
           </div>
         </div>
      </div>
    </div>
    <br />
    <br />
    <html:link forward="/searchpage">Return to search page</html:link>

    If you have part of an attribute dynamic, you need to make the entire attribute an expression.
    ie instead of
    page="/select.do?vid='<%= resultsBean.getVirtualId() %>'"
    it has to be
    page="<%= "/select.do?vid=" + resultsBean.getVirtualID() %>"
    However for my approach, I would aim for zero scriptlets, and use the struts tags even more. For instance instead of an iterator, use the struts logic:iterate tag (or the JSTL c:forEach>
    Also instead of div tags, I would use html table tags - <table> <tr><td> etc etc. Thats what its for right?
    Here is at least some of it rewritten with struts tags.
    I left out the div tags so I could focus on the "important" stuff.
    <logic:iterate id="resultsBean" name="SearchResults">
      <html:link styleClass="results"  page="/select.do" paramId="vid" paramName = "resultsBean" paramProperty="virtualId">
        <bean:write name="resultsBean" property="fullName"/>
      </html:link>
      <bean:write name="resultsBean" property="fullAddress"/>
    <%= resultsBean.getReferenceIcons(portletResponse) %>
    <input id="<%= resultsBean.getVirtualId() %>" name="ckbox" type="checkbox" value="" title="tick to select for merging" style="border: 0px solid #ffffff;">
    </logic:iterate>I'm not entirely certain what you are doing with that checkbox at the end. They all have the same name, but no value. You couldn't identify at the server end which one was clicked.
    Hope this helps some,
    evnafets

  • New page unexpectedly loses ability to go BACK to previous page after clicking on a link in page (not consistent), why?

    Firefox 4.0 Vista 32 bit
    I will have a tab open, and click on a link, new page loads. The Back and Forward buttons do not work. Usually it shows in history (unless I opened too many pages before clicking on link). This has happened several times.
    It is not consistent - one time I used search bar and opened a Yahoo search page - clicked on search link and when I wanted to go back to look at another search link from the previous page- page would not load (BACK button dead). I clinked search again, clicked on another link and that time it allowed me to return to the previous page???
    I am about ready to go back to previous version.
    Thank you.

    It's a good idea to try disabling Flash completely and see whether the problem continues. If it does, then my guess is incorrect. To test that, open this tab:
    orange Firefox button (or Tools menu) > Add-ons > Plugins category
    Here you can locate Shockwave Flash and use the Disable button. Keep this tab open for easy access when doing your test.
    ''If your test confirms that Flash is causing the problem,'' then the other thread has two suggested workarounds. The first is simple to understand (keep some Flash running at all times) but may be inconvenient to do all the time. The second is trickier because it requires editing a file in (or creating and then dragging a file into) a system folder. Fortunately you only need to do it once.

  • Web links do not show as visited according to my color selection in content menu. visited siles/links should be in red, mine are not chsnging sfter a visit to a sits.

    web links do not show as visited according to my color selection in content menu. visited sites/links should be in red, mine are not changing after a visit to a sits. A good example would be a visit to a news article in google. mu colors are set to res for visited sites - it does not happen, in fact nothing changes

    Google is using a visited color (#551a8b) that is hardly distinguishable from the unvisited color (#2200cc), so may not notice it.
    * Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"
    You can look at these prefs on the about:config page to make sure that you keep history.
    *http://kb.mozillazine.org/browser.history_expire_days (180) (also affects saved form data)
    *http://kb.mozillazine.org/browser.history_expire_days_min (90)

  • Html link to pdf works ok on mac but not on ipad. adobe reader for ipad downloaded.

    HTML link to pdf works ok on Mac but not on ipad. Adobe Reader for ipad downloaded. What's wrong?

    Hi pwillener,
    Thank for reply. The pdf’s are in a subfolder “PDF” of the folder holding the web page. The web page itself uses
    . This works in full size computer browsers but not in an iPad.
    My excursion through the search engine has produced the idea of adding #page = requesting page to the URL but I have not had time to try it perhaps without the = sign.
    Bryan

  • After I click on a link and come back the link is not a differet color any more so I can't tell which links I have already used.

    I recently had to get a new hard drive and reinstall Firefox. Now when ever I click on an link to look at something and then return to the previous page (like in Craigs list or something) the link is not a different color like it always has been so I can tell which links I have already used, why?

    * Make sure that the History is set to at least 1 day: Tools > Options > Privacy > History: "Remember visited pages for at least"
    * Make sure that you do not run Firefox in Private Browsing mode (Tools > Stop Private Browsing is grayed, see [[Private Browsing]])
    * To see History and Cookie settings in Tools > Options > Privacy, choose the setting "Firefox will: Use custom settings for history"
    You can look at these prefs on the about:config page to make sure that you keep history.
    *http://kb.mozillazine.org/browser.history_expire_days (180) (also affects saved form data)
    *http://kb.mozillazine.org/browser.history_expire_days_min (90)

  • html:link action="" input type="button"... does not work under IE browser

    Greeting,
    I have the following codes in struts1.3.5. It works fine under Firefox, but it does not work at all under Internet Explore (IT) at all. Any clues why under IE it does not work?
    <html:link action="/private/search">
    <input
    type="button"
    value="Search"
    class="search-button">
    </html:link>
    Thanks a lot!

    This would probably generate a HTML in which there will be a button inside anchor tag.
    This is not a standard HTML feature and no wonder this is not supported by IE. I copied the generated html codes into test.html to try on IE, the button does not work at all.
    Firefox is probably lenient here. True. test.html works in Firefox.
    You might want to just have a link or do a form submission on button click.The action designed does not need an actionForm. I updated my code to :<html:button onclick="location.href='processSearch'"
    property ="Search"
    value ="Search">
    </html:button>
    And now both Firefox & IE works fine.
    Thanks a lot!

  • Html link not visible as table header in jsp

    Hi,
    I am not sure if this question belongs to JSP forum, since it's happening in JSP page I am posting it here.
    I am seeing this strange problem, in my JSP page all the link are looking fine except some links in Table header. Here is the code snippet:
    <th align="left" width="30%"><html:link action="/myAction.do?sortBy=org&all=${param.all}">Organization Name</html:link></th>
    ENV is struts, jstl, html.
    Now the problem is the text Organization Name is not visible, although it's there and I can click it. If I click and drag mouse over it I can see it.
    Also if I put this link anywhere else e.g. <TD> I can see it.
    I am not sure why it's happening.
    Please help me.
    Abhishek

    Sounds like a style issue - is it the same colour as the background for some reason?
    What styles have you got applied to your <th> columns? The text in them?
    Are you using css?

  • Visited links will not change color in FF 9

    Just upgraded to Firefox 9.0.1. When I click on a hyperlink, the color of the anchor text does not change. It remains the default blue rather than changing to purple, even though the settings in options>content>colors indicate that the color of the link should change.
    Anyone else have this problem? Is there a fix?
    Charlie

    Make sure that you do not run Firefox in Private Browsing mode (Firefox/Tools > Stop Private Browsing is grayed)
    *https://support.mozilla.org/kb/Private+Browsing
    Make sure that the History is enabled:
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history" > Remember my browsing history

  • Visited Links Do Not Change Color

    My visited links do not change color.

    * Make sure that you do not use [[Clear Recent History]] to clear the ''Browsing History''.
    * Make sure that the History is set to at least 1 day: Tools > Options > Privacy > History: "Remember visited pages for at least"
    * Make sure that you do not start Firefox in Private Browsing mode (Tools > Stop Private Browsing is grayed, see [[Private Browsing]])
    * To see History and Cookie settings in Tools > Options > Privacy, choose the setting "Firefox will: Use custom settings for history"
    You can look at these prefs on the about:config page.
    http://kb.mozillazine.org/browser.history_expire_days (180) (also affects saved form data)
    http://kb.mozillazine.org/browser.history_expire_days_min (90)
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

  • Flex Hero - Links in HTML component does not works.

    WebView-app.xml
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/2.5">
    WebView.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx">
    <mx:HTML location="http://google.com/" />
    </s:WindowedApplication>
    I can see google homepage in my test desktop application.
    But all links are not work in html document.
    Flex 4.0 and 4.1 SDK works well. Only Flex Hero has this problem.
    How can I fix it?
    Thanks.

    Hi Kevin,
    I had the same problem. This 4.5 build from 11/30/2010 fixed the HTML component issue.
    http://opensource.adobe.com/wiki/display/flexsdk/download?build=4.5.0.18623&pkgtype=1

  • My RoboHelp HTML 9 is not showing version control link

    My RoboHelp HTML 9 is not showing version control link in File menu and in Tools - > options. Do I need to set anything in project to see version control link?

    Welcome to our community
    Have you tried right-clicking the toolbars and ensuring you are seeing the Version Control toolbar?
    I believe it may also depend on whether you elected to install version control when you installed RoboHelp. And in thinking about it, *IS* there a version control system installed?
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Images in document are not consistently showing as highlighted in Links panel in InDesign CC

    Hi all,
    I am working with some very long documents with tons and tons of images. Often I need to view the name of the image in the links panel but after a while of working in the document, the images no longer show as being highlighted in the links panel. If I close the document and reopen, then once again things will work correctly and if I click on an image, it will be highlighted in the links panel...but then a moment later it stops working again. This is so frustrating:( It's obviously a bug. Is anyone else experiencing this?
    And a quick question regarding this....is there way to search for an item in the links panel if I DO know the file name of the image, without having to scroll through hundreds of images (that also seem to be out of order - not listed alphabetically)
    Thank you in advance

    But I can clearly see the highlight in both CS6 AND CC when I click on an image...but after a short while of working in CC the highlight no longer works in CC:
    CS6:
    CC:
    I am just SO used to ctrl-clicking on the highlighted link to access further functions. When the image link is not highlighted, I cannot ctrl-click on the link anymore because I don't know which the link is!

Maybe you are looking for

  • End of page in ALV display using OOPS

    Hi all,    How can i display end of page or footer in ALV display using OOPS concept. Thanks, vinit

  • Help needed in ads installation

    Hi I just finished installing the ADS on a 32 bit server (win 2003 server) It included both Java + ABAP stacks (NW2004s). Now in the SAP MMC I do not see the J2EE process listed. When I try to do the updates using JSPM, I get the Message J2EE engine

  • PI 7.1 EHP1 SR1 and Solutionmanager(7.0) EHP1 is compatible ?

    Hi Folks , In our landscape we have Solution manager(7.0) EHP1 , I would like to propose PI 7.1 EHP1 SR1. But as per the discussion with installation team , We have Solution manager EHP1 which is not compatible with PI 7.1 EHP1 SR1 ? is that true ? 1

  • Building a adf rich client component dynamically...

    Is it possible to specify the af:selectItem(s) in a af:selctOneChoice using af|forEach where the "items" attribute" calls a client side List or Array? Where can I find for documentation regarding EL expressions and how to call a client side varible i

  • OID Resource Access Descriptors in Forms and Reports

    Dear Colleage, In my Forms application (Oracle Application Server 10g (version 9.04), I call Reports from certain Forms. I have have SSO activated in both Forms and Reports. I have also defined two RADs (Resource Access Descriptors) in the OID called