Javed Mohammed

Greenhorn
+ Follow
since Sep 29, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Javed Mohammed

ADMINS : I have duplicated this post in 'Engineering - general computing' by mistake. Please delete the other one. Thank you.

Hi,

I am using an MS Access database and JDBC-ODBC Bridge with ODBC connection to get my data. This works fine when the database is on local computer but fails when the database is on network

Am I missing anything? I am posting the DB connection code below.

Thank you for the help.

Javed.



PA is the ODBC connection to the actual database.

Hi,

I am developing a pizza order management system in Java and I am using JTable to display the items ordered. JTable has 4 colums, item (pizza, pasta, etc), size, price and comments.

Is there a better component for this kind of display?

Thanks and Regards,
Javed
14 years ago
Hi,

Can anyone please let me know how can one increse the web site rank to have a higher visibility for the search engine.

Thank you.
15 years ago
Hi,

The objective is to get data from the DB and print it.

I got connected to the DB, got the required data. Poplated the data in JTable and used the below mentioned method to print.



It goes to the printer and prints the page with header, a blank box and footer. I checked the JTable and data is populated in it.

I am not displaying the JTable data on the screen, could this be a problem?

Thanks in advance,

Javed Mohammed.
16 years ago
Thanks Ben,

My design is exactly as what you suggested. I am storing a User obejct and checking in the jsp for the availability of the User obejct. If not available redirecting the user to the Login page.

Thanks for your help.

Regards,

Javed.
16 years ago
JSP
Hi,

I am developing a jsp/servlet based application where once user is logged in, pages are displayed based on the user role.

I want to build security in the JSP to restrict the user from directly calling a jsp page without logging in.

When a user is logged in, I create a User object and store it in session. In every page I check if the User object is available in the session, if not the user is redirected to the login page.

I want to validate this approach with you all. Please let me know if there is a better option.

I tried request.getSession(fale) == null in the JSP but it always returns a session

Thanks in advance.

Javed.
16 years ago
JSP
okay, I thnk I got it.

Sicne the foward does not change the URL, it is stying the same on the browse. I guess I was concerned for no reason. As mentioned earlier, the app is working fine

Thank ya'all for the help.
16 years ago
Hi,

I just started a web app with login jsp and a servlet. When the login is successful, user should get a welcome message,
other wise login page should be displayed with error message. This is working fine except for one small glitch.

my login URl is
loclahost:8080/webApp/Login.jsp

when the servlet is forwarding, the url in the address bar is displayed as
http://it-laptop2:8080/webApp/servlet/controlerservlet

insted of
loclahost:8080/webApp/Login.jsp

Is this normal or am I doing something wrong?

I am using Tomcat 6 server and my servlet code looks like this.....

16 years ago
Hi,

I have a java program which monitors a site and sends email notification if the site is down. I have this running on my local machine and I want to put this onto my project server which is a Sun Sparc.

I have no idea about Java on sun box, what is the difference between the JDk windows version and Sun version.

I have downloaded and extracted the tar file, could see .SO files in the lib directory where I expected jar files (as in windows) so I got confused.

Also, to use Java Mail, I have to use activation.jar and mail.jar, what are the corresponding Sun Sparc equivalents?

Thanks in advance,

Javed Mohammed.
17 years ago
Hi,

Is there any tool available to monitor the availability of a web application. The problem I am facing is that the server is running but the application is not availale and I am getting informed from the end user

Any help appretiated. Thanks in advance.

Javed.
17 years ago
OOPS.......I did mean to say that static varibales does not need an object, that was a typing mistake.

"An object is created when class is loaded", this answers my queston.

Thanks everybody.
18 years ago
Hi,

I understand that an object and its instance variables reside on heap, when the object is created.
Each object will have its own copy of instance variables.

Where and when does a static variable reside. If I am right, it does need an object to be created. Also, when two objects of the class are created, boh objects share the same copy of the static variable. Hence, the static variable is not living inside the object, then where is it?

Thanks and Regards,

Javed.
18 years ago
Hi,

Do you provide H1 visas?

Thanks and Regards,

Javed.
18 years ago