pinga kanave

+ Follow
since Mar 11, 2010
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pinga kanave

Hi guys,

How would i configure my application server(TOMCAT) to only allow 10 concurrent connections at a time.
For every connection after that there should be a proper message indicating maximum connection reached.

9 years ago
IS javaFX a new trend in desktop application development?
Is that a reason why oracle/sun not promoting Swing application framework?
9 years ago

Martin Vanyavchich wrote:Hi,

your link is broken. As for desktop developement, check this tutorial. It uses swing and NetBeans.

this is the correct link
9 years ago
Hi guys,

Its been 3 year since i was in touch with JAVA.
Many things have changed since then. I know its hard for me to get in track soon. I hope you guys will help me find the exact track.
To begin with i have downloaded netbean 6.8 IDE.
I was going through some of training materials provided on netbean's official site .I decided to start with Desktop Application Development.

but to my surprise i noticed that SUN SWING framework is no longer developed and will not become part of the official Java Development Kit as was originally planned.
reference: /kb/ docs/ java / gui-db.html

Can any body please guide me through Latest technology in Desktop application development.
9 years ago
Hi guys ,
I m new to tomcat and using tomcat version 5.5.29 .

I have made following changes to include cgi functionality .

Removed the XML comments from around the CGI servlet
and servlet-mapping configuration in $CATALINA_BASE/conf/web.xml.

Renamed $CATALINA_BASE/server/lib/servlets-cgi.renametojar to $CATALINA_BASE/server/lib/servlets-cgi.jar.

Request you to guide me on the next step.
9 years ago

Bear Bibeault wrote:Modern JSP should use the JSTL (JSP Standard tag Library) and the EL (Expressions Language) and avoid scriptlets and scriptlet expressions.

jspx files are XML-formatted JSP documents that are used as intermediate formats or for JSPs auto-generated by code. It is not a suitable format for hand coding.

Being a novice to java I would like to begin JSP from scratch .I would like to know which technology should i prefer.
1) Developing web application using netbean.
2) Developing web applications using eclips.
3) Using any other technology.

Please suggest as i m so confused about my next step in building JSP.
9 years ago

Guilherme Mendonca wrote:Like Dadonas said, i think you are not in the right way, if you try to read Head First : Servlets and Jsps, this will teach you programming with better patterns and its easier than it looks.

You are right friend .I had done JSP a long time back. I would like to learn Latest approach for doing JSP programming. Request you to please give me a useful link/material to start with.

Also above link is forbidden in my office due to shopping category.

Expecting positive reply.

I would also like to know the difference between jsp and jspx pages.
9 years ago
Hi guys,
I have just started learning JSP and implemented login model in my application.

Request all of you to kindly go through the code and suggest any recommendation if required.

Though there is no error while executing the code and getting the login page . I just wanted to know whether the code is written in proper manner or not.

9 years ago
Hi guys ,

I want to develop a web page which is capable of executing the command on os and show the output on the browser.(Which involves reading and writing too.)

I m using jsp language to develop the web page. How would i use it to communicate with my linux server?

Any help regarding this would be be highly appreciated.
9 years ago
Hi guys , Thank you very much for your help and support throughout the installation.

I think this is a time to pay a little contribution to all the forum members.

Installing a Tomcat on windows box is not a difficult task but when it comes to linux Its very difficult to setup.

Request you to suggest any modifications if required.Later after all the modifications are done this will serve as a guide for newbies like me.

I m going to Post my experience in installing TOMCAT on linux.

Your comments are highly appreciated.

OS : Oracle Enterprise Linux 5.2 32bit
Step1: Install Tomcat, JDK, JRE

We are going to install following softwares in the newly created machines.

Make a folder named install in /.
Copy all the required softwares in /install.


Installation Guide:


I have choosen linux version of tomcat.
For Initial Setup You should always go for
Core version download.
downloaded apache-tomcat-5.5.29.tar.gz

This will create a new folder as apache-tomcat-5.5.29 in same directory.
go to apache-tomcat-5.5.29/bin

it will not run as java new version is not yet installed.

2) jdk-6u20-linux-i586-rpm.bin:
Next we will install latest jdk version.

This will create a new folder in

use it for JAVA_HOME.

3) jre-6u20-linux-i586-rpm.bin
Next we will install latest jre version.

This will create a new folder in
use it for JRE_HOME.

Step2:Configure java and TOMCAT

# javac -version
javac 1.6.0_20
# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO

######At this time java is set to default java in linux our aim is to change it to latest java version.
for setting up this you need root login therefore type

######Then you type

######Finally you type

........ and choose '2'nd option.

Now make sure you disable firewall .

Disable the firewall

I have created a script called Tomcat and pasted following content inside it.(All credit goes to original script writer)

Edit the lines that start with tomcat and export to match

Save the script with name “tomcat” to a location “/etc/init.d”

(at least on most newer releases since /etc/init.d is a standard now). Then you have to allow execute access to the script, so run:

Add to appropriate run level directories

The easy way to do this is to just simply run:

Add username/Password for tomcat manager:
How to add a new user name to tomcat manager:

just add line number 3 and 6 to /install/apache-tomcat-5.5.29/conf/tomcat-users.xml

1) <?xml version='1.0' encoding='utf-8'?>
2) <tomcat-users>
3) <role rolename="manager"/>
4) <role rolename="tomcat"/>
5) <role rolename="role1"/>
6) <user username="manager" password="tomcat" roles="manager,tomcat"/>
7) <user username="tomcat" password="tomcat" roles="tomcat"/>
8) <user username="both" password="tomcat" roles="tomcat,role1"/>
9) <user username="role1" password="tomcat" roles="role1"/>
10) </tomcat-users>

Restart tomcat server.
By using service tomcat restart.

If anybody faces any issue just PM me .I will try to help as soon as possible.

9 years ago
Hi ,

This is the first time i m developing a jsp page that will implement login functionality.

The database : Oracle XE.
Application Server : Apache 5.5.29
JDBC driver path=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jdbc/lib/ojdbc14.jar

Here is what i want to achieve.
There should be a Login page asking user about username and password.
After user click on submit username and password should get authenticated against oracle xe database .
If the credentials are correct then he should be redirected to Proper page (i.e.FirstPage.jsp) .
If the credentials are not correct then he should be given a message to reenter the credentials .
IMP: If user directly accesses the url by bypassing the login page i.e(FirstPage.jsp). He should be redirected to login page.
What kind of changes required at Application server end to incorporate the database connectivity.

Any help regarding how should i go about it is highly appreciated.

9 years ago

Jan Cumps wrote:java -cp .:<classpath to your Oracle XE jdbc driver> JDBCVersion

Thanks , I used following command to run my program.

Jan Cumps wrote:Can you try to add the current folder into your classpath:
$ java -cp . JDBCVer.....

I have tried it but still not working.
It gives me the list of options available with java.
I have installed ORACLE XE in my linux server.

I m not able to execute program which is just a test program to connect with database.

I m able to compile the program but while running it is giving following error.

My PATH Variable contains the following :

Some information that might be useful.


I have installed
following software on my linux machine.

Is there anything else required to run jsp pages on linux machine?
Please Help

Here are some details that might be helpful.

9 years ago