- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
65 Posted Topics
Re: 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] | |
Re: 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] | |
Re: An example can be found here: [url]http://www.novocode.com/doc/servlet-essentials/chapter3.html[/url] | |
Re: 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. | |
Re: 404 error is File Not Found. You need to learn the basics of Web Programming. | |
Re: 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 | |
Re: Have you checked the ConnectionSmpp object here [code]ConnectionSmpp con = ocm.getConnection(); ocm.submit(con); [/code] I mean is it containing a valid value?? | |
Re: 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 … | |
Re: You can store the results in to two separate maps. Then iterate over each map and compare each object in the two maps. | |
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 … | |
Re: 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. | |
Re: 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 … | |
Re: Are you still facing problem. Send your directory structure | |
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 … | |
Re: Ha.. Haaa Haaa | |
Re: 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 … | |
Re: 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. | |
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 … | |
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 … | |
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 … | |
Re: Have you properly configured the servlet information in the web.xml file... ??? | |
Re: Do your eclipse knows the directory of Tomcat? Have you configured it?? | |
Re: [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 … | |
Re: 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 … | |
Re: You can do so by passing the bean in session/request scope when you are clicking the link. | |
| |
Re: 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.... | |
Re: Refer RequestDispatcher.sendRedirect() API + tutorials for more information. Refer your text too. They will guide you. | |
Re: 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. | |
Re: Better option is to upgrade your container or do it in Servlets | |
Re: Read weblogic documentation regarding services. You can also create a startup batch script. | |
Re: U should use java.util.Random or Math.random() to generate random numbers. | |
Re: 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 … | |
Re: So what's ur exact problem? Displaying the result, or reading from commandline or what? | |
Re: 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] … | |
Re: [code]String user="root@localhost"[/code] should be [code]String user="root";[/code] | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Hey 500 means internal server error. please check the logs and then send the exact error/exceptions. 500 can occur due to n reasons. | |
Re: 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] | |
Re: Yes you can. Refer Dietel Programming in Java. | |
Re: IBM Websphere Application Server Community Edition/Apache Gernimo | |
Re: 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 … | |
Re: 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 … | |
Re: 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. … |
The End.