Problem passing quoted parameter to MySql from Visual Web Pack

In my session bean VWP did generate:
private CachedRowSetXImpl myRowSet = new CachedRowSetXImpl();
The query for myRowSet is:
SELECT * FROM myTable WHERE name IN ( ? )
The parameter was passed in different ways ( getSessionBean1().getMyRowSet().setString(1, parameterValue) ) :
parameterValue = "paul','peter";
or
parameterValue = "paul\',\'peter";
BUT in all cases MySql add backslashes to my quotes in this way:
SELECT * FROM myTable WHERE name IN ( 'paul\',\'peter' )
or
SELECT * FROM myTable WHERE name IN ( 'paul\\\',\\\'peter' )
And of course this is not working.
I only want MySql execute : SELECT * FROM myTable WHERE name IN ( 'paul','peter' )
I tried : getSessionBean1().getMyRowSet().getStatement().setEscapeProcessing(false)
Two days on this simple thing and only thing I got was a headache.
Pleas help me, Visual Web Pack is a great Tool, but i can't get work done.

Thanks for yoyur reply Futeleufu_John
If I try the way you say
parameterValue = "'Paul','Peter'";then MySql log shows:
SELECT * FROM myTable WHERE name IN ( '\'paul\',\'peter\'' )Every sigle quote ( ' ) is replaced by ( \' )
I abandone visual web pack as my first alternative until my brain or someone else's can resolve this.
Again, please help me if you get some idea.
Note : I know this seems aparently very easy to solve, Im not a professional programmer, but I develop web apps in java / tomcat more than 3 years ago and is the first time that an issue gets unresolved for me :�(

Similar Messages

  • Passing a range of dates from Visual Composer 7.0 to Bex Analyzer

    Dear Experts,
             I created a button in my Visual Composer model that has the following settings:
    System action:  Hyperlink
    Apply to:  Self
    Hyperlink address:  "...QUERY=BMMSEG_C01_SAS_Q0001&BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE&BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=MBUDAT&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=08/22/2006;08/28/2006"
            Basically, what I need is to pass a range of dates from Visual Composer to Bex Analyzer on the characteristic "MBUDAT".  However, it only brings back the data with those specific dates, not the range.  
          I don't think this is the correct syntax to pass in a range value:  08/22/2006;08/28/2006  Please advise how should I do it. 
    Thank you in advance,
    Kevin

    Hi J GOEL,
           Thank you for your quick response.  I created a date range variable ZPSTDAT, and then I passed in the oncatenated value to my Bex query (for this example, let says the From date is 08/22/2006, and the To date is 08/28/2006 ).
          Here's what I passed in into the url:
    ...QUERY= BMMSEG_C01_SAS_Q0001
    &BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE
    &BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1
    &BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC= ZPSTDAT
    &BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING= 08/22/2006:08/28/2006
       However, it returns all the records, so it seems like it doesn't even accept the range value that I passed into the Bex.  Do you mind to please show me the url you have that pass in the date range.  I just need to see the date range part, not the entire url.
    Thanks,
    Kevin

  • Netbeans 6.0 Visual Web Pack and facelets

    Is it current possible to use Netbeans 6.0 Visual Web Pack and facelets and/or Seams?
    If so please point me to some useful resource.

    >
    ...Below is from the Launch tab:>What exactly is a 'launch tab'? Are you talking about some NetBeans window?
    The reason I ask is that the 'JNLP file' shown, is complete rubbish. It is a bunch of symbols pretending to be a JNLP file. The fundamental problem is that it is invalid (and hence it is not the 'JNLP format' it claims to be).
    How any particular Java implementation deals with an invalid JNLP file is quite unpredicatable.*
    Please people, do not just 'presume' that you (or your IDE) can write a valid JNLP file. Instead - validate it against a DTD or XSD.
    After all.. Garbage in, Garbage out!
    * And to the poster who mentioned that adding the first Jar line twice solved the problem. That is a dangerous and fragile kludge. If it works in some specific microversion of Java, it might (probably will) break in the next.
    Edit 1 - Highlit the most major error in that file using 'code' tags. Hopefully that will make the basic problem more obvious..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" "/>Edited by: AndrewThompson64 on May 21, 2008 9:20 AM
    Edit 2 - Added possible alternatives..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs='C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api' "/>
    <j2se version="1.5+" java-vm-args='-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" '/>The hard coded path, as well as the use of unescaped backslashes (e.g. '\' as opposed to '\\') also looks suspiciously wrong, but since I only deploy off the internet, I am not entirely sure.
    Edited by: AndrewThompson64 on May 21, 2008 9:26 AM

  • Example of use of table on visual web pack (netbeans 5.5.1)

    I want one sample (or article, paper, example ...) that shows how to use the component table (of netbeans 5.5.1 visual web pack) retriving data from ObjectListDataProvider (by use of method .setList(List<MyObject>) ...) populate the table and having one collun with radio button and the way to retrive this especific object (selected by user on radio button).

    The getPersons() code will give an ClassCastException error. Change it to:
       public SelectItem[] getPersons()
       ArrayList<SelectItem> people = new ArrayList<SelectItem>();
       //Start For Loop reading from database into 'item' Object
        people.add(new SelectItem(item.getID() + "",item.getName()));
       // End Loop
    /**This line.*/
       return (SelectItem[]) people.toArray(new SelectItem[]{});
       }But this might not be the problem.

  • Visual web pack on mandriva

    hello I install netbeans on a mandriva 2008. I have one problem with the visual web pack because during the installation the system ask me where is the "path" of netbeans installation. can you help me? where is this directory?
    thanks

    Hi!
    It seems to me that your application is deployed to Sun Application Server. Try to change Deployment Server in project's properties. For that:
    1) Rightclick on top of project in 'Projects' window.
    2) Select Properties.
    3) Change Server in 'Run' section.
    Thanks,
    Roman.

  • Visual Web Pack looking for AppServer but set for Tomcat

    I am having trouble starting a Creator 2 project I imported into the Visual Web Pack. It seems to be trying to use the AppServer which I do not have installed. It is set up to use Tomcat55. I set it up following the import instructions. It is clearly marked Tomcat55 in project.properties. It wont launch though. It just prints null and the following error is in the ide log...it happens every time i try and run the project. Other projects I create in VWP run fine with tomcat embedded. The error is:
    INFORMATIONAL *********** Exception occurred ************ at 8:25 PM on Jan 16, 2007
    javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: deployer:Sun:AppServer::localhost:4849 The Application Server installation directory is not correctly set up. (Use the Tools->J2EE Platform Manager menu to correct.)
    at org.netbeans.modules.j2ee.sun.ide.dm.SunDeploymentFactory.getDisconnectedDeploymentManager(SunDeploymentFactory.java:130)
    at org.netbeans.modules.j2ee.deployment.impl.Server.getDisconnectedDeploymentManager(Server.java:144)
    at org.netbeans.modules.j2ee.deployment.impl.Server.getDisconnectedDeploymentManager(Server.java:138)
    [catch] at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.getDeploymentConfiguration(ConfigSupportImpl.java:432)
    at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.getWebContextRoot(ConfigSupportImpl.java:227)
    at com.sun.rave.project.jsfproject.ProjectWebModule.getContextPath(ProjectWebModule.java:107)
    at com.sun.rave.project.jsfproject.ui.customizer.WebProjectProperties.init(WebProjectProperties.java:328)
    at com.sun.rave.project.jsfproject.ui.customizer.WebProjectProperties.<init>(WebProjectProperties.java:262)
    at com.sun.rave.project.jsfproject.WebProject.getWebProjectProperties(WebProject.java:466)
    at com.sun.rave.project.jsfproject.RaveWebActionProvider.invokeAction(RaveWebActionProvider.java:124)
    at org.netbeans.modules.project.ui.actions.ProjectAction.actionPerformed(ProjectAction.java:96)
    at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:139)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
    at java.awt.Component.processMouseEvent(Component.java:6038)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
    at java.awt.Component.processEvent(Component.java:5803)
    at java.awt.Container.processEvent(Container.java:2058)
    at java.awt.Component.dispatchEventImpl(Component.java:4410)
    at java.awt.Container.dispatchEventImpl(Container.java:2116)
    at java.awt.Component.dispatchEvent(Component.java:4240)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
    at java.awt.Container.dispatchEventImpl(Container.java:2102)
    at java.awt.Window.dispatchEventImpl(Window.java:2429)
    at java.awt.Component.dispatchEvent(Component.java:4240)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Message was edited by:
    CandideEC

    Hi!
    It seems to me that your application is deployed to Sun Application Server. Try to change Deployment Server in project's properties. For that:
    1) Rightclick on top of project in 'Projects' window.
    2) Select Properties.
    3) Change Server in 'Run' section.
    Thanks,
    Roman.

  • Best way to combine Java Persistence API (JPA)  with Visual Web Pack (VWP)?

    I like the JPA/Hibernate development approach to create the database elements from JAVA classes.
    This way one gets rid of the need to keep JAVA code and the database in sync.
    However I have not yet found a good way on how to use JPA from the netbeans VWP.
    Note that I have found the tutorial on how to use the IDE with hibernate and it works without problems.
    However I think this tutorial does not really implement a good Model/View/Controller approach as it is done in the enterprise pack.
    Here you have a controller session bean that deals with all the persistence logic and that exposes properties through a DataModel to the application.
    There is no need to encapsulate logic in inherited classes of the ObjectListDataProvider.
    Maybe an example makes it more clear:
    If we stay with the hibernate tutorial that we have "Animals" and "Pavillion" entities.
    How would one efficiently design a "Table" component that shows a list of all Animals and their Pavillions.
    With the VWP approach it is quite clear: you create a RowSet with the inner/left join between Animals and Pavillions.
    But how would you do it with JPA?

    You said:
    "If we stay with the hibernate tutorial that we have "Animals" and "Pavillion" entities.
    How would one efficiently design a "Table" component that shows a list of all Animals and their Pavillions.
    With the VWP approach it is quite clear: you create a RowSet with the inner/left join between Animals and Pavillions.
    But how would you do it with JPA?"
    I have the exact same question. Have you found the answer on how to "join" entities and display them on visual web table component?

  • How to pass simple parameter to XSLT from BPM 11g Data Association

    Is it possible to pass a simple parameter to an XSLT from a BPM 11g Data Association (11.1.1.6.0)?  Here is why I asked.  I have a transform that I want to reuse across two service activities in the same process.  The only difference is one integer ID value between the two activities.  (Happens to be running an IPM saved search, each with a different ID.)
    I tried mapping the ID value in the Data Association dialog, in addition to the XSLT mapping, but didn't work.  Or is there another method I could use to reuse this transform (besides just copying it as I've done for now)?  Thanks.

    If I understood your scenario, the point is: you always have to pass the same dataObjects as parameters to the XSL, but you can change the values of them in an association step before the transformation.
    Lets see if the following can fit your needs:
    1) your project has three BusinessObjects: "SearchParam", "CommonData" and "Result"; and five process dataObjects:
    - "search1", "search2" and "search" of type "SearchParam";
    - "commonData" of type "CommonData";
    - "result" of type "Result"
    2) your XSL has "result" as target and two sources: "search" and "commonData"
    3) In some part of the process flow you have a scriptTask with:
    - a data association from "search1" to "search";
    - a transformation with "search" and "commonData" as parameters
    4) In other part of the process flow you can use the same transformation, but using the data from "search2" as parameter, adding a scriptTask with:
    - a data association from "search2" to "search";
    - the same transformation with "search" and "commonData" as parameters
    In this scenario you are reusing the same XSL file only changing the values for one parameter.

  • Problem creating a repository in Oracle from Visual studio Load test

    Hi,
    I have an issue which will be greatly appreciated if answered soon. I have created a load test using Visual studio 2010 Ultimate in Oracle 11 g environment . I just want to create a load test repository in Oracle db to store results of the load test results. I have read on MSDN the method to do so for SQL server(at http://msdn.microsoft.com/en-us/library/ms182600.aspx) but not Oracle. Please respond asap. Thanks

    912605 wrote:
    Hi,
    I have an issue which will be greatly appreciated if answered soon. I have created a load test using Visual studio 2010 Ultimate in Oracle 11 g environment . I just want to create a load test >repository in Oracle db to store results of the load test results. I have read on MSDN the method to do so for SQL server(at http://msdn.microsoft.com/en-us/library/ms182600.aspx) but not >Oracle. Please respond asap. Thanks
    I could be wrong, but I believe to achieve this you will need to buy a third party tool that supports the Load Testing project with Oracle like "Toad Extension for Visual Studio".

  • Pass 2 parameter to report from form-URGENT!!

    I want to sene 2 parameter
    1st parameter will send the p_where_clause
    and
    2nd one will send one text the a certain text item in report.
    My 1st parameter is P_where_clause
    and 2nd Parameter is p_amount.
    Please help me.
    regards,
    shalauddin

    USE THE COMMANDS IN FORMS6I.
         pl_id:= Get_parameter_list('tmpdata');
         if not id_null(pl_id) then
         Destroy_parameter_list('tmpdata');
         end if;
         pl_id:= Create_Parameter_List('tmpdata');
    Add_parameter(pl_id, 'EMP', TEXT_PARAMETER, TO_CHAR(:CODIGOEMPLEADO));
         Run_Product(Reports, 'YOUR_REPORT',ASYNCHRONOUS,runtime,filesystem,pl_id,NULL);

  • How to insert a parameter into MySql from JSP using bean

    Hai.........
    The files i hav used are: DbConnection.java, LogBean.java, login.jsp, checkUser.jsp, existingUser.jsp, newUser.jsp...................
    I hav problem in newUser.jsp................................................
    ie: plz giv an appropriate code for this code:.........................................
    resultSet = connectionBean.execUpdate("insert into userLogin values('"+uName+"','"+pWord+"') ");
    Message was edited by:
    jaseemkhan

    Here is the code fragment.
    File file = new File ("c:\\t.gif");
    FileInputStream in = new FileInputStream (file);
    int len = (int)file.length();
    PreparedStatement pst = null;
    pst = conn.prepareStatement ("insert into blob_table values (1, ?)");
    pst.setBinaryStream (1, in, len);
    pst.executeUpdate();
    pst.close();
    conn.commit();

  • Problem: deploy war generated by netbeans 5.5(visual web pack)

    I develop web application with netbeans 5.5,
    deploy to sun app server 9.0 and work correct.
    i deploy jsf1.2 libarary to server, and add weblogic.xml to
    application that consist librery-ref='jsf1.2'.
    i deploy this war file to weblogic 10.
    when i request a page from this application that consist
    netbeans jsf component, throw exception not found setId(valueExpression) in for example: PageTag.class.
    if jsf page only consist standard component, or netbeans component do not include id attribute then page render correct.
    please help me.
    thanks.

    These forums support the Java language, not NetBeans (or any other IDE). If you can't find a matching addon, change to the 5.5 version - or ask this question at the NB site.

  • Connection of Mysql with visual web developer 2010 using visual basic

    Aslam o Alaikum friends,
    i want to connect my asp.net website with mysql database. i have successfully installed mysql and mysql connector 6.3.6
    but i don't know how to connect my website with mysql database 
    please anyone can help me

    Hello,
    This should be asked in Microsoft's ASP.Net forums:
    http://forums.asp.net/
    As Microsoft's ASP.Net forums are on a different platform, we cannot move the question for you.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Netbeans Visual Web Pack

    Is anyone having this problem?
    In a nutshell a dataprovider associated to any database other than the default derby database will return null on dataprovider.canappend();
    I have tried it with MySQL, MS SQL and I know the permissions are right, I even had my root account get this error. However, try the same connector in JSC and the canappend() function returns true.
    Anyways, I was curious to know if any one out there is experiencing this issue.
    Cheers!

    peppertech,
    Hey thanks for the tip and the reply! First of all you are right, there is no canappend(), I was just being lazy and on capitalizing the function correctly or even referencing the correct function name.
    Good news! I figured out what the problem was... Since the connector is declared in my nb55 ide I assumed it was going to associated correctly with my development Java app servers. I knew that for production servers I would have to make the jar available to classpath of the server. In a nutshell that is the problem, a broken reference to the jdbc jar file.
    The solution is to include it in the libraries in your project's properties.... Once you deploy and run the DataProvider.canAppendRow() function you get 'true' value returned!
    Again, thanks for the reply!
    B.

  • Netbeans visual web pack for 6.0.1?

    Hi guys im really new to programming and i decided to do a tutorial on the netbeans website to make an app using google maps api
    to do this though i need to install the netbeans visual webpack and also the blueprint ajax components library.
    The problem is that apparently its only for netbeans 5.5... but i use 6.0.1. The one i have is newer so shouldnt those libraries still be availabe? How do I get around this??
    here is the site the tutorial is on http://www.netbeans.org/kb/55/vwp-ajaxmapviewer.html

    These forums support the Java language, not NetBeans (or any other IDE). If you can't find a matching addon, change to the 5.5 version - or ask this question at the NB site.

Maybe you are looking for

  • HP LaserJet 1300 "paused"

    My HP LaserJet 1300 suddenly stopped working over the AirPort network.  Every file that I start to print immediately makes the printer "paused". I reset the printer several times ...  I downloaded and installed the MacOSXUpdCombo10.6.8 ...  Finally,

  • ICloud 3.1 will not install

    When installing iCloud 3.1, it seems to install correctly but "rolls back" when trying to remove components appx. 2/3 through the process stating that that Windows Installer cannot open a file needed to complete the install.  Any suggestions?

  • This could put MP3 Player companies out of business-Copy Protedted C

    <SPAN>I have run into a batch of new CD's that are copy protected from Sony in this case.<SPAN> <SPAN>The example I will Use is Patty Loveless's New Cd Dreamin' My Dreams. First the ripper in my Zen software kept ejecting the CD and asking me to put

  • Upgrading a customized bpel worklist application after patch update

    Hi, We have a customized worklist application running developed on SOA 10.1.3.1. Now that we are migrating to version 10.1.3.3. I have 2 related queries: 1. Is there any documentation on whatsnew in the worklist application provided by oracle as part

  • Won't take any more clips

    I have a movie that is presently 8.75 gigs and I have come to a point where I cannot move anymore clips down into the the cue. I have 10 clips down there. Meanwhile I now notice that when I try to import from my camera the movie is no longer showing