How to change "=" command to "like" command in jsp

Hi all,
I have a change request where i need to get the output for all the values that are simila to a string and not exactly like a string. Currently the code is like
obj_id = dfSession.apiGet("id", "enterprise_site" + " where object_name='" + strDocumentNumber + "'");
It uses API command to get the values.
Here strDocumentNumber is the string which we need check. Currently its checking for the exact value "=" and i need to change and put a "like" so that it checks for any string simialar to strDocumentNumber in the tabe enterprise_site.
I also need to put % in front and back of strDocumentNumber fyi.
I tried all the possible combinations but couldnt succed. Can someone help me out?
Many thanks
Thanks,
Ramki

you fail. Any scriptlet code in JSP is a recipe for disaster.
Anyone trying to change code they don't understand is a recipe for disaster.
Combine the two, and you have a guaranteed disaster.

Similar Messages

  • Safari shortcuts: How to change "Command-1" to select previous tab

    Hey all,
    Trying to customize my Safari shortcuts but having trouble changing "select previous/next tab" shortcuts to "Command-1/2" as I would prefer them to be. Even after changing them in the preferences the "Command-1" just opens the first link on my bookmarks bar (and Comman-2 the second respectively).
    The question is: How to change the "select previous/next tab" shortcuts to Command-1 and Command-2? I bet many people would prefer this to the standard shortcuts...
    Cheers!

    You really don't want to change shortcuts within the system. This could mess things up.
    Some Programs allow you to change shortcuts within that program. In the notes for changing short cut they do state that changing short cuts could have conflicts with System shortcuts.
    I would advise not to mess with changing any shortcuts.
    Message was edited by: David M Brewer

  • How to change command line colours

    Dear All :
    i have installed Solaris 9 x86 on my PC . when the PC boots solaris it gives the boot messages in black colour on a white background . how to change that ? i want it to be Black on light yello .

    Hi,
    As I know there is no out of box solution to change builder theme.
    Probably safest way is change css files in HTTP server /i/css
    But I would not bother to do it
    Have you think set instance messages?
    http://download.oracle.com/docs/cd/E17556_01/doc/admin.40/e15521/adm_mg_service_set.htm#sthref361
    You can write HTML there also and add e.g. some images.
    Or if you use Firefox, you can write some client side greasemonkey script to alter look of builder.
    Regards,
    Jari

  • NW04s: How to change column settings like 'do not adjust' 'fit to resuts' e

    In the new Analyzer, old report format: how to change column settings: do not adjust, fit to results, etc.?
    Regards
    -Bala

    Hello,
    In the properties dialog of the Grid and some other items, there is a checkbox by name "Autofit". When this is checked, the result columns are expanded to correct data widths.
    Regards,
    Manjunath

  • How to change default response encoding for not jsp files

    Hi
    Question about Weblogic Portal&Serwer 10.
    For standard web applications from war archiwes, html etc. files are send with default server response
    "Content-Type: text/html; charset=ISO-8859-1".
    The question is how to disable this default header
    or how to change this header to correct encoding.
    PS.
    I found solution only for ear' applications ...
    with file META-INF/weblogic-application.xml and webapp.encoding.default parameter. This works well for ear's.

    Thanks. I feel a bit like a dummy for not seeing that but so it goes. What I was looking for, in a perfect world, was to set a preference to permanently sert a default folder on an external drive to store the .dvdproj files once they are made.......but your suggestion is close enough to my original intention.
    Thanks again.

  • How to change report attributes like heading, sort etc programmatically

    Some of the columns from a classic reports using pl/sql as region source should be sortable. Is it possible to change this attribute (sort = yes) using JavaScript or APEX API?
    David
    Edited by: david on Sep 6, 2011 11:56 PM

    There is something I don't understand here. Why do you need to point at the sxd? What is changing? Like I mentioned before. If the contents of the xsd change, all the report will do is - at best - drop the changed fields so you will be missing data. Perhaps some of the following will help;
    [Crystal Reports Guide To ADO.NET|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20?quicklink=index&overridelayout=true]
    [Crystal Reports For Visual Studio .NET Reporting Off ADO.NET Datasets|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/2091d0c3-da1d-2b10-22be-a3426b183f75?quicklink=index&overridelayout=true]
    [Crystal Reports For Visual Studio 2005 Walkthroughs|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23?quicklink=index&overridelayout=true] (page 332 on).
    Ludek

  • How to change Image color like Channel mixer

    Hello everybody
    I have this problem can anyone help me:
    I want to change Channel mixer color,
    for example, change original Image color to B&W.
    My code:
    docRef.channels[0].color.rgb.red = 30;
    docRef.channels[0].color.rgb.green = 59;
    docRef.channels[0].color.rgb.blue = 11;
    docRef.channels[1].color.rgb.red = 30;
    docRef.channels[1].color.rgb.green = 59;
    docRef.channels[1].color.rgb.blue = 11;
    docRef.channels[2].color.rgb.red = 30;
    docRef.channels[2].color.rgb.green = 59;
    docRef.channels[2].color.rgb.blue = 11;
    But not working in scripting, seems a mistake.
    How should I correct this code? Thank you for your help.

    Hi Michael,
    I try changed 12 parameters in array of num in my js,
    doc.layers[0].mixChannels([[30,59,11,0],[30,59,11,0],[30,59,11,0]],false);
    doc.layers[0].mixChannels([[30,59,11,0]],true); ------  this way is better than ↑
    doc.layers[0].mixChannels([[60,30,10,0],[30,10,60,0],[10,60,30,0]],false);
    doc.layers[0].mixChannels([[39,77,19,0],[35,69,17,0],[27,53,13,0]],false);
    They would show new color as I wantted,
    I forgot ' When monochrome = true, the maximum number of channel value specifications is 1. '
    Thank you for your recommendation.

  • How to change the date time format in jsp

    Hello Sir,
    I am trying to convert the date from one format into another format.
    In SQLServer one fields type as datetime.
    when i tried to display it in jsp with String variable it shown like below,
    2006-08-16 09:11:23.0
    how to format this value as
    Wed, Aug 16, 2006 09:11 AM
    my code is
    java.text.SimpleDateFormat fmt= new java.text.SimpleDateFormat("EEE, MMM d, yyyy K:mm a ");
    fmt.format(string value fetch from dtabase field);
    Plz provide me the solution asap. very urgent request.
    Regards
    venki.

    Hello Sir,
    I am trying to convert the date from one format into
    another format.
    In SQLServer one fields type as datetime.
    when i tried to display it in jsp with String
    variable it shown like below,
    2006-08-16 09:11:23.0
    how to format this value as
    Wed, Aug 16, 2006 09:11 AM
    my code is
    java.text.SimpleDateFormat fmt= new
    java.text.SimpleDateFormat("EEE, MMM d, yyyy K:mm a
    fmt.format(string value fetch from dtabase field);
    Plz provide me the solution asap. very urgent
    request.
    Regards
    venki.Have a look in to the below code
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class DateFormatTest
    public static void main( String[] cmdArgs )
    throws Exception
    SimpleDateFormat sdfInput =
    new SimpleDateFormat( "yyyy-MM-dd" );
    SimpleDateFormat sdfOutput =
    new SimpleDateFormat ( "EEE, d MMM yyyy hh:mm aaa" ); //Change the patterns in to what ever u need
    String textDate = "2001-01-04";
    Date date = sdfInput.parse( textDate );
    System.out.println( sdfOutput.format( date ) );
    i will suggest u to look in to the API doc you will come to know lot many things.

  • How to write statement using LIKE statement in jsp

    hi
    I am new to jsp. I would like to retrive the data from database using like command. But my query dosen't work well. Can you help me in this topic.
    String name = request.getParameter("username");
    int i = st.executeQuery("select * from emp where empname LIKE '%name%'");
    Plase help me..
    Thanking you
    sure...

    Using LIKE :
    ==========
    The following SQL statement will return persons with first names that start with an 'O':
    SELECT * FROM Persons
    WHERE FirstName LIKE 'O%'
    The following SQL statement will return persons with first names that contain the pattern 'la':
    SELECT * FROM Persons
    WHERE FirstName LIKE '%la%'
    Hope this might have helped you
    REGARDS,
    RaHuL

  • How to change datasource viewobject main query in .jsp

    Hi i have datasource DataSource viewobject="test"
    now in .jsp page i need to change it main query and after some things again back to default how i can doo it ?
    Thanks for tips!
    ID.
    Jdeveloper Studio Edition Version 11.1.1.6.0
    ADF Business Components
    11.1.1.61.92

    if you want to change where clause or modify the whole query look here
    Changing the WHERE clause or VO Query at runtime in Oracle ADF | Techartifact

  • Change zoom level like ie

    how to change zoom level like ie?
    == This happened ==
    Every time Firefox opened
    == n/a

    Default Zoom Level extension:
    https://addons.mozilla.org/en-US/firefox/addon/6965

  • Hello, I update my mac pro to 10.10. Why the photoshop cs6 change to slowly now. When I change the tools like brush to command+Z, It's will be freeze a while. why? and how can I improve?

    hello, I update my mac pro to 10.10. Why the photoshop cs6 change to slowly now. When I change the tools like brush to command+Z, It's will be freeze a while. why? and how can I improve?

    what a long post....Apple, btw, does not read this stuff, so ranting, raving, and complaining here might make you feel good, but it does no good at all. That being said, I, too have a Mac Pro Quad Core Xeon with 6 gigs of ram and an nVidia 8800 GT graphics card (not as good as yours, alas) and I've had no problems at all with it. Yes, it doesn't have Thunderbolt, but maybe we Mac pro owners will get lucky and someone will come out with an adapter (probably not). No, you probably don't have to throw away your Mac Pro, but if you do, I'll take it, for a small "recycling" fee >:-) That was a joke.  Yes, the Mac Pro's future isn't quite clear, YET. Hopefully that will improve very soon. As for not being able to upgrade to Mountain Lion. Don't worry about that too much, Nobody is forcing you to do that.  Your Mac Pro won't quit working if it isn't installed. From what  I've heard, you should give the new OS a chance, and wait to get it, in case there might be some bugs, or stuff not working with the new OS, which has been known to happen. Yes, we Mac Pro owners don't like being treated like mushrooms-kept in the dark, and being fed......... but Apple is Apple and it will do what it does, and there is nothing you or me can really do to change that. All I can say is....trust, have faith, be patient, go for a walk, do something else to take your mind off of this problem. IF apple decides to drop the Mac Pro for good, and that's a big "IF", I think they will anger a whole bunch of people
    which isn't good. However, that hasn't happened...YET. Let us hope that it doesn't
    John B

  • How to change a setting in the Java Control Panel with command line

    Hi,
    I am trying to figure out how to change a setting in the Java Control Panel with command line or with a script. I want to enable "Use SSL 2.0 compatible ClientHello format"
    I can't seem to find any documentation on how to change settings in the Java Control Panel via the command line
    Edited by: 897133 on Nov 14, 2011 7:15 AM

    OK figured it out. This is for the next person seeking the same solution.
    When you click on the Java Control Panel (found in the Control panel) in any version of Windows, it first looks for a System Wide Java Configuration (found here: C:\Windows\Sun\Java\Deployment). At this point you must be wondering why you don't have this folder (C:\Windows\Sun\Java\Deployment) or why its empty. Well, for an enterprise environment, you have to create it and place something in it - it doesn't exist by default. So you'll need a script (I used Autoit) to create the directory structure and place the the two files into it. The two files are "deployment.properties" and "deployment.config".
    Example: When you click on the Java Control Panel it first checks to see if this directory exists (C:\Windows\Sun\Java\Deployment) and then checks if there is a "deployment.config". If there is one it opens it and reads it. If it doesn't exist, Java creates user settings found here C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7.
    __deployment.config__
    It should look like this inside:
    *#deployment.config*
    *#Mon Nov 14 13:06:38 AST 2011*
    *# The First line below specifies if this config is mandatory which is simple enough*
    *# The second line just tells Java where to the properties of your Java Configuration*
    *# NOTE: These java settings will be applied to each user file and will overwrite existing ones*
    deployment.system.config.mandatory=True
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    If you look in C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7 for example you will find "deployment.properties". You can use this as your default example and add your settings to it.
    How?
    Easy. If you want to add *"Use SSL 2.0 compatible ClientHello format"*
    Add this line:
    deployment.security.SSLv2Hello=true
    Maybe you want to disable Java update (which is a big problem for enterprises)
    Add these lines:
    deployment.javaws.autodownload=NEVER
    deployment.javaws.autodownload.locked=
    Below is a basic AutoIt script you could use (It compiles the files into the executable. When you compile the script the two Java files must be in the directory you specify in the FileInstall line, which can be anything you choose. It will also create your directory structure):
    #NoTrayIcon
    #RequireAdmin
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_UseX64=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    Func _JavaConfig()
         $ConfigFile_1 = @TempDir & "\deployment.properties"
         $ConfigFile_2 = @TempDir & "\deployment.config"
         FileInstall ("D:\My Documents\Autoit\Java config\deployment.properties", $ConfigFile_1)
    FileInstall ("D:\My Documents\Autoit\Java config\deployment.config", $ConfigFile_2)
         FileCopy($ConfigFile_1, @WindowsDir & "\Sun\Java\Deployment\", 9)
         FileCopy($ConfigFile_2, @WindowsDir & "\Sun\Java\Deployment\", 9)
         Sleep(10000)
         FileDelete(@TempDir & "\deployment.properties")
         FileDelete(@TempDir & "\deployment.config")
    EndFunc
    _JavaConfig()
    Now if you have SCUP and have setup Self Cert for your organization, you just need to create a SCUP update for JRE.
    Edited by: 897133 on Nov 16, 2011 4:53 AM

  • When creating a new window in safari, using command T, the marker have not activated the search field. It means you have to click there every time. Changed after upgrading to Mavericks. Anyone knows how to change this?

    When creating a new window in safari, using command T, the marker have not activated the search field. It means you have to click there every time. Changed after upgrading to Mavericks. Anyone knows how to change this?

    Yes, you can do something like that. What you would do is create a button for each image and then hide them. When I do this type of thing I place all of the buttons on a template page and then hide the template.
    You can then use JavaScript to copy the icon from any of the hidden buttons to the main button that you've set up to display the image. For example, suppose you set up 10 buttons named b1, b2, b3, ...b10. The code to copy the icon from one of them to the button used to display the image (b0) would be something like this:
    // Get the icon from the b3 button
    var oIcon = getField("b3").buttonGetIcon();
    // Get  reference to the b0 button
    var f = getField("b0");
    // Set the icon of the b0 button to the icon retrieved from the hidden button
    f.buttonSetIcon(oIcon);
    // Show the b0 button
    f.display = display.visible;
    This code would go in the Mouse Up event of the smaller button.

  • HT1428 How to change the account name in Mac OS X via a command line. I did a type-o on the account name. So instead of it saying "Company" it says "Comany"  for the account logon.

    How to change the account name in Mac OS X via a command line. When I created the account I mistyped the name. I have a management suite where I can execute remote scripts. I would like to run a script that changes the name from oldname to newname.
    None of these Macs have been used currently.
    Thank you,
    Brian

    If user account shortname, see Changing user account shortname

Maybe you are looking for

  • Error installing Oracle 10.2.0.4 on windows 2008 r2

    Hi, I am trying to installing SAP netweaver 7.01 server on  oracle 1.2.0.4 in Windows 2008 64-bit system. But when I try to install oracle I get this error. Checking operating system version: must be 5.1 or 5.2.    Actual 6.0 I did search on sdn at t

  • MuVo TX

    I recently purchased a 52 MuVo Tx SE but am having trouble gettting Windows (XP Home) to recognise it. When I first plugged it in, Windows recognised it and installed it as a USB Mass Storage device. After restarting my computer, it didn't appear as

  • How do I transfer a new subscription to someone?

    I purchased another subscription in order to give it to someone. However, the subscription is registered to me and associated with my email. How do I transfer the subscription or allow them to access it with their own email and pw?

  • Retreiving email from roadrunner

    My setting are to remove email from server right away. But it leaves a copy on roadrunner service. Only have problem from my mac . Road runner said it a apple problem. How can I fix this ?

  • ACE for Cache servers how-to??

    We have ACE10 installed on 7609 Internet-router, we intend to force Internet http traffic on the 7609 to a third party Cache servers without using either PBR or WCCP to obtain backbone bandwidth savings. In addition the ACE will distribute the http t