Help with a small problem....

Hello friends,
I have 2 minor problems using msaccess....
1).I was designing a login appln i am having a hard time with case sensitivity...
say suppose username:Scott,password:Tiger
it authentication username:ccott,password:tiger
and so on without checking case sensitivity....
my sevlet code wud look something like this....
String username=request.getParameter("username").trim();
String password=request.getParameter("password").trim();
rs=stmt.executeQuery(select [some value] from login where uid='"+username+" And pwd='"+password+"'");
if(rs. next()){
else{
out.println("Invalid");
2).I have a memo field in my table which holds a large set of text data....
This might include double quotations (") whever this charecter is encountered the servlet or the jsp is replacing this charecter by (?).
Though i got a hint of why it is happening i'm unable to fix that......
An advice wud really help me out....
Thanks In Advance !! !! !!
REGARDS,
RAHUL

I don't do MSAccess, but I found this thread that made some sense:
http://www.experts-exchange.com/Databases/MS_Access/Q_21645848.html
Maybe it will help with your case sensitivity problem. It basically says to perform a secondary comparison based on Hex or Decimal values of the returned usernames/passwords. Not optimal, but that's what you get for using Access and not a production quality DB (IMHO). It's not like there aren't free ones out there.
As far as your "quote" problem. Are you saying that trying something like this doesn't work?:
String text = request.getParameter("text");
String id = request.getParameter("id");
if (text != null) {
  PreparedStatement st = con.prepareStatement("UPDATE table SET text = ? WHERE id = ?");
  st.setString(1, text);
  st.setString(2, id);
  st.executeUpdate();
}Of course you need to catch exceptions, etc. But the general idea should work. You see Access doesn't need to provide PreparedStatements, the driver (I assume JDBC-ODBC bridge) should.

Similar Messages

  • Someone who could help with a small problem getting prices from TWS

    Hi
    I have this trading platform from Interactive Brokers, called TWS. Inside TWS there are two columns that I really need to get into my excel sheet. But the DDE stuff doesn't support these two columns, and all I can think of is to use some kind of Java to get it out of TWS and make it ready for Excel. I need the Open price and/or the Gap% value.
    I dont know anything about Java, but I have been told from others that it shouldn't be very difficult to make.
    Is there anyone that would be nice and give me a hand? I will try to explain in detail how it works, if you are not familiare to Interactive Brokers system.
    Best regards
    Espen Skeie

    lordoftrades wrote:
    Hi
    I have this trading platform from Interactive Brokers, called TWS. I would contact them, then.
    I dont know anything about Java, but I have been told from others that it shouldn't be very difficult to make.Or maybe them.
    Is there anyone that would be nice and give me a hand? I will try to explain in detail how it works, if you are not familiare to Interactive Brokers system.I would bet that nobody here is familiar with it. Best to contact the people who made it or the people who suggested it would be easy.

  • [svn] 1991: Also reducing HexEncoder buffer size from 64K to 32K to help with the smaller stack size of the AVM on Mac as part of fix for SDK-15232 .

    Revision: 1991
    Author: [email protected]
    Date: 2008-06-06 19:05:02 -0700 (Fri, 06 Jun 2008)
    Log Message:
    Also reducing HexEncoder buffer size from 64K to 32K to help with the smaller stack size of the AVM on Mac as part of fix for SDK-15232.
    QE: Yes, please test mx.utils.HexEncoder with ByteArrays larger than 64K on PC and Mac too.
    Doc: No
    Checkintests: Pass
    Bugs:
    SDK-15232
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15232
    http://bugs.adobe.com/jira/browse/SDK-15232
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/utils/HexEncoder.as

    I'm having this same issue. I also have this line in my log, which is curious:
    12/14/14 7:13:07.822 PM netbiosd[16766]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.smbd
    Is this related to the problem? What does it mean?
    My 2010 27" iMac running Yosemite won't wake up from sleep.

  • Need help with a small application

    Hi all, I please need help with a small application that I need to do for a homework assignment.
    Here is what I need to do:
    "Write an application that creates a frame with one button.
    Every time the button is clicked, the button must be changed
    to a random color."
    I already coded a part of the application, but I don't know what to do further.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ColourButton extends JFrame {
         JButton button = new JButton("Change Colour");
         public ColourButton() {
              super ("Colour Button");
              setSize(250, 150);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel panel = new JPanel();
              panel.add(button);
              add(panel);
              setVisible(true);
         public static void main(String[] args) {
              ColourButton cb = new ColourButton();
    }The thing is I'm not sure what Event Listener I have to implement and use as well as how to get the button to change to a random color everytime the button is clicked.
    Can anyone please help me with this.
    Thanks.

    The listener:
    Read this: [http://java.sun.com/docs/books/tutorial/uiswing/components/button.html]
    The random color:
    [Google this|http://www.google.com/search?q=color+random+java]

  • I need help with a browser problem

    I am was given a new iMac G3 (from 2001) which was really never used.I have not yet had any serious problems with it, but really could use some help with a browser problem.
    I have 4 different web browsers that needs the macro media flash player update. The browsers I use are internet explorer, iCab, Netscape, and the original Mozilla Firefox.
    It would be of great appreciation for the readers of this post to answer my question.
    I am also having the problem with installing the plug - ins for the browsers. Thank You For Taking the Time To read This!

    Hi, rynodino -
    As Tom has suggested, plugins need to be installed in the Plug-Ins folder for the browser.
    Typically each browser will have its own Plug-Ins folder, usually located in the same folder containing the browser itself. In order for each of several browsers to access the same plugins, the plugins must be replicated and placed in each of the Plug-Ins folders for each of the browsers. The easy way to do that is to hold down the Option key while dragging a plugin to the new location - a copy (not an alias) of the plugin will be generated at the location it is dragged to.
    Most plugins will display a Netscape icon regardless of where they are located - this is normal.
    It is not unusual for the installer for a plugin to default its install to the Plug-Ins folder for Internet Explorer. So be it. Just replicate the new plugin to the other Plug-Ins folders as needed.
    Note that some plugin installs will involve more than one item. For those, be sure to replicate all items for it. Using labels can help identify what is new, what has been most recently added, in a Plug-Ins folder.

  • [svn] 1990: Reducing Base64Encoder buffer size from 64K to 32K to help with the smaller stack size of the AVM on Mac .

    Revision: 1990
    Author: [email protected]
    Date: 2008-06-06 18:53:36 -0700 (Fri, 06 Jun 2008)
    Log Message:
    Reducing Base64Encoder buffer size from 64K to 32K to help with the smaller stack size of the AVM on Mac.
    QE: Yes, please test mx.utils.Base64Encoder with Strings and ByteArrays larger than 64K on PC and Mac after these changes.
    Doc: No
    Checkintests: Pass
    Bugs:
    SDK-15232 - mx.utils.Base64Encoder.encodeBytes "toString()" or "flush" produces 1511 error on MAC
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15232
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/utils/Base64Encoder.as

    You can go with these options :
    http://musewidgets.com/collections/all/products/responsive-image
    http://musewidgets.com/collections/all/products/responsive-images
    Thanks,
    Sanjit

  • Hello, im new to mac and I need some help with a java problem.

    Hello, im new to mac. I just need someone who can help with a problem ive come across when playing online games that run java. The game is arcanists. its on the funorb website. really fun game and i love it, but i cant play it without my screen keep scrolling or my character not responding at all. please get back at me ASAP. thx apple friends!

    FF has an extention that can be used to increase the conection speed. Its called Tweak Network 1.1 I see a difference on my iMac G5. Its not huge but it may be a big difference on yours.
    http://www.bitstorm.org/extensions/tweak/

  • Help with this occurring problem group differs on Library should be 0 group is 80

    Please can someone help me with the following problems when using disk utility.
    Keep getting the same repeating errors after repairing.
    Group differs on "Library:; should be 0; group is 80
    Permissions differ on "Library"; should be drwxr-xr-x; they are drwxrwxr-t.
    Group differs on :Library/Preferences:; should be 0; group is 80.
    Permissions differ on "Library/Preferences"; should be drwxr-xr-x; they are drwxrwxr-x.

    You can safely ignore it:
    http://support.apple.com/kb/ts1448

  • Please I really need help with this video problem.

    Hi!
    Please I need help with this app I am trying to make for an Android cellphone and I've been struggling with this for a couple of months.
    I have a main flash file (video player.fla) that will load external swf files. This is the main screen.When I click the Sets Anteriores button I want to open another swf file called sets.swf.The app is freezing when I click Sets Anteriores button
    Here is the code for this fla file.
    import flash.events.MouseEvent;
    preloaderBar.visible = false;
    var loader:Loader = new Loader();
    btHome.enabled = false;
    var filme : String = "";
    carregaFilme("home.swf");
    function carregaFilme(filme : String ) :void
      var reqMovie:URLRequest = new URLRequest(filme);
      loader.load(reqMovie);
      loader.contentLoaderInfo.addEventListener(Event.OPEN,comeco);
      loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progresso);
      loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completo);
      palco.addChild(loader); 
    function comeco(event:Event):void
              preloaderBar.visible = true;
              preloaderBar.barra.scaleX = 0;
    function progresso(e:ProgressEvent):void
              var perc:Number = e.bytesLoaded / e.bytesTotal;
              preloaderBar.percent.text = Math.ceil(perc*100).toString();
              preloaderBar.barra.scaleX =  perc;
    function completo(e:Event):void
              preloaderBar.percent.text = '';
              preloaderBar.visible = false;
    btHome.addEventListener(MouseEvent.MOUSE_DOWN,onHomeDown);
    btHome.addEventListener(MouseEvent.MOUSE_UP,onHomeUp);
    btSets.addEventListener(MouseEvent.MOUSE_DOWN,onSetsDown);
    btSets.addEventListener(MouseEvent.MOUSE_UP,onSetsUp);
    btVivo.addEventListener(MouseEvent.MOUSE_DOWN,onVivoDown);
    btVivo.addEventListener(MouseEvent.MOUSE_UP,onVivoUp);
    btHome.addEventListener(MouseEvent.CLICK,onHomeClick);
    btSets.addEventListener(MouseEvent.CLICK,onSetsClick);
    function onSetsClick(Event : MouseEvent) : void
              if (filme != "sets.swf")
                          filme = "sets.swf";
                          carregaFilme("sets.swf");
    function onHomeClick(Event : MouseEvent) : void
              if (filme != "home.swf")
                          filme = "home.swf";
                          carregaFilme("home.swf");
    function onHomeDown(Event : MouseEvent) : void
              btHome.y += 1;
    function onHomeUp(Event : MouseEvent) : void
              btHome.y -= 1;
    function onSetsDown(Event : MouseEvent) : void
              btSets.y += 1;
    function onSetsUp(Event : MouseEvent) : void
              btSets.y -= 1;
    function onVivoDown(Event : MouseEvent) : void
              btVivo.y += 1;
    function onVivoUp(Event : MouseEvent) : void
              btVivo.y -= 1;
    Now this is the sets.fla file:
    Here is the code for sets.fla
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    var video:Video;
    var nc:NetConnection;
    var ns:NetStream;
    var t : Timer = new Timer(1000,0);
    var meta:Object = new Object();
    this.addEventListener(Event.ADDED_TO_STAGE,init);
    function init(e:Event):void{
    video= new Video(320, 240);
    addChild(video);
    video.x = 80;
    video.y = 100;
    nc= new NetConnection();
    nc.connect(null);
    ns = new NetStream(nc);
    ns.addEventListener(NetStatusEvent.NET_STATUS, onStatusEvent);
    ns.bufferTime = 1;
    ns.client = meta;
    video.attachNetStream(ns);
    ns.play("http://www.djchambinho.com/videos/segundaquinta.flv");
    ns.pause();
    t.addEventListener(TimerEvent.TIMER,timeHandler);
    t.start();
    function onStatusEvent(stat:Object):void
              trace(stat.info.code);
    meta.onMetaData = function(meta:Object)
              trace(meta.duration);
    function timeHandler(event : TimerEvent) : void
      if (ns.bytesLoaded>0&&ns.bytesLoaded == ns.bytesTotal )
                ns.resume();
                t.removeEventListener(TimerEvent.TIMER,timeHandler);
                t.stop();
    The problem is when I test it on my computer it works but when I upload it to my phone it freezes when I click Sets Anteriores button.
    Please help me with this problem I dont know what else to do.
    thank you

    My first guess is you're simply generating an error. You'll always want to load this on your device in quick debugging over USB so you can see any errors you're generating.
    Outside that, if you plan on accessing anything inside the SWF you should be loading the SWF into the correct context. Relevant sample code:
    var context:LoaderContext = new LoaderContext();
    context.securityDomain = SecurityDomain.currentDomain;
    context.applicationDomain = ApplicationDomain.currentDomain;
    var urlReq:URLRequest = new URLRequest("http://www.[your_domain_here].com/library.swf");
    var ldr:Loader = new Loader();
    ldr.load(urlReq, context);
    More information:
    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7de0.html
    If you're doing this on iOS you'll need to stripped SWFs if you plan on using any coding (ABC) inside the files. You mentioned iOS so I won't get into that here, but just incase, here's info on stripping external SWFs:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/

  • Can someone help with a networking problem?

    Here's a situation I need some help with:
    I live in a semi-detached house. My neighbour has broadband, I don't. The phone company (BT) has said it would cost too much to install another line to enable me to have broadband, and would involve digging up the road and the garden, which they're not prepared to do.
    However, someone at work has suggested that I approach my neighbour and ask if I could 'share' their broadband connection and in return pay a contribution to their monthly costs.
    For this, I believe, I would need to buy a router, plus something to make my Mac 'wireless'.
    Now, I consider myself Mac-savvy, but when it coms to wireless stuff I confess I know very little! So if someone could explain in simple terms what I would need to buy and approx costs I be very grateful!
    I have a G5, and I believe my neighbour is a PC user.
    Also, can someone explain how the whole 'share' thing works? Does my neighbour have to have their computer on all the time? Do I need to sign up with an ISP? Will having two computers accessing one line slow it down significantly?
    Many thanks,
    Andy

    Hi Andy, before going too far down the 'sharing' route I would rattle some cages chez BT. If your neighbour has broadband then you and they are within a hair's breadth (line length speaking) of the same distance to the exchange. If they have enabled BB next door, why can't they enable BB for you without the hassle? I live on a mobile home site in the back of beyond in Devon and when I upgraded from dial-up to BB, and then to 1 meg there was no problem. There was a two week hiatus while BT did their stuff 'on the line' but it all went without a hitch. Er...I take it you do have an exclusive landline?
    However, if the situation re the line is as per, then the simplest way (to obviate any wifi interference issues) would be for you or neighbour to route an ethernet cable through walls/window frames from your Mac to a router on their side of the wall. (Approx £30?) This would be connected to their phone line. Their PC would also plug into the router. (Which they may already have if they're on BB, though they may have a nasty USB BB modem &nbsp:&nbsp: No good for what you want.
    If you/they don't want the 'hardwire' option then first you have to wifi enable your Mac if it is not already. Not sure of the costs but check on the Apple website for 'Airport Extreme Card'. Don't go the wifi USB dongle route, apparently they are not VG, though I've no personal experience. You would then have to get a wifi router modem (from £40 I think, it's a long time since I've looked, my Belkin has been virtually faultless) which would sit on their side of the wall plugged into the BT socket. Their PC would either plug into that or connect wirelessly with it, as is their wont. That's basically it, but there could still be interference issues, eg, two households with microwaves, cordless phones; intervening walls, bookcases, filing cabinets etc., etc.,
    If done via either of the above, then no, your neighbour doesn't have to have their PC on all the time, if ever.
    You don't have to sign up with an ISP, it would have to be a 'gentleman's agreement' that you bung him £x pm for your share. He is already paying his ISP.
    In practice, sharing would only slow down large downloads.If you were each downloading a large file at the same time then you would be sharing the bandwidth, so your respective files would download at half the speed than they would otherwise. If you are each surfing and if you both 'clicked' at the same time then, yes, he might think, "Wish I hadn't said yes to Andy, this page is taking ages". I don't really think anyone would notice though unless he was surfing at the same time as you were downloading something big, or vice versa.
    I hope the above is some help but I would have a word with the neighbour first and sound them out, after rattling BT that is...
    Come back here if you want more help.
    Good luck!
    Adrian

  • New user with a small problem...I bet...

    I just started using flash, but I am getting a bit better. I
    purchased a template through monster and have slowly picked up on
    flash. Here is my problem and forgive if I use incorrect
    terminology or seem ignorant...
    I have a page on my site that has 4 buttons on each
    side...movie clip over a button...looks like a bar with a small
    arrow movie clip on the end. I am sure you know what I mean. When
    you roll the mouse pointer over the page it obviously is supposed
    go through its actions and alert user there is a link. If I put my
    code on the movie clip, you have to move the mouse over the arrow
    to show the link. If I put my code on the button layer, it causes
    all 8 of the buttons to have the same action/link and if I change
    one it changes all.
    website:
    http://www.accordproperties.net
    rentals page
    What am I doing wrong? I can't seem to figure it out.
    Text

    reduce the size of your #mainCotent to something like 580px and the white space is the top margin and top padding of the <h1>...simply zero it out in your css. Same issue with the last <p> in your #mainCotent...padding and margin is keeping the footer from coming up all the way. Also give your #mainContent some padding to push the text inward. Then you can also give the imgs some padding as well to space off the text. Going to take some fine tuning but this will at least get you started.

  • Need help with simple mask problem

    hi there this is mark from superbooty a band that has played in the bay area for over 10 years...
    i was wondering if someone could help me with a Motion2 problem i'm having regarding masks.
    i'm working on this simple animated scene of a car going by a beach - the photo is from the passenger side and shows the outside mirror.
    i'm moving the background (different from the original that came with the car) and i want to move an image of tokyo inside the mirror housing too.
    i figured out how to do the mask but when i try to animate the image of tokyo the mask layer moves with it. when i lock the mask i can't move the image - ???
    there's got to be a way to lock the mask but be able to move what it is masking..
    here are the links to three images that show what the problem is - the first is
    the shot of the scene unmasked, shot 2 is the scene with the mask enabled, and the third is the shot when i try to animate the tokyo background:
    http://superbooty.com/mirrorbeach1.jpg
    http://superbooty.com/mirrorbeach2.jpg
    http://superbooty.com/mirrorbeach3.jpg
    any help would be most appreciated - thanks!

    Adam's solution is the one I'd use - put the mirror contents in a layer, mask the layer, then manipulate the mirror content image. Did this solve it for you - if so, please click on the or buttons over posts as appropriate...
    Patrick

  • Please help with Nokia N95 problem.

    If anyone can help with this I’d be much appreciated, I have a N95 on contract with T-Mobile. When I try to play videos from myspace, or you tube etc… I get a message telling me the following.
    “Hello, Either you either have JavaScript turned off or an old version of macromedia's flash player click here to get the latest flash player”.
    I then get the option of clicking on a link within the previous sentence statement that directs me to acrobat downloads home page where I get the following message.
    “We are unable to locate a web player that matches your platform and browser. Please visit our table of recommended web players”
    This is deeply frustrating as in nearly every other way I feel the phone is perfect. If Any one can hep me fix this problem I’d be much appreciated.

    daperk,
    You should post this to board "Smartphones, Nseries and Eseries Devices".

  • Please help with column float problem in IE8

    Hi there,
    Sorry to be so pushy - but I am desperate for help!!
    Having serious problems with my site in some PC's showing Internet Explorer 8. My right column floated right is moving down the page underneath the left column..
    It shows fine on IE8 on my PC - however on my clients PC (vista with IE8) it is showing up as mentioned above. Is there a fix for this.
    Here is my link http://www.dooks.com/pgs/welcome.html
    The css is all there! If you need anything please let me know as I need to get this sorted - I have had serious issues with this site that I have never had before with other sites and am starting to think there is a bug in my software. I redid the index page and this one page (linked above) to see what my problems are - so help with query v appreciated.
    Many thanks,
    Karen

    Lawrence_Cramer wrote:
    A point to keep in mind is that IE8 is still in Beta.
    Not anymore.
    http://www.microsoft.com/Presspass/press/2009/mar09/03-18IE8AvailablePR.mspx
    "REDMOND, Wash. — March 18, 2009 — Today Microsoft Corp. announced the availability of Windows Internet Explorer 8, the new Web browser that offers..."
    Mark A. Boyd
    Keep-On-Learnin' :-)

  • Need help with this book problem...Pig game...can ANYONE help!??

    I need help with the following book problem...could someone write this code for me?? Thanks!!
    First design and implement a class called PairOfDice, composed of two six-sided Die objects. Using the PairOfDice class, design and implement a class to play a game called Pig. In this game, the user competes against the computer. On each turn, the current player rolls a pair of dice and accumulates points. The goal is to reach 100 points before your opponent does. If, on any turn, the player rolls a 1, all points accumulated for that round are forfeited and control of the dice moves to the other player. If the player rolls two 1s in one turn, the player loses all points accumulated thus far in the game and loses control of the dice. The player may voluntarily turn over the dice after each roll. Therefore the player must decide to either roll again (be a pig) and risk losing points, or relinquish control of the dice, possibly allowing the other player to win. Implement the computer player such that it always relinquishes the dice after accumulating 20 or more points in any given round.
    I realize this is a long code, so it would be greatly appreciated to anyone who writes this one for me, or can at least give me any parts of it. I honestly have no clue how to do this because our professor is a dumbass and just expects us to know how to do this...he doesn't teach us this stuff...don't ask. Anyways, thanks for taking the time to read this and I hope someone helps out!! Thank you in advance to anyone who does!!!

    Nasty comments? It's not a matter of not liking you, it's a matter of responding to the
    "I'ts everyone else's fault but mine" attitude of your post.
    If you are genuine, the program is very easy to write, so, your Professor is correct when he said you should
    be able to do it. I'm still very much in the beginner category at java, and it took me only 20 mins to write
    (+5 mins to design it on paper). 2 classes in one file < 100 lines. Most of the regulars here would do it in half the time / half the lines.
    All of the clues are in the description, break them down into their various if / else conditions. Write it down on paper.
    Have a go. Try to achieve something. Post what you've tried, no-one will laugh at you, and you will be
    pleasanty surprised at the level of help you will get when you've "obviously" made some effort.
    Again, have a go. If you don't like problem-solving, then you don't like programming. So, you gotta ask
    yourself - "what am I doin' here?"

Maybe you are looking for

  • Mac pro 2.66 dual 2006 1,1 CPU uppgrade

    Im thinking of upgrading my Mac Pro 1.1 early 2006 2.66 Dual And I want to upgrade to 2.66 Quad , Is this the correct CPU ? http://www.starmicroinc.net/cgi/commerce.cgi?preadd=action&key=IX5355 Kind Regards all Biggz

  • Is there a way to run a program designed for PC on my Mac?

    I would like to use the Firearms Management System offered by one of my suppliers on my Mac but the only operating system shown to use is with is Windows. Is there a way to run it on my iMac?

  • Ldap search in jsp not working

    Hi We have users imported from db into oid and they have blank passwords. So for those users , when they first try to login, I am planning to take them to someother page. I have added code to login.jsp where in case of authentication error, I want to

  • Problem with logic OR

    im trying to use || or in my program and it does things even if one of the things is not true. if((ExamSystemLocked.equals("Unlocked")) || (CourseworkSystemLocked.equals("Unlocked"))) even if ExamSystemLocked is set to "Locked" it will still carry ou

  • Layout change , save  symbol for ALV report

    Dear all, I have created ALV report in which I get only change layout symbol. I want to select/deselect columns in ALV report and want to save that layout. How to get that save layout symbol in ALV report std. headings