Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
~12.0K People Reached
Favorite Tags

65 Posted Topics

Member Avatar for softswing

Probably this is what you are looking for [URL="http://www.javaworld.com/javaworld/jw-11-2004/jw-1115-swing.html"]http://www.javaworld.com/javaworld/jw-11-2004/jw-1115-swing.html[/URL]

Member Avatar for lookof2day
0
96
Member Avatar for Krimi

Use the following piece of code to get Windows OS Look And Feel [code] try { //org.fife.plaf.VisualStudio2005.VisualStudio2005LookAndFeel //de.javasoft.plaf.synthetica.SyntheticaStandardLookAndFeel //com.jgoodies.looks.plastic.Plastic3DLookAndFeel UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); } getContentPane().setLayout(null); [/code]

Member Avatar for masijade
0
172
Member Avatar for boyz

An example can be found here: [url]http://www.novocode.com/doc/servlet-essentials/chapter3.html[/url]

Member Avatar for himanijain
0
102
Member Avatar for chitian5057

JSPs are meant for creating static HTML pages with dynamic content. So you don't need StringBuffer.append(?).. All you need is calling JSP tags and scriptlets and saving the file with .jsp extn.

Member Avatar for javaAddict
0
159
Member Avatar for prashant37

404 error is File Not Found. You need to learn the basics of Web Programming.

Member Avatar for prashant37
0
130
Member Avatar for boyz
Member Avatar for boyz

Database drivers (jdbc,odbc,.net...) are provided by database vendors or third party vendors and not generated. JDBC drivers are loaded into the JVM at runtime. Please refer some books on JDBC Connectivity

Member Avatar for varunnanda
1
241
Member Avatar for Emret

Have you checked the ConnectionSmpp object here [code]ConnectionSmpp con = ocm.getConnection(); ocm.submit(con); [/code] I mean is it containing a valid value??

Member Avatar for doctorfox
0
239
Member Avatar for jralexander137

Modify the hash method to [CODE] private int hash(char[] key){ int hashVal = 1; int prime = 31; for(int i = 0; i < key.length-1; i++){ hashVal = prime * hashVal + key[i]; } System.out.println("Hash Value is: " + hashVal); return hashVal; } [/CODE] You don't require those statements. The …

Member Avatar for ivakadfc
0
177
Member Avatar for justM

You can store the results in to two separate maps. Then iterate over each map and compare each object in the two maps.

Member Avatar for justM
0
99
Member Avatar for lookof2day

I've been trying to get a list of values from database using hibernate. I'm using MS SQL Server XE 2005 and using Hibernate 3.2.2 to fetch DB rows. I've tried JDBC drivers provided by Microsoft as well as jTDS but all I get is an empty list. Here is my …

Member Avatar for lookof2day
0
826
Member Avatar for redmaverick

For a simple online store you don't really need to know JSF. However, you should know Servlets and JSP for the same in Java world. Also, do not use JDBC-ODBC bridge. Use JDBC Type 4 driver available at MySQL site. Any book on servlets can give you a good start.

Member Avatar for lelah
0
152
Member Avatar for hamada_1990

You can also use the default theme Nimbus of Solaris 10 on Ubuntu though you'll have to work a little hard to find it. Although I was trying to upload it here but alas, the size is too big. It is a very nice theme. I cannot say what you …

Member Avatar for hamada_1990
-2
433
Member Avatar for priyapratheep
Member Avatar for peter_budo
0
172
Member Avatar for lookof2day

Well any Java programmer knows that a Java Interface only allows declaration of methods. You cannot define the methods inside interfaces. Yet if somebody like me wants you to define a method in interface and wants the program gets compiled and runs successfully, what would you do? Well the answer …

Member Avatar for Ezzaral
0
720
Member Avatar for haf
Member Avatar for kc8pdr

First of all Tomcat is a WebServer and has a JSP/Servlet engine called Catalina to process JSP and servlet requests. It cannot process EJBs whereas, JBoss is an AppServer. Second, you are trying to compare apples with oranges which does not make any sense. So please first ask yourself what …

Member Avatar for sbhavan
0
110
Member Avatar for euniceee

If you are really interested you can refer the following link [URL="http://builder.com.com/5100-6370-5031703.html"]http://builder.com.com/5100-6370-5031703.html[/URL] However, others have already pointed out not to do so.

Member Avatar for lookof2day
0
212
Member Avatar for lookof2day

Hi I'm trying to compare two files names using the function given below. The files to be compared are named as xxx_yyy_abc_def_.rtf && xxx_yyy_abc_def_.html The extentions and the underscores are removed from the file names and then stored in two different arrays. So the file names stored in arrays are …

Member Avatar for lookof2day
0
137
Member Avatar for lookof2day

Hi ! I'm trying to find the substring in a shell script as given: [code] #! /bin/bash HTML="<html><body>OK</body></html>" OK="OK" OFFSET=`expr index $HTML $OK` OK_LEN=`expr length $OK` var1=`expr "$OFFSET"` echo $var1 var2=`expr "$OK_LEN"` echo $var2 INPUT=`echo | awk '{ print substr("'"$HTML"'",var2,var1) }'` echo $INPUT [/code] But on running it does not …

Member Avatar for ghostdog74
0
133
Member Avatar for lookof2day

Hi, I'm trying to reproduce a Production Exception. In order to reproduce it I want to limit the size of my log file. Is there a way so that I can limit the size of my log i.e., my log should not grow beyond a limit. Is there a java …

Member Avatar for ~s.o.s~
0
158
Member Avatar for vinithktp
Member Avatar for mrityunjay22
Member Avatar for sania kohli

[QUOTE=vsmaddy;480549]pls yaar pls hotel management ka code de do, i need it , yaar nahi to 2 years wasre ho jainge , pls bro, 100 marks ka sawal hai[/QUOTE] In this forum the rule is not to do somebody else's homework or project work. Whether its a question of 100 …

Member Avatar for darkagn
0
433
Member Avatar for mrityunjay22

Are you using WTP plugins with eclipse or simply eclipse. If in case you are using simply eclipse, then there is no way to configure your App Server with it. However, you can still compile your servlets in Eclipse and get it running on App server. This can be done …

Member Avatar for lookof2day
0
140
Member Avatar for harbir

You can do so by passing the bean in session/request scope when you are clicking the link.

Member Avatar for lookof2day
0
124
Member Avatar for Java-Newbie
Member Avatar for princestasnley

Practice, debug, solve others problems, read JSRs, reviews and counter reviews. Update yourself on other similar or advanced technologies. And the list is too big....

Member Avatar for lookof2day
0
100
Member Avatar for arunprashanth

Refer RequestDispatcher.sendRedirect() API + tutorials for more information. Refer your text too. They will guide you.

Member Avatar for lookof2day
0
99
Member Avatar for Jishnu

I have used static nested classes in struts to populate a html list from database objects. If you are using struts you might find them handy.

Member Avatar for lookof2day
0
331
Member Avatar for chicago1985
Member Avatar for lookof2day
0
81
Member Avatar for boyz

Read weblogic documentation regarding services. You can also create a startup batch script.

Member Avatar for lookof2day
0
58
Member Avatar for paydfody
Member Avatar for jwenting
0
122
Member Avatar for Barefootsanders

Well you require a combination of JSP and JavaScript. I don't have the code right now but will work on it and provide it to you. The logic is: 1) Retrieve a java.util.List of Objects from database in a user session. 2)Iterate over the java.util.List and populate the objects in …

Member Avatar for lookof2day
0
105
Member Avatar for amylaney
Member Avatar for ukankissthis
0
111
Member Avatar for Melzy

The given code might help... [code] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="person.Person" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <% Person [] persons = new Person[3]; persons[0] = new Person("aaa","aa","dfdd"); persons[1] = new Person("vvv","vvv","dfgd"); persons[2] …

Member Avatar for lookof2day
0
264
Member Avatar for Rajesh.D.N
Member Avatar for masijade
0
110
Member Avatar for w32.sysfile

Well in that case I simply add a readline statement after the print statement. So unless and until you don't press a key it won't exit.

Member Avatar for lookof2day
0
157
Member Avatar for blanklogo

It works pretty fine. I think your source file name is different than the class name i.e., PayrollApp. Rename the source file to PayrollApp.java.

Member Avatar for johnsene
0
153
Member Avatar for Pinky.Rozita

Hi, You are using jdbc-odbc bridge to connect to Oracle db here [code]try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:prodDSN"); st = con.createStatement(); [/code] You might have successfully created the odbc data source. But it is the Tomcat runtime that needs to know about the odbc datasource. You'll have a tough time …

Member Avatar for lookof2day
0
248
Member Avatar for tinamary

Java is both - a Framework and a Language. As a Language, it has all the features of a programming language. As a framework it laids down the requirements which must be met by all the vendors developing Java/JVM. Moreover, now Java is open source whereas, dotnet is propritarty of …

Member Avatar for ~s.o.s~
0
140
Member Avatar for MxDev

People write specific dlls that are specific to their applications and there dlls are required to be registered with Windows registry so that the calling application knows where the library can be found. Suppose you are using Oracle as a db server then your application requires oci.dll file to connect …

Member Avatar for lookof2day
0
105
Member Avatar for kedarkhedkar

You can use JavaScript for displaying timer and there is no need for binding it with a session. Rather, as soon as the user will click start exam button and the jsp page with questions is diplayed, the timer will start executing. When the user ends the exam, the timer …

Member Avatar for ~s.o.s~
0
145
Member Avatar for sathya_k_83

Hey 500 means internal server error. please check the logs and then send the exact error/exceptions. 500 can occur due to n reasons.

Member Avatar for lookof2day
0
107
Member Avatar for java_starter

You are not passing the parameters in your setters but in your getters so all these errors. Just make changes like [code]public void setTotalPayment(double d){ totalPayment = ;//or whatever you logic is to calculate the total payment } [/code] Similarly for getters, [code] public double getTotalPayment(){ return totalPayment; } [/code]

Member Avatar for jwenting
0
166
Member Avatar for saifjob40
Member Avatar for john_sm
Member Avatar for lookof2day
0
66
Member Avatar for bdichiara

Tomcat 5.0 onwards support hot deployment that means any changes to your JSP pages will be reflected back once the request is made for that page again. Here, I mean changees made only to JSP pages will be reflected not to your servlets or Java beans. All you need to …

Member Avatar for ksaxena
0
118
Member Avatar for MonkeyGarage

Where have you kept the mysql-connectorxxx.jar file in your web application. It should be stored inside the $CATALINA_HOME/lib directory and the Tomcat server needs to be restarted once it is placed there so that the JVM of Tomcat can find the mysql specific JDBC drivers at runtime and establish connection …

Member Avatar for MonkeyGarage
0
113
Member Avatar for ceyesuma

Hi, I have made some changes to the source code and made it work. You have to do the additional CreditCard related stuff yourself. In any case feel free to drop a message. Find the source in src.zip attached with this mail. If you do not understand it lemme know. …

Member Avatar for ceyesuma
0
131

The End.