GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes retrieving value from a text box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "retrieving value from a text box" Watch "retrieving value from a text box" New topic
Author

retrieving value from a text box

abhishek rathur
Ranch Hand

Joined: Jan 14, 2010
Posts: 66


how i will perform operation on the string received from text box,the above code is not working
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

Please TellTheDetails and PostRealCode so that we can get more idea about the issue you are facing.


Mohamed Sanaulla | My Blog
abhishek rathur
Ranch Hand

Joined: Jan 14, 2010
Posts: 66


i want to tokenizer the string received from the text box ,and need to insert the individual values in the database
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39062
    
  23
Why are you using tokenizer at all; it is legacy code? You need to look in its API documentation to see what you ought to use instead.
There is lots about database connections in the Java™ Tutorials.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39062
    
  23
You really need to tell us what is going wrong.
abhishek rathur
Ranch Hand

Joined: Jan 14, 2010
Posts: 66
there is no problem with the connectivity with the data base,what the problem is i successfully retrieve the string from the text box "str1",the next thing is to parse the string by "," and insert it into the database javascript:emoticon('');
prasad guna
Ranch Hand

Joined: Feb 12, 2009
Posts: 43

Hi abhishek,

As per your input i find something wrong insted of String Object like str insted of with in double quote


Thanks


Prasath.G
SCJP
abhishek rathur
Ranch Hand

Joined: Jan 14, 2010
Posts: 66
thank GOD its working
thanks prasad guna ....
all of you who replied('');
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

If you want to separate the values based on "," as separator, you an also try using this:
prasad guna
Ranch Hand

Joined: Feb 12, 2009
Posts: 43

welcome
 
GeeCON Prague 2014
 
subject: retrieving value from a text box