36,051 Topics
![]() | |
I am developping an JEE application and i don't understand why this lines are not recognize by eclispe. I have import the library struts. If someone has an idea.... thanks [code=JSP]<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>[/code] | |
Hi, I have stumbled on an interesting problem. I have thought 'n' thought, but haven't come up with any good ideas of how to handle this. I have a text file that contains many records, but without the records being seperated. I need to figure out how to seperate these … | |
I want to knw whether I can access WAMP 's function (of course mysql) such as export & import programatically. (I am using java) or as mysql commands??? Thanks | |
plz help me in resolving a error:applet started:applet not initialized [code=java] import java.awt.*; import java.awt.Button; import java.awt.Label; import java.awt.TextField; import java.applet.*; import java.applet.Applet; import java.awt.event.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; //<applet code="prg9.class" height=600 width=500> </applet> public class prg9 extends Applet implements ActionListener { String str=" "; TextField tf[ ] = new … | |
Hello, I've downloaded the setup of Netbeans-6 IDE JavaSE for Windows from Sun's website. When I run the setup, it says, "Error starting program: A required .DLL file, USERENV.DLL, was not found". Has anyone faced this problem before? Please guide me. | |
Hi guys I am trying to prevent user to access directly using URL to my application , so in order to do that I have used security constraint in web.xml file and it works with me . my problem is in my application I am using href and redirect method … | |
v got a final year proj. which reqs us to build a network monitoring kinda tool initially we are just planning to do a basic boot failure detection of the client m/cs....atleast for this semester....then add better functionalities to it. 1) can anyone suggest how do v go about doin … | |
Hi All, Please tell me a good research idea to do a good project for my final year within 6 months. This is for my BSc Software Engineering degree. Its going to be an individual project and it would be great if its a research idea. :S I'm good in … | |
Hello every one, i m trying to use session in jsp application for remembering username from one page to another. it is working fine but when i use hyperlink to come back to home page the username becomes null. please help me how to remember username when user is using … | |
Hi, I am working on code to have a drop down menu from which you can pick items and add a button with that course. Unfortunetally, I can't get the button to display. And help is greatly appreciated. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class ComboBoxFrame extends JFrame { … | |
I'm supposed to merge a ordered data of two files into a third file, keeping the data in order. I'm suppose to create a MergeFiles application that merges the integers ordered from low to high in two files into a third file, keeping the order from low to high. Then … | |
Hi all, Im trying to get my head around object persistance, yet im getting nowhere. All i have found is examples of stuff to do with databases. Can somebody offer an explination for an idiot please. Regards Paul | |
Hey!! I am trying to make a 2-player game; where one player plays after the next. I have used socket programming in the code; so that, when the client (player 1) clicks on the window, the co-ordinates are sent to the server (player 2) and vice-versa. (For now, both player … | |
So one of the problems I have been having with my programs is the length of time it takes to print out a pixel map into the XPM file. I tested it with like : 500 rows and 2 columns -- 1 second 500 rows and 10 columns -- a … | |
![]() | Hey All, I have been asked to do a project on Java at school. We are still learning it at an elementary level... Many decided to do the project on things like ticket booking, banking and stuff... whereas I wanted to do something innovative and so decided that my topic … |
I have been asked to find the inefficiency in a piece of pseducode. I've looked at it but can't see it. IF count > 10 THEN WHILE x < 0 DO INPUT x ENDWHILE ENDIF My understanding: Count is evaluated. If count is <10, the app moves onto the next … | |
Hello, I am having a difficulty in passing a barrier of JAVA graphics generating. I hope you could explain some things to me, cause I have noone to help me and it is hard to get help in internet, because I feel like missing something important. The thing is I … | |
Hello, I have a problem.How I must add QMainWindow to my code, because the error is: [COLOR="Red"]Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method menuBar() is undefined for the type Calendar[/COLOR] [CODE]package Kalendarz; import com.trolltech.qt.gui.*; import com.trolltech.qt.core.*; import com.trolltech.qt.gui.QMenu; import com.trolltech.qt.gui.QAction; import com.trolltech.qt.gui.QApplication; import com.trolltech.qt.gui.QColor; import com.trolltech.qt.gui.QIcon; import … | |
![]() | For a computer networking course I was given a project to make a Mail User Agent. We were given a few completed classes, but one of them is giving an error. Here is the part of code in question: [CODE] try { Envelope envelope = new Envelope(mailMessage, serverField.getText()); } catch … |
Hello, I am trying to design an java desktop application. My question is: Is there a way to change the whole look? From example different titlebar, different jFrame, buttons... (designed with PNG images, transparency, etc.). Is it possible? If so, how? In VB or C# I can easely change those... … | |
[CODE]public class Test { static Test t = new Test(); public static void main(String[] args) { Test a = new Test(); System.out.println(a.t); }}[/CODE] This results stack overflow why[code][/code] | |
hi, i am new in java web application. i am working with eclipse 3.5 and tomcat 6. tomcat is working with eclipse very fine. but when i am trying to run jsp code, i am getting the following message from java virtual machine launcher, could not find the main class: … | |
Hello everyone, first of all, I dont know if this should be in the java or the jsp forum. I put it here since is a web related question. I am making a report module for a web page using java. For this I will use a jquery plugin called … | |
[IMG]http://i64.photobucket.com/albums/h200/chimine/Untitled-2.jpg[/IMG] it will then pop up this screen. [IMG]http://i64.photobucket.com/albums/h200/chimine/Untitled1-1.jpg[/IMG] how to do it? | |
hey guys, i'm new here! i would like to know how to code the "Add to cart" ? can someone help me please? | |
i am new to this kind of programming. please help me,. i got an IP address (32bits) & 3 int (32 X 3 = 96bits) totaling for 128bits i.e., 16bytes. my problem here is, how to club them all together to create a 16byte string. please help. thanks in advance | |
I have made a address book software with vcard ans csv support and a really nice interface. i have found no bugs so far. If i sell this software about how much should i charge? And does anyone know a site where i can get paid for my software? | |
I did this .. [CODE] String filename = "tempoutfile.txt"; String tablename = "table1"; try{ Connection con = DriverManager.getConnection("jdbc:mysql://localhost/Test","root",""); Statement s=con.createStatement(); ResultSet r=s.executeQuery("SELECT * INTO OUTFILE '"+ filename + "' FROM " + tablename); }catch(SQLException se){System.out.println(se.getMessage());}[/CODE] But I can't find the file that is created!! When I run the query in … | |
Hi all, Pls help me .I want to make multile JLabel or JTextField with multiple Link in Marquee.I can do only one.Here is my code [code=java] import java.awt.*; import java.io.IOException; import java.util.*; import javax.swing.*; import java.awt.event.*; public class MovingText extends JFrame implements ActionListener{ JLabel label; JLabel label2; JLabel label3; public … | |
I am trying to create a program that has a class with a method that accepts a charge account number as an argument. Then the method should determine if the account number is valid by comparing it to the list of accounts in a text file (Accounts.txt). Then method should … | |
I'm supposed to merge a ordered data of two files into a third file, keeping the data in order. I'm suppose to create a MergeFiles application that merges the integers ordered from low to high in two files into a third file, keeping the order from low to high. Then … | |
how to create a mutlipication table in java program for example: enter x=5 enter y =6 output is: 1*6=6 2*6=12 3*6=18 4*6=24 5*6=30 | |
I have a Java Program that I need to create that will show five random images selected form my image folder of 50 images. upon clicking a button the program should select 5 new random images. I have most of it figured out except for my ActionListener. Is it possible … | |
Ok so what i want to be able to do is connect to a mysql database. Here's my code so far: [CODE] Connection connection = null; try { // Load the JDBC driver String driverName = "postgresql-8.4-701.jdbc4.jar"; // MySQL MM JDBC driver Class.forName(driverName); // Create a connection to the database … | |
I have to write a program that has a tic tac toe board. When you click it, it should go from one image to another. My code compiles fine, but it doesnt run. I get some errors: Exception in thread "main" java.lang.NullPointerException at TicTacToe3.<init>(TicTacToe3.java:27) at TicTacToe3.main(TicTacToe3.java:41) My code: [CODE]import java.awt.*; … | |
I have my program working but, I need to cut out the repeated code. How do I change this part of my code to pass arguments to a user defined method? I'm lost. I really have no clue exactly where to start on this. Basically when a user clicks a … | |
I am a beginner with Hibernates. I added the appropriate files / Jar to my Project in netbeans ide 6.7.1. My Hbm file has multiple <class> </class>.. and i get this error. errororg.hibernate.InvalidMappingException: Could not parse mapping document from resource Customer.hbm.xml Was wondering this issue is associated with multiple <class>tags. | |
i have a question but am confuse the question is create and array of random double floating point numbers,calculate and print the sum off all the numbers in the array.truncates all of the numbers in the array up to 7 decimal places and then calculate and print the sum of … | |
In Design mode in NetBeans IDE, I had a palette with all of my AWT and Swing controls and some netbeans that I can drag and drop onto the Jframe I'm designing, I accidentally closed it. I am not seeing a menu option anywhere to add that palette back as … | |
Hello, I have the code: [CODE] public void color() { QColor color = QColorDialog.getColor(textEdit.textColor(), this); if (!color.isValid()) return; editor.setTextColor(color); } private void setupEditor() { QFont font = new QFont(); font.setFamily("Arial"); font.setFixedPitch(true); font.setPointSize(10); editor = new CodeEditor(); editor.setLineWrapMode(QPlainTextEdit.LineWrapMode.NoWrap); editor.setFont(font); new Highlighter(editor.document()); }[/CODE] but the error is : [B]The method setTextColor(QColor) is … | |
Hi.. Is there any ready-made code for "Binary Search Tree" for Strings? if not, how to use Binary Search Tree with Strings? Thanks. | |
![]() | Hi, I'm trying to figure out how to pass parameters across JSP pages without using links. For some reason, I can only get null across... Here is my code: Page 1 [CODE] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Test Page</title> </head> <body> <form name="testForm" action="Test.jsp"> <select name='tableSelect' onChange='testForm.submit();' style="text-align:center"> <option … |
When i do something like [CODE] static int call (Object a){ } main(){ call(10); } [/CODE] it works because of autoboxing But why didn't the language designers support something like this ? [CODE] static int call (Object []a){ } main(){ int []a = new int[10]; call(a); } [/CODE] Why didn't … | |
I'm writing pseducode for a Java class. Obviously being pseudo the language shouldn't matter but thought I'd mention it as it would explain any 'bias' I have. BTW, this is my first programming class. I'm revising for my end of semester exam. Write a pseudo code algorithm which will input … | |
Hi guys, I am trying to restrict users to access the sources of my application so I have used tomcat-users.xml file , but later I will be facing a problem which is how if I have a lot of authorized users , so I will add each one to that … | |
Alright guys i got another one: In the class Mymath, create a public method called calculateFactor. The method has two two arguments of type integer and checks whether the smaller of the two integers is a factor of the larger of the two integers. The method will return a factor … | |
Hello, I am having some difficulty in trying to figure out where I am going wrong in my program. I am trying to convert infix to postfix and from there I am evaluating the postfix. However, it is not compiling correctly. I've tried several things but nothing seems to work … | |
Hi. I have a web application whereby I perform a search through 4 fields, namely:book serial no.,tel no.,gender and publishing date.In my jsp page variables picking the values respectively are:serial,tel,gender and datez.These are submitted to the java class.Currently, I perform my searches as follows(in java class): /***********************************************/ [code=Java]//......after connecting to … | |
hi everyone, im have just started my java course and im currently doing a project using java applets. my project is web music website and the envisioned system should contain a shopping cart made of an applet. i would like to you to help me with just a syntax of … | |
Vigenère Ciphering You are to develop a program to implement Vigenère ciphering to encrypt and decrypt text information. A description of Vigenère ciphering can be found at: [url]http://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher[/url]. To illustrate encryption, a table of characters shown below can be used, termed a tabula recta, Vigenère square, or Vigenère table. It … |
The End.