Portlet Entitlement Problem with Quote in Portlet Title

I have a portlet originally called "Manager's Toolbox". When I
try to set an entitlement for this portlet to be for the manager
role only, the entitlement is ignored. The portlet shows up
for all users.
I renamed it to "Managers Toolbox" (without the quote), recreated
the portal and added the entitlement, and now it works correctly.

David,
Sounds like a bug, we'll fix it.
Thanks,
Phil
"David Lu" <[email protected]> wrote in message
news:4027fdba$[email protected]..
>
I have a portlet originally called "Manager's Toolbox". When I
try to set an entitlement for this portlet to be for the manager
role only, the entitlement is ignored. The portlet shows up
for all users.
I renamed it to "Managers Toolbox" (without the quote), recreated
the portal and added the entitlement, and now it works correctly.

Similar Messages

  • Problem with Lotus Notes portlet

    Hi all, i have another problem with the latest Lotus Notes portlet (version 9.0.4.0.0_05062003). I have installed and configured the portlet and the domino server to be used with the Basic Authentication. I followed all the steps in the installation document and everything seems OK. However when i include these portlets in a page, some links (not all) doesn't work, in example: the new contact link. Any of these links opens a new browser window. This window displays that i have successfully configured Lotus Notes External Application, but i can't do anything to perform the action, as to add the new contact. Does anybody have the same problem?, it's a bug? or i have committed an error?
    Finally, if i configure the portlet and the domino server to be used with session based Authentication i have the same problem that Remy Vanderplaetsen has posted.
    Any help will be very appreciated.
    Thanks a lot!

    I guess this problem is again with the same portal issue. You need to apply the patch as mentioned in the FAQ.html document for LotusNotes. Please refer this document on how to get and apply the portal patches so that it could work.

  • Problems with Autonomy Lite Portlets for WLP 4.0

    Hello,
    Ive recenlty installed the autonomy lite portlets, but am getting no functionality.
    i followed the install docs exactly, but get a "cant communicate with DRE" error
    in my portlet. Also, when i run a search, I always get no results even though the
    logs would suggests that all my dir material has been imported. Any ideas? does the
    DRE have to reside on a separate port/machine? I am also getting an error in the
    logs saying "cant bind to index port." Any ideas there?

    Hi,
    I not sure if this help you, but I've noticed the same problem with downloading contacts on my E65 after upgrade HF from v2.1 to 3.0. Both automatic and manual download of contacts from phone didn't work anymore. But I've found very simple "workaround"on forums - to send all contacts as a card via bluetooth to HF - and ... I works. The only limitation is that you must send updated or new contacts manually from phone to HF. Maybe it will be useful...
    J.

  • Problems with JSR 168 Portlets

    Hi!, I�m working with JSR 168 Portlets and after successfully deploying it into the portal (6.2) I�m not able to get any content. I�ve already made a war (I couldn�t make the studio 5u1, (PB 2) simulate it :( ), and it seems to be correctly deployed inside appsrv (7). I placed some JSP�s and HTML�s and they are available from a browser but not from the portal. The first error I got was Channel time out but then I managed to get Content not Available. It seems that the portal is not able to reach the JSP�s but I�m not sure. Is there any restriction about folders with this or just by deploying the war makes everything? Is it necessary to set the files inside the portal folder? I�ve read the manuals many times and I can�t find a suitable tutorial (the only I got is one to make a provider or a channel :( ), nor a detaliled how to. I�ll thank any advice.
    Cheers , Pablo.

    Hi, Thanks for answering, the log says the following:
    2004/04/28 12:13:32.372 ART | null | WARNING | Thread-74 | {default={bookmarkContentPage=|/bookmarkportlet/content.jsp, bookmarkEditPage=|/bookmarkportlet/edit.jsp, bookmarkHelpPage=|/bookmarkportlet/help.jsp, targets=|Sun home page=http://www.sun.com|Oracle home page=http://www.oracle.com|AOL home page=http://www.aol.com, windowPref=|all_new}, isReadOnly={bookmarkContentPage=false, bookmarkEditPage=false, bookmarkHelpPage=false, targets=false, windowPref=false}} (original) | -
    2004/04/28 12:13:32.373 ART | null | WARNING | Thread-74 | Loading __Portlet__bookmarkContentPage value is |/bookmarkportlet/content.jsp | -
    2004/04/28 12:13:32.380 ART | null | INFO | Thread-75 | PortletContainer.invokePAE(): invoking:
    app name /portletsamples
    portlet name NotepadPortlet
    action RENDER | -
    2004/04/28 12:13:32.399 ART | null | WARNING | Thread-75 | {default={contentPage=|/notepad/content.jsp, editPage=|/notepad/edit.jsp, helpPage=|/notepad/help.jsp, categories=, displayMax=|5}, isReadOnly={contentPage=false, editPage=false, helpPage=false, categories=false, displayMax=false}} (original) | -
    2004/04/28 12:13:32.400 ART | null | WARNING | Thread-75 | Loading __Portlet__contentPage value is |/notepad/content.jsp | -
    2004/04/28 12:13:32.405 ART | null | INFO | Thread-76 | PortletContainer.invokePAE(): invoking:
    app name /portletsamples
    portlet name WeatherPortlet
    action RENDER | -
    2004/04/28 12:13:32.424 ART | null | WARNING | Thread-76 | {default={zip=|95054, unit=|F, contentPage=|/weather/weatherView.jsp, editPage=|/weather/weatherEdit.jsp, helpPage=|/weather/weatherHelp.jsp}, isReadOnly={zip=false, unit=false, contentPage=false, editPage=false, helpPage=false}} (original) | -
    2004/04/28 12:13:32.425 ART | null | WARNING | Thread-76 | Loading __Portlet__zip value is |95054 | -
    2004/04/28 12:13:32.426 ART | null | WARNING | Thread-76 | {default={zip=|95054, unit=|F, contentPage=|/weather/weatherView.jsp, editPage=|/weather/weatherEdit.jsp, helpPage=|/weather/weatherHelp.jsp}, isReadOnly={zip=false, unit=false, contentPage=false, editPage=false, helpPage=false}} (original) | -
    2004/04/28 12:13:32.427 ART | null | WARNING | Thread-76 | Loading __Portlet__unit value is |F | -
    2004/04/28 12:13:32.466 ART | null | WARNING | Thread-74 | {default={bookmarkContentPage=|/bookmarkportlet/content.jsp, bookmarkEditPage=|/bookmarkportlet/edit.jsp, bookmarkHelpPage=|/bookmarkportlet/help.jsp, targets=|Sun home page=http://www.sun.com|Oracle home page=http://www.oracle.com|AOL home page=http://www.aol.com, windowPref=|all_new}, isReadOnly={bookmarkContentPage=false, bookmarkEditPage=false, bookmarkHelpPage=false, targets=false, windowPref=false}} (original) | -
    2004/04/28 12:13:32.467 ART | null | WARNING | Thread-74 | Loading __Portlet__targets value is |Sun home page=http://www.sun.com|Oracle home page=http://www.oracle.com|AOL home page=http://www.aol.com | -
    2004/04/28 12:13:32.468 ART | null | WARNING | Thread-74 | {default={bookmarkContentPage=|/bookmarkportlet/content.jsp, bookmarkEditPage=|/bookmarkportlet/edit.jsp, bookmarkHelpPage=|/bookmarkportlet/help.jsp, targets=|Sun home page=http://www.sun.com|Oracle home page=http://www.oracle.com|AOL home page=http://www.aol.com, windowPref=|all_new}, isReadOnly={bookmarkContentPage=false, bookmarkEditPage=false, bookmarkHelpPage=false, targets=false, windowPref=false}} (original) | -
    2004/04/28 12:13:32.469 ART | null | WARNING | Thread-74 | Loading __Portlet__windowPref value is |all_new | -
    2004/04/28 12:13:32.745 ART | null | WARNING | Thread-75 | {default={contentPage=|/notepad/content.jsp, editPage=|/notepad/edit.jsp, helpPage=|/notepad/help.jsp, categories=, displayMax=|5}, isReadOnly={contentPage=false, editPage=false, helpPage=false, categories=false, displayMax=false}} (original) | -
    2004/04/28 12:13:32.745 ART | null | WARNING | Thread-75 | Loading __Portlet__categories value is | -
    2004/04/28 12:13:32.746 ART | null | WARNING | Thread-75 | {default={contentPage=|/notepad/content.jsp, editPage=|/notepad/edit.jsp, helpPage=|/notepad/help.jsp, categories=, displayMax=|5}, isReadOnly={contentPage=false, editPage=false, helpPage=false, categories=false, displayMax=false}} (original) | -
    2004/04/28 12:13:32.747 ART | null | WARNING | Thread-75 | Loading __Portlet__displayMax value is |5 | -
    2004/04/28 12:22:38.703 ART | null | INFO | Thread-81 | PortletContainer.invokePAE(): invoking:
    app name /SUNONEPortlets
    portlet name MGPortletSUNONE
    action RENDER | -
    2004/04/28 12:22:38.740 ART | null | INFO | Thread-82 | PortletContainer.invokePAE(): invoking:
    app name /portletsamples
    portlet name JSPPortlet
    action RENDER | -
    2004/04/28 13:12:31.240 ART | null | INFO | Thread-93 | PortletContainer.invokePAE(): invoking:
    app name /SUNONEPortlets
    portlet name MGPortletSUNONE
    action RENDER | -
    2004/04/28 13:12:31.279 ART | null | INFO | Thread-94 | PortletContainer.invokePAE(): invoking:
    app name /portletsamples
    portlet name JSPPortlet
    in the file portletcontainer.log, I don�t understand that about DNS or proxy if I�m trying to render a local JSP. I�ve just deployed the JSP inside the portlet application war file. What do the pipes "|" mean?, is that the mistake?. Thanks in advance!!, Pablo :)

  • Problems with quotes when using processXSL...

    Hi!
    I need some help solving a problem with getting processXSL to output the quote (") character in a text file.
    (Oracle Release 9.2.0.6.0)
    CREATE TABLE tmp_lob(tmp_clob clob);
    SET SCAN OFF
    DECLARE
    l_xml_doc dbms_xmldom.DOMDocument;
              l_xsl_doc dbms_xmldom.DOMDocument;
              l_file CLOB;
              l_xsl_pro dbms_xslprocessor.Processor;
              l_xsl dbms_xslprocessor.Stylesheet;
    BEGIN
    l_xsl_doc := dbms_xmldom.newDOMDocument(xmltype.createXML(
    '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text" encoding="UTF-8"/>
    <xsl:variable name="qt" select="'"'"/>
    <xsl:template match="//WORD">
    <xsl:value-of select="concat($qt,.,$qt)"/>
    </xsl:template>
    </xsl:stylesheet>')
    l_xml_doc := dbms_xmldom.newDOMDocument(xmltype.createXML(
    '<DOCUMENT>
    <WORD>Hello World</WORD>
    </DOCUMENT>')
    l_xsl := dbms_xslprocessor.newStylesheet(l_xsl_doc, null);
    l_xsl_pro := dbms_xslprocessor.newProcessor;
    dbms_xslprocessor.processXSL(l_xsl_pro, l_xsl, l_xml_doc, l_file);
    dbms_xslprocessor.freeProcessor(l_xsl_pro);
    INSERT INTO tmp_lob(tmp_clob)
    VALUES (l_file);
    COMMIT;
    END;
    SELECT * FROM tmp_lob;
    TMP_CLOB
    Hello World
    Desired output is "Hello World" (with the quotes)!
    FYI...
    SELECT *
    FROM nls_database_parameters
    WHERE parameter LIKE '%CHARACTERSET%'
    PARAMETER VALUE
    NLS_CHARACTERSET WE8ISO8859P1
    NLS_NCHAR_CHARACTERSET AL16UTF16
    Can anyone help?
    Thanks,
    Nick
    Message was edited by:
    nbeer

    Does this help...
    SQL> set define off
    SQL> select xmltransform(xmltype('<Foo><WORD>Hello World</WORD></Foo>'),xmltype('<xsl:stylesheet ver
    sion="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    2 <xsl:output method="text" encoding="UTF-8"/>
    3 <xsl:template match="//WORD">
    4 <xsl:text>&quot;</xsl:text><xsl:value-of select="."/><xsl:text>&quot;</xsl:text>
    5 </xsl:template>
    6 </xsl:stylesheet>')) from dual
    7 /
    XMLTRANSFORM(XMLTYPE('<FOO><WORD>HELLOWORLD</WORD></FOO>'),XMLTYPE('<XSL:STYLESH
    &quot;Hello World&quot;
    SQL> set define off
    SQL> select extractValue(xmltransform(xmltype('<Foo><WORD>Hello World</WORD></Foo>'),xmltype('<xsl:s
    tylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    2 <xsl:output method="text" encoding="UTF-8"/>
    3 <xsl:template match="//WORD">
    4 <xsl:text>&quot;</xsl:text><xsl:value-of select="."/><xsl:text>&quot;</xsl:text>
    5 </xsl:template>
    6 </xsl:stylesheet>')),'/text()') from dual
    7 /
    EXTRACTVALUE(XMLTRANSFORM(XMLTYPE('<FOO><WORD>HELLOWORLD</WORD></FOO>'),XMLTYPE(
    "Hello World"
    SQL>

  • Problem with JSF AJAX portlets

    I am seeing the following issues with JSF portlets
    1) When you AJAX enable the portlet, they will not work. There are some javascript errors on the component we are using. They work fine if we don't AJAX enable them
    2) I had 2 portlets. 1 JSF and 1 pageflow portlet. If I click on a link in pageflow portlet and after the page gets refreshed, nothing will work in JSF potlet. Again javacript errors
    If we had only 1 portlet on the page, JSF portlet works fine
    Do you think the prototype javacript library used in the portal causing any issues?

    I tried with <naming:namingContainer> immediatly after the f:view tag , but still getting same errors
    I am psoting the generated html and javascript error
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
         <head>
    <title>New Portal Desktop</title><meta name="bea-portal-meta-skeleton" content="/framework/skeletons/default"><meta name="bea-portal-meta-skin" content="/framework/skins/default"><meta name="bea-portal-meta-skin-images" content="/framework/skins/default/images"><link rel="stylesheet" type="text/css" href="/sampleWeb/framework/skins/default/css/body.css"><link type="text/css" href="/sampleWeb/framework/skins/default/css/button.css" rel="stylesheet"><link href="/sampleWeb/framework/skins/default/alert/css/window-alert.css" rel="stylesheet" type="text/css"><link href="/sampleWeb/framework/skins/default/css/window.css" rel="stylesheet" type="text/css"><link type="text/css" rel="stylesheet" href="/sampleWeb/framework/skins/default/plain/css/window-plain.css"><link type="text/css" rel="stylesheet" href="/sampleWeb/framework/skins/default/css/portlet.css"><link type="text/css" rel="stylesheet" href="/sampleWeb/framework/skins/default/css/book.css"><link type="text/css" rel="stylesheet" href="/sampleWeb/framework/skins/default/css/layout.css"><link href="/sampleWeb/framework/skins/default/css/form.css" rel="stylesheet" type="text/css"><script src="/sampleWeb/framework/skins/shared/js/console.js" type="text/javascript"></script><script src="/sampleWeb/framework/skins/shared/js/cookies.js" type="text/javascript"></script><script src="/sampleWeb/framework/skins/shared/js/state.js" type="text/javascript"></script><script src="/sampleWeb/framework/skins/default/js/util.js" type="text/javascript"></script><script type="text/javascript" src="/sampleWeb/framework/skins/default/js/skin.js"></script><script src="/sampleWeb/framework/skins/default/js/menu.js" type="text/javascript"></script><script src="/sampleWeb/framework/skins/default/js/delete.js" type="text/javascript"></script><script src="/sampleWeb/framework/skins/default/js/float.js" type="text/javascript"></script><script type="text/javascript" src="/sampleWeb/framework/skins/default/js/menufx.js"></script>
         </head>
    <body
    class="bea-portal-body"
    onload="initSkin();"
    ><div class="bea-portal-body-content">
    <div
    class="bea-portal-body-header"
    >
    </div>
    <div
    class="bea-portal-book-primary"
    >
    <div class="bea-portal-ie-table-buffer-div">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td class="bea-portal-book-primary-menu-single-container" align="left" nowrap="nowrap">
    <ul
    class="bea-portal-book-primary-menu-single"
    ><li class="bea-portal-book-primary-menu-single-item">Page 1</li><li class="bea-portal-book-primary-menu-single-item">New Book</li><li class="bea-portal-book-primary-menu-single-item-active"><span>New Book</span></li></ul>
    </td>
    </tr>
    </table>
    </div>
    <div
    class="bea-portal-book-primary-content"
    >
    <div
    class="bea-portal-book-invisible"
    >
    <div class="bea-portal-ie-table-buffer-div">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td class="bea-portal-book-menu-single-container" align="left" nowrap="nowrap">
    <ul
    class="bea-portal-book-menu-single"
    ><li class="bea-portal-book-menu-single-item-active"><span>New Page</span></li></ul>
    </td>
    </tr>
    </table>
    </div>
    <div
    class="bea-portal-book-content"
    >
    <div
    class="bea-portal-book-page"
    >
    <table
    class="bea-portal-layout-grid"
    cellspacing="0"
    >
    <tr>
    <td class="bea-portal-layout-placeholder-container"
    width="30%"
    >
    <div
    class="bea-portal-layout-placeholder"
    >
    <div
    class="bea-portal-window"
    width="100%"
    >
    <div
    class="bea-portal-window-titlebar"
    >
    <div class="bea-portal-ie-table-buffer-div">
    <table class="bea-portal-window-titlebar-container" cellspacing="0">
    <tr>
    <td class="bea-portal-window-titlebar-title" nowrap="nowrap">Untitled</td>
    <td class="bea-portal-window-titlebar-buttons" nowrap="nowrap">
    </td>
    </tr>
    </table>
    </div>
    </div>
    <div
    class="bea-portal-window-content"
    >
    <html>
    <head>
    </head>
    <body>
         <p>Beehive NetUI-JavaServer Faces Page - /sampleWeb/sample1/index.faces</p>
    <form id="portletInstance_6:_id1" method="post" action="http://localhost:7001/sampleWeb/sample.portal?_nfpb=true&_windowLabel=portletInstance_6&_nffvid=%2FsampleWeb%2Fsample1%2Findex.faces&_pageLabel=defaultDesktopLabel_page_2" enctype="application/x-www-form-urlencoded">
    <a href="# onclick="document.forms['portletInstance_6:_id1'['portletInstance_6:_id1:_idcl'].value='portletInstance_6:_id1:_id2'; document.forms['portletInstance_6:_id1'].submit(); return false;">sample</a>
    <input type="hidden" name="portletInstance_6:_id1" value="portletInstance_6:_id1" /></form>
    </body>
    </html>
    </div>
    </div>
    </div>
    </td>
    <td class="bea-portal-layout-placeholder-container"
    width="70%"
    >
    <div
    class="bea-portal-layout-placeholder"
    >
    <div
    class="bea-portal-window"
    width="100%"
    >
    <div
    class="bea-portal-window-titlebar"
    >
    <div class="bea-portal-ie-table-buffer-div">
    <table class="bea-portal-window-titlebar-container" cellspacing="0">
    <tr>
    <td class="bea-portal-window-titlebar-title" nowrap="nowrap">Untitled</td>
    <td class="bea-portal-window-titlebar-buttons" nowrap="nowrap">
    </td>
    </tr>
    </table>
    </div>
    </div>
    <div
    class="bea-portal-window-content"
    >
    <html>
    <head>
    </head>
    <body>
         <p>Beehive NetUI-JavaServer Faces Page - /sampleWeb/sample1/index.faces</p>
    <form id="portletInstance_5:_id1" method="post" action="http://localhost:7001/sampleWeb/sample.portal?_nfpb=true&_windowLabel=portletInstance_5&_nffvid=%2FsampleWeb%2Fsample1%2Findex.faces&_pageLabel=defaultDesktopLabel_page_2" enctype="application/x-www-form-urlencoded">
    <a href="#" onclick="document.forms['portletInstance_5:_id1']['portletInstance_5:_id1:_idcl'].value='portletInstance_5:_id1:_id2'; document.forms['portletInstance_5:_id1'].submit(); return false;">sample</a>
    <input type="hidden" name="portletInstance_5:_id1" value="portletInstance_5:_id1" /><input type="hidden" name="portletInstance_5:_id1:_idcl" /></form>
    </body>
    </html>
    </div>
    </div>
    </div>
    </td>
    </tr>
    </table>
    </div>
    </div>
    </div>
    </div>
    </div>
    <div
    class="bea-portal-body-footer"
    >
    </div>
    </div></body>
    </html>
    Javascript error
    Line: 292
    Char: 1
    Error: 'portletinstance_6_id1:_idcl' is null or not an object
    Code: 0
    URL: http://localhost:7001/sampleWeb/sample.portal?_nfpb=true&_windowLabel=
    portletInstance_5&_nffvid=%2FsampleWeb%2Fsample1%2Findex.faces&_pageLabel=
    defaultDesktopLabel_page_2

  • Problem with Custom Search Portlet

    Sorry that I mistakenly posted this in the UI forum.
    We created a portlet that is to return its search results on the portals search results page using the steps in the following url [url http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_14122_717084_0_0_18/5_0_search_results_page_url_format.htm]
    Our current portal version is 6.1. The actual search part works and returns documents but does something special have to be done to get search terms from our portlet into the analytics search terms table? It had worked in our earlier version of the portal 5.x. but no longer does after the upgrade. Any help would be greatly appreciated.

    I have the same problem.
    Any ideas?

  • Problems with Quote Printing template

    Hi,
    I have been trying to assign a custom PDF template to the Print Quote functionality within sales. However, when I try to create a template using Code: ASOPRINT, Application: Order capture, and Data Definition: Quote Printing I get the following message:
    "You entered a duplicate template entry. Please change the Name, Code and/or Application and reapply."
    I therefore tried to remove the original seeded xsl template by entering an 'end date' of yesterday, however this message still appeared but now no template is assigned to the print quote function within HTML quoting. Is there a way to get this back again or preferably add a new one - It appears the system is still recognising the ASOPRINT code from the seeded template despite its removal.
    Any help would be greatly appreciated
    Anjohn

    Hi,
    I could create another template to solve my problem. But according to the XMLP documentation, I studied that both the application code of Data definition and template should match. In my case my data definition and template has the same code ASOPRT. And I created another template with the code ASOPRINT. Both my templates work. Now, I am kind of confused. Can anyone help me in undersatnding this.
    Thank you,
    Sowjanya

  • Xml/html to jsp - problem with quotes in attribute values

    I am trying to convert a static html document into a jsp using an xsl stylesheet, but run into problems trying to use the jsp expression syntax inside of attribute values.
    Here is a sample of the source file:
    <input type="text" name="firstName" value=""/>
    Here is what I want the resulting jsp file to look like:
    <input type="text" name="firstName" value="<jsp:expression>customer.getField("firstName") </jsp:expression>">
    Here is what part of my stylesheet looks like:
    <xsl:template match="input">
    <xsl:copy>
    <xsl:copy-of select="@type"/>
    <xsl:copy-of select="@name"/>
    <xsl:attribute name="value">
    <xsl:text disable-output-escaping="yes"><jsp:expression></xsl:text>
    <xsl:text disable-output-escaping="yes">customer.getField(</xsl:text>
    <xsl:text disable-output-escaping="yes">"</xsl:text>
    <xsl:value-of select="@name"/> ")
    <xsl:text disable-output-escaping="yes">")</xsl:text>
    <xsl:text disable-output-escaping="yes"></jsp:expression></xsl:text>
    </xsl:attribute>
    </xsl:copy>
    </xsl:template>
    The problem i have is with the <%= customer.getField("firstName") %>. I have tried several different ways of inserting the double quotes around firstName, but no matter what I try, it always uses the entity reference instead of actually putting the " character. The jsp container will not accept the entity.
    I am assuming that the problem is with trying to place double quotes inside of an attribute value. Any ideas how to get around this?
    Thanks
    David

    Which App Server are you using?
    You should just be able to escape the double quotes.
    If that doesn't work, it's a bug in the app-server.
    Alternatively, you can use single quotes around the
    attribute value.
    Hope that helps,
    AlexSorry, I'm an idiot. By escaping you meant the unicode character escape "\u0022". I had not tried that. However, once i realized what you meant, I tried it, and it worked. Thanks for your help.
    David

  • Again same problem with quotes, but cant find a proper sol

    I've gone thru so many posts, but cud'nt really find a solution. someone please help me here. I have a single insert function, which does all inserts for many tables, so cant use ppdstmt.setString(1, "value").
    I am trying to insert some data into SQL server database(thru jdbc). The normal data works just fine, but if the user inserts some data which have quotation marks, then its throwing an error that is invalid character.
    ex: received ->enters correctly into db
    but
    rec'd -> unable to
    Insert into table(name) values('Oreilly'); //works fine
    Insert into table(name) values('O'reilly'); //throws an error, sql exception
    because the sql server is unable to find the matching quote. I would like to replace it with a ` or double quotes, but I am unable to replace it. I am not using a string to insert a value, I am using an Object. so I am unable to use any preparedStatement also(like ppdstmt.setString(1,"value"). Also I cant use replaceAll function, because, I am using jdk1.3. Is there any other way, I can replace ' with '' or `. The following is my code for inserting data.
    private void insert(String pQualifierName, String pTableName, Map pValueMap)
    m1Buffer.append("INSERT INTO ").append(QualifyTableName(pQualifierName, pTableName)).append(" (");
    m2Buffer.append(" VALUES (");
    // go over all values
    boolean isNotFirst = false;
    for (Iterator i = pValueMap.keySet().iterator(); i.hasNext();)
    if (isNotFirst)
    m1Buffer.append(", ");
    m2Buffer.append(", ");
    isNotFirst = true;
    String aColumnName = (String) i.next();
    // add the column name to the first part
    m1Buffer.append(aColumnName);
    // add a "?" to the second part, as well as adding the value to the parameter list
    if(pValueMap.get(aColumnName)!= null) {
    //aColumnName=aColumnName.replace( '\'', '`');
    m2Buffer.append("'");
    m2Buffer.append(pValueMap.get(aColumnName));
    m2Buffer.append("'");
    } else {
    m2Buffer.append(pValueMap.get(aColumnName)); //appends the value we entered
    m1Buffer.append(")");
    m2Buffer.append(")");
    protected void insert()
    verifyUnbacked();
    try
    StatementBuilder aBuilder = StatementBuilder.insertStatement(accessQualifierName(), accessTableName(), mUnbackedMap);
    Connection aConnection = ConnectionPool.getConnection();
    try
    PreparedStatement aPreparedStatement = aBuilder.generatePreparedStatement(aConnection);
    try
    aPreparedStatement.executeUpdate();
    Thanks

    Barun_guha,
    Thanks for your code, but the problem is pValueMap.get(aColumnName) is an Object and it cannot be initialized as a String .
    scsi-boy,
    I am attaching the 2 files related, StatementBuilder.java and AbstractEntity.java.
    Basically, the statementBuilder.java builds the SQL stmt and AbstractEntity.java does the update, delete and inserts(it has the PreparedStament). So could someone suggest me a solution based on this code.
    Thanks
    import firstpro.util.AbstractType;
    import java.sql.*;
    import java.util.*;
    public class StatementBuilder
    private static final StatementType SELECT = new StatementType("SELECT");
    private static final StatementType INSERT = new StatementType("INSERT");
    private static final StatementType IDENTITY = new StatementType("IDENTITY");
    private static final StatementType UPDATE = new StatementType("UPDATE");
    private static final StatementType DELETE = new StatementType("DELETE");
    * is true when the prepared statment can be set as "read-only" (i.e., a select of some kind).
    private boolean mIsReadOnly = false;
    * denotes what operation this statement represents.
    private StatementType mStatementType;
    * accumulates all the table names used in the statement.
    private List mTableList = new ArrayList();
    * holds the sequence of tables followed in join expressions.
    private LinkedList mTableStack = new LinkedList();
    * accumulates the table column names referenced in the statement.
    private Set mReferenceSet = new HashSet();
    * holds the column names used in the select result.
    private List mResultColumnList = new ArrayList();
    * is the first part of the generated SQL statement.
    private StringBuffer m1Buffer = new StringBuffer();
    * is the second part of the generated SQL statement.
    private StringBuffer m2Buffer = new StringBuffer();
    * holds the list of actual parameter values to substitute for the "?" symbols in the generated SQL.
    private List mParameterList = new ArrayList();
    * constructs an instance with the given type.
    * @param pStatementType
    private StatementBuilder(StatementType pStatementType)
    mStatementType = pStatementType;
    * creates a "select" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @param pResult
    * @return
    static StatementBuilder selectStatement(String pQualifierName, String pTableName, AbstractEntityCondition pCondition, AbstractEntityResult pResult)
    StatementBuilder aBuilder = new StatementBuilder(SELECT);
    aBuilder.select(pQualifierName, pTableName, pCondition, pResult);
    return aBuilder;
    * creates a "select distinct" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @param pResult
    * @return
    static StatementBuilder distinctStatement(String pQualifierName, String pTableName, AbstractEntityCondition pCondition, AbstractEntityResult pResult)
    StatementBuilder aBuilder = new StatementBuilder(SELECT);
    aBuilder.distinct(pQualifierName, pTableName, pCondition, pResult);
    return aBuilder;
    * creates a "select count(*)" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @return
    static StatementBuilder countStatement(String pQualifierName, String pTableName, AbstractEntityCondition pCondition)
    StatementBuilder aBuilder = new StatementBuilder(SELECT);
    aBuilder.count(pQualifierName, pTableName, pCondition);
    return aBuilder;
    * creates in "insert" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pValueMap
    * @return
    static StatementBuilder insertStatement(String pQualifierName, String pTableName, Map pValueMap)
    StatementBuilder aBuilder = new StatementBuilder(INSERT);
    aBuilder.insert(pQualifierName, pTableName, pValueMap);
    return aBuilder;
    * creates an "identity" statement (for retrieving the generated primary key from the DB after an insert).
    * @param pTypeName
    * @return
    static StatementBuilder identityStatement(String pTypeName)
    StatementBuilder aBuilder = new StatementBuilder(IDENTITY);
    aBuilder.identity(pTypeName);
    return aBuilder;
    * creates an "update" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pValueMap
    * @param pCondition
    * @return
    static StatementBuilder updateStatement(String pQualifierName, String pTableName, Map pValueMap, AbstractEntityCondition pCondition)
    StatementBuilder aBuilder = new StatementBuilder(UPDATE);
    aBuilder.update(pQualifierName, pTableName, pValueMap, pCondition);
    return aBuilder;
    * creates a "delete" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @return
    static StatementBuilder deleteStatement(String pQualifierName, String pTableName, AbstractEntityCondition pCondition)
    StatementBuilder aBuilder = new StatementBuilder(DELETE);
    aBuilder.delete(pQualifierName, pTableName, pCondition);
    return aBuilder;
    * emits a predicate of "true".
    void trueAlways()
    appendTrue();
    * emits a predicate of "false".
    void falseAlways()
    appendFalse();
    * emits a "join" predicate.
    * @param pColumnName
    * @param pQualifierName
    * @param pJoinedTableName
    * @param pJoinedColumnName
    * @param pCondition
    void join(String pColumnName, String pQualifierName, String pJoinedTableName, String pJoinedColumnName, AbstractEntityCondition pCondition)
    if (!SELECT.equals(mStatementType))
    throw new RuntimeException("Join only allowed in SELECT");
    appendOpening();
    appendColumn(pColumnName);
    appendEqualTo();
    pushTable(pQualifierName, pJoinedTableName);
    appendColumn(pJoinedColumnName);
    appendClosing();
    appendAnd();
    appendOpening();
    appendCondition(pCondition);
    appendClosing();
    popTable();
    * emits an "and" predicate.
    * @param pCondition1
    * @param pCondition2
    void and(AbstractEntityCondition pCondition1, AbstractEntityCondition pCondition2)
    appendOpening();
    appendCondition(pCondition1);
    appendClosing();
    appendAnd();
    appendOpening();
    appendCondition(pCondition2);
    appendClosing();
    * emits an "and" predicate.
    * @param pConditionArray
    void and(AbstractEntityCondition[] pConditionArray)
    if (0 == pConditionArray.length)
    appendTrue();
    else
    for (int i = 0; i < pConditionArray.length; i++)
    if (i != 0)
    appendAnd();
    appendOpening();
    appendCondition(pConditionArray);
    appendClosing();
    * emits an "or" predicate.
    * @param pCondition1
    * @param pCondition2
    void or(AbstractEntityCondition pCondition1, AbstractEntityCondition pCondition2)
    appendOpening();
    appendCondition(pCondition1);
    appendClosing();
    appendOr();
    appendOpening();
    appendCondition(pCondition2);
    appendClosing();
    * emits an "or" predicate.
    * @param pConditionArray
    void or(AbstractEntityCondition[] pConditionArray)
    if (0 == pConditionArray.length)
    appendFalse();
    else
    for (int i = 0; i < pConditionArray.length; i++)
    if (i != 0)
    appendOr();
    appendOpening();
    appendCondition(pConditionArray[i]);
    appendClosing();
    * emits a "not" predicate.
    * @param pCondition
    void not(AbstractEntityCondition pCondition)
    appendNot();
    appendOpening();
    appendCondition(pCondition);
    appendClosing();
    * emits an "is null" predicate.
    * @param pColumnName
    void isNull(String pColumnName)
    appendColumn(pColumnName);
    appendIsNull();
    * emits an "is not null" predicate.
    * @param pColumnName
    void isNotNull(String pColumnName)
    appendColumn(pColumnName);
    appendIsNotNull();
    * emits a "between" predicate.
    * @param pColumnName
    * @param pValue1
    * @param pValue2
    void isBetween(String pColumnName, Object pValue1, Object pValue2)
    appendColumn(pColumnName);
    appendBetween();
    appendValue(pValue1);
    appendAnd();
    appendValue(pValue2);
    * emits a case-insensitive "between" predicate.
    * @param pColumnName
    * @param pValue1
    * @param pValue2
    void isBetweenIgnoringCase(String pColumnName, Object pValue1, Object pValue2)
    appendColumnUpper(pColumnName);
    appendBetween();
    appendValueUpper(pValue1);
    appendAnd();
    appendValueUpper(pValue2);
    * emits a "like" predicate.
    * @param pColumnName
    * @param pValue
    void isLike(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendLike();
    appendValue(pValue);
    * emits a case-insensitive "like" predicate.
    * @param pColumnName
    * @param pValue
    void isLikeIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendLike();
    appendValueUpper(pValue);
    * emits an "equals" predicate.
    * @param pColumnName
    * @param pValue
    void isEqualTo(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendEqualTo();
    appendValue(pValue);
    * emits a case-insensitive "equals" predicate.
    * @param pColumnName
    * @param pValue
    void isEqualToIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendEqualTo();
    appendValueUpper(pValue);
    * emits an "unequals" predicate.
    * @param pColumnName
    * @param pValue
    void isNotEqualTo(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendNotEqualTo();
    appendValue(pValue);
    * emits a case-insensitive "unequals" predicate.
    * @param pColumnName
    * @param pValue
    void isNotEqualToIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendNotEqualTo();
    appendValueUpper(pValue);
    * emits a "less than" predicate.
    * @param pColumnName
    * @param pValue
    void isLessThan(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendLessThan();
    appendValue(pValue);
    * emits a case-insensitive "less than" predicate.
    * @param pColumnName
    * @param pValue
    void isLessThanIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendLessThan();
    appendValueUpper(pValue);
    * emits a "less than or equals" predicate.
    * @param pColumnName
    * @param pValue
    void isLessThanOrEqualTo(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendLessThanOrEqualTo();
    appendValue(pValue);
    * emits a case-insensitive "less than or equals" predicate.
    * @param pColumnName
    * @param pValue
    void isLessThanOrEqualToIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendLessThanOrEqualTo();
    appendValueUpper(pValue);
    * emits a "greater than" predicate.
    * @param pColumnName
    * @param pValue
    void isGreaterThan(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendGreaterThan();
    appendValue(pValue);
    * emits a case-insensitive "greater than" predicate.
    * @param pColumnName
    * @param pValue
    void isGreaterThanIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendGreaterThan();
    appendValueUpper(pValue);
    * emits a "greater than or equals" predicate.
    * @param pColumnName
    * @param pValue
    void isGreaterThanOrEqualTo(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendGreaterThanOrEqualTo();
    appendValue(pValue);
    * emits a case-insensitive "greater than or equals" predicate.
    * @param pColumnName
    * @param pValue
    void isGreaterThanOrEqualToIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendGreaterThanOrEqualTo();
    appendValueUpper(pValue);
    * builds a "select" statment.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @param pResult
    private void select(String pQualifierName, String pTableName, AbstractEntityCondition pCondition, AbstractEntityResult pResult)
    // this statment only reads from the DB
    mIsReadOnly = true;
    // initialize the table stack using the selected table
    // the first push will write " FROM ..."
    pushTable(pQualifierName, pTableName);
    // build SELECT
    StringBuffer sb = new StringBuffer();
    // go over all columns
    for (int i = 0; i < pResult.mColumnNameList.size(); i++)
    // first one has command, others separate with commas
    sb.append(i == 0 ? "SELECT DISTINCT TOP 100 " : ", ");
    // get column name reference
    String aQualifiedColumnName = QualifyColumnName((String) pResult.mColumnNameList.get(i));
    // append to the statment
    sb.append(aQualifiedColumnName);
    // add to the result list
    mResultColumnList.add(aQualifiedColumnName);
    sb.append(" ");
    // insert the "SELECT ..." before the " FROM ..." that was written on the push above
    m1Buffer.insert(0, sb);
    // do WHERE
    if (pCondition != null)
    m2Buffer.append(" WHERE ");
    // will add to both "FROM..." in first buffer and to "WHERE ..." in second buffer
    // this call does most of the hard work, and handles joins to other tables, etc.
    appendCondition(pCondition);
    // do ORDER BY
    for (int i = 0; i < pResult.mOrderByList.size(); i++)
    m2Buffer.append(i == 0 ? " ORDER BY " : ", ");
    // column name
    String aQualifiedColumnName = QualifyColumnName((String) pResult.mOrderByList.get(i));
    // direction (ASC or DESC)
    m2Buffer.append(aQualifiedColumnName).append(" ").append(pResult.mOrderByDirectionList.get(i));
    popTable();
    * is currently identical to "select"
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @param pResult
    private void distinct(String pQualifierName, String pTableName, AbstractEntityCondition pCondition, AbstractEntityResult pResult)
    select(pQualifierName, pTableName, pCondition, pResult);
    * builds a "count(*)" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    private void count(String pQualifierName, String pTableName, AbstractEntityCondition pCondition)
    // this statment only reads from the DB
    mIsReadOnly = true;
    // initialize the table stack using the selected table
    // the first push will write " FROM ..."
    pushTable(pQualifierName, pTableName);
    // build and insert "SELECT ..." before the " FROM ..." that was written on the push above
    m1Buffer.insert(0, "SELECT COUNT(*) ");
    // do WHERE
    if (pCondition != null)
    m2Buffer.append(" WHERE ");
    // will add to both "FROM..." in first buffer and to "WHERE ..." in second buffer
    // this call does most of the hard work, and handles joins to other tables, etc.
    appendCondition(pCondition);
    // finished with this table
    popTable();
    private void insert(String pQualifierName, String pTableName, Map pValueMap)
    // m1Buffer.append("set identity_insert " + pTableName + " off "+ " ").append("INSERT INTO ").append(QualifyTableName(pQualifierName, pTableName)).append(" (");
    m1Buffer.append("INSERT INTO ").append(QualifyTableName(pQualifierName, pTableName)).append(" (");
    m2Buffer.append(" VALUES (");
    // go over all values
    boolean isNotFirst = false;
    for (Iterator i = pValueMap.keySet().iterator(); i.hasNext();)
    if (isNotFirst)
    m1Buffer.append(", ");
    m2Buffer.append(", ");
    isNotFirst = true;
    String aColumnName = (String) i.next();
    // add the column name to the first part
    m1Buffer.append(aColumnName);
    // add a "?" to the second part, as well as adding the value to the parameter list
    if(pValueMap.get(aColumnName)!= null) {
    //Object column= pValueMap.get(aColumnName);
    aColumnName=aColumnName.replace( '\'', '`');
    m2Buffer.append("'");
    m2Buffer.append(pValueMap.get(aColumnName));
    m2Buffer.append("'");
    } else {
    m2Buffer.append(pValueMap.get(aColumnName));
    m1Buffer.append(")");
    m2Buffer.append(")");
    * builds a key-retrieval statement.
    //* @param pTypeName
    protected void identity(String pTypeName)
    m2Buffer.append("SELECT CAST( @@IDENTITY AS "+ pTypeName + ")" );
    private void update(String pQualifierName, String pTableName, Map pValueMap, AbstractEntityCondition pCondition)
    m1Buffer.append("UPDATE ").append(QualifyTableName(pQualifierName, pTableName)).append(" SET ");
    // go over all values
    boolean isNotFirst = false;
    for (Iterator i = pValueMap.keySet().iterator(); i.hasNext();)
    if (isNotFirst)
    m1Buffer.append(", ");
    isNotFirst = true;
    String aColumnName = (String) i.next();
    // add the column name to the first part
    m1Buffer.append(aColumnName);
    m1Buffer.append(" = ");
    // add a "?" to the second part, as well as adding the value to the parameter list
    if((pValueMap.get(aColumnName)) == null) {
    m1Buffer.append(pValueMap.get(aColumnName));
    // System.out.println("NUll values are= " + pValueMap.get(aColumnName));
    } else{
    m1Buffer.append("'");
    m1Buffer.append(pValueMap.get(aColumnName));
    m1Buffer.append("'");
    //System.out.println("Not Null values ARE*********" + pValueMap.get(aColumnName));
    // do WHERE
    if (pCondition != null)
    m2Buffer.append(" WHERE ");
    // this will normally be a key condition (one row updated at a time)
    appendCondition(pCondition); // will add to "WHERE ..." clause
    * builds a "delete" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    private void delete(String pQualifierName, String pTableName, AbstractEntityCondition pCondition)
    m1Buffer.append("DELETE FROM ").append(QualifyTableName(pQualifierName, pTableName));
    // do WHERE
    if (pCondition != null)
    m2Buffer.append(" WHERE ");
    // this will normally be a key condition (one row deleted at a time)
    appendCondition(pCondition); // will add to "WHERE ..." clause
    * will get and save a unique (to this statment) correlation name of the given table
    * to be used in the WHERE clause. This is in case the same table joined to
    * more than once in the same query.
    * @param pTableName
    * @return
    private String getCorrelationName(String pTableName)
    String aCorrelationName = pTableName;
    while (mReferenceSet.contains(aCorrelationName))
    aCorrelationName = aCorrelationName + "_OTHER";
    mReferenceSet.add(aCorrelationName);
    return aCorrelationName;
    * will prepend the qualifier (if any) to the table name.
    * @param pQualifierName
    * @param pTableName
    * @return
    private static String QualifyTableName(String pQualifierName, String pTableName)
    return (pQualifierName == null ? "" : pQualifierName + ".") + pTableName;
    * will make the given table the current table for parts of the expression below the current node.
    * This is used anytime a join is needed.
    * @param pQualifierName
    * @param pTableName
    private void pushTable(String pQualifierName, String pTableName)
    String aCorrelationName = getCorrelationName(pTableName);
    String aTableDeclaration = QualifyTableName(pQualifierName, pTableName) + " " + aCorrelationName;
    m1Buffer.append(m1Buffer.length() == 0 ? " FROM " : ", ");
    m1Buffer.append(aTableDeclaration);
    mTableList.add(aTableDeclaration);
    mTableStack.addFirst(aCorrelationName); // push
    * will revert to the previous current table. This is used after a join is finished building.
    private void popTable()
    mTableStack.removeFirst(); // pop
    * gets the table at the top of the stack.
    * @return
    private String getCurrentTable()
    return (String) mTableStack.getFirst();
    * will qualify the given column name with the name of the current table.
    * @param pColumnName
    * @return
    private String QualifyColumnName(String pColumnName)
    if (SELECT.equals(mStatementType))
    return getCurrentTable() + "." + pColumnName;
    return pColumnName;
    * will qualify the column name and append it to the second buffer.
    * @param pColumnName
    private void appendColumn(String pColumnName)
    m2Buffer.append(QualifyColumnName(pColumnName));
    * will qualify the column name and append it to the second buffer, adding the "UPPER" function.
    * @param pColumnName
    private void appendColumnUpper(String pColumnName)
    appendUpper();
    appendOpening();
    appendColumn(pColumnName);
    appendClosing();
    * will append "?" to the second buffer and add the value to the parameter list,
    * or append "NULL" if the value is null.
    * @param pValue
    private void appendValue(Object pValue)
    if (pValue == null)
    m2Buffer.append("NULL");
    else
    m2Buffer.append("?");
    mParameterList.add(pValue);
    * will append "?" to the second buffer and add the upper-cased value to the parameter list,
    * or append "NULL" if the value is null.
    * @param pValue
    private void appendValueUpper(Object pValue)
    appendValue(null == pValue ? null : pValue.toString().toUpperCase());
    * will append the condition to the statement. This initiates a series of calls that walks
    * the expression tree and builds the SQL accordingly by calls back to methods of this class.
    * @param pCondition
    private void appendCondition(AbstractEntityCondition pCondition)
    pCondition.buildPredicate(this);
    * appends a true condition.
    private void appendTrue()
    m2Buffer.append("1=1");
    * appends a false condition.
    private void appendFalse()
    m2Buffer.append("1=0");
    * appends an opening parenthesis.
    private void appendOpening()
    m2Buffer.append("(");
    * appends a closing parenthesis.
    private void appendClosing()
    m2Buffer.append(")");
    * appends "is null".
    private void appendIsNull()
    m2Buffer.append(" IS NULL");
    * appends "is not null".
    private void appendIsNotNull()
    m2Buffer.append(" IS NOT NULL");
    private void appendAnd()
    m2Buffer.append(" AND ");
    private void appendOr()
    m2Buffer.append(" OR ");
    private void appendNot()
    m2Buffer.append("NOT ");
    private void appendLike()
    m2Buffer.append(" LIKE ");
    private void appendBetween()
    m2Buffer.append(" BETWEEN ");
    private void appendEqualTo()
    m2Buffer.append(" = ");
    private void appendNotEqualTo()
    m2Buffer.append(" <> ");
    private void appendLessThan()
    m2Buffer.append(" < ");
    private void appendLessThanOrEqualTo()
    m2Buffer.append(" <= ");
    private void appendGreaterThan()
    m2Buffer.append(" > ");
    private void appendGreaterThanOrEqualTo()
    m2Buffer.append(" >= ");
    * appends the upper-casing function.
    private void appendUpper()
    m2Buffer.append("UCASE");
    * constructs the final SQL expression, builds a prepared statement with it,
    * and fills the prepared statement with the parameter values.
    * @param pConnection
    * @return
    * @throws SQLException
    PreparedStatement generatePreparedStatement(Connection pConnection) throws SQLException
    pConnection.setReadOnly(mIsReadOnly);
    String sql = m1Buffer + " " + m2Buffer;
    System.out.println("GENERATED SQL = ");
    System.out.println(sql);
    System.out.println("GENERATED SQL = ");
    System.out.println(sql);
    System.out.println("PARAMETER LIST = ");
    System.out.println(mParameterList);
    PreparedStatement aPreparedStatement = pConnection.prepareStatement(sql);
    for (int i = 0; i < mParameterList.size(); i++)
    aPreparedStatement.setObject(1 + i, mParameterList.get(i));
    return aPreparedStatement;
    * is an enumerated type.
    private static final class StatementType extends AbstractType
    private StatementType(String pType)
    super(pType);
    [i]package firstpro.persistence;
    import multnomah.database.ConnectionPool;
    import java.sql.*;
    import java.util.Date;
    import java.util.*;
    * is the abstract base class for all generated entity classes.
    * It encompasses all functionality not specifically tied to a given field.
    public abstract class AbstractEntity
    * contains all "open" entities in the system.
    * This is to insure that two threads cannot update the same entity at the same time.
    * It is a weak hash map, so that entries do not prevent garbage collection if something is left open.
    static Map sOpenEntityMap = new WeakHashMap();
    * is true when the entity represents a row in a table
    boolean mIsBacked = false;
    * is true when the entity is in a state that allows updating
    boolean mIsMutable = false;
    * contains the values that exist in the underlying row

  • NSM 3 Problem with Quotas in Microsoft environment

    I have assigned quotas of 2GB for all my teachers. I am moving home folders from a Novell environment to a Microsoft environment. Files move, but somehow, the move process does not complete on some users. Although the home directory in AD only has about 1 GB in documents, the engine reports that the directory is full. When I look at the path analysis report for that user, it shows no available space. Even if I increase the quota with NSM quota manager, it still reports no available space.

    Hi, can you send an email to storagemanager"@"novell.com and we can get
    a remote session open to see if we can resolve this for you. Please
    send a Runtime Config report with the email. The Runtime config report
    is generated through the reports tab of the UI.
    Thank you,
    NSM TEAM
    jromero wrote:
    > Thanks for the reply. I have tried all three options. Here's the latest
    > scenario:
    >
    > Unser eDir home directory: 1.3 GB
    > AD home directory quota 2GB
    > NSM Quota Manager reports 2GB in use
    > Explorer reports 1.3 GB in use
    > If I increase quota using NSM to 3 GB, job will proceed until it again
    > reports no more space.
    >
    >
    > Novell File Management Suite Team;2111665 Wrote:
    >> jromero,
    >> When you went through the data migration wizard, what did select in
    >> regards to quota?
    >>
    >> thanks,
    >> NSM Development
    >>
    >> On 6/2/2011 6:06 PM, jromero wrote:
    >>> I have assigned quotas of 2GB for all my teachers. I am moving home
    >>> folders from a Novell environment to a Microsoft environment. Files
    >>> move, but somehow, the move process does not complete on some users.
    >>> Although the home directory in AD only has about 1 GB in documents,
    >> the
    >>> engine reports that the directory is full. When I look at the path
    >>> analysis report for that user, it shows no available space. Even if
    >> I
    >>> increase the quota with NSM quota manager, it still reports no
    >> available
    >>> space.
    >>>
    >>>
    >
    >

  • Problem with quotes

    Hie,
    I want to use the quotes characters &laquo and &raquo
    (for example : &laquo test &raquo) in my HTML page built
    with DW8. When I display the page using FIREFOX, the result is OK.
    But when I use INTERNET EXPLORER6 then the quotes appear the wrong
    way (their position is too high).
    Can you give me a solution ?
    Thanks,

    Show us your page, please.
    This post would be better on the DW general forum, for what
    that's worth....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "sylpogi" <[email protected]> wrote in
    message
    news:eja69q$f49$[email protected]..
    > Hie,
    > I want to use the quotes characters &laquo and
    &raquo (for example :
    > &laquo
    > test &raquo) in my HTML page built with DW8. When I
    display the page using
    > FIREFOX, the result is OK. But when I use INTERNET
    EXPLORER6 then the
    > quotes
    > appear the wrong way (their position is too high).
    > Can you give me a solution ?
    > Thanks,
    >

  • Problems with "crawl" option in titles

    I'm doing some editing on a video that requires I have large amounts of text crawl across the bottom of the screen. I have selected "crawl" under "type" and selected "Start off screen" and "End off screen". Unfortunately, when I go to write more than a few words the curser does not follow the text past the text box I've created on screen. Any text written past this amount does not scroll after I've rendered the file. Has anyone else had this problem and know a fix?

    NM guys, I figured out a fix. I changed my "X position" to something obscenely large and that seems to have fixed things. Hope this helps someone else out with the same issue.

  • Problem with speed of long title

    I am helping a friend with a project. At the end of the movie he wants to add around 70 lines of text to present a summary of the project. I cannot figure out how to get the scrolling to slow down enough so that it would be readable. Any suggestions? Is there a way to present the text in a slide format similar to powerpoint? Are there any good title plugins that would help with this? Thanks. [email protected]

    Hi Larry,
    I have to comment your very first posting here, sorry, don't misunderstand as a offence, but… :
    you're form the Microsoft/Windows world, aren't you, a socalled switcher?
    On PCs in many cases , a MS Office package is preinstalled. not so in the world of Apple; plus, we Mac-user prefer to use apps, what they were meant for. PP is a presentation tool, a slideshow maker so to say… NOT a layout app. many PC user do so. I've seen people (mis)using Excel (=spreadsheet calculator) as a "drawing colorful boxes" layout app…
    So, on a Mac, to produce a picture, a jpeg, I would recommend to use a drawing tool… as in Appleworks, or a designated layout app as Pages/iWork, both pre-installed (…as a demo) on many Macs. or, GraphicConverter… or, for the richer ones (cheaper as MS Office) Photoshop Elements, a very powerful drawing tool… a very good combo with editing tools as iM or FCE…
    sure, for doing some text charts, you can use ANY app, even textedit, and with some clicks you produce an jpg or pict out of it - Quciktime is a very powerful system compound, doing marvelous convertings…
    for long rolling credits, use the mentioned "long credits app"
    besides: to do frame-by-frame titles, you can do use the iM internal titles, no need to import single jpegs… from a slideshow maker…

  • Problem with hebrow font in title

    Hello,
    I have premiere pro cs4 and I can't write in hebrow in the title.
    I read the discussion about this subject regarding premiere pro 2 -
    http://forums.adobe.com/thread/390942
    but the site - www.pashtosoft.com  doesn't exist any nore.
    Thank you for your help,
    yaniv 

    Here's one recent ARTICLE, that might help.
    More to come, as I locate them.
    Hunt

Maybe you are looking for

  • Listen to serial port open by another applicatio​n

    I have a test setup where another application is communicating with a device over a serial port and I want my Labview gui to be able to listen to the communication. Since two applications cannot have the same serial port open I can't just open the po

  • No sound when playing video from organizer in PSe 4.0

    I am currently having a problem with previewing video in the organizer in Photoshop Elements 6.0.  The problem is that there is no sound.  I thought something went wrong during the import of these videos from the camcorder to the PC hard drive (impor

  • Displaying more than One table in a dataTable

    have 3 types of Document. Each type of Document is storing into different table also with different column. For displaying then individually i have created separate Beans for them n working fine. Now i want to show all document in one dataTable. I ha

  • Need help for error ORA-06550

    0 down vote favorite Can any body please help I am getting below error for the code. ORA-06550: line 20, column 33: PLS-00306: wrong number or types of arguments in call to '||' ORA-06550: line 20, column 12: PL/SQL: Statement ignored ...condition1:

  • Safari won't start properly - update related??

    Suddenly , when I open Safari, it doesn't start properly - I just get the spinning wheel icon and I cannot browse websites. ( Luckily, I have Chrome which is working. I don't know if it was related the recent Delta os update so I downloaded the 'Comb