• RELEVANCY SCORE 3.69

    DB:3.69:Looking For Example To Replace Href Tags In Xml Soap 3j





    Hi,

    has anyone seen or got an example of java code which would go though an xml file and replace all href tags with their actual contents...

    exp :

    class

    students

    item href="id1"/

    item href="id2"/

    /students

    /class

    student id="id1"

    nameThierry/name

    lastnameDagnino/lastname

    /student

    student id="id2"

    nameBozo/name

    lastnamethe Clown/lastname

    /student

    would become

    class

    students

    student

    nameThierry/name

    lastnameDagnino/lastname

    /student

    student

    nameBozo/name

    lastnamethe Clown/lastname

    /student

    /students

    /class

    Anyway this whole question is because I'm looking into writing a axis handler to do this kind of job to remove multiref tags but I don't want to reinvent the wheel...

    Thanks.

  • RELEVANCY SCORE 3.41

    DB:3.41:Find And Replace Using Specific Tags dz




    is there a way to find-and-replace my a href= "" to
    equal whatever is in their nested img src tag?

    for example, if i have a photo gallery with:
    a href="url1.htm"img src="imagea.jpg"
    //a
    a href="url2.htm"img src="imageb.jpg"
    //a
    a href="url3.htm"img src="imagec.jpg"
    //a

    is there a way to make it turn into:
    a href="imagea.jpg"img src="imagea.jpg"
    //a
    a href="imageb.jpg"img src="imageb.jpg"
    //a
    a href="imagec.jpg"img src="imagec.jpg"
    //a

    DB:3.41:Find And Replace Using Specific Tags dz

    Short answer is no. There is no wildcard type functions in
    the replace
    command.

    --
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver

    Valleybiz Internet Design
    www.valleybiz.net

    "bwcb" webforumsuser@macromedia.com wrote in message
    news:eduj5o$lro$1@forums.macromedia.com...
    is there a way to find-and-replace my a href= ""
    to equal whatever is in
    their nested img src tag?

    for example, if i have a photo gallery with:
    a href="url1.htm"img src="imagea.jpg"
    //a
    a href="url2.htm"img src="imageb.jpg"
    //a
    a href="url3.htm"img src="imagec.jpg"
    //a

    is there a way to make it turn into:
    a href="imagea.jpg"img src="imagea.jpg"
    //a
    a href="imageb.jpg"img src="imageb.jpg"
    //a
    a href="imagec.jpg"img src="imagec.jpg"
    //a

  • RELEVANCY SCORE 3.19

    DB:3.19:Html Question cs




    Hi All,

    I have a jspx page with af:table that simply pulls the data using the VO.

    DB table has the html tags embedded into the data.
    For example: a href="...'Visit us/a.

    In this case, af:table does not convert the html tags into hyperlinks.
    It simply displays the html tags.

    Any thoughts on the making this html tags to hyperlink?

    Thanks

    DB:3.19:Html Question cs

    You may try ttaf:outputText escape="false"//tt, however this approach must be used with caution, for example:
    af:ouputText value="#{row.myHtmlDBColumn}" escape="false"/Dimitar

  • RELEVANCY SCORE 3.15

    DB:3.15:Richtexteditor Content Filter Experience Manager pp


    Hi, we are using rich text cartridges for static pages. But when we copy an html content to the source editor and save, the editor formats the html tags. For example: a href="#"h1Title/h1/a is converted to: h1a href="#"Title/a/h1What could we do to fix this problem?

    DB:3.15:Richtexteditor Content Filter Experience Manager pp

    Hi, we are using rich text cartridges for static pages. But when we copy an html content to the source editor and save, the editor formats the html tags. For example: a href="#"h1Title/h1/a is converted to: h1a href="#"Title/a/h1What could we do to fix this problem?

  • RELEVANCY SCORE 3.14

    DB:3.14:Rendering Km Content ak



    Hi Everyone,

    We are trying to render a HTML document with our defined JSP Tags in KM, and replace the tags with the content based on our logic and showing it in our custom iView. Since we are unable to render the content outside our custom par. Any suggestions to go about? We have solutions with Parsing HTML etc... but we are looking for solutions to increase performance.

    DB:3.14:Rendering Km Content ak


    Hi Everyone,

    We are trying to render a HTML document with our defined JSP Tags in KM, and replace the tags with the content based on our logic and showing it in our custom iView. Since we are unable to render the content outside our custom par. Any suggestions to go about? We have solutions with Parsing HTML etc... but we are looking for solutions to increase performance.

  • RELEVANCY SCORE 3.04

    DB:3.04:Find And Replace ac



    Hi,

    Can I change while typing for example from image 93 to image 112 and all the code in that line changes to 112.jpg. I know that you can do a find and replace but you need to do one item after the other. Is there a multiple find and replace?

    Eg;

    Find

    a class="effects" href="images/93.jpg" data-fancybox-group="gallery"img src="images/93.jpg" alt="Photo93"//a

    a class="effects" href="images/94.jpg" data-fancybox-group="gallery"img src="images/94.jpg"alt="Photo94"//a

    a class="effects" href="images/95.jpg" data-fancybox-group="gallery"img src="images/95.jpg"alt="Photo95"//a

    .....

    Replace

    a class="effects" href="images/112.jpg" data-fancybox-group="gallery"img src="images/112.jpg" alt="Photo112"//a

    a class="effects" href="images/113.jpg" data-fancybox-group="gallery"img src="images/113.jpg"alt="Photo113"//a

    a class="effects" href="images/114.jpg" data-fancybox-group="gallery"img src="images/114.jpg"alt="Photo114"//a

    .....

    DB:3.04:Find And Replace ac


    This could be very dangerous using the find and replace in a generic way.

    Another method I would suggest is to back up your originals images, 93-98 and 112-117 and save them outside your website (copy/paste). My next step would be to rename the actual file 93.jpg to 112.jpg in Dreamweaver. If you do it that way, it will ask if you want to update the url files in the pages that is used. The you will have to save the files an upload them to the web server.

    Do this with the remaining files.

    Jim

  • RELEVANCY SCORE 2.98

    DB:2.98:Replace A String With Another String In A File 19


    I have to replace a string with another string. Say for example in a html file it got a line like,
    a href="##"/a

    now i want to replace this ## with the full derived path like
    "c;\\sample folder\\sample subfolder\\samplefile.html"

    can someone help me to do this?

    pls tell me from the file opening till closing the file.

    DB:2.98:Replace A String With Another String In A File 19

    You try to read the file using the file stream and then apply the following line of code on every line

    Store the every line into the String object and apply the code

    boolean b = Pattern.matches("##", String Object);
    if that is true then
    use this

    StringObject.replaceAll("##", String replacement);

    hope this should work out fine,

    All the best.

  • RELEVANCY SCORE 2.95

    DB:2.95:Expression To Replace Text Outside Of Html Tags 8d


    Hi All
    I wish to find specific words within a string of HTML and replace them with a href=..word/a etc.
    This is the expression I have now: \b(?find{0}(|es))s?\b
    This works well, but I need to add to it the ability to ignore any text within HTML tags.
    The problem I am having is that it is finding words in image names, links etc which is obvioulsy breaking the HTML.
    Any help is greatly appreciated.
    Thanks
    Ben

    DB:2.95:Expression To Replace Text Outside Of Html Tags 8d

    you can use the following code:

    class Program
    {
    static void Main(string[] args)
    {
    string input = @tag SomeText/tag SomeText SomeTextes asd SomeTextSomeText/SomeText;

    const string pattern = @/?\w+.*?|\b(?findSomeText(|es))s?\b;

    string replaced = Regex.Replace(input, pattern, ReplaceFunction);
    }

    static string ReplaceFunction(Match match)
    {
    string found = match.Groups[find].Value;
    if (!string.IsNullOrEmpty(found))
    {
    return string.Format(@a href=MyLink{0}/a, found);
    }
    return match.Value;
    }
    }

  • RELEVANCY SCORE 2.93

    DB:2.93:Jstl ≪C:Out/≫ Embedded Html Tags Not Working! Help j8


    The problem is that we allow the content magement team to enter embedded html into the database. When the JSP page displays the pulled content from the actionForm the HTML tags are just printed and ignored.
    If I use jsp tags or scriptlets the rich text prints correctly,
    I need to only use JSTL tag libary with EL.
    Please Help!

    JSPc:if test="${not empty ContentRetrievalActionForm.contentItem}"
    html
    head
    titleDid You Know/title
    link href="style/BBY1.css" rel="stylesheet" type="text/css" /
    /head
    body
    div class="portlet_subhead"c:out value="${ContentRetrievalActionForm.contentItem.displayName}"//div
    div class="portlet_body"c:out value="${ContentRetrievalActionForm.contentItem.text}"//div
    /body
    /html
    /c:ifThis is an example of what could be placed inside ContentRetrievalActionForm.contentItem.text
    You can deposit your paycheck directly into your checking account using a href="http://www.somesite.com"direct deposit./a If you cannot take advantage of direct deposit you can receive your net pay on a Visa pay card?Thank you

    DB:2.93:Jstl ≪C:Out/≫ Embedded Html Tags Not Working! Help j8

    use escapeXml attribute in your c: tag...this will filter all your HTML elements....

    c:out value="${ContentRetrievalActionForm.contentItem.text}" escapeXml="false"/

  • RELEVANCY SCORE 2.86

    DB:2.86:How To Find/Replace Between A Href / A 7a



    Hi all,

    How do i find / replace between a href / a so that i can replace the link with my own?

    I have to aply that to this code:

    a href="http://www.flickr.com/photos/aaronrz/6956154572/" title="Spiritual by Aaron Reiff-Zall, on Flickr"img src="http://farm8.staticflickr.com/7050/6956154572_a9a5c3a179_m.jpg" width="240" height="160" alt="Spiritual"/a

    I have searched the net but can't find any example, or is there?

    Thanks...

    DB:2.86:How To Find/Replace Between A Href / A 7a


    Yes indeed . I already edit my reply and changed the status of your reply to correct, it works as a charme.

    I also needed to add a "target="_blank" to the existing code of flickr, that was just a simple replace (on a piece of code that ofcourse will always be the same):

    cfset url = REReplacenocase(str,'"img','" target="_blank"img',"all")

    Gonna dive into the regex some more, very useful!

    Thanks!

  • RELEVANCY SCORE 2.81

    DB:2.81:While Loop Problem 87


    Hi all The line below returns a list of 'tags' associated with a particular blog post, i.e 'one', 'two', 'three. SELECT Tags FROM tblTags WHERE blogid = 14 I then want to do a REPLACE on the field blogtext, creating a hyperlink out of any word in blogtext that matches a returned tag, can anyone help me do that please. My UPDATE statement works on a hardcoded copy but I can't get it to work in a WHILE loop  WHILE (SELECT Tags FROM con_TagCloud WHERE blogid = 14) BEGIN UPDATE tblBlogs SET BlogText = REPLACE(blogText,@tags,'a href=search.aspx?tag=' + @tags + '' + @tags + '/a') WHERE blogid=14 END Thanks Melt

    DB:2.81:While Loop Problem 87

    Melt,I put your code into a cursor WHILE loop. You need to test it and finalize it since I could not test it.Let us know if helpful.
    -- T-SQL Cursor WHILE loop
    DECLARE @tags VARCHAR(64)
    DECLARE curTag CURSOR FAST_FORWARD FOR
    SELECT Tags
    FROM con_TagCloud
    WHERE blogid = 14
    OPEN curTag
    FETCH NEXT FROM curTag INTO @tags
    WHILE (@@FETCH_STATUS = 0)
    BEGIN
    UPDATE tblBlogs
    SET BlogText = REPLACE(blogText,@tags,'' + @tags + '')
    WHERE blogid = 14
    FETCH NEXT FROM curTag INTO @tags
    END
    CLOSE curTag
    DEALLOCATE curTag Kalman Toth, SQL Server BI Training, SSAS, SSIS, SSRS; http://www.SQLUSA.com

  • RELEVANCY SCORE 2.80

    DB:2.80:Behavior Not Desired With Links (Href="#") Or (Href="") j8


    Hi,
    A customer has developed a page template with a drop-down menu.
    In this drop-down menu there are tags that are not supposed to be linked anywhere.
    Therefore customer has written (href="#") or (href="") tags.
    This links led to the Portal Home page.
    How to avoid this in Portal 10.1.4?
    Tags are needed because of the use of Javascript events.

    Great thanks for your kind help.
    Regards.
    Jean-Francois

    DB:2.80:Behavior Not Desired With Links (Href="#") Or (Href="") j8

    Forgiveness for this error,
    it acts well of the same question but always on standby of resolution.
    Thank you very much for your help.

    Regards.
    Jean-Francois

  • RELEVANCY SCORE 2.79

    DB:2.79:Replacing Href Anchor Tags With The Href Value fd


    I have an html email and am in the process of converting it to plain text. The one catch to removing the html markup is that I want to replace anchor tags a /a with just the href attribute inside the tag.example:
    a href=http://www.test.com/TestSrv.aspx?ID=1Key=11111-1111-1111-1111-1111111URLID=111CID={ContactID}CSecKey={ContactSecurityKey}UnsubListID=111 alt=Click HereClick Here/ashould be replaced with:http://www.test.com/TestSrv.aspx?ID=1Key=11111-1111-1111-1111-1111111URLID=111CID={ContactID}CSecKey={ContactSecurityKey}UnsubListID=111I have been trying some different regex but none have worked, this is my current one:
    r = New Regex(a.*?href=['](?mtcurl.*?)['].*?(?name.*?)/a,  RegexOptions.IgnoreCase Or RegexOptions.Compiled)You can assume that the anchor tag is properly formated.Any glaring problems with this regex?Thanks
      

    DB:2.79:Replacing Href Anchor Tags With The Href Value fd

     Or, instead of escaping , you can use single quotes around mtcurl and name instead of .    r = New Regex(a.*?href=['](?'mtcurl'.*?)['].*?(?'name'.*?)/a,  RegexOptions.IgnoreCase Or RegexOptions.Compiled)Les Potter, Xalnix Corporation

  • RELEVANCY SCORE 2.79

    DB:2.79:How To Change The A:Href Css In A Loaded Json Html Block xp



    If we have JSON loading html in and in that text block we have a tags to links (see example below of the JSON string). How do you add the css to control how that a:link should look? It's defaulting right now to standard blue and underlined and is not picking up the text properties of the text div in animate other then the font type.

    Would we control it by assigning it a class and then external css? Is there a way to do it without it being inline?

    //EXAMPLE JSON LOADED BLOCK

    {"image" : "images/th-hp-water.jpg","bigtitle" : "At Palermo Ortho in Oakville ON, we provide braces and orthodontics for kids, teens and adults.","thelinktext":"","thelink" : "","description":"We provide Orthodontics for Children, Teens and Adults.br/brThe days of scary braces are gone and we have ergonomic braces options that help you achieve that smile you want while never getting in the way of your active lifestyle. If you are looking for braces for kids, teens or adults we've got you covered.br/brLearn more about a href='http://www.palermo-ortho.ca/'orthodontics for kids/a, a href='http://www.palermo-ortho.ca/'teens/a and a href='http://www.palermo-ortho.ca/'adults/a including a href='http://www.palermo-ortho.ca/invisalign-in-oakville.html'invisalign/a"},

    The above block of text is loading fine, (see screen shot) but it's defaulting to blue

    DB:2.79:How To Change The A:Href Css In A Loaded Json Html Block xp


    Great idea!

    On Tue, Nov 4, 2014 at 3:31 PM, QuadrantProductions

  • RELEVANCY SCORE 2.78

    DB:2.78:Replace Mp3 Tags. f8


    Hi I'm looking for a script that would work just the same way as an automator action called Batch Remane. What i need it to do is be able to edit mp3 tags for multiple files 10-20 files and enter the same artist genere etc.

    Anyone know of such as script? or free ware to do this.

    Thanks

    DB:2.78:Replace Mp3 Tags. f8

    Sweet, Thats exactly what i needed. All of the files that i'm working on are in-fact sermons, that in some cases have but in most cases do not have any tags associated with them.

    I was playing around with the automator, and i noticed that in the library section under Music there is a action "set info of itunes songs" i tried playing around with it by modifying the batch rename automator and including the action above. maybe i'm doing something wrong, but the action seems to be trying to modify the tags. Isnt that the case ? if so maybe someone was able to get it to work, however since i'm not very proficient with automator i couldn't

  • RELEVANCY SCORE 2.76

    DB:2.76:How To Handle Custom Non Existing A Href=".." In Label With Html Format jj



    Hi,

    I've got the following question,

    i got a text from a service that uses some html tags for formating for example b,i,a, etc those a tags can contain real links like a href="http://google.com"google/a but could also contain internal links like
    a href="article://456967"Article/a

    now when i create my label like this:

    Label *label = Label::create().multiline(true).format(TextFormat:​:Html);// when my netwerk connection is completed label-text("some html text");
    Normal link like the "http://google.com" works like expected but i want to catch the custom url schemes and handle them myself.

    Anybody any idea?

    Thx.







    Solved!
    Go to Solution.

    DB:2.76:How To Handle Custom Non Existing A Href=".." In Label With Html Format jj


    Don't specify argument names in SIGNAL() and SLOT(), there should be only types.Also specify fully qualified argument types (with namespaces).I suggest to copy-paste signal definitions from Cascades headers then remove argument names.




    Andrey Fidrya, @zmeyc on twitter

  • RELEVANCY SCORE 2.76

    DB:2.76:Regex: Replaceall With Back References Fails! m9


    I am trying to use Matcher.replaceAll() to remove the "javascript:" from
    inside a href tags. Here's what I have (reworked for brevity):
    // content holds the text on which the search and replace is to act

    String search = "\\s*?a\\s*?href\\s*?=\\s*?(.)(.*?)javascript\\s*?:(.*?)\\1";
    String replace = "a href=\\1\\2\\3\\1";

    java.util.regex.Pattern p = java.util.regex.Pattern.compile(search,
    java.util.regex.Pattern.DOTALL + java.util.regex.Pattern.CASE_INSENSITIVE);
    java.util.regex.Matcher m = p.matcher(content);
    content = m.replaceAll(replace);this turns a line such as:
    a href="javascript:alert()"into
    a href=1231despite the regex Matcher.replaceAll javadoc stating:

    "The replacement string may contain references to captured subsequences".

    So what gives? My backreferences are being totally ignored,
    and turned into normal digits. Any ideas? Thanks in advance!

    Tom

  • RELEVANCY SCORE 2.74

    DB:2.74:Re Tags js



    Anybody know where to list tags when uploading a new book?href="http://search.barnesandnoble.com/books/product.aspx?EAN=2940012540119amp;cm_mmc=Pubit-_-Badge-_-Blo..."

    DB:2.74:Re Tags js


    Sorry, this isnt Amazon. BN doesnt have tags for us to use. Wish they did...but they dont.

    Melissa

    Cloud Nine (A Paranormal Romance of the Guardians of Man)

  • RELEVANCY SCORE 2.74

    DB:2.74:Usage Example Of Xmltype.Transform With Paranmap!=Null 19


    Hi all:
    Are there any practical example of using paranmap parameter of the method transform on XMLType objects.
    Looking the documentation paranmap must be with the syntax "name1=value1 name2=value2".
    http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10802/t_xml.htm#1009784
    Parmeters should be populates as global parameters of the stylesheet, is it right?
    I have this stylesheet:
    ?xml version="1.0" encoding="ISO-8859-1"?
    xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xsl:output method="xml" omit-xml-declaration="yes"/
    xsl:param name="base"/
    xsl:template match="a"
    xsl:choose
    xsl:when test="starts-with(@href,'/')"
    a href="{@href" title="{@title"xsl:copy-of select="*|text()"//a
    /xsl:when
    xsl:when test="starts-with(@href,'http://')"
    a href="{@href}" title="{@title}"xsl:copy-of select="*|text()"//a
    /xsl:when
    xsl:when test="starts-with(@href,'ftp://')"
    a href="{@href}" title="{@title}"xsl:copy-of select="*|text()"//a
    /xsl:when
    xsl:when test="starts-with(@href,'mailto://')"
    a href="{@href}" title="{@title}"xsl:copy-of select="*|text()"//a
    /xsl:when
    xsl:otherwise
    a href="{$base}{@href}" title="{@title}"xsl:copy-of select="*|text()"//a
    /xsl:otherwise
    /xsl:choose
    br/
    /xsl:template

    xsl:template match="text()"
    !-- ignore --
    /xsl:template
    /xsl:stylesheet

    Using Xalan in a command line mode works OK transforming documents like these:
    ?xml version="1.0" encoding="UTF-8"?
    document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.dbprism.com.ar/xsd/document-v20.xsd"
    header
    titleDBPrism on Apache Tomcat Install Instructions/title
    /header
    body
    sectiontitleInstalling DBPrism/Cocoon on Apache Tomcat 5.0.12+/title
    pWe highly recommend using Tomcat 5.0.12 or higher, since
    is a really straight-forward installation.
    a href="docs/file.html"Relative Link/a
    a href="http://mydomain.com/"Absolute link/a
    /p
    /section
    /body
    /document

    But using a Java Stored procedure like this:

    ...
    public static final java.lang.String extractLinks=
    "xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0' encoding='iso-8859-1'\n"+
    " xsl:output method='xml' indent='yes' encoding='iso-8859-1'/\n"+
    " xsl:param name='base'/\n"+
    " xsl:param name='name'/\n"+
    " xsl:template match='a'\n"+
    " xsl:if test='contains(@href,$name)'\n"+
    " xsl:choose\n"+
    " xsl:when test='starts-with(@href,\"/\")'\n"+
    " a href='{@href' title='{@title'xsl:copy-of select='*|text()'/\n"+
    " /xsl:when\n"+
    " xsl:when test='starts-with(@href,\"http://\")'\n"+
    " a href='{@href' title='{@title'xsl:copy-of select='*|text()'/\n"+
    " /xsl:when\n"+
    " xsl:when test='starts-with(@href,\"ftp://\")'\n"+
    " a href='{@href' title='{@title'xsl:copy-of select='*|text()'/\n"+
    " /xsl:when\n"+
    " xsl:when test='starts-with(@href,\"mailto://\")'\n"+
    " a href='{@href' title='{@title'xsl:copy-of select='*|text()'/\n"+
    " /xsl:when\n"+
    " xsl:otherwise\n"+
    " a href='{$base{@href' title='{@title}'xsl:copy-of select='*|text()'/\n"+
    " /xsl:otherwise\n"+
    " /xsl:choose\n"+
    "
    \n"+
    " /xsl:if\n"+
    " /xsl:template\n"+
    " xsl:template match='text()'\n"+
    " !-- ignore --\n"+
    " /xsl:template\n"+
    "/xsl:stylesheet";
    ...
    stmt =
    (OraclePreparedStatement) conn.prepareStatement(
    "select path(2) path,"+
    "extract(r.res,'/Resource/DisplayName/text()').getStringVal() displayName,"+
    "c.object_value "+
    "from cms_admin.cms_docs c,resource_view r "+
    "where contains(c.object_value,?,1)1 and "+
    "sys_op_r2o(extractValue(r.res,'/Resource/XMLRef'))=c.object_id and "+
    "under_path(r.res,?,2)=1");
    stmt.setString(1,Util.getName(id)+".html within a@href");
    stmt.setString(2,getBaseDir());
    rset = stmt.executeQuery();
    while(rset.next()) {
    String url = rset.getString(1);
    String displayName = rset.getString(2);
    XMLType links = (XMLType)rset.getObject(3);
    XMLType xsl =
    new XMLType(conn,extractLinks);
    Jxtp.p(links.transform(xsl,"base=/docs/ name=Tomcat.html"));
    }
    ...

    Do not work, base and name are allways null.
    Changing the query passing the XMLType as parameter and using an SQL operation like this:
    stmt =
    (OraclePreparedStatement) conn.prepareStatement(
    "select path(2) path,"+
    "extract(r.res,'/Resource/DisplayName/text()').getStringVal() displayName,"+
    "c.object_value.transform(?,?).getStringVal() "+
    "from cms_admin.cms_docs c,resource_view r "+
    "where contains(c.object_value,?,1)1 and "+
    "sys_op_r2o(extractValue(r.res,'/Resource/XMLRef'))=c.object_id and "+
    "under_path(r.res,?,2)=1");
    stmt.setString(1,extractLinks);
    stmt.setString(2,"base=/docs/ name=Tomcat.html");
    stmt.setString(3,Util.getName(id)+".html within a@href");
    stmt.setString(4,getBaseDir());
    rset = stmt.executeQuery();

    Do not work too.
    Any suggestion to solve this problem?
    We are making some mistake?
    Best regards, Marcelo.

    DB:2.74:Usage Example Of Xmltype.Transform With Paranmap!=Null 19

    Hi Mark:
    I found this definition (name="value") on the documentation, but simplifing an example, I found that "value" must be an Xpath expresion, for example:

    select XMLType('abtest/b/a').transform(
    XMLType('?xml version="1.0" encoding="ISO-8859-1"?
    xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xsl:param name="newval" select="true()"/
    xsl:template match="b"
    xsl:value-of select="$newval"/
    /xsl:template
    /xsl:stylesheet'),'newval="''x''"'
    ).getStringVal() from dual
    returns = x

    select XMLType('abtest/b/a').transform(
    XMLType('?xml version="1.0" encoding="ISO-8859-1"?
    xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xsl:param name="newval" select="true()"/
    xsl:template match="b"
    xsl:value-of select="$newval"/
    /xsl:template
    /xsl:stylesheet'),'newval="false()"'
    ).getStringVal() from dual
    returns = false

    select XMLType('abtest/b/a').transform(
    XMLType('?xml version="1.0" encoding="ISO-8859-1"?
    xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xsl:param name="newval" select="true()"/
    xsl:template match="b"
    xsl:value-of select="$newval"/
    /xsl:template
    /xsl:stylesheet'),'newval="/a/b"'
    ).getStringVal() from dual
    return = test

    Is this behaviour correct?
    Other XSLT processor use value as an string value.
    Best regards, Marcelo.

  • RELEVANCY SCORE 2.74

    DB:2.74:How To Let The Words In≪A Href≫≪/A≫ Tags Dont Show Underline,It's Ugly! 7c


    thank you very much

  • RELEVANCY SCORE 2.73

    DB:2.73:Regular Expression Help 78


    I am looking to scan a string of HTML code to look for img
    src tags. I ony want to update relative paths to absolute paths for
    a back end cms. I am using something like the following:

    $needle = '/src=\"[^http]/i';
    $replace = 'src="
    http://www.basicsbuilder.com/sitebuilder/layouts/';
    $code = preg_replace($needle, $replace, $code);

    the initial value of $code is the HTML. The $code that is
    being returned is always missing the first part of the next
    character that would come next. For example, in the tag:

    img src="images/myimage.jpg"

    The returned code would then look like:

    img src="
    http://www.basicsbuilder.com/sitebuilder/layouts/mages/myimage.jpg"

    Notice how the 'i' in images is missing. This will happen no
    matter what the next character is! All i need to do is NOT update
    if the first set of characters in the src is 'http' What would be
    the regex for this?

    DB:2.73:Regular Expression Help 78

    I am looking to scan a string of HTML code to look for img
    src tags. I ony want to update relative paths to absolute paths for
    a back end cms. I am using something like the following:

    $needle = '/src=\"[^http]/i';
    $replace = 'src="
    http://www.basicsbuilder.com/sitebuilder/layouts/';
    $code = preg_replace($needle, $replace, $code);

    the initial value of $code is the HTML. The $code that is
    being returned is always missing the first part of the next
    character that would come next. For example, in the tag:

    img src="images/myimage.jpg"

    The returned code would then look like:

    img src="
    http://www.basicsbuilder.com/sitebuilder/layouts/mages/myimage.jpg"

    Notice how the 'i' in images is missing. This will happen no
    matter what the next character is! All i need to do is NOT update
    if the first set of characters in the src is 'http' What would be
    the regex for this?

  • RELEVANCY SCORE 2.73

    DB:2.73:How To Pass Parametres To Jnlp ms


    Hi,

    I am new to JNLP and also to scripting world.I have jnlp script which takes inputs from the file and add to cosole.The script is as followows.

    ?xml version="1.0" encoding="utf-8"?
    !-- JNLP File for Global Console Application --
    jnlp
    spec="1.0+"
    codebase="http://192.168.1.2:8080/"
    href="/webconsole/ABC.jnlp"
    information
    titleNEW/title
    vendorSELF/vendor
    homepage href=""/
    descriptionNEW TESING/description
    description kind="short"The console for viewing contents of a NEW TESTING SERVER server./description
    icon href="/webconsole/icon.gif"/
    icon kind="splash" href="/webconsole/rglogo.gif"/
    offline-allowed/
    /information
    security
    all-permissions/
    /security
    resources
    j2se version="1.5.0+" max-heap-size="256M"/
    jar href="/webconsole/masterpiece.jar"/
    jar href="/webconsole/jcommon-0.7.0.jar"/
    jar href="/webconsole/jfreechart-0.9.3.jar"/
    jar href="/webconsole/tsgdtj50.jar"/
    jar href="/webconsole/tsgetj50.jar"/
    jar href="/webconsole/tsglt50.jar"/
    jar href="/webconsole/tsgltc50.jar"/
    jar href="/webconsole/tsgmtj50.jar"/
    property name="com.smarts.webStart" value="true"/
    property name="com.smarts.maxheap" value="256M"/
    property name="com.smarts.userid" value="abc"
    /resources
    application-desc main-class="com.smarts.consolidation.SmConsNotificationsApp"
    /application-desc
    /jnlp

    I am looking to pass the "value" of the property com.smarts.userid via URL

    Something like

    http://192.168.1.2/ABC.jnlp?426 so that value of 426 will replace abc.

    Does any one have any information about how to do this ?

    Thanks in Advance,

    Regards,
    Vasu

    I

    DB:2.73:How To Pass Parametres To Jnlp ms

    one of the way is using the Runtime to call the jnlp from another java code

    Java code should change the jnlp file with the required argument and then run the file

    Runtime.getRuntime().exec("cmd /C start javaws \"d:/mytext.jnlp\"");

    aravind

  • RELEVANCY SCORE 2.73

    DB:2.73:Use Function Or Replace Between Two Strings 1k


    Hope you are doing good. I am looking for some help on following.I have a Share Points list table which has Key_documents column. This column consists many HTML code snippets embedded into DIV and HTML tags as shown below. For some string values the encoding is not looking good (this is coming from source system). I am trying to fix that encoding issues at the query output.My Queryselect utl_url.escape(div diva target="_blank" href=http://server1/sites/Clinical/CPMO/Therapeutic%20Area%20Project%20Management/Key%20Results%20Memorandums/VEGF%20Trap-eye/Combined_VIEW_1_and_2_Wk_52_Key_Findings_FINAL_DRAFT_v.1_18Nov2010.docYear 1 KRM/a/div diva href=http://server2/sites/Regulatory/NextDocs Document Library/VEGF Trap-Eye/Module 5 - Clinical/03 Study Reports/311523 (VIEW 2)/01 Study Report/311523-Report Body.pdfYear 1 CSR/a/div) from dual;Current Output%3Cdiv%3E%20%3Cdiv%3E%3Ca%20target=%22_blank%22%20href=http://server1/sites/Clinical/CPMO/Therapeutic%2520Area%2520Project%2520Management/Key%2520Results%2520Memorandums/VEGF%2520Trap-eye/Combined_VIEW_1_and_2_Wk_52_Key_Findings_FINAL_DRAFT_v.1_18Nov2010.doc%3EYear%201%20KRM%3C/a%3E%3C/div%3E%20%3Cdiv%3E%3Ca%20href=http://server2/sites/Regulatory/NextDocs%20Document%20Library/VEGF%20Trap-Eye/Module%205%20-%20Clinical/03%20Study%20Reports/311523%20(VIEW%202)/01%20Study%20Report/311523-Report%20Body.pdf%3EYear%201%20CSR%3C/a%3E%3C/div%3EDesired Outputdiv diva target="_blank" href=http://server1/sites/Clinical/CPMO/Therapeutic%20Area%20Project%20Management/Key%20Results%20Memorandums/VEGF%20Trap-eye/Combined_VIEW_1_and_2_Wk_52_Key_Findings_FINAL_DRAFT_v.1_18Nov2010.docYear 1 KRM/a/div diva href=http://server2/sites/Regulatory/NextDocs%20Document%20Library/VEGF%20Trap-Eye/Module%205%20-%20Clinical/03%20Study%20Reports/311523%20(VIEW%202)/01%20Study%20Report/311523-Report%20Body.pdfYear 1 CSR/a/divThat is i would like to use encode or replace (empty spaces) function after a href" and before Any help will be much appreciatedThanks,Naveen

    DB:2.73:Use Function Or Replace Between Two Strings 1k

    You might simply let the other columns pass through if the transformation is the only thing to be done or use subquery factoring the transformation being just one of the factorswithtransformation(other_cols,str_in,flag,str_out) as(select other_cols, -- this is a projection i.e. a list of column names substr(xform_col,instr(xform_col,'href=') + 5), -- str_in 1, -- flag cast(substr(xform_col,1,instr(xform_col,'href=') + 4) as varchar2(4000)) -- str_out from your_table union all select other_cols, substr(str_in,2), case when flag = 1 and substr(str_in,1,1) != '' then 1 when substr(str_in,1,1) = '' then 0 when substr(str_in,1,5) = 'href=' then 1 else 0 end, str_out || case when substr(str_in,1,1) = ' ' and flag = 1 then '%20' else substr(str_in,1,1) end from transformation where length(str_in) 0)select other_cols, str_out from transformation where str_in is nullRegardsEtbin

  • RELEVANCY SCORE 2.73

    DB:2.73:Regex To Identify Only Plain Text With Specific Pattern mf


    I am working in VBA and have a regex to identify a pattern ASA1234ss.
    I am converting certain pattern of item in inbox to urls.

    Body=objItem.HTMLBody
    With RegX
    .Pattern = ASA[0-9][0-9][0-9][0-9][a-z][a-z]
    .Global = True
    .IgnoreCase = Not MatchCase
    End With
    'Replacing the pattern with a hyperlink
    Body = RegX.Replace(Body, a href='http://www.stack.com=$'$/a)
    objItem.HTMLBody = Body


    This works good in replacing the pattern only once. But when I again execute the macro, the hyperlinked patterns again gets replaced with same text appending to it.

    For Eg:

    Sample Input

    ASA8765jd
    ASA7765jh
    ASA8873hi

    First Execution

    a href='http://www.stack.com=ASA8765jd'ASA8765jd/a
    a href='http://www.stack.com=ASA7765jh'ASA7765jh/a
    a href='http://www.stack.com=ASA8873hi'ASA8873hi/a

    Second Execution

    a href='http://www.stack.com=a href='http://www.stack.com=ASA8765jd'ASA8765jd/a'a href='http://www.stack.com=ASA8765jd'ASA8765jd/a/a
    a href='http://www.stack.com=a href='http://www.stack.com=ASA7765jh'ASA7765jh/a'a href='http://www.stack.com=ASA7765jh'ASA7765jh/a/a
    a href='http://www.stack.com=a href='http://www.stack.com=ASA8873hi'ASA8873hi/a'a href='http://www.stack.com=ASA8873hi'ASA8873hi/a/a

    Third Execution

    a href='http://www.stack.com=a href='http://www.stack.com=a href='http://www.stack.com=ASA8765jd'ASA8765jd/a'a href='http://www.stack.com=ASA8765jd'ASA8765jd/a/a'a href='http://www.stack.com=a
    href='http://www.stack.com=ASA8765jd'ASA8765jd/a'a href='http://www.stack.com=ASA8765jd'ASA8765jd/a/a/a
    a href='http://www.stack.com=a href='http://www.stack.com=a href='http://www.stack.com=ASA7765jh'ASA7765jh/a'a href='http://www.stack.com=ASA7765jh'ASA7765jh/a/a'a href='http://www.stack.com=a
    href='http://www.stack.com=ASA7765jh'ASA7765jh/a'a href='http://www.stack.com=ASA7765jh'ASA7765jh/a/a/a
    a href='http://www.stack.com=a href='http://www.stack.com=a href='http://www.stack.com=ASA8873hi'ASA8873hi/a'a href='http://www.stack.com=ASA8873hi'ASA8873hi/a/a'a href='http://www.stack.com=a
    href='http://www.stack.com=ASA8873hi'ASA8873hi/a'a href='http://www.stack.com=ASA8873hi'ASA8873hi/a/a/a

    So I am seeking a method to identify and replace only plain text that matches the pattern.

    DB:2.73:Regex To Identify Only Plain Text With Specific Pattern mf

    Hi Cyborg,
    Thanks. i tried this option after I migrated to C# and I am still encountering the same problem. I have posted a question
    here. Please take a quick look at it. Thanks!

  • RELEVANCY SCORE 2.72

    DB:2.72:Desperately Need Regex To Convert A Href Links To All Lowercase s8



    My company recently switched to a new CMS that is case-sensitive. Our migration process converts all filenames to all lowercase, but the links in the HTML still have uppercase letters in them. What I need is a regular expression find/replace string for Dreamweaver that converts the filenames in the a tags to all lowercase. For example...

    a href="ThisIsMyPage.cfm" would become a href="thisismypage.cfm"

    I've come close a few times, but my RegEx experience is severely lacking. Any help would be greatly appreciated!

    DB:2.72:Desperately Need Regex To Convert A Href Links To All Lowercase s8


    My company recently switched to a new CMS that is case-sensitive. Our migration process converts all filenames to all lowercase, but the links in the HTML still have uppercase letters in them. What I need is a regular expression find/replace string for Dreamweaver that converts the filenames in the a tags to all lowercase. For example...

    a href="ThisIsMyPage.cfm" would become a href="thisismypage.cfm"

    I've come close a few times, but my RegEx experience is severely lacking. Any help would be greatly appreciated!

  • RELEVANCY SCORE 2.71

    DB:2.71:Problem With Markup For Html pp


    I'm trying to markup html documents
    generated by MS Office.

    After execuion of markup procedure I get documents with broken hyperlinks
    and without several html tags (usually, its VML tags from MS Word documents) and images.

    Also I get incorrect HREF attributes,
    for example HREF="drgit3#1" instead of HREF="#1"

    DB:2.71:Problem With Markup For Html pp

    Hello.

    I have table in which documents of different types are stored:

    - documents in HTML format with embedded VML (Vector Markup Language)- tags,
    produced by MS Word 2000 and MS Excel 2000
    - documents in MS Word 2000 and MS Excel 2000 formats

    When I try use NULL_FILTER instead of INSO_FILTER, I haven't russian words in context index.

  • RELEVANCY SCORE 2.71

    DB:2.71:Title Tags- Menus 3j



    Adobe Muse is becoming more and more of a let down.

    Looking at the program with an SEO perspective. Adobe Muse is falling behind its competitors. Which is an utter shame. Because its a wonderful program with amazing designing capabilities.

    Title Tags.

    If you use 3rd party programs to check SEO vulnerabilities of your site you will always see massive amounts of errors relating to title tags.

    For Example. A site I work on- www.j-e-m.com

    The menu in the code looks like :

    a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix colelem" id="u13916" href="http://www.j-e-m.com/about-us"

    As you see there is no 'Title Tag' which is not friendly in the SEO world.

    So it should look like this:

    a title="About Us" class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix colelem" id="u13916" href="http://www.j-e-m.com/about-us"

    Sadly the only way to fix this error is by going into businesscatalyst.com and opening your site, click on develop and make sure your on the .index file.

    then add the a title="

    But Heres Another Issue.

    We all love to edit our sites in Muse then click save and publish.

    Be aware, once you click publish all your edits in the 'develop' side will be erased.

    Adobe needs to work harder on making their MUSE program more practical for SEO and not just designing.

    DB:2.71:Title Tags- Menus 3j


    Hi,

    Thank you for reporting this feature. Please post in Community: Ideas for features in Adobe Muse | Adobe Community so other users can vote on the feature request.

  • RELEVANCY SCORE 2.69

    DB:2.69:Subject Tags In Mail jd



    Hi All,

    I am looking for the list of tags that act as switches when placed in the subject line of a mail. I remember having seen such a list somewhere, but am unable to find it, maybe due to wrong keywords i am using for search

    For example, placing the tag confirm sends a delivery confirmation.

    I am specifically looking for the tags that prevents the exchange server from saving the mail (it is just forwarded to blackberry and deleted on server).

    Cheers,

    Ajay

    DB:2.69:Subject Tags In Mail jd


    Hi All,

    I am looking for the list of tags that act as switches when placed in the subject line of a mail. I remember having seen such a list somewhere, but am unable to find it, maybe due to wrong keywords i am using for search

    For example, placing the tag confirm sends a delivery confirmation.

    I am specifically looking for the tags that prevents the exchange server from saving the mail (it is just forwarded to blackberry and deleted on server).

    Cheers,

    Ajay

  • RELEVANCY SCORE 2.69

    DB:2.69:Replacing Html Tags Using Htmleditorkit Etc. p1


    Hi

    Not sure if this is the best place to ask this. I've searched without finding much.

    Basically I am trying to create a HTML template system for output. User's can change the templates to change the program output.

    The templates are basic HTML with custom tags inserted, that reside in a templates directory. For example, a simple template might be:

    htmlbody
    table width="100%"trtd width="25%"Here is the output:/td
    td insertOutputHere /td
    /tr/table
    /body/html

    ^^ Users would be able to edit these template .htm files to affect the output .htm files. For instance, changing where the insertOutputHere tag is, or formatting the table it is output to.

    I am using the Swing HTMLDocument, HTMLWriter, HTMLEditorKit classes to load and parse the .htm files, iterate the tags and replace any custom tags (defined in code) with the program output. I have been able to locate these custom tags no problem, but I don't know how to replace this tag entirely with my output (Which will be formatted HTML string). I have been trying to use the insertBefore, insertAfter methods with limited success. In particular I have an 'include' custom tag which includes other files by recursion - it works except the include tag is not removed, and depending on which insert method I use, it usually goes into an infinite loop of parsing the include tag WITHOUT removing it, then picking it up again when its done.

    Basically I'm looking for any advice as to how to go about COMPLETELY REPLACING these tags with a well structured HTML string. I can post some code if need be but I barely comprehend what I've done, LOL.

    TIA

    DB:2.69:Replacing Html Tags Using Htmleditorkit Etc. p1

    Well, if anyone comes across this through a search, my solution to the strict requirement for structured HTML was just to write my own method for parsing the template files, and forgetting HTMLEditorKit etc. completely.

    Turns out significantly faster as well (laughs).

    Here is an excerpt, pretty easy to follow - read template into StringBuffer, look for custom tags, delete them and insert new content, then write StringBuffer to the new file. Took about half an hour to write and test (laughs again).

    int start, end, laststart = 0;
    String sub;

    //look for the start of a tag
    while ((start = sb.indexOf("", laststart)) != -1) {

    //look for the end of this tag
    end = sb.indexOf("", start);

    //no end tag found
    if (end == -1) {
    //todo: warning

    break;
    }

    //get the tag
    sub = sb.substring(start+1, end);

    for (int i=0; i tags.length; i++) {

    if (sub.equalsIgnoreCase(tags.getName())) {
    sb.delete(start, end+1);
    sb.insert(start, tags[i].getText());
    break;
    }
    }

    //tag wasnt replaced - check past it.
    laststart = start+1;
    }

  • RELEVANCY SCORE 2.69

    DB:2.69:Dreamweaver Intermittently Adds Extra Instanceendeditable Tags cc


    Twice in the past couple weeks, members of the team I work with have updated templates, then tried to update a page associated with the template. The update was not successful because Dreamweaver had added extra InstanceEndEditable tags to the page. Here's what we should have seen:div!-- InstanceBeginEditable name="example" --a id="123" href="http://www.example.com"Test Example/a!-- InstanceEndEditable --/div

    DB:2.69:Dreamweaver Intermittently Adds Extra Instanceendeditable Tags cc

    Unless the issue is 'reproducible at all times', it cannot be treated as a bug. In your case, since it is intermittent, I think it's more of a behavioral pattern - so from now, for a few days, can you make a note of your workflow at all times and notice when or at what stage this happens? This will help us identify its cause.-ST

  • RELEVANCY SCORE 2.69

    DB:2.69:Help With Html.Tag Please 8k


    Hi there,

    I was wondering if anyone knows how to select all HTML tags using HTML.Tag?

    I am trying to find a web page where there no links, this is the code I have for the HTMLParser call back:

    protected class Parser extends HTMLEditorKit.ParserCallback
    {
    protected URL urlInput;

    public Parser(URL urlInput)
    {
    this.urlInput = urlInput;
    }

    public void handleSimpleTag(HTML.Tag t,MutableAttributeSet a,int pos)
    {
    String href = (String)a.getAttribute(HTML.Attribute.HREF);

    if((href == null) (t == HTML.Tag.FRAME))
    href = (String)a.getAttribute(HTML.Attribute.SRC);

    if (href == null)
    return;

    int i = href.indexOf('#');
    if (i!=-1)
    href = href.substring(0,i);

    handleLink(urlInput,href);
    }

    public void handleStartTag(HTML.Tag t,MutableAttributeSet a,int pos)
    {
    handleSimpleTag(t,a,pos);

    }

    protected void handleLink(URL urlInput,String str)
    {
    try
    {
    URL url = new URL(urlInput,str);
    if (report.urlFound(urlInput,url))
    addURL(url);
    }

    catch (MalformedURLException e)
    {
    System.out.println("Found malformed URL: " + str);
    }
    }

    }I am looking to do this along the following lines:

    if ((href == null) (t != HTML.Tag.*))
    {
    report.urlNotFound(urlInput);
    return;
    }the problem is I don't know how to check that as well as the href attribute is equal to null and also that it is not another tag.

    Any help would be much appreciated as I have searched the api's and google for a answer.

    mrv

    DB:2.69:Help With Html.Tag Please 8k

    Hi there,

    I was wondering if anyone knows how to select all HTML tags using HTML.Tag?

    I am trying to find a web page where there no links, this is the code I have for the HTMLParser call back:

    protected class Parser extends HTMLEditorKit.ParserCallback
    {
    protected URL urlInput;

    public Parser(URL urlInput)
    {
    this.urlInput = urlInput;
    }

    public void handleSimpleTag(HTML.Tag t,MutableAttributeSet a,int pos)
    {
    String href = (String)a.getAttribute(HTML.Attribute.HREF);

    if((href == null) (t == HTML.Tag.FRAME))
    href = (String)a.getAttribute(HTML.Attribute.SRC);

    if (href == null)
    return;

    int i = href.indexOf('#');
    if (i!=-1)
    href = href.substring(0,i);

    handleLink(urlInput,href);
    }

    public void handleStartTag(HTML.Tag t,MutableAttributeSet a,int pos)
    {
    handleSimpleTag(t,a,pos);

    }

    protected void handleLink(URL urlInput,String str)
    {
    try
    {
    URL url = new URL(urlInput,str);
    if (report.urlFound(urlInput,url))
    addURL(url);
    }

    catch (MalformedURLException e)
    {
    System.out.println("Found malformed URL: " + str);
    }
    }

    }I am looking to do this along the following lines:

    if ((href == null) (t != HTML.Tag.*))
    {
    report.urlNotFound(urlInput);
    return;
    }the problem is I don't know how to check that as well as the href attribute is equal to null and also that it is not another tag.

    Any help would be much appreciated as I have searched the api's and google for a answer.

    mrv

  • RELEVANCY SCORE 2.68

    DB:2.68:Re: How To Provide Password Change Option Next To Answers cx


    hi Sreedhar,
    You want to create a button

    which has to take to your password change report having 3 prompts and report ?? Paste the below code to Text object and dont forget to check the HTML thing

    {div class="XUIPromptEntry minibuttonOn"}
    {a href="/analytics/saw.dll?DashboardPortalPath=/shared/BI%20Reports/_portal/Password_change_report"}
    Click here to Change your Password }/a{}/div}

    Replace {} with tags

    Are you looking for this ?

    thanks,
    Saichand.v

  • RELEVANCY SCORE 2.68

    DB:2.68:Replace A String With Another String In A File zm


    I have to replace a string with another string. Say for example in a html file it got a line like,
    a href="##"/a

    now i want to replace this ## with the full derived path like
    "c;\\sample folder\\sample subfolder\\samplefile.html"

    can someone help me to do this?

    pls tell me from the file opening till closing the file.

    DB:2.68:Replace A String With Another String In A File zm

    I have to replace a string with another string. Say
    for example in a html file it got a line like,
    a href="##"/a

    now i want to replace this ## with the full derived
    path like
    "c;\\sample folder\\samplesubfolder\\samplefile.html"

    can someone help me to do this?

    pls tell me from the file opening till closing the
    file.public class Buckel {
    final static String CONST = "c:\\sample folder\\samplesubfolder\\samplefile.html";
    public Buckel() {
    }
    public static void main ( String[] argv ) throws Exception {
    int idx = 0;
    String in = "a href=\"##\"/a", // We'll imagine this just gets here somehow. If it's on the i/p file then take the '\' out B4 and aft the '##'.
    out = "";
    idx = in.indexOf( "##" );
    if ( idx 0 ) {
    out = in.substring( 0, idx ) + CONST + in.substring( idx+=2, in.length() );
    }
    System.out.println( out );
    }
    }

  • RELEVANCY SCORE 2.67

    DB:2.67:Re: Disabling Navigation For Particular Value In A Column 7d


    Ooh. the post is not displaying HTML tags..

    it should be like this

    case when "Fact Measures"."Task Efficiecy" = 0.48 then "Fact Measures"."Task Efficiecy" else aa href='navigationurl' "Fact Measures"."Task Efficiecy" /aa
    end. Replace aa with a and naviagationurl with your report url. This code will show the href link only for else values.

    DB:2.67:Re: Disabling Navigation For Particular Value In A Column 7d

    So the problem is in your case statement first line.

    case when "Fact Measures"."Task Efficiecy" = 56.53 is wrong. it is not returning true, so it is not executing statements after then. Check whether 56.53 is coming from database or not. It may come like 56.5333 or some other format. Pls look into that.

  • RELEVANCY SCORE 2.64

    DB:2.64:Jquery In Visual Studio 2008 fc


    After including a script tag to include jQuery.js, the javascript in subsequent script tags does not execute.  Example below, hello never is shown. Any ideas? thanks,ka3751
    head runat=server
    titlemy title/title
    link type=text/css href=css/stsimon.css rel=Stylesheet /
    script type=text/javascript src=js/jquery.js language=javascript /
    script type=text/javascript
    alert('hello');
    /script
    /headka3751

    DB:2.64:Jquery In Visual Studio 2008 fc

     script tags can not be closed with the / short cut.  Use:-
    script type=text/javascript src=js/jquery.js language=javascript/scriptAnthony Jones - MVP ASP/ASP.NET

  • RELEVANCY SCORE 2.64

    DB:2.64:Regular Expression For Removing A Space After The A... Tag? za


    Hi there,

    I'm fairly new to using Regular Expressions, but am in need of one that will help me find all a... tags that have a space immediately following that tag and replace it with the exact same tag, but no space following the a... tag.

    So, for example, a regular expression that will find:

    a href="somelink.html" Somelink/a

    as well as:

    a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('sub-nav_button_professional_portal','','images/sub-nav_button_ professional_portal_f2.png',1)" Somelink/a

    And just remove the space appearing as part of the hyperlink. Does anyone know how to accomplish this?

    DB:2.64:Regular Expression For Removing A Space After The A... Tag? za


    Find -

    \a(.*)\ (.*)\/a\

    Replace -

    a$1$2/a

    Message was edited by: Murray *ACP*

  • RELEVANCY SCORE 2.63

    DB:2.63:How To Pass Request Parameters Using 'Href ' In Html Tags? ms


    How to pass request parameters using 'href ' in html tags?

    DB:2.63:How To Pass Request Parameters Using 'Href ' In Html Tags? ms

    or you can get them dinamically from a db or by string constants

    %

    // connection statements here

    String url = "http://www.somewhere.com/index.jsp";
    String sep = "?";
    String params = "";
    String desc = "go to this site...";
    while(rs.next())
    {
    params += rs.getString("name") + "=" + "rs.getString("value") + "";
    }

    %

    a href="%= url %?%= params %"%=desc %/a

    Bye

  • RELEVANCY SCORE 2.63

    DB:2.63:?Xml-Stylesheet Type=Text/Xsl Href=Whatever.Xsl ? sd


     
    Hi all,
    In my XML file, I have the following line for transformation:
    ?xml-stylesheet type=text/xslt href=whatever.xsl ?
    Is there a way to replace the whatever.xsl with a variable name so that during runtime, I can assign a value to the variable so that I can use the WebBrowser to transform my XML document differently.
    For example, it would be nice if, instead of hard-code the whatever.xsl, I would like to use a variable, as shown below:
    ?xml-stylesheet type=text/xslt href=@varFileName ?
    Thanks

    DB:2.63:?Xml-Stylesheet Type=Text/Xsl Href=Whatever.Xsl ? sd

    Not this way.
    I assume that you use IE 5 or higher.
    You can use XSLT that generates you very simple page that has nothing on it but simple JScript that executes on page load. In this script you would have XML loaded to you by the browser and available as property of the document. So you can load stylesheet you need, use it to transform original XML (loaded by browser) and substitute page in the browser to newly generated one.

  • RELEVANCY SCORE 2.63

    DB:2.63:The Search Replace Cannot Insert Certain Characters 88



    Hi all,

    I have been trying to use RoboHelp's find replace tool to insert HTML tags. Evidently it is not possible to insert the "" and "" characters?

    The task:

    We have a text with literature references that look like [123]. All these references should be linked to a certain topic that contains the list of literature.

    My idea was to replace [ by a href="javascript:BSSCPopup('topic.htm');[ and ] by ]/a. The result would be that all references are linked via popup.

    But the program always inserts HTML masks such as gt; instead of .

    Any ideas for this?

    Robert

    DB:2.63:The Search Replace Cannot Insert Certain Characters 88


    Thanks for the help. I used an old shareware tool from InfoRapid right

    now but I will also try out FAR HTML you mentioned. It sounds like a

    good choice for future use.

  • RELEVANCY SCORE 2.63

    DB:2.63:Replace Tags Position pp


    I have a lot of links with the following format:
    a href=somePage.urlemsome text aslink/em/a
    and I want to change them (emoutside of the a), like:
    ema href=somePage.urlsome text as link/a/em
    I've tried to use the HTML tags tab of the Find and replace dialog box, but I couldn't figure outhow to make a rule to change the order of the tags I want...
    Any thoughts?

    DB:2.63:Replace Tags Position pp

    Try using Find and replace using regular expressions:
    Find: a href={[^]}em{[^]}/em/a
    Replace: ema href=\1\2/a/em
    Ron Symonds
    Microsoft MVP (Expression Web)

    www.rxs-enterprises.org/fp

  • RELEVANCY SCORE 2.63

    DB:2.63:Can We Have ≪A Href Tags In Jsf Page 8m


    hi all,

    I tried inserting a link in jsf page using a href tag but when I click it, it is appending the link to contextroot.

    For Example:

    f:verbatim
    click here
    /f:verbatim

    and when I click on it, I see http://www.google.com is appended to my application url after context root like
    http://localhost:9080/Ma/view/India/http://www.google.com

    and I get 404 error. how do I do it without having my application url.

    Thanks
    Ma

    Edited by: niki007 on Jan 12, 2009 4:32 PM

    DB:2.63:Can We Have ≪A Href Tags In Jsf Page 8m

    This problem can occur if you didn't specify any protocol (http:// or https:// or others) in the link. But your example looks fine. I think that you modified the real code to this example, without being aware that you solved the problem yourself.

    At any way, you can also just use h:outputLink to render a elements.

  • RELEVANCY SCORE 2.63

    DB:2.63:Character Encoding k9


    I am currently writing an application that searches for the definitions of a word from the Wiktionary website.
    When I use the French Wiktionary (fr.wiktionary.org) the french characters in the href attribute of all a tags are displayed in some kind of utf-8 hex. For example "" is replaced by %C3%A9.
    Can someone please let me know how to convert the %C3%A9 into
    Thank you.

    DB:2.63:Character Encoding k9

    IT WORKS! Thank you so very much "jtahlborn".

  • RELEVANCY SCORE 2.62

    DB:2.62:Remove Href Tag From Html Text z1



    Hi guys, I've got an html text in my iOS app (Adobe AIR 3.7) and I need to remove the href tag.

    Here's an example of what I mean:

    FROM

    a target="_blank" href="http://www.spesaduepuntozero.it/"Spesa 2.0/a

    TO

    Spesa 2.0

    Can you help me?

    NOTE: I don't have to remove ALL HTML TAGS (like br, b, i ....) but ONLY the links.

    Thanks and cheers

    DB:2.62:Remove Href Tag From Html Text z1


    Hi guys, I've got an html text in my iOS app (Adobe AIR 3.7) and I need to remove the href tag.

    Here's an example of what I mean:

    FROM

    a target="_blank" href="http://www.spesaduepuntozero.it/"Spesa 2.0/a

    TO

    Spesa 2.0

    Can you help me?

    NOTE: I don't have to remove ALL HTML TAGS (like br, b, i ....) but ONLY the links.

    Thanks and cheers

  • RELEVANCY SCORE 2.62

    DB:2.62:Whole Phrase Search And Replace, With Simarl Words 7j


     
    Ok gang, here's the question.
     
    I'm trying to do a little mini wiki like functionality where my users can come in and set up definitions or write ups on terms in our hobby.  I would like to automatically cross link the terms as they are used in other definitions,  ala wiki.
     
    what my plan was, was to pull a list of defined terms and thier primary key GUID of the database, then iterate over the list, and do a whole word replace with RegEx, and wrap an href tag around the word.  So far so good.  I've got that running.  But I run into one problem. 
     
    Let me run an example.  two words or phrases.  Insul-frog and frog.  Both have specific meaning and are in our definitions file.  If run my search/replace on insul-frog first, I get the tags around the phrase, and all is peachy.  But when I then run the search/replace on Frog now i have a nested mess of tags.  If I run Frog first, I split insul-frog into 2 words with the href tags around Frog, and I can't then run the search and replace on it.
     
    My regex so far is very very minor.  Just using a \b around my key word. ala \bInsul-Frog\b.  What I end up with is a href='mysite.com?itemid=froginsul-frog/a  Which is perfect so far.  What I want to do is for the search to see the tags as part of the Whole word and there for not return anything that has been taged.
     
    I kind of doubt that made much sense, but if you can figure out my ramblings Id sure appreciate some help. 
     
     

    DB:2.62:Whole Phrase Search And Replace, With Simarl Words 7j

    I don't know, if I really understand your problem? You want to reference each url just one time? Try this:
     

    Code Block

  • RELEVANCY SCORE 2.62

    DB:2.62:Regular Expression - Search And Replace sc


    I am having trouble coming to grasp withRegular Expression - Search and Replace
    What would I need to do to
    Find this:
    a href=http://www.youtube.com/watch?v=1234567890a

    and to replace it to this:
    img src=http://img.youtube.com/vi/1234567890a/1.jpg

    ( 1234567890a is a 11 digit alpha-numeric variable)
    For example:
    a href=http://www.youtube.com/watch?v=pQvCtBMtnx8

    to:
    img src=http://img.youtube.com/vi/pQvCtBMtnx8/1.jpg

    Platini3 - EW 4.0.1303.0 (SP2) - EW4 FP Cleaner Ver 1.1 - Windows 7 Pro 64-bit (SP1) - .NET Framework v4.0.30319 -

    DB:2.62:Regular Expression - Search And Replace sc

    I finally figured it out.
    FIND (Regular Expression):
    \a href\=\http\:\/\/www\.youtube\.com\/watch\?v\={[a-z,0-9,_,\-]^11}\ \
    REPLACE:
    img src=http://img.youtube.com/vi/ \1/1.jpg
    will do it!
    (The key is to put a \ before each special character and the {} for any values tt be stored and a \1 for the value to be used in the Replace.)
    Platini3 - EW 4.0.1303.0 (SP2) - EW4 FP Cleaner Ver 1.1 - Windows 7 Pro 64-bit (SP1) - .NET Framework v4.0.30319 -

  • RELEVANCY SCORE 2.60

    DB:2.60:Regular Expression Help 1a


    I am looking to scan a string of HTML code to look for img
    src tags. I ony want to update relative paths to absolute paths for
    a back end cms. I am using something like the following:

    $needle = '/src=\"[^http]/i';
    $replace = 'src="
    http://www.basicsbuilder.com/sitebuilder/layouts/';
    $code = preg_replace($needle, $replace, $code);

    the initial value of $code is the HTML. The $code that is
    being returned is always missing the first part of the next
    character that would come next. For example, in the tag:

    img src="images/myimage.jpg"

    The returned code would then look like:

    img src="
    http://www.basicsbuilder.com/sitebuilder/layouts/mages/myimage.jpg"

    Notice how the 'i' in images is missing. This will happen no
    matter what the next character is! All i need to do is NOT update
    if the first set of characters in the src is 'http' What would be
    the regex for this?

    DB:2.60:Regular Expression Help 1a

    Ok, so now i know why it isnt working but that doesnt really
    help as i needed to know how to fix it... How would i am make
    preg_replace ignore anything that starts with http?

  • RELEVANCY SCORE 2.60

    DB:2.60:Make Url Clickalble Www.Example.Com To ≪A Href="Www.Example.Com"≫Ex≪/A≫ dp


    Hi,

    I am try to replace all the links(http://www.example.com) in a html source file, to make them clickable (example)

    Is there a function or open source library can do that with java?

    Can the java replaceAll() function do that?

    thanksssssssssss

    DB:2.60:Make Url Clickalble Www.Example.Com To ≪A Href="Www.Example.Com"≫Ex≪/A≫ dp

    Hi,

    I am try to replace all the links(http://www.example.com) in a html source file, to make them clickable (example)

    Is there a function or open source library can do that with java?

    Can the java replaceAll() function do that?

    thanksssssssssss

  • RELEVANCY SCORE 2.59

    DB:2.59:Use Regular Expressions To Remove Open/Close Anchor Tags But Leave The Text Contained Within Alone cc



    I have a large file with lots of anchor tags. Many of the anchor tags have no HREF specified and do nothing. They aren't hurting anything, either, but I'd like to get rid of them, leaving the anchor tags that do have HREF alone, and leaving the text between the tags alone. Here's an example: aA resident or municipality may seek to vacate 25.01.01/a.

    I've come up with this to identify those tags: \a(.)*/\a and it works, it finds them, but what should I put in the Replace area in order to remove the open/close tags but leave the text as it is?

  • RELEVANCY SCORE 2.59

    DB:2.59:Stop Dreamweaver Cs3 Rewriting My Code d3


    I dearly hope one of you lovely people can help me as this program is driving me nuts!I need to find a way of stopping Dreamweaver CS3 from rewriting my code. I know it's a good thing for it to check for errors (unclosed tags, etc) and I have no problem with that, but what I need to stop is the way Dreamweaver keeps running closing tags on to the end of the previous line!For example, I type:div div a href="link" img src="piccy" / /a /div/divwhich is lovely and structured and, above all, easy to read, but as soon as I edit an element's propery, Dreamweaver makes it:div div a href="link" img src="piccy" / /a /div/divwhich is so annoying!I've tried turning off all code rewriting in the preferences, but to no avail.Please can someone save what little hair I have left?Thanks in desperationPeter

    DB:2.59:Stop Dreamweaver Cs3 Rewriting My Code d3

    Having same problem with links, selected "Do not encode special characters" in preferences but it still does it, driving me crazy! Goes from thishttp://.../sn/product_supercategory.jsp?sch_cat=Vertical%20Blindsnav_cat=-19942to thishttp://.../sn/product_supercategory.jsp?sch_cat=Vertical Blindsamp;nav_cat=-19942Obviously wont work!!

  • RELEVANCY SCORE 2.59

    DB:2.59:Custom Command To Strip All Except Specified Tags / Parameters Using Javascript Or Regex? 91



    Hi all

    I'm trying to figure out how to create a custom command that will allow me to strip all tags from a page except for those I specify, and will only allow the parameters that I specify for the remaining tags. It seems to me that it should be achievable either with a custom command using javascript, or by simply recording a command and doing a search and replace with regex.

    I'm not familiar with javascript, so I've been trying the latter route, but I'm open to help with either method (or for that matter, any other method that will allow me to perform this with just a couple of mouse clicks, and no need to initiate a long sequence of commands manually every time).

    The tags I'd like to retain are:

    pbrulolliatabletrtd

    Any tags other than the above would need to be stripped. For the tags above, I'd obviously want to retain opening and closing tags, and I'd also want to allow href and target parameters for the a tag. I would want to strip all other parameters from these tags, though.

    I got partway into this, in that I managed to make regex that finds all the tags apart from the above, but hadn't yet gotten to trying to strip the unwanted parameters:

    /?\w+(?!p|br|ul|ol|li|a|table|tr|td)((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'"\s]+))?)+\s*|\s* )/?

    This validates on the online version of RegExr (http://gskinner.com/RegExr/), and finds all tags apart from the above correctly as far as I can see. However, it doesn't work in Dreamweaver's Find box with Use Regular Expression checked, reporting "Invalid Quantifier".

    ...and this is as far as I've gotten. If anybody can offer help, it'd be much appreciated!

    Thanks in advance to you all...

    ---

    Mike

    DB:2.59:Custom Command To Strip All Except Specified Tags / Parameters Using Javascript Or Regex? 91


    Murray: Yes, as noted previously, I have found that regex which validates and works elsewhere does not work in Dreamweaver. I don't have a specific example at just this moment, sorry. Seems Barry's had the same.

    Barry, just wondering if you'd gotten a chance to look at that Dreamweaver command extension I'd linked to?

  • RELEVANCY SCORE 2.59

    DB:2.59:Gap Between Divs Issue When Switching Doc To Html5 az



    I have a banner div w/image and a nav bar div immediatly below it, both at 100% of container at 960px. I now have an annoying gap of about 5px between the two. I had switched the doc from xhtml 1.0 transitional to html5. When I switch the doc type back to 1.0, the gap goes away. Does anyone know why this might happen? Could it be because I'm not using the html5 tags, like nav? I thought that using an html5 doc type does not replace the option to use the older html tags, but maybe I'm wrong. The code is below. Thank you.

    div id="banner"img src="images/imageone.jpg" width="959" height="132" alt="alt text"/

    /div

    div id="navbar"

    ul id="site_nav" class="MenuBarHorizontal"

    lia href="index.php"Main/a/li

    lia href="wp/index.php"Blog/a/li

    lia href="datasources.html"Data/a/li

    lia href="about.php"About/a/li

    lia href="contact.php"Contact/a /li

    /ul

    /div

  • RELEVANCY SCORE 2.59

    DB:2.59:Regex To Pull Out All Html Anchor Tags? Href Plus The Link Text? j9


    Hello, I'm looking for an example regular expression that will work with c#.net to extract all anchor tags from html text.... a href=\path\to\something.extclick me/a a href=\path\to\somethingElse.extclick me 2/a actually I'm looking to get 2 things, not sure if they can be accomplished within one regex or not. Using example html elements above, I'm looking to get both the href value and the actual link text and display in a textbox or listbox like this: Path: ==== Link Text \path\to\something.ext ==== click me \path\to\somethingElse.ext ==== click me 2 using the ==== of course doesn't matter, just using for illustration purposes here. Basically I would like to construct either a custom object or even just an associative array containing the the href and link text values.

  • RELEVANCY SCORE 2.59

    DB:2.59:Re: Open A Java Applet From An Html Link? m3


    I had the "a href" tags above and below the applet code.......

    DB:2.59:Re: Open A Java Applet From An Html Link? m3

    Thank you for providing this link, as this is what I needed!

  • RELEVANCY SCORE 2.58

    DB:2.58:Image Maps And Netui mz



    How would I convert an image map to invoke an action for each area?
    i.e. in the map below how would I invoke the showSummaryValue action in the first
    area for example I would like to replace href="ScheduleSummaryValue.htm" with
    somethin like netui:area action="showSummaryValue" ...

    map name="m_tabBar"
    area shape="rect" coords="1,2,119,25" href="ScheduleSummaryValue.htm" alt="Value"

    area shape="poly" coords="254,8,257,4,261,3,357,3,361,4,364,8,367,18,367,22,363,24,255,24,251,22,251,18,254,8,254,8"
    href="#" alt="Improvements"
    area shape="poly" coords="130,8,133,4,137,3,233,3,237,4,240,8,243,18,243,22,239,24,131,24,127,22,127,18,130,8,130,8"
    href="ScheduleSummaryLand.htm" alt="Land"
    /map

    DB:2.58:Image Maps And Netui mz


    How would I convert an image map to invoke an action for each area?
    i.e. in the map below how would I invoke the showSummaryValue action in the first
    area for example I would like to replace href="ScheduleSummaryValue.htm" with
    somethin like netui:area action="showSummaryValue" ...

    map name="m_tabBar"
    area shape="rect" coords="1,2,119,25" href="ScheduleSummaryValue.htm" alt="Value"

    area shape="poly" coords="254,8,257,4,261,3,357,3,361,4,364,8,367,18,367,22,363,24,255,24,251,22,251,18,254,8,254,8"
    href="#" alt="Improvements"
    area shape="poly" coords="130,8,133,4,137,3,233,3,237,4,240,8,243,18,243,22,239,24,131,24,127,22,127,18,130,8,130,8"
    href="ScheduleSummaryLand.htm" alt="Land"
    /map

  • RELEVANCY SCORE 2.58

    DB:2.58:Using Hyperlink A Tags To Move Between Pages In Windows Phone Applications 7a


    Hello,
    I am developing a Windows Phone application that uses hyperlinks to navigate between pages. For example,

    I have this code:

    a href=#mymenutagMenu/a
    ...
    nav id=mymenutag
    ul
    li class=firsta href=index.htmlIndex/a/li
    lia href=happy.htmlHappy/a/li
    li class=lasta href=nowhere.htmlNowhere/a/li
    /ul
    /nav
    This code works in a web browser and it works in thw Windows phone emulator. But, when I add the jquery mobile javascript, by including a specific js file -

    script src=libs/jquery.mobile-1.3.1.min.js type=text/javascript/script
    The navigation to the web pages wtill work in a browser, but when run it in a Windows Phone app, the html linksreturn the message Error Loading Page
    Any assistance appreciated.

    markdolar

    DB:2.58:Using Hyperlink A Tags To Move Between Pages In Windows Phone Applications 7a

    Loading the js file changes the look of the page, so I am using that to confirm that the script loads. Note that when the script is not loaded, the link works ok.
    But, I think you mean the js script only partially loads, which generates an error. That is a possibility, but how do I check that? The app works correctly in a web browser; it is only loading an xap file into an emulator where I see the
    condition, How to I set a breakpoint, display an error message, flag a console log event or something like that on the phone emulator software - or a real phone?
    I can put got here messages in the js script I suppose, but what is the best method for doing that?
    The app also functions correctly in an android phone as a native app (apk). So, we have:
    All Desktop Browsers - Works
    Android - Works
    Ripple Phone Emulator - Works
    Windows Phone Emulator - Does not Work
    Thank you for the assistancemarkdolar

  • RELEVANCY SCORE 2.58

    DB:2.58:Replace Text With Wildcard In The Middle j9


    I am looking to change several config file keys that have server names in the format
    serverserver01/server
    serverserver02/server
    serverserver03/server
    I would like to change all of the server tags to contain the same server, for example
    serverserver04/server
    Is there any way I can use wildcards to replace all of server 01, 02, 03 etc with server04? Thanks!

    DB:2.58:Replace Text With Wildcard In The Middle j9

    Ok, in that case try this instead:
    ((Get-Content .\list.txt) -replace '(\.*\)(.*)(\.*\)','$1newservr$3') |
    Set-Content list.txt

    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • RELEVANCY SCORE 2.58

    DB:2.58:Seemingly Easy Find And Replace Question But Can't Figure Out 8p



    Hi,

    This is my first post to the forum. I have what may be an easy question, but I've tried everything and searched everywhere and just can't figure it out.

    In summary, I want to change links in my site that contain certain attributes but not others, using Dreamweaver CS4.

    For example, I have the following links in the main site "/topics/directory.php". I'm trying to put "mobile" in front of "topics" using find and replace, so it will reference my mobile folder.

    For example: change a href="/topics/directory.php" to a href="/mobile/topics/directory.php"

    Here's the catch: I want it to only perform this action on links that don't contain a certain word (in my case "calculator"). Example, a href="/topics/directory.php" I want changed. a href="/topics/directory calculator.php" I don't want changed.

    I tried the following using find and replace and it doesn't work:

    Search specific tag a

    with attribute href = /topics/([^]*)

    with attribute href !=calculator

    Set attribute href =/mobile/topics/$1

    Please let me know what other details you may need. I'm not a professional programmer, just an average joe who loves web design, so forgive me if this is a dumb question.

    Thanks to everyone in advance.

    Gary

    DB:2.58:Seemingly Easy Find And Replace Question But Can't Figure Out 8p


    Thanks. Was hoping I could automate it with one click, as I have about 50 pages I would have to do this for on a frequent basis, but this will definitely work.

    Thanks again. Much appreciated.

  • RELEVANCY SCORE 2.57

    DB:2.57:How To Set Meta-Tags Dynamically In Head Section Of Portal? dm


    We are using Oracle Portal 10.1.2.0.1, One of our customers demands, that we have to set meta-tags in the head section. We are able to process the data which should appear to the meta tags.

    For Example

    HTML dir="LTR" lang="en"
    HEAD
    TITLEDocument Search/TITLE
    LINK REL=Stylesheet TYPE="text/css" HREF="http://oracle-srv.domain/pls/portal/PORTAL.wwv_setting.render_css?p_lang_type=NOBIDIp_subscriberid=1p_styleid=1p_siteid=0p_rctx=Pp_styleid=4p_siteid=0p_rctx=R"
    base href="http://oracle-srv.domain/pls/portal/"
    meta name="description" content="Metsec is the leading manufacturer of lightweight, high strength cold rolled steel sections and profiles in the UK"
    meta name="keywords" content="lightweight cold rolled structural steel sections profiles metsec"
    /HEAD
    .....
    ....
    /HTML

    I want to know how do we change this meta tag dynametically.

  • RELEVANCY SCORE 2.57

    DB:2.57:Include Website-Data - Div / Ul / Li - Tags p3



    Hi all,

    in order to include website data into my QV application, I now come across some big problems.

    The problem is that the tables on the website are not implemented with table - tags but with a combination of div, ul, li - tags. I totally know how to read html, this is not the problem. The problem is: How can I easily get access to the data there?

    Here is an example of the given code:

    html
    body
    div class="Topic"
    dd
    ul
    li class="Under Topic1"
    a href=""...Text/a
    li class="Under Topic1"
    a href=""...Text/a
    ul class="New"
    li
    a href=""Text/a
    ....

    DB:2.57:Include Website-Data - Div / Ul / Li - Tags p3


    Hi,

    thanks for this post.

    As I am working on it now for some hours, here is my result:

    SET
    ThousandSep='.';

    SET DecimalSep=',';

    SET MoneyThousandSep='.';

    SET MoneyDecimalSep=',';

    SET MoneyFormat='#.##0,00 ;-#.##0,00 ';

    SET TimeFormat='hh:mm:ss';

    SET DateFormat='DD.MM.YYYY';

    SET TimestampFormat='DD.MM.YYYY hh:mm:ss[.fff]';

    SET MonthNames='Jan;Feb;Mrz;Apr;Mai;Jun;Jul;Aug;Sep;Okt;Nov;Dez';

    SET DayNames='Mo;Di;Mi;Do;Fr;Sa;So';

    html:

    LOAD RecNo() as Rec, @1:n as Line

    FROM

    [C:\Users\richter\Desktop\test\block\block-a00-a09.htm]

    (fix, utf8);

    html1:

    Load

    subfield(Line,'') '' as Line,

    rowno() as ID

    Resident html;

    drop table html;

    html2:

    Load

    ID,

    Line,

    if(Trim(Line) '',0,1) as del1,

    if(Line='body' or peek(del2,-1)=0, 0, 1) as del2

    resident html1;

    drop table html1;

    html3:

    Load

    rowno() as ID,

    if(left(Line,1)='',Line, if(right(Line,1)='','' subfield(Line,''),Line)) as Line

    Resident html2

    where del1=0 and del2=0;

    drop table html2;

    html4:

    Load ID,

    if(right(Line,1)='', Line, right(Line, len(Line)-1)) as Linie

    Resident html3;

    drop table html3;

    html41:

    Load ID,

    Linie,

    if(Linie='hr/' or Linie='br/', 0, 1) as del

    Resident html4;

    drop table html4;

    html5:

    Load ID,

    Linie,

    if((left(Linie,1)='' and Left(Linie,2) '/' and peek(alteEbene,-1)'alt' and left(peek(Linie,-1),1)='' and left(peek(Linie,-1),2)'/') or (left(Linie,1)'' and peek(neueEbene,-1) = 'neu' and peek(alteEbene,-1)'alt') or (left(Linie,1)'' and peek(neueEbene,-1) 'neu' and left(peek(Linie,-1),1)=''), 'neu', 'nichtneu') as neueEbene,

    if(left(Linie,2)='/' and(left(peek(Linie,-1),2)='/' or left(peek(Linie,-1),1)'' ) , 'alt', 'nichtalt') as alteEbene,

    1 as ebene

    Resident html41 where del='1';

    drop table html41;

    html6:

    Load ID,

    Linie,

    neueEbene,

    alteEbene,

    if(ID='1', 1, if(neueEbene='neu', peek(EbeneNummer,-1) +1,if(alteEbene='alt', peek(EbeneNummer,-1) -1,peek(EbeneNummer,-1)))) as EbeneNummer

    Resident html5;

    drop table html5;

  • RELEVANCY SCORE 2.57

    DB:2.57:Problems With Custom Tags c7


    Hi Everybody,

    I have searched many sites looking for the solution of my problem with custom tags.

    This is the structure of the app.

    app
    |
    +-- teste3.jsp
    |
    +-- WEB-INF
    |
    +-- web.xml
    |
    +-- classes
    | |
    | +-- minhastags
    | |
    | +-- MeuTagHandler.class
    +-- tlds
    |
    +-- teste.tldFile teste3.jsp:

    !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

    HTML

    HEAD
    %@ taglib uri="/WEB-INF/tlds/teste.tld" prefix="msajsp" %
    TITLEmsajsp:example //TITLE
    !-- LINK REL=STYLESHEET
    HREF="JSP-Styles.css"
    TYPE="text/css" --
    /HEAD

    BODY

    H1msajsp:example //H1

    msajsp:example /

    /BODY

    /HTMLFile web.xml:

    ?xml version="1.0" encoding="ISO-8859-1" ?

    web-app

    servlet
    servlet-namePrincipal/servlet-name
    jsp-file/teste3.jsp/jsp-file
    /servlet

    servlet-mapping
    servlet-namePrincipal/servlet-name
    url-pattern/*/url-pattern
    /servlet-mapping

    /web-appFile MeuTagHandler.java:

    package minhastags;

    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;

    public class MeuTagHandler extends TagSupport {

    public int doStartTag() {

    try {
    JspWriter out = pageContext.getOut();
    out.print("Olaacute;, Mundo, Custom tags!");
    } catch(IOException ioe) {
    System.out.println("Error in ExampleTag: " + ioe);
    }

    return(SKIP_BODY);

    }

    }File teste.tld:

    ?xml version="1.0" encoding="ISO-8859-1" ?
    !DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"

    taglib

    tlib-version1.0/tlib-version
    jsp-version1.1/jsp-version
    short-namemsajsp/short-name
    info
    A tag library from More Servlets and JavaServer Pages, http://www.moreservlets.com/.
    /info

    tag
    nameexample/name
    tag-classMeuTagHandler/tag-class
    body-contentempty/body-content
    infoSimplest example: inserts one line of output/info
    /tag

    /taglibAnd the exception I get when I try to access URL [http://localhost:8080/app/teste3.jsp] :

    exception

    org.apache.jasper.JasperException: /teste3.jsp(8,11) Unable to load tag handler class "MeuTagHandler" for tag "msajsp:example"
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
    org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1242)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1467)
    org.apache.jasper.compiler.Parser.parse(Parser.java:138)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    I apreciate so much any input!

    Thank you in advance!

    Marcelo

    DB:2.57:Problems With Custom Tags c7

    You need to specify the full path of the class - including its package.
    In the tld file:

    tag-classminhastags.MeuTagHandler/tag-class

  • RELEVANCY SCORE 2.57

    DB:2.57:Recent Glitch With Blog Update z7



    Hi there,

    So glad that there has finally been an update to the blog section of BC!

    Just so you know, when you are looking at your blog posts the 'tags' are no longer showing on new blogs since the update. The feature is working correctly though and they are being tagged but you just can't see it inside BC.

    Example:

    Also, it would be cool if you could make the SEO Metadata Post Description be a tag to replace {tag_blogpostbodypreview,Text}.

    DB:2.57:Recent Glitch With Blog Update z7


    Hi,

    If this is still and issue with the missing tag please reach out to our direct support ASAP.

    We'll investigate this further.

    Kind regards,

    -Sidney

  • RELEVANCY SCORE 2.56

    DB:2.56:Looking For Java-Applet Example For Mapviewer ad


    I'm looking for a example of a JAVA-applet for Mapviewer 9.0.4
    I've got the example for JSP using beans and tags.
    I'm not (yet) good in JAVA so an example whould be nice.

    Thanks in advance.

  • RELEVANCY SCORE 2.56

    DB:2.56:Sharepoint 2010 Content Editor Webpart Inside Anchor Tags kp


    Hi,

    I have an issue placing anchor tag inside Content editor webpart. I am looking for Named Anchors.
    Example:
    A href=#TestFirst/A

    div id=Test/div
    And this as the anchor: When i click the Test link , the cursor moved to div in normal html page.
    but content editor it is prefixing the current url , not moving to div tag.
    Could you please help here, how to do it.

    DVGR, SharePoint Developer

    DB:2.56:Sharepoint 2010 Content Editor Webpart Inside Anchor Tags kp

    Hi ,
    In My Form,Rich text Editor is there. I have added below text inside Richtext.
    A href=#FirstLinkFirst/A
    ;
    ;
    ;
    ;
    ;
    ;
    A id=FirstLinkFirst/A
    When click ok button for the rich text editor webpage dilag the NamedAnchor tag is appended like below
    A href=http://rootsite/#FirstLinkFirst/A
    Is there any chance to avoid to append root url to named anchor tag?

    DVGR, SharePoint Developer

  • RELEVANCY SCORE 2.56

    DB:2.56:Dreamweaver 8 Encodes Scriptlets In Library Assets xf


    I#ve got some assets in my library that use JSP custom tags
    in attributes of a-tags. When I update the site or these assets,
    dreamweaver 8 encodes the and to lt; gt;, which
    obviously breaks the code.

    An example:

    In the asset:
    a href="eb:app name='name' /"Text/a

    In the page:
    a href="lt;eb:app name='name'
    /gt;"Text/a

    Does anyone know how to stop this behaviour?

    (In the options pane all code-rewriting is disabled...)

    TIA

    Martin.

    DB:2.56:Dreamweaver 8 Encodes Scriptlets In Library Assets xf

    I#ve got some assets in my library that use JSP custom tags
    in attributes of a-tags. When I update the site or these assets,
    dreamweaver 8 encodes the and to lt; gt;, which
    obviously breaks the code.

    An example:

    In the asset:
    a href="eb:app name='name' /"Text/a

    In the page:
    a href="lt;eb:app name='name'
    /gt;"Text/a

    Does anyone know how to stop this behaviour?

    (In the options pane all code-rewriting is disabled...)

    TIA

    Martin.

  • RELEVANCY SCORE 2.56

    DB:2.56:Can You Use Href In A Slot In Bppm? xz



    I would like to put a link into a slot so Operations can click on the slot and jump to that URL. I would like to use href so that instead of seeing the entire URL in the console they only see the name I give it.

    For example I would like to put the following in a slot:

    my_slot=a href="http://my.corp.pvt/myWebPath/qual='1234'"1234/a;

    When displaying the slot in the Console they would only see "1234" which when clicked would take them to the URL.

    I can put the following in the slot and it works: http://my.corp.pvt/myWebPath/qual='1234'

    But this shows the entire URL value when displayed in the console.

    When I try and use the href tags so only "1234" is displayed, it does not show anything.

    Is there a way to do this in BPPM?

    DB:2.56:Can You Use Href In A Slot In Bppm? xz


    Just the bare URL. I don't know if it's possible to have the text different from the URL like in your example or that a slot can use HTML (although that would be nice).

  • RELEVANCY SCORE 2.56

    DB:2.56:Help With Html Report! s9


    I was looking for a way to create a report and I got this suggestion from the forum:"Hi,If you use HTML (for rtf it's basically the same), you can make a templateHTML file. For all the things that need to be replaced, you type a tag, e.g.something like time, for the actual time.In LabVIEW, you just open the file, and replace all tags with the propervalues. This doesn't work with sizing tables, where you need to (partially)build the table in LabVIEW, then replace a table tag with the table string.Regards,Wiebe." I think this solution is going to work very good for me. However I dont have too much experience handling html docs (for example, how to replace the tags). Can anybody give me any other details or code examples? (I'm using LV 7.1), Thanks a lot!

  • RELEVANCY SCORE 2.56

    DB:2.56:My Regex Logic Is Flawed ff


    Hey Okay basically I'm downloading HTML source code from various web pages, and within the source I'm looking for a specific website link e.g. http://www.superwebsite.com which is simple enough, however I want to grab all the tags between the '' and '' including of course the domain name, below are some examples:

    a href=http://www.superwebsite.com rel=nofollow class=external

    a href=http://www.superwebsite.com rel=external nofollow

    a href=http://www.superwebsite.com

    DB:2.56:My Regex Logic Is Flawed ff

    All right, let me try and summarize what I hear you saying....You are going to search the code of 2000+ web pages (url in UniqueUrls) for a specific Url (siteUrl).  If the code contains the specific Url, then you want the tag that contains the url captured and store in a string variable.  Right?If so, then consider that there may be multiple occurances of the url on the page.  Which one do you really want?Also consider, the url may occur outside of the as in td url of interest /td.  Do you want to capture from td.../td?And, the url could simply be part of the body /body tag or some higher level tag that includes tags itself?  Do you want to capture this, and if so, what part?  Certainly not from body to /body, right?The following example will grab all of the occurances within a tag, there may be many.  You can then decide (by plugging it back into your code above however you want) which one to use.  It will not capture the td.../td scenario or the body.../body scenario.
    string siteUrl = http://i3.msdn.microsoft.com;
    string pattern = @(?![!])[^]* + Regex.Replace(siteUrl,@([.]),@\$1) + @(|/)[^]*;
    Console.WriteLine({0}, pattern);

    string src = webBrowser1.DocumentText;
    foreach (Match mx in Regex.Matches(src, pattern,RegexOptions.Multiline))
    {
    Console.WriteLine({0}, mx.Value);
    }

    You might notice the (|/) allows you to catch a URL that has /path extentions following it, change it to just a (actually two ) to limit it to your original requirements.  The Replace above is used to substiture \. for . since . has special meaning to Regex.  If you find you want to have urls with other special characters, add them between the [] but becareful of hypen, it must be the last character between the [].Les Potter, Xalnix Corporation, Yet Another C# Blog

  • RELEVANCY SCORE 2.56

    DB:2.56:Html Cleaner x8


    Hi,

    I need to create a java class that cleans HTML code, that means get rid of WORD tags for example.

    Does any body has a script that does this or at least has a list of the tags I have to replace to clean the HTML code?

    Thanks!

    DB:2.56:Html Cleaner x8

    There is JTidy, HTMLClearner (both on SourceForge) and a few others.
    A good overview is here: http://java-source.net/open-source/html-parsers
    :-) stw

  • RELEVANCY SCORE 2.56

    DB:2.56:How To Stop Wp Editor From Swapping Span And A Href Tag?? xc


    Hi,When i try to update content through WP Editor on Code view, WP swaps tags around when i save the content. For example, "Log in"When i hit the save button, it get formatted in way shown belowLog inHow can i stop WP Editor from doing this?I pasted the html code and some how it can't be displayed

    DB:2.56:How To Stop Wp Editor From Swapping Span And A Href Tag?? xc

    Ok, let me try this:i have a opening span tag and closing span tag. insite this tags is the tag indicating a like (i.e. your href=).Now, when i save the content, WP swaps these two tags, that is, "a href=" tag goes outside and the span tag goes inside. How do i stop this? This has been happening on our 5.3 sp1 env and now we're on D6.sp1, but still experiencing the same problem.Please help.

  • RELEVANCY SCORE 2.55

    DB:2.55:Wpf Webbrowser With Realtive Urls pf


    I'm using a WPF WebBrowser and wrapped the ShDocVw Com Interface. I read the webdocument using a WebRequest. I've looked into WebClient, but that doesn't seem to return a lot of information, like for example the ResponseURI.So I modify part of the downloaded Document's content and display it in the WebBrowser. The problem is that it won't display any relative url images, i.e. img src=/images/banner.gif /. Is there some way to set the base url of the document? I can patch the document manually (looking for all href and src tags) but I supose that there must be an easier way to do so.Thanks in advance.

    DB:2.55:Wpf Webbrowser With Realtive Urls pf

    Hi,Your other post has pretty much the same answer as this one so I'm just reposting it.Unfortunately the way NavigateToString works is to navigate the WebOC to about:blank, then just have the WebOC load the supplied HTML into the document property.  The browser isn't really navigated to anything, so there's no way to have any relative paths be honored in the HTML doc.I'm also not aware of a way to intercept the image loads and modify the paths (but it still could be possible).  You may have to go with modifying all the hrefs in the doc to be absolute.Andre

  • RELEVANCY SCORE 2.55

    DB:2.55:Any Idea How To Set Meta-Tags Dynamically In Head Section? ca


    We use portal version 3.0.9.8.3 and or frontend consists of a few pages, which are called with different parameters (http://www.voestalpine.com).
    One of our customers demands, that we have to set meta-tags in the head section.
    We are able to process the data which should appear to the meta tags.
    Example:
    ========
    html
    head
    meta http-equiv="content-type" content="text/html; charset=iso-8859-1"
    title Lightweight cold rolled steel sections and profiles from Metsec /title
    meta name="description" content="Metsec is the leading manufacturer of lightweight, high strength cold rolled steel sections and profiles in the UK"
    meta name="keywords" content="lightweight cold rolled structural steel sections profiles metsec"
    link rel="stylesheet" type="text/css" href="metsec.css"
    /head

    Has anybody an idea, how to put the meta-tags and data into head section in this portal version (data depends on values of parameters in the url)?

    DB:2.55:Any Idea How To Set Meta-Tags Dynamically In Head Section? ca

    We use portal version 3.0.9.8.3 and or frontend consists of a few pages, which are called with different parameters (http://www.voestalpine.com).
    One of our customers demands, that we have to set meta-tags in the head section.
    We are able to process the data which should appear to the meta tags.
    Example:
    ========
    html
    head
    meta http-equiv="content-type" content="text/html; charset=iso-8859-1"
    title Lightweight cold rolled steel sections and profiles from Metsec /title
    meta name="description" content="Metsec is the leading manufacturer of lightweight, high strength cold rolled steel sections and profiles in the UK"
    meta name="keywords" content="lightweight cold rolled structural steel sections profiles metsec"
    link rel="stylesheet" type="text/css" href="metsec.css"
    /head

    Has anybody an idea, how to put the meta-tags and data into head section in this portal version (data depends on values of parameters in the url)?

  • RELEVANCY SCORE 2.55

    DB:2.55:How Can I Replace Html Tags In Windows Phone C# k9


    Hi everyone

    i am looking for a regular expression make the text having an HTML tags become organized as the tags make it in a browser
    i need to put that text in a blocktext
    exemple :
    a
    href=http://www.google.com /a
    ==== clickable link with http://www.google.com
    hi bsocial.msdn.microsoft.com /b ===== hisocial.msdn.microsoft.com
    thank you

    DB:2.55:How Can I Replace Html Tags In Windows Phone C# k9

    webbrowser is the best way
    but sometimes rules is rules
    no i want also execute the tags

  • RELEVANCY SCORE 2.55

    DB:2.55:Could Not Find Main Class - Jnlp p7


    I'm having an error occur when I try to start my application from web start. It works fine with 'java -jar IMApp.jar'. I'm using netbeans 6.0, and it generated the JNLP file for me.
    When I run it under WS, I get could not find main class in FastInfoset.jar. I don't understand why it is looking in that library jar file when main=true is set for IMApp.jar.
    I'm really stumped! Here is the JNLP:

    ?xml version="1.0" encoding="UTF-8"?
    jnlp spec="1.0+" codebase="file:/C:/projects/IMApp/dist/" href="launch.jnlp"
    information
    titleBasic Application Example/title
    vendorSun Microsystems Inc./vendor
    descriptionA simple java desktop application based on Swing Application Framework/description
    description kind="short"Basic Application Example/description
    homepage href="http://appframework.dev.java.net"/
    /information
    security
    all-permissions/
    /security
    resources
    j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs="C:\NetBeans6.0.1\java1\modules\ext\jaxws21\api" "/
    jar href="IMApp.jar" main="true" download="eager"/
    jar href="lib/FastInfoset.jar" download="eager"/
    jar href="lib/activation.jar" download="eager"/
    jar href="lib/appframework-1.0.3.jar" download="eager"/
    jar href="lib/http.jar" download="eager"/
    jar href="lib/jaxb-api.jar" download="eager"/
    jar href="lib/jaxb-impl.jar" download="eager"/
    jar href="lib/jaxb-xjc.jar" download="eager"/
    jar href="lib/jaxws-api.jar" download="eager"/
    jar href="lib/jaxws-rt.jar" download="eager"/
    jar href="lib/jaxws-tools.jar" download="eager"/
    jar href="lib/jsr173_api.jar" download="eager"/
    jar href="lib/jsr181-api.jar" download="eager"/
    jar href="lib/jsr250-api.jar" download="eager"/
    jar href="lib/saaj-api.jar" download="eager"/
    jar href="lib/saaj-impl.jar" download="eager"/
    jar href="lib/sjsxp.jar" download="eager"/
    jar href="lib/stax-ex.jar" download="eager"/
    jar href="lib/streambuffer.jar" download="eager"/
    jar href="lib/swing-worker-1.1.jar" download="eager"/
    /resources
    application-desc main-class="com.lovehorsepower.imapp.IMApp"
    /application-desc
    /jnlp

    Any ideas? I'm really at a loss here.
    Thanks!

    -Joe

    Edited by: josepho on Feb 25, 2008 7:35 AM

    DB:2.55:Could Not Find Main Class - Jnlp p7

    note the problem here is the line:
    java-vm-args="-Djava.endorsed.dirs="C:\NetBeans6.0.1\java1\modules\ext\jaxws21\api"

    has mis-matching quotes.
    javaws is notoriously bad at showing the real meaning of errors parsing the jnlp file.

    /Andy

  • RELEVANCY SCORE 2.54

    DB:2.54:Controlling Web Report Output 17


    Hi, I would like to find out how to control the web report output generated by the server. Any help and ideas would be most welcomed.

    I'm trying to get rid of the extra pair of html /html tags generated by the report server. Below is an example of the html output generated by the server

    html
    head
    base href="http://server_name:port/reports/rwservlet/getfile/HW/YX+JyF1XNS6sQmfjO3063/39488071.htm"
    /head
    /html
    html
    head
    /head
    ...
    ...
    /html

    What I want is

    html
    head
    base href="http://server_name:port/reports/rwservlet/getfile/HW/YX+JyF1XNS6sQmfjO3063/39488071.htm"
    /head
    ...
    ...
    /html

    Apart from manually removing the tag myself, I can't find any documentation on how to do that. Is that even possible? I also notice that if I try to use paginated html reports builder, it doesn't give me the extra pair of html tags.

    Thanks,

    genie

    DB:2.54:Controlling Web Report Output 17

    Hi Genie,

    Currentlty it is not possible. This is something that will be possible in one of the upcoming releases / patches of Oracle Reports.

    However, this extra pair html tags will appear ONLY when you send the output directly to the browser, ie, when you use destype=cache in your command. If you send the output to a file, ie, destype=file, there will be no extra html tags. When you generate a file from Builder, it is equivalent to destype=file, that is why you do not see these tags in the output file.

    The reason for having these extra html tags is: when you send the output to browser, the browser needs a BASE url, ie, a base path where the browser will look for any images etc. This BASE url is not part of the HTML output, but is written by Oracle Reports to tell the browser where the associated images etc are located.

    Navneet.

  • RELEVANCY SCORE 2.54

    DB:2.54:Transforming Xml To Html Via Xsl Using Transformerfactory c7


    I used jaxp1.1.3 in the java_xml package to transform xml to html in the server side, but somehow some of the closing tags are lost, i.e. "/" became "" in the html file. For example my
    link type="text/css" rel="stylesheet" href="/Css/test.css"/
    in the stylesheet became
    link href="/Css/test.css" rel="stylesheet" type="text/css"

    I used xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform". Does anyone have similar problems? Or do I miss something?

    Thanks!

    DB:2.54:Transforming Xml To Html Via Xsl Using Transformerfactory c7

    sorry for the stupid question. the problem is somewhere else.

    thanks

  • RELEVANCY SCORE 2.54

    DB:2.54:How To Write Command For Strip Tags? k9


    I'd like to strip tags a wiht atribute HREF on many
    pages of my local site
    How to write command if form of links and anchors differs
    from page to page ?
    For example:

    http://www.site.ru

    http://www.site.ru/blabla/index.html

    http://www.site.ru/blabla/abc/234.htm

    http://www.site.ru/encyclopedia/things/231002.htm
    et cetera

  • RELEVANCY SCORE 2.54

    DB:2.54:Trying To Come To Grips With Sliding Panels And Datasets mc


    Hi there!

    I've just started looking into Spry (love it so far!) but
    having an issue combining the sliding panels widget and a Spry
    dataset. The widget works fine and the dataset works fine when
    seperate, but I come up against some problems when I combine them.

    As a guide, I've been using the following page:

    http://www.pixelz.co.uk/spryArticle.htm
    (copy of the article in the Spry Zip file)
    and using the Scenario 2 example at the end of the page.

    Unfortunately, there were a few bugs in it (like a colon
    where there should have been a semicolon and no titles in the
    navigation a tags at the top) so I did a little debugging
    and tied in my own dataset. The code that is running on this page (
    http://www.pixelz.co.uk/spryTest.html)
    looks like so:

    quote:

    head
    script language="javascript" type="text/javascript"
    src="includes/xpath.js"/script
    script language="javascript" type="text/javascript"
    src="includes/SpryData.js"/script
    script language="javascript" type="text/javascript"
    var dsTest = new Spry.Data.XMLDataSet("data/xmlTest.xml",
    "specials/menu_item");
    /script
    script language="javascript" type="text/javascript"
    src="includes/SprySlidingPanels.js"/script
    link href="includes/SprySlidingPanels.css"
    rel="stylesheet" type="text/css" /
    /head
    body
    div spry:region="dsTest" spry:repeatchildren="dsTest"
    a href="#"
    onclick="sp1.showPanel('detail{ds_RowID}');"Page
    {ds_RowID}/a
    /div

    div id="sPanel" class="SlidingPanels"
    spry:region="dsTest"
    div class="SlidingPanelsContentGroup"
    spry:repeat="dsTest"
    div id="detail{ds_RowID}"
    class="SlidingPanelsContent"
    h3{item}/h3
    p{description}/p
    pstrong{price}/strong/p
    /div
    /div
    script language="javascript" type="text/javascript"
    var sp1 = new Spry.Widget.SlidingPanels("sPanel");
    /script
    /div
    /body

    The problem I'm having is that the panels don't change when
    the links are clicked. It seems to pull in the data fine, but the
    panels dont switch.

    When I looked at the generated source, it doesn't look quite
    right:

    quote:

    body
    div id="spryregion1" class=""
    a onclick="sp1.showPanel('detail0');" href="#"Page
    0/a
    a onclick="sp1.showPanel('detail1');" href="#"Page
    1/a
    a onclick="sp1.showPanel('detail2');" href="#"Page
    2/a
    a onclick="sp1.showPanel('detail3');" href="#"Page
    3/a
    /div
    div id="sPanel" class="SlidingPanels" style="overflow:
    hidden;"
    div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;"
    div id="detail0" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel"
    /div
    /div
    div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;"
    div id="detail1" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel"
    /div
    /div
    div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;"
    div id="detail2" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel"
    /div
    /div
    div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;"
    div id="detail3" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel"
    /div
    /div
    /div
    /body

    I'm not sure, but I think the repeating region is a bit
    screwy, but I'm really not sure where to proceed from here.

    Any help would be appreciated! Thanks!

    Gareth

    DB:2.54:Trying To Come To Grips With Sliding Panels And Datasets mc

    Hi there!

    I've just started looking into Spry (love it so far!) but
    having an issue combining the sliding panels widget and a Spry
    dataset. The widget works fine and the dataset works fine when
    seperate, but I come up against some problems when I combine them.

    As a guide, I've been using the following page:

    http://www.pixelz.co.uk/spryArticle.htm
    (copy of the article in the Spry Zip file)
    and using the Scenario 2 example at the end of the page.

    Unfortunately, there were a few bugs in it (like a colon
    where there should have been a semicolon and no titles in the
    navigation a tags at the top) so I did a little debugging
    and tied in my own dataset. The code that is running on this page (
    http://www.pixelz.co.uk/spryTest.html)
    looks like so:

    quote:

    head
    script language="javascript" type="text/javascript"
    src="includes/xpath.js"/script
    script language="javascript" type="text/javascript"
    src="includes/SpryData.js"/script
    script language="javascript" type="text/javascript"
    var dsTest = new Spry.Data.XMLDataSet("data/xmlTest.xml",
    "specials/menu_item");
    /script
    script language="javascript" type="text/javascript"
    src="includes/SprySlidingPanels.js"/script
    link href="includes/SprySlidingPanels.css"
    rel="stylesheet" type="text/css" /
    /head
    body
    div spry:region="dsTest" spry:repeatchildren="dsTest"
    a href="#"
    onclick="sp1.showPanel('detail{ds_RowID}');"Page
    {ds_RowID}/a
    /div

    div id="sPanel" class="SlidingPanels"
    spry:region="dsTest"
    div class="SlidingPanelsContentGroup"
    spry:repeat="dsTest"
    div id="detail{ds_RowID}"
    class="SlidingPanelsContent"
    h3{item}/h3
    p{description}/p
    pstrong{price}/strong/p
    /div
    /div
    script language="javascript" type="text/javascript"
    var sp1 = new Spry.Widget.SlidingPanels("sPanel");
    /script
    /div
    /body

    The problem I'm having is that the panels don't change when
    the links are clicked. It seems to pull in the data fine, but the
    panels dont switch.

    When I looked at the generated source, it doesn't look quite
    right:

    quote:

    body
    div id="spryregion1" class=""
    a onclick="sp1.showPanel('detail0');" href="#"Page
    0/a
    a onclick="sp1.showPanel('detail1');" href="#"Page
    1/a
    a onclick="sp1.showPanel('detail2');" href="#"Page
    2/a
    a onclick="sp1.showPanel('detail3');" href="#"Page
    3/a
    /div
    div id="sPanel" class="SlidingPanels" style="overflow:
    hidden;"
    div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;"
    div id="detail0" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel"
    /div
    /div
    div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;"
    div id="detail1" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel"
    /div
    /div
    div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;"
    div id="detail2" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel"
    /div
    /div
    div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;"
    div id="detail3" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel"
    /div
    /div
    /div
    /body

    I'm not sure, but I think the repeating region is a bit
    screwy, but I'm really not sure where to proceed from here.

    Any help would be appreciated! Thanks!

    Gareth

  • RELEVANCY SCORE 2.54

    DB:2.54:Render Information Into A Jsp Page Using Netui Tags a7


    Hi,

    Using netui tag in JSP, how can I display data that is stored in a array list or collection object? For example, the collection object has a list of href links. What is the appropriate netui tag that I can use to display the content in the jsp page?

    Any suggestions on this?

    Thanks,
    Latha

  • RELEVANCY SCORE 2.54

    DB:2.54:Sql Replace Function - Error ca


    I am little bit struggling to get the my sql function below, to execute the correct output:
    ALTER FUNCTION [dbo].[ReplaceTags](@XML VARCHAR(MAX))
    RETURNS VARCHAR(MAX)
    AS
    BEGIN

    SELECT @XML = REPLACE(@XML,[Name],'a href=a href=pagename.aspx?tag='[name]''[name]'/a')
    FROM [dbo].[database_tags]
    where UploadDate = '2014-09-01'

    RETURN @XML
    END
    When I call the function (select title, [dbo].[ReplaceTags](XML) from article ), it outputs the following result below, whereas the original data is this - (One is a 1m block of AIREM 2006-1X 2A3,).
    Query output:
    One is a amp;#163;1m block of a href=a href=pagename.aspx?tag=a href=a href=pagename.aspx?tag=a href=a href=pagename.aspx?tag=a href=a href=pagename.aspx?tag=a href=a
    href=pagename.aspx?tag=AIREM 2006-1X 2A3AIREM 2006-1X 2A3/aa href=a href=pagename.aspx?tag=AIREM 2006-1X 2A3AIREM 2006-1X 2A3/a/aa href=a href=pagename.aspx?tag=a
    href=a href=pagename.aspx?tag=AIREM 2006-1X 2A3AIREM 2006-1X 2A3/aa href=a href=pagename.aspx?tag=AIREM 2006-1X 2A3AIREM 2006-1X 2A3/a/a/aa href=a
    href=pagename.aspx?tag=a href=a
    I am not sure, why it keep duplicating the name. Please advice, where I may be going wrong.
    Thank you for your help and time.

    DB:2.54:Sql Replace Function - Error ca

    I ran the below, and it seems to produce the correct result.
    It seems that from what I could see on sqlfiddle(*), that you have a table. You need to be careful, not to run the function more than once the same string. Or maybe even better, have some logic in your function to prevent this from happening. This is not
    entirely simple to achieve in T-SQL, but as Ronen has already suggested, this is not too tricky if you use the RegEx classes in the CLR.
    (*) It keeps saying Loading and I am not able to acess the windows.
    This is the code that I tried. Note that I changed the cursor declaration to LOCAL. This ensures that the cursor goes out of scope if the function crashes for some reason.
    [sql}
    CREATE TABLE database_tags (id int NOT NULL PRIMARY KEY,
    Name varchar(50) NOT NULL)
    go
    INSERT database_tags (id, Name)
    VALUES(1,BANKP),
    (2,BCJA),
    (3,BCJAM),
    (4,BFTH),
    (5,BFTH),
    (6,EMPOP),
    (7,AMPT),
    (8,AIREM 2006-1X 2A3)
    go
    CREATE FUNCTION [dbo].[ReplaceTags2](@XML VARCHAR(MAX))
    RETURNS VARCHAR(MAX)
    AS
    BEGIN
    DECLARE @Name VARCHAR(MAX)
    DECLARE cur CURSOR FAST_FORWARD LOCAL FOR
    SELECT Name
    FROM [dbo].[database_tags]
    Where @XML LIKE % Name %
    OPEN cur
    WHILE 1 = 1
    BEGIN
    FETCH cur INTO @Name
    --IF @Name IS NOT NULL
    IF @@fetch_status 0
    BREAK
    BEGIN
    SELECT @XML = REPLACE(@XML,
    @Name,
    a href=a href=pagename.aspx?tag=@Name@Name/a)

    END
    --FETCH NEXT FROM CUR INTO @Name
    END
    DEALLOCATE cur;
    RETURN @XML
    END
    go
    DECLARE @XML varchar(MAX) = Bodyp align=justifyOne is a 1m block of AIREM 2006-1X 2A3, which has never appeared on SMO.p/Body
    SELECT dbo.ReplaceTags2(@XML)
    go
    DROP FUNCTION ReplaceTags2
    DROP TABLE database_tags
    [/sql]
    Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

  • RELEVANCY SCORE 2.53

    DB:2.53:How To Post A Link (Url) In "Discussions" jx


    Hi All!

    You can shorten your links (URLs) by using HTML coding.

    This is preferable when the URL is very long. Posting the entire URL can extend the width of a post beyond the range of many computer screens. This can make a post difficult to read, as it necessitates sideways scrolling.

    In the example below, replace the first character: ( with
    Replace the last character: ) with

    EXAMPLE:

    (a href="http://search.info.apple.com/"Search Apple Support/a)

    The resulting link will appear like this a href="http://search.info.apple.com/"Search Apple Support.

    ali b

    DB:2.53:How To Post A Link (Url) In "Discussions" jx

    Hi Axl!

    Thank you for your input.

    The main purpose of my tip is to show how to post hyperlinks (URLs) in "Discussions".
    I did not intend to create a complete formatting information guide. As you've noted, that has been done.

    An Apple Discussions Moderator suggested that I include the Utility links. I'm sure there are numerous other utilities for formatting, and I would prefer to keep this tip concentrated on how to post URLs. The "Taco HTML Edit" looks very interesting though! Thanks!

    Thanks for the heads up on the BETA of "level4". I will mention that fact in the tip.

    On the Typeit4me page, if you look at the logo in the top left corner, you will see the upper/lowercase spelling that I used. It also appears at the bottom of the page, above the "Google" search box.

    Thanks Again!

    ali b

  • RELEVANCY SCORE 2.53

    DB:2.53:Uri-Encode Module Tags pj



    I am looking for a way to URI-encode {tag_name} in the list layout template of the events module

    I intend to use it this way: a href="/prepopulated-forms?fieldname={tag_name}"Click Here/a

    But {tag_name} doesn't get renderred as the item's name as I expected. Plus, if it does, it needs to be URL encoded before it can be used meaningfully..

    DB:2.53:Uri-Encode Module Tags pj


    You mean URI?

    You mean you want to pass paramaters in the url? as in the examples, all should work fine. if you want to use a web app and define the url of the detail view for example then you use the tags for fetch the url which are outline in tags quick reference on the knowledgbase.

  • RELEVANCY SCORE 2.53

    DB:2.53:Take Out Html Tags From A String Value 17


    Hi Gurus and Happy Holidays!

    I am grabbing a line of code from a old web application and pulling it into my new jsf app. Through openConnection() and it works fine returning the following string. However I would like to strip the formating tags out of the string so it returns what is in the second code box.

    Do not use for items having specific test applications, such as IA HREF=h6_search?str=testerlm=startwm=wholetg=allTESTER/A/I (as modified); and IA HREF=h6_search?str=test+setlm=startwm=wholetg=allTEST SET/A/I (as modified).Do not use for items having specific test applications, such as TESTER (as modified); and TEST SET (as modified).Any help in how to do this would be greatly appreciated and please include an example. Thank you

  • RELEVANCY SCORE 2.53

    DB:2.53:Get Plain Text Content From Html Document? cs


    Hi All,

    I'm looking for sample codes which remove all html tags from a html document and return plain-text content only. That codes should replace br or p tags with "\n".

    Please help.

    Thanks in advance.

    DB:2.53:Get Plain Text Content From Html Document? cs

    HTMLParser work great. http://htmlparser.sourceforge.net/

    Look at their first example on TextExtractingVisitor http://htmlparser.sourceforge.net/wiki/index.php/StringExtraction

  • RELEVANCY SCORE 2.53

    DB:2.53:Replacing A Word xa


    hi all,

    Im trying to replace all mentions of .html in a html fine to .jsp. For example if i had:

    html
    h1
    Some Text Here
    /h1
    a href ="page1.html" Go to Page1
    /html

    i would want to ONLY replace the .html in the link.

    By using:

    String replace= src.replaceAll(".html", ".jsp");i succesfully replace the .html in the link but i also replace the html at the start and at the beginning despite them not having a "." in front of them? Any ideas on how to fix this PLEASE

    DB:2.53:Replacing A Word xa

    ya i just figured out the solution there from your previous post. Thanks a million.

  • RELEVANCY SCORE 2.53

    DB:2.53:Speed Up Regexp_Replace / Replace 9f


    Hi,

    I made a function to replace latin american accented letters to a html entitie. Kind of html_entities function from PHP.

    So, insted of directly output the html with htp.p, i use this function. Example:

    htp.p(html(Mrio));will output:

    Maacute;rioBut This functions is slow. Does anynoe know a way to optimize regexp_replace? In C, I used to pre-compile the regular expression patterns to speed up.

    Anyone has a tip to improve the performance off my function?

    This is my function:

    function html(wstr in varchar2, nl2br in boolean default false) return varchar2
    is
    wretorno varchar2(32767);
    begin
    wretorno := null;
    if wstr is not null then
    wretorno := wstr;
    -- To avoid cascade replacement, I mask the html tags already formatted
    wretorno := regexp_replace(wstr, '([a-zA-Z]{3,6});', '_:\1:_');
    -- Now I replace the caracters I need to.
    wretorno := replace(wretorno, '', 'amp;');
    wretorno := regexp_replace(wretorno, '([])', '\1acute;');
    wretorno := regexp_replace(wretorno, '([])' , '\1tilde;');
    wretorno := regexp_replace(wretorno, '([])' , '\1circ;' );
    wretorno := regexp_replace(wretorno, '([])' , '\1grave;');
    wretorno := regexp_replace(wretorno, '([])' , '\1uml;' );
    wretorno := regexp_replace(wretorno, '([])' , '\1cedil;');
    wretorno := translate(wretorno, '', 'aaaaaeeeeiiiiooooouuuucyyAAAAAEEEEIIIIOOOOOUUUUCY');
    wretorno := replace(wretorno, '', 'aelig;');
    wretorno := replace(wretorno, '', 'AElig;');
    wretorno := replace(wretorno, '', 'copy;');
    wretorno := replace(wretorno, '', 'euro;');
    wretorno := replace(wretorno, '', 'reg;');
    wretorno := replace(wretorno, '', 'sect;');
    wretorno := replace(wretorno, '', 'acute;');
    wretorno := replace(wretorno, '`', 'grave;');
    wretorno := replace(wretorno, '~', 'tilde;');
    wretorno := replace(wretorno, '', 'uml;');
    -- Unmask html tags from before
    wretorno := regexp_replace(wretorno, '_:([a-zA-Z]{3,6}):_', '\1;');
    if nl2br then
    wretorno := replace(wretorno, chr(13)||chr(10), chr(10));
    wretorno := replace(wretorno, chr(10), 'br /');
    end if;
    end if;
    return(wretorno);
    end;

    DB:2.53:Speed Up Regexp_Replace / Replace 9f

    mcardia wrote:
    Will the deterministic clause make it faster?Depends on your version of the database (maybe).

    If you're on 11g using the result cache will probably work better

  • RELEVANCY SCORE 2.53

    DB:2.53:Findall() Methods In Home Interface sk



    Looking at the crimeportal cmp example that comes with the Admin docs, I noticed that the findAll() methods defined the the Home interfaces don't have corresponding tags in ejb-jar.xml. How does Jboss know how to implement these methods? (the findAll_xxx() methods do have tags in ejb-jar.xml)Thanks,Dennis

    DB:2.53:Findall() Methods In Home Interface sk


    That is...they don't have \query\ tags in ejb-jar.xml.

  • RELEVANCY SCORE 2.53

    DB:2.53:Calling Servlet By Clicking A Link fd


    Hi,

    I have a simple problem. On my JSP page, I have a form with the following code:

    form name="langform" action="/servlet/MultilingualServlet" method="post"
    select id="languages" name="languages"
    optionEnglish/option
    optionWelsh/option
    /selectinput type="sumbit" name="submitbutton"
    /formMy question is instead of using the input type... tags, is it possible to call the servlet via a HTML link. So in this case, replace the input type... tag to a href... tags and call the servlet like this?

    Thanks in advance,
    Rizwan

  • RELEVANCY SCORE 2.53

    DB:2.53:Struts Taglib Problem jc


    I have a jsp with:

    %@ taglib uri="/tags/struts-html" prefix="html" %

    and in the wel.xml:

    taglib
    taglib-uri/tags/struts-html/taglib-uri
    taglib-location/WEB-INF/struts-html.tld/taglib-location
    /taglib

    ..but the compiler cant find the tld file:

    Error(2): java.io.FileNotFoundException: /tags/struts-html

    it seems JDeveloper dosent know to look up /tags/struts-html in the web.xml file but instead tries to load a file called /tags/struts-html. If I replace /tags/struts-html with /WEB-INF/Struts-html.tld in the JSP then it compiles ok. Is there som trick to make Jdev (10.1.2) look in the web.xml for the filename? I have tried renaming the URI to http://tags/struts-html so that it dosent look like a filename but then it just tries to load /http:/tags/struts-html instead of looking for the URI in the web.xml.

    DB:2.53:Struts Taglib Problem jc

    Struts 1.27, Tomcat 5.5.9, Taglib 1.1

    I spent 3 full days on this stuff. The solution for me seems to be

    1) Make sure you have the latest jakarta taglib. include standard.jar and jstl.jar in your app's web-inf/lib

    2) MAKE SURE YOU HAVE THE LATEST xercesImpl.jar AND NOT xerces.jar (My problem!)

    3) Change app web.xml to use web-app_2_4.xsd (serlvet 2,4 and jsp 2.0)

    eg:
    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
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4"

    4) No longer need taglib in web.xml. I think it is no longer support and read somewhere that you can include it with a jsp-config. all *.tld are in their support jars

    5) change jsp to use... (YES, WITH THE /jsp/jstl !!!)

    eg:
    %@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %
    %@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %
    %@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %
    %@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %

    Worst case email me at luke@webesse.com :)

  • RELEVANCY SCORE 2.52

    DB:2.52:Scanning Java Webstart Application Classpath kz


    Ok, i got a problem...
    I made a java framework, it scan my classpath looking for service Providers Impl, work to java app, web app but with java web start, i can't access the jars (main jar and resources)... any help?!

    example:

    (classpath scanner framework)
    String classPath = System.getProperty("java.class.path");
    URL base = getClass().getClassLoader().getResource("/../lib/");
    if(base != null) classPath += PATH_SEPARATOR+base.getPath().replaceAll(SPACE, SIMPLE_SPACE);
    base = getClass().getClassLoader().getResource("/../classes/");
    if(base != null) classPath += PATH_SEPARATOR+base.getPath().replaceAll(SPACE, SIMPLE_SPACE);
    File f = null;
    String[] paths = classPath.split(PATH_SEPARATOR);What i need to do? I need access the follow jars (declared in my jnlp).
    jar href="senhas-crypto.jar" main="true"/
    jar href="looks-1.3.1.jar"/
    jar href="pimpas-xml-dom4j-1.0-SNAPSHOT.jar"/
    jar href="pimpas-xml-1.0-SNAPSHOT.jar"/
    jar href="pimpas-logging-1.0-SNAPSHOT.jar"/
    jar href="pimpas-core-1.0-SNAPSHOT.jar"/
    jar href="log4j-1.2.11.jar"/
    jar href="pimpas-util-1.0-SNAPSHOT.jar"/Tkz.

    DB:2.52:Scanning Java Webstart Application Classpath kz

    Since your jars arn't loaded by the application ClassLoader, you can't find them on the classpath. In fact, those files may not even be on the client machine.
    If you are using Java 6, you can get the class loader (Thread.currentThread().getCOntextClassLoader();) and case it to a URLClassLoader, then call URLClassLoader.getURLs() to get a list of the urls.
    you can open these urls and read from them and underneath the caching code will return the contents from the cache if they are cached.

    /Andy

  • RELEVANCY SCORE 2.51

    DB:2.51:Request Editor Button For "Pre" Tags za


    Could someone please include a button with the reply editor to surround the selected text with pre tags?
    I noticed Justin replied in a previous thread about the subject that this is an outstanding request with Jive. But I assume OTN can make some edits to the Jive theme, template, and stuff.

    Looking at the current HTML there is something like the code below for the current bold, italic, and underline buttons:
    lt;a href="#" onclick="styleTag('u',document.postform.body);return false;" title="Click for underline"It mustn't be to hard to duplicate this code and replace the 'u' with 'pre'. I've tested it with some DOM manipulation (good thing Firebug exists) and it works. The JavaScript supplied by Jive is generic enough to use for other tags as well.
    Come on guys; this must be do-able. It would make life on the forums so much easier. Currently there's a lot of posters posting code without the tags which makes it very very hard to read.

    Message was edited by:
    wilfred

    DB:2.51:Request Editor Button For "Pre" Tags za

    #091;pre#093; #091;/pre#093; or #091;code#093; and #091;/code#093; there is no button to make the poster's life simple.

    Nicolas.

  • RELEVANCY SCORE 2.51

    DB:2.51:Custom Tags That Act Like Default Tags? kd



    I'm looking for a way to have a couple of custom tags render how I'd like them to in split/design view.

    For example, I'd like to have ex_a render in design view as a. The end tag would be /a, not /ex_a.

    Another example, ex_img_tg renders as img.

    Is this possible?

    DB:2.51:Custom Tags That Act Like Default Tags? kd


    So the equivalent_tag attribute works for img and a. However I cannot get area to show on image maps. Any idea how this might be achieved? I didn't see anything in the tagspec doc page (http://help.adobe.com/en_US/Dreamweaver/10.0_Extending/WS5b3ccc516d4fbf351e63e3d117f53d610 8-7fb2.html).

    Thanks again for the help.

  • RELEVANCY SCORE 2.51

    DB:2.51:Regex kx


    hi everybody
    i need a regex to handle an html(only a href) link and it s linktext,,
    in example
    from this text;
    * *
    bLINK here/b
    Support us

    i want to get these two,,url and its linktext;
    http://www.linkworth.com/inventory/website_info.php
    * * LINK here Support us

    i can't write its regex (there can be many b or any nested tags,,i want to drop them)

    DB:2.51:Regex kx

    hi everybody
    i need a regex to handle an html(only a href) link and it s linktext,,
    in example
    from this text;
    * *
    bLINK here/b
    Support us

    i want to get these two,,url and its linktext;
    http://www.linkworth.com/inventory/website_info.php
    * * LINK here Support us

    i can't write its regex (there can be many b or any nested tags,,i want to drop them)

  • RELEVANCY SCORE 2.51

    DB:2.51:Problems With Mp3 Id3 Tags s9



    I recently purchased a Sansa Fuze to replace my old Rio Carbon. On the whole I'm happy with it, but there are some problems with its handling of MP3 tags that are really annoying.Initially I just copied over the MP3s I'd been using with my old player. They played fine, but I found that the tags were cut short.This is a big problem with multi CD box sets. For example, 'Complete Peel Sessions (Disc 1)' is cut down to 'Complete Peel Sessions (Di' and the tracks from all six discs are mixed together.I tried loading on my original FLAC rip and that displayed the correct tags. I assumed that the MP3 ID3v1 tags were the problem, that for some reason the Sansa was defaulting to only reading them when handling MP3s.I tried stripping the ID3v1 tags from my MP3s, leaving just the ID3v2 tags, and reloaded them onto the Sansa player. Unfortunately now it is displaying no tags at all, all the albums are listed under 'unknown'. Surely the Sansa Fuze can deal with ID3v2 tags? It would seem extremely primitive to be stuck with cut off track/album titles.Any idea how to get the player displaying tags correctly?

    DB:2.51:Problems With Mp3 Id3 Tags s9

    Thanks. I'm using Foobar 2000 and it works fine now that I've changed the ID3v2 writer compatibility mode in its advanced preferences.

  • RELEVANCY SCORE 2.51

    DB:2.51:Function Replace In File (Again ...) d8


    I'm still looking for a function that replace a string "toto" for example by another one "hello" for example in a HTML file.

    If anybody kows ...

    Thanks

    DB:2.51:Function Replace In File (Again ...) d8

    Wow, that is almost equal to my suggestion, except that my implementation use a do-while loop instead of a while loop :)

  • RELEVANCY SCORE 2.51

    DB:2.51:Remove Xml Tags From Xml Element In Oracle 1j


    Hi,
    I have a requirement where I have to remove all the xml tags from xml element with banks, currently I'm using replace 4 times to replace all different types of xml tags, performance is really bad. is there any better option to remove xml tags from xml data leaving the actual data. please find the example data below.

    select

    TO_CLOB(REPLACE(REPLACE(REPLACE(REPLACE
    ('ConcatcolumnConcatGroupIDMyText Data goes here /ConcatGroupIDConcatGroupIDData agian/ConcatGroupID/Concatcolumn','ConcatGroupID'),'Concatcolumn'),'/ConcatGroupID',';'),';/Concatcolumn')) AS Concatcolumn

    from dual

    **************Out put*************

    MyText Data goes here ;Data agian

    DB:2.51:Remove Xml Tags From Xml Element In Oracle 1j

    In case you want to try regular expressions:
    select
    regexp_replace(
    regexp_replace('ConcatcolumnConcatGroupIDMyText Data goes here /ConcatGroupIDConcatGroupIDData agian/ConcatGroupID/Concatcolumn',
    'ConcatGroupID([^]*)/ConcatGroupID', '\1;', 1, 0),
    'Concatcolumn(.*);/Concatcolumn', '\1')
    from dual;

  • RELEVANCY SCORE 2.51

    DB:2.51:Unwanted P/P Tags? s9



    I have a pretty solid template design, everything looks great, but when I create a new page in contribute it adds an unwanted paragraph between my header and my navigation bar. I have the navigation bar as an uneditable region, as well as the header. Does anyone know why contribute is adding this paragraph for no reason? Below is an example:

    !-- START NAV BARS --

    div id="nav-bars"

    p style="margin-top: 0; margin-bottom: 0;"nbsp;/p //THIS IS AUTOMATICALLY ADDED BY CONTRIBUTE UPON OPENING THE PAGE FOR EDITING.

    div id="upper-nav-bar"

    ul class="tabs" style="margin-bottom: 0"

    li class="first"a href="#"About Us/a
    div a href="#"Administration/a a href="#"Meet the Dean/a a href="#"Research/a a href="#"Vision/a a href="#"FAQs/a a href="#"Contact Us/a a href="#"Giving/a a href="#"HHS Stats/a a href="#"IFBC Award/a /div /li

    Any help is MUCH appreciated!! -Amanda

    DB:2.51:Unwanted P/P Tags? s9


    administrate and select the role and choose the appropriate line space option, read the details in this blog - http://blogs.adobe.com/contribute/2010/06/paragraph_spacing_options_in_a.html

  • RELEVANCY SCORE 2.51

    DB:2.51:Problem With Two Patterns xk


    Hi everyone,

    Today I am trying to replace some line that match a pattern within a file, but first, I have to clean up the string I'm using as the pattern. All the double sets of double quotes within a string, need to go, and it's not working out. I can't tell if I'm making this more difficult than it has to be. Would someone please explain where I'm going wrong, or offer a different solution? Thanks!

    BufferedReader dis = null;
    String record = null;
    int recCount = 0;
    int findCount = 0;
    int noMatch = 0;
    String oldUrl = "http://www.my.com";
    try {

    dis = openInput( inputFilename );

    while ( (record=dis.readLine()) != null recCount 1) {
    recCount++;
    String[] fields = record.split(",");
    String htmFile = fields[0];
    String newUrl = fields[1];
    String findLn = fields[2];
    //Pattern pattern = Pattern.compile( forRegex(oldUrl) );
    Pattern pattern = Pattern.compile( oldUrl );

    System.out.println("Record: " + htmFile);
    System.out.println("New url: " + newUrl);
    System.out.println("Find ln: " + findLn);

    // reduce sets of double quotes in findLn
    // or create two double sets in htmLine

    // the double dboule quotes to replace with
    //String j = "href=\"\"http://www.my.com\"\"";
    //String j = "href=" + "\"" + "\"http://www.my.com" + "\"" + "\"";
    String j = "\"a href=\"\"http://www.my.com\"\"\"";
    // the single double quotes we're looking for
    String x = "--\"a href=\"http://www.my.com\"\"--";

    System.out.println(j);
    System.out.println(x);
    Pattern p = Pattern.compile( j, 16);
    Matcher m = pattern.matcher( findLn );

    findLn = m.replaceFirst(x);
    String tmpLn = m.toString();
    System.out.println("FINDLN: " + findLn);
    System.out.println(+ tmpLn);In English, I want to replace the string findLn "a href=""http://www.my.com""" with "a href="http://www.my.com""

    Here is my console output.

    Find ln: "a href=""http://www.my.com"""
    "a href=""http://www.my.com"""
    --"a href="http://www.my.com""--
    FINDLN: "a href=--""--""
    java.util.regex.Matcher[pattern=""http://www.my.com" region=0,34 lastmatch=""http://www.my.com"]
    Recs in: 1
    Matches: 0
    Errors : 0

    DB:2.51:Problem With Two Patterns xk

    That probably explains some of my unexpected results. If the field is not available when Eclipse tries to auto-complete, I guess then that even if I hand-type that value, it to be ignored. Eventually the team will upgrade, but for now I have a workaround. Thanks!

  • RELEVANCY SCORE 2.51

    DB:2.51:Outlook Rss Client Mishandles Headlines m3


    I'm trying to use Outlook 2010 as an RSS reader for our Jira RSS feed but outlook parses the headlines to include HTML tags. Example resultant headline:
    a href='https://jira.xxx.net/secure/ViewProfile.jspa?name=richard.a.xxx%40xxx.com'Richard xxx/a changed the Fix Version/s to '7.2s4' on a href=https://jira.xxx.net/browse/TAC-11605TAC-11605/a (rhetorical questions
    during setup_soma720)

    The feed itself looks like this
    xxx - Activity Stream

    Friday, November 12, 2010 9:59 AM
    Richard xxx changed the Fix Version/s to '7.2' on TAC-11608 (7.2.0 ks-post.log errors)
    Richard xxx changed the Fix Version/s to '7.2s4' on TAC-11605 (rhetorical questions during setup_soma720)
    Friday, November 12, 2010 9:59 AM
    Richard xxx changed the Fix Version/s to '7.2s4' on TAC-11605 (rhetorical questions during setup_soma720)
    I tried to make an outlook rule to strip everything between the brackets (which would be good enough) but there's no find and replace.

    DB:2.51:Outlook Rss Client Mishandles Headlines m3

    Thanks Roady. I think this counts as answered (by you)

  • RELEVANCY SCORE 2.51

    DB:2.51:Help With Getting Links From Html Page d7


    Hello all. I found the sun tutorial for getting HREF values from a tags in an HTML document at http://java.sun.com/developer/TechTips/1999/tt0923.html. My question now is how would a person add the ability to get the text of the link to this code?

    For example:
    Provided the HTML code:a href="link.html"example/aReturned is: href=link.html text=example

    DB:2.51:Help With Getting Links From Html Page d7

    I think the TechTip you've linked too is quite old (1999). I would write a simple SAXParser that uses TagSoup (http://www.ccil.org/~cowan/XML/tagsoup/) as its input source. In your handler, simply set a flag and reset a StringBuffer to collect the contents of any a.../a element. Simplified:

    public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
    if ("a".equals(localName)) {
    currentHref = attributes.getValue("href");
    if (currentHref != null currentHref.length() 0) {
    inLink = true;

    //reset the string buffer
    buffer.setLength(0);
    }
    }
    }

    public void characters(char[] ch, int start, int length) throws SAXException {
    if (inLink) buf.append(ch, start, length);
    }

    public void endElement(String uri, String localName, String qName) throws SAXException {
    if ("a".equals(localName) inLink) {
    inLink = false;

    //add link to the stack
    links.add(new Link(currentHref, buffer.toString()));
    }
    }Completely untested, of course... .Good luck...

  • RELEVANCY SCORE 2.51

    DB:2.51:Href In Xml 3x


    Hi,
    i have a procedure in sql developer where i am trying to add a href tags in order for them to be placed in an xml file. It seems that it doesn't like a href tag.

    create or replace package body TLTest is

    procedure WriteHeader is
    begin
    owa_util.mime_header('application/xml', FALSE );
    owa_util.http_header_close;

    htp.p('data wiki-url = "http://simile.mit.edu/shelf/" wiki-section="Simile JFK Timeline" ');
    end;

    procedure WriteFooter is
    begin
    htp.p('/data');
    end;

    procedure WriteEvent(pName IN Varchar2,
    pImpDate IN Date,
    pEccts IN VARCHAR2) IS

    begin
    htp.p('event');
    htp.p('start="' || to_char(pImpDate, 'Dy FMMon DD YYYY') || ' 00:00:00 GMT-0000"');
    htp.p('end="' || to_char(pImpDate, 'Dy FMMon DD YYYY') || ' 00:00:00 GMT-0000"');
    htp.p('a href = "http://yahoo.co.uk" ');
    htp.p('title= "' || pName||'/a' || '" ');
    htp.p( peccts );
    htp.p('/event');

    end;

    Any ideas as to what i could do
    Thanks

    DB:2.51:Href In Xml 3x

    Sorry this is the full code, I want hyperlinks to appear for each title. I have also tried this but when i view the xml file it doesn't like the symbol or the anchor tag. I don't know what i'im missing

    create or replace package body TLTest is

    procedure WriteHeader is
    begin
    owa_util.mime_header('application/xml', FALSE );
    owa_util.http_header_close;

    htp.p('data wiki-url = "http://simile.mit.edu/shelf/" wiki-section="Simile JFK Timeline" ');
    end;

    procedure WriteFooter is
    begin
    htp.p('/data');
    end;

    procedure WriteEvent(pName IN Varchar2,
    pImpDate IN Date,
    pEccts IN VARCHAR2) IS

    begin
    htp.p('event');
    htp.p('start="' || to_char(pImpDate, 'Dy FMMon DD YYYY') || ' 00:00:00 GMT-0000"');
    htp.p('end="' || to_char(pImpDate, 'Dy FMMon DD YYYY') || ' 00:00:00 GMT-0000"');
    htp.p('lt;a href=quote;http://yahoo.co.ukquote;gt;');
    htp.p('title= "' || pName||'lt;/agt;' || '" ');
    htp.p( peccts );
    htp.p('/event');

    end;

    procedure AllEmps is
    begin
    WriteHeader;

    for rec in (select NAME, imp_date, eccts
    from monica_timeline3
    where imp_date is not null
    AND imp_date (sysdate-365)
    and imp_date =(sysdate+90))

    loop
    WriteEvent(rec.NAME, rec.imp_date, rec.eccts);
    end loop;

    WriteFooter;
    end;

    end TLTest;

    Thanks

  • RELEVANCY SCORE 2.51

    DB:2.51:Rendering Html Formatted Data In A Report : ≪Br/≫ Are Not Being Parsed 1s


    Hi,

    I'm having trouble with lt;BR/ tags getting parsed correctly on my BIP report.

    I have a RichTextEditor in my ADF application, linked to a CLOB column in the database. I have setup my dataset to wrap the XHTML data in CDATA, as described in http://docs.tpu.ru/docs/oracle/en/fmw/11.1.1.6.0/bi.1111/e22258.pdf (chapter 3.12.2).
    The output in my xml data file is this:

    RTECODE
    ![CDATA[font style="font-style: italic; font-weight: bold;" size="3"a href="http://www.oracle.com"oracle/a/font br/
    font size="6"a href="www.oracle.com"www.oracle.com/a/fontbr/br/]]
    /RTECODEWhen I use this field in my BIP report ("?RTECODE?"), without using the html2fo function, it shows exactly what's between the CDATA brackets:

    font style="font-style: italic; font-weight: bold;" size="3"a href="http://www.oracle.com"oracle/a/font br/
    font size="6"a href="www.oracle.com"www.oracle.com/a/fontbr/br/If I then use the html2fo function ("?html2fo: RTECODE?"), as described in http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#CHDCEEIJ, every html tag gets parsed correctly as you would expect, except for the lt;BR/ tags!?
    This is quite annoying as entering newlines is critical part to formatting this field.

    I have noticed that in the first manual I posted, they use the above example, but in the second link they use this one:
    RTECODE
    ![CDATA[pfont style="font-style: italic; font-weight: bold;" size="3"
    a href="http://www.oracle.com"oracle/a/font /p
    pfont size="6"a href="http://docs.oracle.com/"Oracle Documentation/a
    /font/p]]/RTECODEThey replaced the lt;BR/ tags with lt;P lt;/P. I've tried this approach, and the lt;P tags gets indeed parsed correctly.
    BUT.. when entering newlines in a RTE, lt;BR/ tags get inserted, not lt;P. Also there isn't any button in the RTE toolbar that can insert a paragraph. Having such a button would suffice as a solution, but I cannot expect our customers to manually edit each RTE text in 'edit mode' and replace each lt;BR/ tag with a lt;P...

    Is there any solution to correctly parse the lt;BR/ tags in my reports?

    Thanks in advance,

    Gauthier

    Edited by: Gauthier Ooms on Sep 19, 2012 9:21 AM

    DB:2.51:Rendering Html Formatted Data In A Report : ≪Br/≫ Are Not Being Parsed 1s

    I ended up modifying xdo-core.jar on the BIP server, so lt;BR tags get parsed correctly. Consider this thread answered.

    Edited by: Gauthier Ooms on Sep 21, 2012 3:45 PM

  • RELEVANCY SCORE 2.51

    DB:2.51:Href Anchor Tags Not Working 9x



    I am trying to add anchor tags into a webpage to enable us to link to specific sections of a rather long page.

    I am using a name="name" which works in Chrome, Safari and IE, however in Firefox, it is constantly reloading the page.

    An example of this is here http://www.sippcentre.co.uk/infocentre/Article/news-views-december-13#soft-closed

    Am I doing something wrong?

    DB:2.51:Href Anchor Tags Not Working 9x



    It looks that there is some JavaScript running on the web page that gets triggered by a hash (#) symbol in the URL in the location bar (document.location).

    It works with JavaScript disabled.