Programming tutorials online .NET, Java, C++, Visual Basic, and More

.NET Tutorials
General Programming Tutorials
Site Extras


Java/J2EE Forum

Open forum for discussing anything Java related. J2EE, JSPs, servlets, EJBs, JDBC, its all fair game and can be found in the Java/J2EE forum!

Previous Page Next Page Collapse All | Post Message
Please check our Struts tutorial -- (0)
VisualBuilder 6/4/2007 10:09:00 AM
We have various tutorials that are worth your attention. We are adding around 2 major tutorials a month.

JSP Tutorial

Java Tutorial

Java Web Component Tutorial

JSP Design Tutorial

Struts Tutorial

Java Hibernate Tutorial

UML Tutorial

We tried adding them to this site but couldn't as the contact form was giving an error.

Thanks. (0)
VisualBuilder 6/4/2007 10:07:00 AM

I am new java developer. Now i am doing one struts application.

In my application, at the User registration time, i need to Encrypt the password field and then i like to store into the database.

After that the same user will be logging, at the moment the database password will decrypt and it will be compare to the User entering password.

If both password's are equal, then only the User will allow the logging.

can anybody know or have any sample code for Encrypt and Decrypt.

If yes, kindly post me, my mail id is .

I am expecting anyone's reply.


Tamilvanan (1)
ttamilvanan81 5/24/2007 12:12:00 AM
J2EE Heap size limit on Windows

We are using J2EE Web server on Windows OS. The sizing tool for our product recommends using RAM of about 12 GB.

But, we found that J2EE web servers will be haivng a limit of 1.5 GB heap size, making the remaining 10 GB of RAM useless.

Is there any way to overcome this problem?

Thanks in advance,
Shilpa (0)
Shilpa Ambi 5/23/2007 2:03:00 AM
Hai all,
I need to export the Foxpro dump file into MSSQL using java source code in the J2EE application.
Can anybody help me, if anyone can know this, please kindly post me.

Advance Thanks for useful replies

ttamilvanan81 5/8/2007 3:20:00 AM
I am starting to put Java tutorials online on They are free and will always be free, so please let me know if you think they are helpful. (0) curtisf14 5/2/2007 6:50:00 PM

A beginner java tutorial website covering basics of programming along with java source code.

jdbc tutorial teaching jdbc programming using java jdbc odbc connectivity on a oracle database with example source codes.
hemanthjava 4/11/2007 9:42:00 PM
Java coding problem (0) elangkin 4/9/2007 10:09:00 AM
i wanna make an aplication VoIP (Voice over IP) ->client /server UDP

float sampleRate = 8000.0F;
int sampleSizeInBits = 8;
int channels = 1;
boolean signed = true;
boolean bigEndian = false;

i wanna make an optimisation for voice buffer for less trafic on the network
give me some tips
Edit/Delete Message (0)
CoBRaRO 3/30/2007 2:20:00 PM
I have a class in which i have a function that calls another 3 classes.
Each class returns a value to this function. Now i want to display these 3 values in 3 different columns in a XML document. How do i return these 3 values or send these 3 values seperately(say in different hashmaps). (0)
Namita_Prakash 3/28/2007 3:13:00 AM

I want to declare a string array without mentioning its dimension which according to my knowlegde can be done as - String[ ] str; .
Now suppose this string has some values and i want to assign a part of these values to another string say String[ ] str1 .
for example-
for(i=4;i {
str1[ j ]=str[ i ];

Error - str1 may not have been initialized.> (0)
Namita_Prakash 3/28/2007 1:24:00 AM
hai i have one j2ee project.It's already developed one. and i want to know how deploy and run the project in tomcat server. and i use eclipse IDE.The project contains some folders and WAR files.please tell me how deploy and run the project step by step

bye san (0)
sanraj25 3/26/2007 11:38:00 PM
I am using rmi's in my program and i met with the following error::
Whenever i do the remote method invocation,the client rather than looking up or searching at the server whose IP address
is specified,ends up searching at loopback(i.e at IP address the command say

comp = (RemoteCommand)Naming.lookup(***)
is invoked...

I tried printing out the contents of the variable "comp" here and it is as follows::

Proxy[RemoteCommand,RemoteObjectInvocationHandler[UnicastRef [liveRef: [endpoint:[]..

I tried executing the client side with the following explicit declaration of the server IP address::

java -Djava.rmi.server.hostname= Engine

But still i faced the same problem..

However,when both the client and server are executed on the same system,the program works fine..

maverick13 3/23/2007 4:08:00 AM
I have 2 date fields(say: from , to) in JSP. based on these date, i want to retrieve data from MySQL database. In Database, the date format is "yyyy-mm-dd" but i am using date picker in JSP for entering From date and TO date. Could you please help me how to read these date fields so that i could use them in query. (0) HELP 3/20/2007 6:22:00 AM
Hi, I've a project to do and I'm finding some of it rather tough going! I have to create an Employee class which is a super class. It has two sub-classes Consultant and Manager. I also have to create an Assignment Class and a Project class and here is where my trouble starts. The Assignment class is to add an employee to a project. Assignment contains employees, start dates and stop dates.

The Project class has a name a number of assignments, a director, a start date, end date and a list of experts.

frazer 3/18/2007 4:58:00 PM
public class Addition {
public static void main(String args[]) {
int sum = 0;
int nums[][] = new int[3][5];

// give nums some values
for (int i = 0; i for (int j = 0; j nums[i][j] = (i + 1) * (j + 1);

// use for-each for to display and sum the values
for (int x[] : nums) {
for (int y : x) {
System.out.println("Value is: " + y);
sum += y;
System.out.println("Summation: " + sum);

i hope this may be useful to u.....
dont copy the code and run...

analyse the code and try to do by ur own....
Prakash.M (0)
oremprakash 3/6/2007 1:49:00 AM
I have a problem releted to java In my jsp page there are few checkboxs and also have a frame on that page where i call another page which contains submit button onclick that page i have to call above page(the page contains frame set).At this time I need the value of checked checkboxs (0) maneesh031 3/1/2007 1:57:00 PM
say its a server that launches threads upon connection.

public static int connCount;

which is incremented or decremented in the constructor / deconstructor of the thread class that launches .

public Class Run{
public Class serv{
public static int connCount;

public static void main(String Args[]){
//bla bla bla
// to launch we instantiate serverSocket and wait for connection
// then on connection, logic
if (serv.connCount > 50){
// Deny because of Max users
// Carry on



i hope that helps, my java is a tad rusty, and i'm not sure about the sign in front of the deconstructor. preferably you'd use static class method to access connCount.

Make sure you understand what static means. (0)
TakeOut{u} 2/21/2007 12:12:00 AM
Thanks for reply.
yes this is a multithreaded app.Can you please give me brief idea about logic statement which i can use.

Thanks and Regards
Ruchira (1)
ruchira 2/20/2007 11:17:00 PM
if its a multithreaded app, you can use a static counter and run a logic statement before launching a new thread on user connect, much like FTP servers do.
TakeOut{u} 2/20/2007 3:52:00 PM
all of this class and method crap isn't necessary.....if you only need to do a simple program, then just write one for loop with a nested if statement, that way it won't be so damn complex! (0) Sessions 2/20/2007 3:03:00 PM

My problem is that i want to restrict no of user to use application.
right now our application can be use by any no of user .i want to restrict no of user for example if i want to restrict 50 user then 51st user cant use that application.

Thanks and Regards
Ruchira (1)
ruchira 2/16/2007 2:30:00 AM
Help Please!!

Java is my first programming language and I'm having difficulty with an assignment if and else statements. I've tried several setups by my compiler countinues to tell me i'm making an else statement without and if statement. Please give insight if possible.

The problem is: I need to add a discount charge for a phone call if its over 60 mins, and and a tax charge for all calls made. (0)
most_divine_one 2/15/2007 7:11:00 PM
NEED UR GUIDENCE, Hi all , i have knowledge in j2ee platform . I want to create a web page . So what are the new technolgies are currently used for that and what are the things i want to install and which application server is best for that. (0) intelram 2/15/2007 6:33:00 AM
Hey guys new to java can any 1 give me coding for addition of 2 numbers using 2 dimensional array.... (1) saurab 2/13/2007 3:29:00 AM
Previous Page Next Page Collapse All | Post Message

Sign In
  Forgot my password


Featured Book

Introducing Microsoft .Net, Third Edition ($19.79)
Introducing Microsoft .Net, Third Edition

Featured Software

Microsoft Visual Studio Standard 2005 ($249.99)
Microsoft Visual Studio Standard 2005