BASE tag

How can I get rid of BASE tag in content area. I have problem with anchor tag ( ) in text items. The <base> tag allways sending me to the user home page.
Thank you for the solution or workaround !!

Please refer to forum posting Re: discoverer plus error
Regards,
Jerry

Similar Messages

  • Insert BASE tag into HTMLDocument problem

    Hi,
    I've made a prog that read the HTML content from an URL, and write it into a file. But before writing it, I'd like to change the content to add <BASE href="http://www.site.com"></BASE> into the head part of the HTMLDocument. In my prog, I've made a insertBeforeEnd(...) to insert the <BASE> tag, but it's not inserted. I've made another insertBeforeEnd(...) to insert "hello world" (just for test) and it's inserted into the HTMLDocument. Can someone help me ? thanks a lot.
    My prog :
    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    public class InsertIntoHTML {
       public static void main(String[] args) {
          URL                  url = null;
          HttpURLConnection      conn;
          HTMLEditorKit         htmlKit;
          HTMLDocument         htmlDoc;
          InputStream            in;
          Element               head;
          boolean               ignoreCharSet = true;
          htmlKit = new HTMLEditorKit();
          htmlDoc = new HTMLDocument();
          try {
             url = new URL("http://www.google.com/");
          catch (java.net.MalformedURLException e) {}
          htmlDoc.putProperty(Document.StreamDescriptionProperty, url);
          htmlDoc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
          // read www.yahoo.com into HTML document
          try {
             conn = (HttpURLConnection) url.openConnection();
             in = conn.getInputStream();
             Reader reader = new InputStreamReader(in);
             Class c = Class.forName("javax.swing.text.html.parser.ParserDelegator");
             HTMLEditorKit.Parser parser = (HTMLEditorKit.Parser) c.newInstance();
             htmlDoc.setParser(parser);
             HTMLEditorKit.ParserCallback htmlReader = htmlDoc.getReader(0);
             parser.parse(reader, htmlReader, ignoreCharSet);
             htmlReader.flush();
          catch (javax.swing.text.BadLocationException ex) {}
          catch (java.lang.ClassNotFoundException e) {}
          catch (java.lang.InstantiationException e) {}
          catch (java.lang.IllegalAccessException e) {}
          catch (java.io.IOException e) {}
          htmlDoc.setBase(url);
          // find <HEAD> tag into HTML document
          head = getHeadElement(htmlDoc);
          try {
             // insert <BASE> tag into <HEAD> element
             htmlDoc.insertBeforeEnd(head, "<BASE href=\"http://www.google.com/\"></BASE>");
             htmlDoc.insertBeforeEnd(head, "Hello world !");
          catch (javax.swing.text.BadLocationException e) {}
          catch (java.io.IOException e) {}
          // write HTML document into file named yahoo.html      
          try {
             htmlKit.write(new FileOutputStream(new File("google.html")), htmlDoc, 0, htmlDoc.getLength());
          catch (java.io.FileNotFoundException e) {}
          catch (java.io.IOException e) {}
          catch (javax.swing.text.BadLocationException e) {}
       // Find first element into HTML document equals to tag parameter
       public synchronized static final Element findElement(Element root, HTML.Tag kind) {
          if(root == null) return(null);
          if(matchElementType(root, kind)) {
             return(root);
          int count = root.getElementCount();
          if(count > 0) {
             for(int i = 0 ; i<count ; i++) {
                Element child = root.getElement(i);
                Element e = findElement(child, kind);
                if(e != null)
                   return(e);
       return(null);
       public synchronized static final boolean matchElementType(Element e, HTML.Tag kind) {
          return(e.getAttributes().getAttribute(StyleConstants.NameAttribute) == kind);
       // Find HEAD element into HTML document
       public synchronized static final Element getHeadElement(HTMLDocument doc) {
          return(findElement(doc.getRootElements()[0], HTML.Tag.HEAD));

    first, thanks dvorhra09 for your help. unfortunately, if I use &lt; and &gt; instead of '<' and '>', the <BASE> tag is no more interpreted by my browser when the file is loaded, and the <BASE> tag is displayed textually. below, is what I tested :
    htmlDoc.insertBeforeEnd(head, "&lt;BASE href=\"http://www.google.com/\"&gt;&lt;/BASE&gt;");

  • Jsf equivelent of struts html:base tag

    I'm having an issue with the myfaces panelNavigation component. I'm including it in a series of pages with subview & jsp:include tags. It's working great with one exception. If I browse to a document one directory deeper than the "home" page, and then click the "home" link taking me back to the parent directory, the external css sheet doesn't load. All of my links and text are there, but not styled at all. If I click the link again, every thing loads fine.
    I remember the <html:base> tag from struts and I tried using it on the home page. However, the page refused to load and the server did not throw a stack trace (even though the logging is set to FINE).
    I'm wondering if anyone else has experienced a similar issue and if there is an equivelent tag in JSF to solve this problem.
    Thanks!

    thanks for you answer.
    but when i use the <html:base/> tag, everybody can see my internal structure when viewing the source code of the generated html in browser.
    i think i haven't understood the base tag (and have never used it).
    could somebody tell me how to use this tag correctly ? (html or struts version)
    actually my problem is, i used to define a variable at the top of every jsp page like this :
    <%! String conPath ; %>
    <% conPath = request.getContextPath();%>
    then,
    <a href="<%= conPath%>/some/link">Some Text</a> or <img src="<%=conPath%>/image/bottom.jpg">, is there a better way without using java code in jsp ? because when the context root changes some day, i have to change all jsp pages.
    can the <base> tag be helpful here ? how ?
    yawmark,
    when i put all my jsp files under WEB-INF, do i have to change something in struts-config.xml ?
    thanks in advance

  • History does not work correctly in Firefox when setting base tag?

    It looks like there's a bug in history.js that makes Firefox work incorrectly with History when the <base> tag is set in the HTML that runs the Flex object.
    We are not using the Flex-generated HTML, because of the way our application is built and one of the things that is different in the HTML that we run the Flex object in is the presence of the <base> tag.
    The <base> tag is set in our case to http://www.ufxbank.com/fr, and the full URL of the page with Flex is http://www.ufxbank.com/fr/trading.aspx.
    What happens is that the function setDefaultURL in history.js in its "if (browser.firefox || browser.opera)" part makes a call to "window.location.replace" with the value of "#", which in our case replaces the location to "http://www.ufxbank.com/fr/#", which brings a different page in the browser.
    I had to replace the code in history.js to be "var newloc = window.location + "?#" + def;" instead of the original "var newloc = "#" + def;".
    Does anyone has a better solution?
    Is it a bug in the template that should be fixed?

    Welcome to the forum.
    When you say delete the index, I think you mean delete the
    TOC?
    This is a known problem with Firefox. You have books with
    links to topics. If you remove those and have the required topic
    immediately below the book, the problem will go away.
    See other posts and my site.
    Please post a bug report as Adobe need to fix this.
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • In firefox 12 in page source code all links 404 not found! base tag ignored!

    in firefox 12 in page source code all links 404 not found! base tag ignored!

    I filed bug 757348 for you:
    https://bugzilla.mozilla.org/show_bug.cgi?id=757348
    If you want to be notified about changes, please add yourself to the CC list of the bug by creating a new bugzilla account: http://bugzilla.mozilla.org/createaccount.cgi
    Then go to the bug page shown above and hit 'Save changes' in order to add yourself to the CC list.
    --Tobbi

  • Where does the base tag come from?

    We have two seperate very simple apps. On one of the apps, when the container serves the JSP, it inserts a <base> tage which is dynamically set to the physical server name. ex)
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <base href="http://XXXX.XXXX.com:7777/VendorValidator/">
    <title>Validate XML Schemas</title>
    Our other application doesn't have this, and they appear to be coded the same.
    This value appears to be used to resolve any relative paths.
    Questions:
    - Where/why is this being inserted?
    - Is this a deployment configuration (application or server)?
    - Is this in our code somewhere that I can't find?
    - Is there a setting i can use to set what that value will be?
    _mike
    Message was edited by:
    [email protected]

    Hello.
    While establishing BGP with ISP, there are three options for a client:
    > Default route (used in general) - client router forwards every request (for destination route) to ISP router.
    > Full route - ISP router's complete routing table would be received and maintained in client router.
    > Partial route - Only specific route would be received from ISP (Head office - Branch office scenario)
    ISP generate default route from their peering router that should have full routing table or knowledge of the router having it. A local ISP may generate default to their client and have one received from their upstream or global / larger ISP. Hope this helps.

  • Is having a base tag worth while?

    I was checking out my Google rankings this afternoon when I realized that some college kid just flew up to position 2 (******* ).  So I'm tearing apart his website to see what he knows that I don't and I found <base href="domain"/>  I had never seen this before and I'd love to know if anyone is really for using this... or is it really worth my time?
    Thanks

    I’ve read posts by different people about whether or not success with Comenity’s SCT has any much or little to do with just your credit score. I understand that some stores are easier to get the pop-up for and that sometime it just takes several attempts until you can get a pop-up for some stores. I’m curious whether or not the likeliness of receiving a pop-up has much to do with whether or not you already have cards with Comenity. I have two cards with low CL and utilization from Comenity. I pay my bills early but not in full and have already received small CLIs on my two cards. Could any of this affect the SCT? I’m being patient and have been gardening since the beginning of August. I’m in the process of bringing my utilization down on my other accounts on my reports. There are just a few cards that would be very useful but I can’t seem to get a pop-up. If I could get VS, Overstock, HSN, Avenue/or any of the sister stores I would be fine gardening for at least a year until I try for some really good cards.  These are cards I would find use for right now.

  • Tag base in HTML page from web repository

    We are using EP 6.0 SP10 with KMC SP10 on host http://ep60:55000/. We want to configure web repository for http://example.com.
    We have created HTTP system "ExampleSite" in KM system landscape for web site "http://example.com", created web site "Example" in KM landscape and configured web repository manager "WebSystems" with prefix "/websys" for created web site "Example" with property "External Server URI Handling"="rewrite".
    We were create URL-iView on link http://ep60:55000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/websys/Example.
    The problem is following:
    There is no tag <base> in page content when we opening http://example.com directly in browser.
    When we preview created URL-iView page it is opened but tag <base href=http://example.com> is present in HTML page content.
    Thefore all relative links point to http://example.com but not to http://ep60:55000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/websys/Example as we need.
    What settings (in web repository, HTTP System or anywhere) disables addition tag <base> to page content?

    Hi, All. Sorry for tardy reply.
    Now i'm attempting to use "HTML Filter" (from repository filters in Content Managenment Configurator) for reset base tag.
    Unlike "HTML Stylesheet Filter" working fine (LINK tag is appearing in content of HTML repository documents),
    "HTML Filter" doesn'n work (browser display "500 internal error"). This error possess when we use "HTML Filter" for native CM repository (for example: documents).
    I find following error in knowledgemanagement.0.log file:
    #1.5#C000AC140312000500000002000012240003F737312F4F50#1116241350578#com.sapportals.wcm.protocol.webdav.server.WDGetHandler#irj#com.sapportals.wcm.protocol.webdav.server.WDGetHandler#System#0#####Client_Thread_7##0#0#Error##Plain###Exception while applying filters: null - com.sapportals.wcm.repository.ResourceException: Exception while applying filters: null
    Displaying pages from repository without "HTML Filter" works fine.
    My filter has following properties:
      Base Tag      = http://test.base.tag/
      Extensions    = htm
      MIME Types    = text/html
      Paths         = /**
      Active        = checked
      Priority      = 99
      Repositories  = documents
    I'm not use properties "Base URL", "URL Handler Class"
    What is a reasone of the error?
    Did anybody find a solution to remove/reset base tag?

  • CFFORM and BASE HREF tag

    Hello,
    I am developing a web page with the <BASE HREF="
    http://www.mydomain.com"> tag
    and using CFFORM to do some form validation on the page. When I
    test the page, the CFFORM is not validating. I thought that maybe
    the <BASE> tag was throwing off the mappings somehow, making
    /CFIDE look in
    http://www.mydomain.com/CFIDE
    (which doesn't exist).
    Any ideas on how to make CFFORM work with a <BASE HREF="
    http://..."> tag?
    Thanks!!

    Specify the location of your cfform scripts inside your
    CFFORM tag. ie;scriptsrc="/cfscripts". Replace with location of
    your scripts by creating a virtual directory in your webserver or
    use application mapping.

  • Getting img tags to work in sub page using jstl core import tag

    Am trying to bring disparate system page reports together under one web app. This means using the jstl core import tag (I dont want to redirect as I want to hide the urls, this web app provides better security than those it calls).
    Use of the import tag works to a degree but any resources (ie. img tags) don't load.
    Have created a much simplified example that demonstrates..
    So heres the jsp...
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <h3>Delivery Performance Report</h3>
    <c:url value="http://localhost/mycontext/subpage.html" var="myUrl"/>
    <c:import url="${myUrl}" />and a simple sub page (note plain html, no jsp, this mimics my project as the other systems are hidden source, non jsp)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <HTML>
    <HEAD>
    <TITLE>sub page</TITLE>
    </HEAD>
    <BODY>
         This is the sub page<br>
         <img src="images/banner_image.jpg" />
    </BODY>
    </HTML>While I dont get any errors what I do get is ..
    Delivery Performance Report
    This is the sub page
    ...but image fails to load.
    If I redirect instead of import it works, but as I said I need to hide the url from the user as security is an issue.
    Any help appreciated, really pulling my hair out with this final stage of something that will make a real difference to us!
    regards,
    G.

    Thanks for the answer but Im afraid thicko here doesnt get it.
    The img src is relative to the sub page, and I have tried it with an absolute address (ie. http://localhost/.....) with the same result.
    If I call the sub page direct (get with browser) the image tag works. Its just if the sub page is imported with the jstl core import tag.
    I've not tried a base tag. The real project always returns pages containing absolute urls... http://ourReportServer/reports?....plenty of params so dont belive relevant, please correct me if Im wrong here though.
    thanks, G.

  • AC_FL_RunContent & BASE Attribute

    I had a flash movie embedded in an asp page and I am trying
    to make it work with the new logic but it just sits there and does
    no load.
    I think it may be perhpas because I had to use a base tag?
    There is one main movie that loads several others and none of them
    are in the same folder as the asp pagn.
    Old and new source attached. If anybody sees anything goofy,
    I would appreciate some info.
    Thanks
    Mathias

    I spend at least four hours a day trying to beat this issue,
    you would think that taking my avi movie and putting it through the
    flash encoder of cs3 and then running it through cs3 flash would
    just work like the older versions of flash, place the swf and flv
    on the server and then publish the html in flash and place that on
    the server and wollah you got a movie playing in flash 9
    I have ran it though dreamweaver even sending the ftp through
    the dreamweaver program to no sucess, again when I create and view
    it locally on the browser it works just fine, send it to the net
    and it sucks

  • How does WebLogic 8.1 get the BASE HREF value?

    We have a WebLogic 8.1 SP4 server with a Juniper DX load balancer in front. We are trying to get Juniper to handle all the SSL traffic for the WebLogic application. Between Juniper and WebLogic, it would be just HTTP and between Juniper and web clients it would be HTTPS. One of the main issues we are seeing is that Struts HTML:BASE tag is returning the Juniper address as we expected, with the correct SSL port and application context/paths. However, the protocol for this base href is set to HTTP and not HTTPS. Consequently, our pages do not load properly.
    I am trying to understand where this value comes from. The underlying code uses request.getScheme() to get the protocol. So, we could "customize" the tags to work around this, but that is a hack that I am trying to avoid. I assume that the HTTP stack that WebLogic 8.1 uses is providing this info from the HTTP request. Does this come from the web browser? How does WebLogic get this to put it into the request object in the web container? We have sniffed the HTTP headers on the web client side and we cannot see where this is coming from.

    I remember facing a similar issue with webloigc 8.1 and apache
    I dont think its a problem with the tag..
    I think i have changed the transport-guarantee in web.xml
    If you have NONE try setting that to CONFIDENTIAL and vice versa

  • Taglib tag doesn't work with web.xml 2.4 ?

    That is, I switched to the 2.4 version of web.xml and now none of the taglib elements I have in there work.
    I get the following excpetion
    org.apache.jasper.JasperException: File "/tags/struts-html" not found
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.jav a:105)
    I've been surfing a good portion of the day looking for some documentation on this but to no avail. I did find that I should wrap the taglib elements in a jsp-info. I'm runing tomcat 5.0.19.
    In any event here is my web.xml:
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
    version="2.4">
    <display-name>Struts Examples Application</display-name>
    <!-- Standard Action Servlet Configuration (with debugging) -->
    <servlet>
    <servlet-name>InitServlet</servlet-name>
    <servlet-class>com.jacent.admin.servlet.init.InitServlet</servlet-clas s>
    <init-param>
    <param-name>log4j</param-name>
    <param-value>/WEB-INF/log4j.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class&g t;
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <!-- module configurations -->
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- The Usual Welcome File List -->
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <!-- Struts Tag Library Descriptors -->
    <jsp-config>
    <taglib>
    <taglib-uri>/tags/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-nested</taglib-uri>
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-tiles</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/datetime</taglib-uri>
    <taglib-location>/WEB-INF/datetime.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/tabs-taglib</taglib-uri>
    <taglib-location>/WEB-INF/tabs-taglib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/admin-widgets</taglib-uri>
    <taglib-location>/WEB-INF/admin-widgets.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
    <taglib-location>http://java.sun.com/jsp/jstl/core</taglib-location> ;
    </taglib>
    </jsp-config>
    </web-app>
    In addition Eclipse is complaining about web-app element not able to be found.
    Thanks for anyone's help!
    John

    #1 programmers excuse: It works for me. You must be doing something wrong.
    Finding out what is the trick.
    I have Tomcat 5.0.28, but I don't think it would make THAT much difference.
    What version of Java are you running?
    You shouldn't need the entry for the JSTL library c. That works without an entry in web.xml, provided you use the correct URI.
    First step: make a test page that only uses that one taglib - eg an html:base tag.
    Confirm that it breaks with the current setup.
    Backup web.xml, and start it from scratch with an absolute minimal one - only import the struts-html library.
    Does that work?
    Slowly copy and paste in the different bits of web.xml until you find what breaks it.
    Hope this helps,
    evnafets

  • Fiber "Deploy Data Model to LCDS" fails: model tag not recognized

    I get an XML parse error when trying to deploy my data model in Flash Builder 4 Beta 2 with the Modeler Plugin installed.  It says it cannot recognize model, which is the base tag.  I know there has been some issues with this in Eclipse also, but it's particularly troubling because I use this process to figure out which pieces of the FML are causing Fiber to not start on my server.

    Hi Gregory,
    Can you please check for the logs? Please share the logs with us.
    Regards,
    Kishan

  • Problems getting title tags to stick

    I am trying to use iweb SEO Tool to add Title tags and analytics code to my website. I go through the process and the SEO tool says that changes have been saved to my idisk website. But when I go to google and google Nightmare 13 it still has the old title tag. The name of my website is:
    TheNightmare13.com
    I want the title tag to be (I think):
    Water Skier Freddy Krueger Jump Suits, Boat Propellers, Apparel
    If anyone is familiar with the SEO tool and would be willing to give some advice to a total hack I would really appreciate the help!
    Freddy

    Thanks for the answer but Im afraid thicko here doesnt get it.
    The img src is relative to the sub page, and I have tried it with an absolute address (ie. http://localhost/.....) with the same result.
    If I call the sub page direct (get with browser) the image tag works. Its just if the sub page is imported with the jstl core import tag.
    I've not tried a base tag. The real project always returns pages containing absolute urls... http://ourReportServer/reports?....plenty of params so dont belive relevant, please correct me if Im wrong here though.
    thanks, G.

Maybe you are looking for