I need to update some fields of the record before it is inserted (created) in database.
Is there any way to use triggers or something else with similar functionality in MySql 4.x ?
I have some data stored in HashMap and I need to achieve serial access to that data. With HashSet, for instance, I would use iterator. But how to do this with HashMap?
Thansks in advance.
How to create link that have underline only when mouse is above it?
Is it possible with html and css only?
Probably stupid question, but please help...
How to set connection character set when sending query from java program to MySQL database.
I tried this:
String query = "SET NAMES 'cp1250'"; /* character set */
stmt = conn.prepareStatement(query);
stmt.executeQuery(); /* I also tried stmt.execute(); */
query = "SELECT * FROM...
I tried to import data containing some central-european characters from file to db.
File is tab delimited and looks somehow like this:
10 u?enje a b
After issuing mysqlimport command I got just "u" instead of "u?enje" in second field.
Same thing happens when I use import statement from...
I tried to backup my database with
mysqldump --opt mydb > mydb.sql
and I got the error message:
mysqldump: Got error: 1045: Access denied for user 'ODBC'@'localhost' (using pas
sword: NO) when trying to connect
Then I tried
mysqldump --opt --password mydb > mydb.sql
When I entered the...
I access DataSource object via JNDI
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/MyDB");
and getting connection with
conn = ds.getConnection();
Is it necessery to synchronize any of these statements?
Can...
I access DataSource object via JNDI
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/MyDB");
and getting connection with
conn = ds.getConnection();
Is it necessery to synchronize any of these statements?
Can I put...
I use connection pooling with Tomcat. I configured connection poll in Tomcat server configuration file
and access it via JNDI. Everything works fine, just compiler gives warning: "ZadaciAction.java uses unchecked or unsafe operations".
This is the piece of code where that happens:
try...
I want to use jsp:include directive to include HTML content in jsp page somehow like
<jsp:include page="Relative URL" flush="true" />
Is it possible to use variable (taken from context) instead of fixed "Relative URL" so the content can be different depending on value of that variable, and how...
If I install clarion aplication and database(tps) on end user's server and then I change aplication and dictionary on my system what I have to do to safely upgrade aplication, dictionary and database at the end user's system.
I made the class that makes a combo box in JSP page.
Please tell me how to send selected entry as a request parameter and how to get it in servlet.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.