36,051 Topics

Member Avatar for
Member Avatar for mattyg1192003

Hey Guys, I am a new student to Java and I am working on an assignment for school. I am not looking for anyone to do my work for me, just some guidance on what I can do to fix the problem. I have done research on this issue on …

Member Avatar for AhmedGhazey
0
3K
Member Avatar for abhisheyke

juz,i got a project online shopping, i have to use JSP/Servlet.I am familiar with jsp/servlet and database connectivity.It is my life's first project so i am very confuse.what should i do? Project minimum Requirement: Normal User can login,Sign up,add to cart, add to wishlist,no two purchase should add two time. …

Member Avatar for coervivekmca
0
107
Member Avatar for Thigina

Hi, while im doing my project, i have problem to save edited data from jtable into database..i have attach the sample interface and here is the code...please help me...tq [CODE] ResultSet rs=st.executeQuery("select * from 3BITC"); while(rs.next()){ jTable1.getValueAt(row, col); row++; col++; } rs.close(); try{ Statement st1=con.createStatement(); ResultSet rs1=st1.executeQuery("UPDATE 3BITC SET Status …

Member Avatar for Thigina
0
2K
Member Avatar for manish250

I have a silly question for you guys.i am running a java program [CODE]public class manish { public static void main(String s[]) { Date d=new Date(); System.out.println("Date is"+d.toString()); } } [/CODE] while i running this on RHEL 5.2 i am getting this output Date isFri Jul 08 10:55:30 IST 2011 …

Member Avatar for Majestics
0
225
Member Avatar for masterofpuppets

Hello guys, Here's a problem that's giving me a hard time. I am working on a web server in Java and right now I want to enable the user to create a photo album. The user can type the album name in an <input> field in an HTML form. The …

Member Avatar for masterofpuppets
0
173
Member Avatar for Majestics

Jtable insert new inserted row at the top.... I want the new inserted row below. Problem 10 james microsoft c.e.o 9 peter linux mgr requirement 9 peter linux mgr 10 james microsoft c.e.o

Member Avatar for Majestics
0
109
Member Avatar for sirlink99

I am wondering if there is an easier way to check if the mouse is in a rectangle. Currently I am using an if statement like so [CODE] if (mX > rectX && mX < rectX + 20 && mY > rectY && my < rectY + 10){ } // …

Member Avatar for sirlink99
0
102
Member Avatar for sirlink99

I have just started making a new program. I barely have any code, and when I load it the frame is clear for like 20 seconds and then it loads what goes into the frame. why does it take so long to load? I have another code that I tested …

Member Avatar for mKorbel
0
2K
Member Avatar for duuude

Hi, I'm trying to use tabbedpanes, my objective is to have a frame split in half( in height). You have the upper tabbed pane, and the lower tabbed pane. Both of them have the same three panels, so the user can choose wether to see panel1 in up and pane2 …

Member Avatar for Anuradha Mandal
0
140
Member Avatar for bhallarahul

Is it possible to run C/C++ program on java platform? if yes? please tell me how can i get the output of the program??

Member Avatar for komyg
0
126
Member Avatar for eman 22

how can i detect all cycles in the graph? i tried to use DFS and back edges and this ddetect some loops in te graph but not all cycles.

Member Avatar for Anuradha Mandal
-1
99
Member Avatar for komyg

Hi, I am deveoloping a Web Service solution that is hosted inside a JBoss 4.2.3 sever and connects to a JMS queue that is hosted on another server. So far I am creating a new connection to the JMS queue each time the web service is called, this means that, …

0
63
Member Avatar for bhawna_5nov

[ICODE] public void actionPerformed(ActionEvent evt) { String arg=evt.getActionCommand(); if(arg.equals("ORDER INFO")) { AppletContext context = getAppletContext(); context.showDocument ("file:///C:/Java/jdk1.6.0_24/bin/Order_info.html", "_blank"); Applet Order_info = context.getApplet("Order_info"); }[/ICODE]

Member Avatar for NormR1
0
164
Member Avatar for PythonNewbie2

Let's say I have a text file with these contents: [CODE] color1 = yellow.$199 * 100 color2 = red.$1 * 22 myNextColor = green.$3 whatsNext = blue.$$ oneMore = orange.$ [/CODE] I need to be able to get an array like this: [CODE]colorsInFile = ["yellow","red","green","blue","orange"][/CODE] In python, the regex for …

Member Avatar for AhmedGhazey
0
165
Member Avatar for Majestics

[code]ORA-00001: unique constraint (WAJAHAT.INVOICE_UQ) violated[/code] its the exception, i want to match it with condition and take decision , but its not working [code]if(e1.getMessage().equals("ORA-00001: unique constraint (WAJAHAT.INVOICE_UQ) violated"))[/code]

Member Avatar for mKorbel
0
116
Member Avatar for rsandp

sir/ma'am can somebody help me configure Textpad As i want to compile a java file and run it that i have saved in the directory of my choice 1.configure 2.preference 3.select Tools on the left hand side of the preference panel and select the java tools by adding them. after …

Member Avatar for Sadun89
0
337
Member Avatar for manish250

hello all i have a jap project.in which i have a lot of log(txt) files.what i want to do is searching a particular number in all log files and cut some fields of lines containing that number and show them as table in jsp page. currently i am using shell …

Member Avatar for kingman123
0
89
Member Avatar for yatin.baraiya

Hy all i want to display data in table format... as like below result. column1 column2 column3 1 2 sdg 3 4 dfg 4 6 gfdsg 6 7 ffdsg the following snap of my code is take the column title dynamically [CODE] <c:forEach items="${emplistlist}" var="demos"> <TD><c:out value="${demos.columnam1}" /></TD> </c:forEach> [/CODE] …

Member Avatar for anand01
0
2K
Member Avatar for anand01

hi all, I am quite new to J2EE . I want to connect mysql database which one will be best jsp or servlet.... the thing is we need to establish connection each time. Insted of that just one Java class will do that and the other classes call the method …

Member Avatar for anand01
0
129
Member Avatar for gbatemper

I was making a basic nooby java tribe game, and I needed a way to return to main menu. Can anyone tell me of any methods? This is my current code (incomplete) I want it to return to main menu if a certain number is entered after the stats are …

Member Avatar for NormR1
0
5K
Member Avatar for Java John needs

I can ot get my output to reflect accurate info, does anyone have a possible solution? /////////////////////////////////////////////////////////// import java.util.Scanner; public class Count { public static void main (String[] args) { String phrase; // a string of characters int countBlank; // the number of blanks (spaces) in the phrase int length; …

Member Avatar for NormR1
0
279
Member Avatar for Krokcy

Oka. So i have this rather simple program, basically i want it to be able to count the number of hours it has been open. My problem is that i am trying to use [CODE]import java.util.date; Calendar calendar = Calendar.getInstance();[/CODE] And apperently this does not update after the program has …

Member Avatar for Krokcy
0
190
Member Avatar for sagngh8

Hi Everyone, I am using the java applet to take screenshot of the web browser using the java's robot class. Robot objRobot = new Robot (); BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); The thing work good in windows system taking screenshot but in case of mac osx i get the blank image.When …

Member Avatar for Ezzaral
0
456
Member Avatar for manish250

hello all i am doing a copy operation from a file to another file.in source file i have 13 digit no but in destination file there is only 12 digit copied.code is as follows. [CODE]public void createOriganalFile() { try { File ObjInputFile1 = new File(strFilepath + "_dummy.txt"); File ObjOutputFile1 = …

Member Avatar for hfx642
0
201
Member Avatar for rsandp

Sir/ma'am , please help me how can I convert an integer to a string in java without using a convertSimple(); convertInteger(); convertFormat():

Member Avatar for NormR1
0
92
Member Avatar for yancouto

Hey guys, I'm working on a game, and I was trying to mirror the gif images inside the program so I wouldn't have to do it manually (And also so it wouldn't use twice as much space to store the mirrored gifs). Anyway, I Google'd it and found [URL="http://stackoverflow.com/questions/1708011/create-a-imageicon-that-is-the-mirror-of-another-one/1708909#1708909"]this answer[/URL], …

Member Avatar for Ezzaral
0
543
Member Avatar for by_stander

Hey all, I'm having some issues using ArrayList. Here's the code.. [CODE] ArrayList<Double> var = new ArrayList<Double>(); var.add(15.0); var.add(0.0); [/CODE] I could just use [CODE] double[] var = {15.0 , 0.0}; [/CODE] for this.. but I'm trying to teach myself Java and need to understand the use of ArrayList. Any …

Member Avatar for by_stander
0
7K
Member Avatar for t@sos

Hello to everyone, I am new to this forum as I am new to Java. I would like to know if anyone has come up with a method that helps in learning the huge collection of classes of the Java API. I know that question is not easy to answer. …

Member Avatar for gyno
0
2K
Member Avatar for Dranip
Member Avatar for cazaletm

Hello great java minds. Could you please tell me why I get "illegal start of expression" errors for the following headers? Thanks for your wisdom!! Lines generating this error: [CODE]public static String getName()[/CODE] --and-- [CODE]public static void displayResults()[/CODE] Here is my first class (that includes this code): [CODE]import java.io.*; import …

Member Avatar for jwenting
0
6K
Member Avatar for abhisheyke

Hello dere.. I am trying to create a log-in and log-out page in JSP. HttpSession started when it get successful log in.While calling session.invalidate() for log out, session did not get destroyed,it retains all the attribute it had.. What should i do?? plz help me

Member Avatar for javaAddict
0
54
Member Avatar for Kate Teoh

Hi, I had developed a system which run well at localhost but once run at server, the following error will appear: Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre6\bin\awt.dll: The specified procedure could not be found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.security.action.LoadLibraryAction.run(Unknown …

Member Avatar for ~s.o.s~
0
349
Member Avatar for varoluscu_prens

Hi there; There is such a simple code here, and with the propotion of its simplicity, it drives me crazy. Here is the code: [CODE] private void fillArrayLists(String fileName,ArrayList <String> list) { try{ // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream(fileName); …

Member Avatar for varoluscu_prens
0
179
Member Avatar for MxDev

hi guys, currently am planning to buy an exam simulator for SCJA exam so which one is the best to get prepared for the test [COLOR="Red"]ucertify [/COLOR]or [COLOR="Red"]whizlabs[/COLOR]?? if there's any other of these please mention it here. Thanks

Member Avatar for MxDev
0
99
Member Avatar for Jessurider

can anyone tell me why this project(attached) is slow in execution!!!! is there any remedy for this problem...... please anyone tell some tip to make this project to run faster..........

Member Avatar for teo236
0
141
Member Avatar for newcoder310

Hi, I'm getting the following while trying to execute my spring program [CODE] 5 Jul, 2011 7:22:08 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@18a47e0: display name [org.springframework.context.support.ClassPathXmlApplicationContext@18a47e0]; startup date [Tue Jul 05 19:22:08 IST 2011]; root of context hierarchy 5 Jul, 2011 7:22:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions …

Member Avatar for masijade
0
78
Member Avatar for abery

I am making standard login panel in JSP, and it looks like this: Please enter user name and password: Username: [__________] Password: [__________] [submit] [reset] Where underlines between brackets are edit boxes, and "submit" and "reset" are buttons. It corresponds with this code: [CODE] <form action="main.jsp" method="POST" name="form"> Użytkownik: <input …

Member Avatar for masijade
0
211
Member Avatar for Dhanesh10

hello everybody, i am using java as front end and ms access as back-end for my mini project, in my database, in couple of the tables there is field which i've declared [COLOR="red"]primary key[/COLOR] for those respective tables and which has type of [COLOR="Red"]autonumber[/COLOR]. so my question is, while inserting …

Member Avatar for Dhanesh10
0
363
Member Avatar for divyakprabh

Hi, I wanted to know if there is a configuration in JBOSS to deploy a java application but not ready to serve until we wish to start the application for the requests, like in websphere having a option to start a application after deployment. Can anyone help me.??? Thanks in …

0
57
Member Avatar for akasekaihime

We are suppose to create a registration form but it is not running! can you please help me and teach me what is wrong and what i am suppose to put! thank you! here is my code.... [CODE]import java.io.*; public class regform { public static void main(String args[])throws IOException { …

Member Avatar for NormR1
0
125
Member Avatar for Armanious

[CODE] private static int[][][] pieces = { { { 1, 1, 1, 1, 1, 1, 1, 1 },{ 1, 1, 1, 1, 1, 1, 1, 1 },{ 1, 1, 1, 1, 1, 1, 1, 1 },{ 1, 1, 1, 1, 1, 1, 1, 1 } },{ { } },{ { …

Member Avatar for skatamatic
0
1K
Member Avatar for itsmeisuru

Hi, I followed the following [URL="http://www.coderanch.com/t/424312/JBoss/Configuring-Eclipse-JBoss-MySQL-EJB"]http://www.coderanch.com/t/424312/JBoss/Configuring-Eclipse-JBoss-MySQL-EJB[/URL] to configure JBOSS and MSSQL Server in Eclipse. But I'm getting an error and I tried many ways but I'm still there. (In this guide "5. Copy the driver libraries to jboss-5.0.0.Beta4\server\default\lib" means copying jdbc.jar ??? right?) When I run an EJB project I'm …

0
82
Member Avatar for jamd200

[code=java] /*This program takes two integers as command-line arguments (they are initially strings), and returns the sum, difference (based on the order they're entered in the command line), product and quotient (also based on the order they're entered in the command line) of those two integers. For example, in the …

Member Avatar for jamd200
0
2K
Member Avatar for saadismail85

Print stars in console like this using java ? ......* .....*.* ... *...* .. *.....* . *.......* ...*.....* ... *...* .....*.* ......* dot = spaces [B]look to my code just i need to print border not filled shape[/B] [CODE]import java.util.Scanner; public class Stars { public static void main( String args[] …

Member Avatar for stultuske
0
816
Member Avatar for varoluscu_prens

Hi There; I know that it is a very easy-to-solve question, but the situation drive me crazy. Here are the simplest jsp code and the expression side do not work in my machine: [CODE] <HTML> <BODY> Hello! The time is now <%= new java.util.Date() %> </BODY> </HTML> [/CODE] The time …

Member Avatar for varoluscu_prens
0
88
Member Avatar for smoothe19

Well as the noob that I am in this category this is literally my first JSP tutorial program I am almost done but got these two errors.. [CODE]org.apache.jasper.JasperException: file:C:/Documents and Settings/sa456p/My Documents/NetBeansProjects/IFPWAFCAD/build/web/index.jsp(6,60) PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this …

Member Avatar for peter_budo
0
277
Member Avatar for phoenx

anyone know how to fix the border so that box stay on its position..any reply tanx..:D [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Exer extends JApplet implements ActionListener{ JButton button1, button2, button3; JTextField tf1, tf2, tf3 ; JLabel counter1, counter2, sum; int total = 0, ans1,ans2; public void …

Member Avatar for Majestics
0
138
Member Avatar for akasekaihime

can you help me correct my java code......I do not know what is wrong with it... [CODE]import java.io.*; public class info { public static void main (String args[])throws IOException { BufferedReader br= new BufferedReader (new InputStreamReader(System.in)); String name,course; char section; int id,ctr=0,answer=0; do for(ctr=0;ctr>=3;ctr++) { System.out.print("\n Enter Name: "); name=br.readLine(); …

Member Avatar for stultuske
0
105
Member Avatar for newcoder310

Hi, Can any1 tell me wht is the problem if i can't find an import in a main class [CODE] import org.springframework.context.ApplicationContext; [/CODE] It says that the import cant be resolved. thanks

Member Avatar for newcoder310
0
78
Member Avatar for PythonNewbie2

Is there an easy way to go through an entire directory recursively to find all CSV files? In python, there's os.walk and I see that Java has FileVisitor, but I have no idea how to use it correctly ([url]http://download.oracle.com/javase/tutorial/essential/io/walk.html[/url]). What I want to do is something like this (pseudocode): [CODE] …

Member Avatar for peter_budo
0
226

The End.