hi everyone
i wanted to know if we can have sequences in mysql as we have in oracle
i know one approach in which we create a table which has columns for sequence name and value but this requires a calls to the database to get the nextvalue and to increment the same.
i was wondering if anything else could be done to avoid this whole stuff
User Profile
Collapse
-
pagination in swings
Hi could any one give some references for pagination with caching in swings -
Clear Browser History
How can I clear the browser history while logging out from Application. -
sorry, but i thought the purpose of these blogs was to solve the problems -
the reasons why your int value was long because in binary representation( 2s complement) the first bit is the sign bit.Leave a comment:
-
Try this
Code:package com; public class NumberToString { public final static String[] arr={"","one","two","three","four","five","six","seven","eight","nine"}; public final static String[] arr2={"","ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
Leave a comment:
-
use the page directive to import the java code to your jsp
then you can easily call the method in the jsp its simple java there
Code:<%@ page import="mypackage.*" %> and somewhere in the jsp <% Myclass check = new Myclass() check.mymethod(); %>
Leave a comment:
-
MYSQL vs QED
Hi,
it would be great if any one could give pros and cons, i tried to google but didnt find anything useful. -
compression in mysql
Hi i m new to mysql i was wondering if there is any mechanism for compression of images before storing them -
maverick19 replied to I am in a horrowble situation. Plz help me!!!!(Socket connection) near to deadline.in Javatry this url it might help
http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.ht mlLeave a comment:
-
maverick19 replied to I am in a horrowble situation. Plz help me!!!!(Socket connection) near to deadline.in Javato my understanding
the c program is running on a different machine
this c program gives the port at which it will listen this is passed to the jsp
the jsp then sends the data to the c program
is this correct.Leave a comment:
-
maverick19 replied to I am in a horrowble situation. Plz help me!!!!(Socket connection) near to deadline.in Javai used your code in a java program to read a tex file
and the i checked the output at http://localhost:4242/ it showed it correctlyLeave a comment:
-
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Cents to Dollars</title> <script type="text/javascript"> <!-- HIDE FROM INCOMPATIBLE BROWSERS function calcCents (){ var cents = document.money.cents.value; var
Leave a comment:
-
try this
Code:package com.test; /* Jose N. Ramirez CS151 This program will key you a brief overview of how Java uses the new Scanner class to accept integers entered then adds them by the user via the keyboard and assigns them to a primitive variable. */ import java.util.*; public class Math223
Leave a comment:
-
The code that horace gave has be started separately in a different thread
because it goes into infinite loop waiting for request at the specified port.
if you call it from jsp it will hang.
and clean the resources in the finally blockLeave a comment:
-
javascripts may not be enabled which may the problem
further why do you want to submit it using javascript?Leave a comment:
-
$ symbol should be avoided as it is present in the bytecode for some internal manipulations (this might confuse the jvm)Leave a comment:
-
i think you should use stored procedures for this case
this would be far more efficient than using threads and making unnecessary objects on the heap for processing . You also dont have to worry about lockingLeave a comment:
-
-
using fully qualified names in the body is a bad coding practice. try not to do itLeave a comment:
No activity results to display
Show More
Leave a comment: