36,051 Topics

Member Avatar for
Member Avatar for abar_sow

I want to handle files of same type.For example if am dealing with txt files means i hav to read all the text files once and i should also find a certain keyword(similar keyword) which should exists in all those files. Anyone suggest how to do that.

Member Avatar for jwenting
0
88
Member Avatar for comtech

I just started learning java and encounter problem in writing a program that read in the value of height of a triangle. For example 1 AA 232 BBAA 34543 AABBAA 4567654 BBAABBAA Anyone plz kindly help me to write this program using loop. I only know how to print out …

Member Avatar for iamthwee
0
105
Member Avatar for pmhayden

Hi I am currently doing a project, part of which involves reading peoples information into a Database, the table in question being member_table which includes a 'Date of Birth' field. I have no problem doing this as all the information I want to assign to this table including DOB is …

Member Avatar for pmhayden
0
104
Member Avatar for sunflower_rahul

hi , i have to display the xml in jsp (Tree Format) .Using DOM ..its very expensive becoz its a very big xml. I have xml in string format in jsp. For example: String xmlString =" <ALARM_CONFIG_DETAILS><ALARM_TYPE_DETAILS><ALARM_TYPE>test</ALARM_TYPE><ALARM_TYPE_DESCRIPTION>efe</ALARM_TYPE_DESCRIPTION><ALARM_OPERATIVITA_DESCRIPTION>dfsdf</ALARM_OPERATIVITA_DESCRIPTION><ALARM_IS_AUTOMATIC_CLOSED>y</ALARM_IS_AUTOMATIC_CLOSED><ALARM_TIMER>gfdg</ALARM_TIMER><ALARM_OWNER_ID>5</ALARM_OWNER_ID><ALARM_SIGNALING_TABLE_NAME>3333</ALARM_SIGNALING_TABLE_NAME></ALARM_TYPE_DETAILS><COMMENT_DETAILS><COMMENT_TYPE_ID>1</COMMENT_TYPE_ID><COMMENT_TYPE>dgsdg</COMMENT_TYPE></COMMENT_DETAILS></ALARM_CONFIG_DETAILS>"; Thanks Rahul

0
51
Member Avatar for Paradox1

I'm just starting to learn Java what books, or tutorials would you guys reccomend Thanks guys.

Member Avatar for jwenting
0
361
Member Avatar for JyotiC

Hi, I know C and Python, but i wanted to learn Java. Any suggestion, how should i go about it. I started reading some book, but couldn't make it out. Regards, Jyoti

Member Avatar for JyotiC
0
123
Member Avatar for BalagurunathanS

Hi all.. I am having a table named "login" in MS access.. I am connecting it to a java application with th help of the following code.. Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); System.out.println("Driver loaded"); // Establish a connection connection = DriverManager.getConnection("jdbc:odbc:ESMDB"); System.out.println ("Database connected"); String result=""; st = connection.createStatement(); rs = st.executeQuery("SELECT * FROM …

Member Avatar for jwenting
0
103
Member Avatar for javakeith

im trying to compile a java file in my computer...and it wil not work...its my first time doin it here... my problem was..i cant compile any java file... this will only appear java.lang.NoClassDefFoundError: mynote/java Exception in thread "main"

Member Avatar for w32.sysfile
0
124
Member Avatar for Ghost

Hi, I am trying to create a simon-says type game, where there are four icons of different colors. One icon lights up. The user clicks it. Next, a new icon lights up. The user clicks the sequence... etc, etc, etc. Right now, the first round works. Unfortunately, the icons do …

Member Avatar for bryantpurdin
0
1K
Member Avatar for techkar

hi experts, Here there is a requirement in my project, like sending a automatic mail to a particular person,at particular time. [B]for examples[/B]: If there is an expiry date for a customer's account, a week before the expiry date a mail should be send to the customer as a remainder. …

Member Avatar for flakita227
1
2K
Member Avatar for w32.sysfile

ok, i wanna ask about layouting 2 textareas.. i have 2 text areas, the problem is i want to put 1 in the top 1 and the second 1 in the bottom, but i want to set the height of the top textarea become 2/3 of the window while the …

Member Avatar for w32.sysfile
0
98
Member Avatar for arkaprava

I want to do a project on Community Server ie wana build a community by java plz tell me whether it will be possible by java and what tool should I use

Member Avatar for ksaxena
0
94
Member Avatar for kaffee

help i cant open "my computer" or the control panel, whenever i 2xclick it the screen just goes blue, and nothing happens, my desktop just reappears. Also i am unable to play my game "counter strike" here is a log from hijackthis, hopefully someone could shed some light on this …

Member Avatar for kaffee
0
59
Member Avatar for sarath.koiloth

[I][B][COLOR=Green]Please help me to get calender date from the given Julian date(1187610073812). [/COLOR][/B][/I] [I][B][COLOR=Green]Thanks in Advance..:)[/COLOR][/B][/I]

Member Avatar for masijade
0
94
Member Avatar for arkaprava

I have done a stand alone project on Java Swing and MySql where the frontend is designed by Swing and backend is designed on MySQL I wanna build an exe of the project by incorporating the MySql schema and tablespace into the archieved file(exe/jar) Plz tell me whether is it …

Member Avatar for arkaprava
0
304
Member Avatar for CurtisBridges

I seem to really be lost. I have included the instructions for this problem, for you clarity only. I'm not asking you to do the work.I really want to learn java. I have read this complete chapter Three times now and seem to not be getting through my thick skull …

Member Avatar for jwenting
0
1K
Member Avatar for mimsc

trying to see if the last character is a '>'......any suggestions I already know how to check for the character heres what I got if (userData.getName().charAt(0)!='<' ) { thank

Member Avatar for mimsc
0
119
Member Avatar for kahilw

I am trying to insert a jtable into another jtable is that possible. Please help

Member Avatar for Phaelax
0
155
Member Avatar for ub_old

How can i send all requested parameter to included jsp. [CODE] <jsp:include page="/page"> ??????????? </jsp:include> [/CODE]

Member Avatar for jwenting
0
93
Member Avatar for mimsc

Wsup..basically I have a html file saved in another folder in Eclipse..I want to call a jsp and once I call it...I want the html code to show up...here's what I have "cp-termsofUse.jsp" [code= java] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> …

Member Avatar for mimsc
0
143
Member Avatar for jnora

Hello, Please, i need to know the JDBC code (applying servlet) to use with mySql to generate account balances from my customer_table having three columns(i.e. DEBIT, CREDIT,BALANCE) in the following format: CR-------------------------DR----------------------BALANCE 30................................5..................................25 2..................................3..................................24 I can only use 'select sum....' code to get the sums of both DR and CR …

Member Avatar for jwenting
0
86
Member Avatar for slacke

I am searching for a long time in my laptop (WinXp) from where starts the services like mysqld.exe and java.exe. They start at boot time and make 860 MB use of virtual memory. They seems to be connected (mysqld and java) because when I stop the mysqld only, my Virtul …

Member Avatar for slacke
0
82
Member Avatar for blaykm

Hi I have a web Application which uses servlets. As soon as any user Logs i create a folder for the user and the files uploaded by the user are stored in that folder. Now when the users Logs out of the Application I am supposed to delete the folder …

0
63
Member Avatar for satish.paluvai
Member Avatar for jwenting
0
87
Member Avatar for kaushik259106

How do i create a session time out? i have tried with <session-config> <session-timeout>1</session-timeout> </session-config> in web.xml file but nothing seems to happen after 5 min.. if i do refresh it still works

0
80
Member Avatar for kaushik259106

I have configured my tomcat to work on port 80 so when i press [url]http://localhost/[/url] i gets the default page of tomcat. I have a web apps under webapps folder and it has the starting page as login.jsp. How do i configure so that i get the login.jsp when i …

Member Avatar for kaushik259106
0
63
Member Avatar for engheba

hello for downloading a file ,can anyone tell me how to download a file using portlet jsr 168 coz i've searched and found nothing i could do and i am newbie in portals and java script.Thx

0
51
Member Avatar for Mr.UNOwen

Hello, Can someone point out where the javadoc for AudioPlayer.player is? This is the code I currently have... [CODE] import sun.audio.*; import java.io.*; ... ... ... InputStream input = new FileInputStream("Stop.wav"); AudioStream sound = new AudioStream(input); AudioPlayer.player.start(sound); [/CODE] If there is no loop method for this, what's the easiest way …

Member Avatar for Mr.UNOwen
0
146
Member Avatar for pmhayden

Hi I'm in the process of getting JConnector in MySQL to connect to JBuilder 3. I've noticed in the MySQL manual that to accomplish this successfully I need to switch off the class verifier (-Xverify:none) as JBuilder 3 is too old to support some features on the JConnector. (1) How …

Member Avatar for jwenting
0
105
Member Avatar for sania12

hi all, I know bits and pieces of JSP. I have done many projects in PHP. I have got to do an assignment of developing on screen virtual keyboard with in 1 week. Am having no idea of how to start with it. Please help me with a basic outline/ …

Member Avatar for jwenting
0
59
Member Avatar for apontutul

I want to make: when i click a button after I've given some input it checks & if successful it opens a new window/page i.e I want to create a link....till now I've done [CODE] import javax.swing.JOptionPane; public class inputwindow { /** * @param args */ public static void main(String[] …

Member Avatar for Ezzaral
0
245
Member Avatar for libran

Hi, Kindly help me starting with the Java program. Find the specification of the code in the .doc file attched. Regds, [COLOR=#000000] [/COLOR] [B][I][COLOR=#000000] [/COLOR][/I][/B][COLOR=#000000]. [/COLOR]

Member Avatar for jwenting
0
118
Member Avatar for abar_sow

how to change the contents in text file to ppt file with bullets ... My code for wat i tried to shift the contents to ppt from java is: import java.io.*; import java.util.*; class Filereader { public static void main(String args[])throws Exception{ FileReader fr = new FileReader("E:\backup_javaprog\file.java"); BufferedReader br=new BufferedReader(fr); …

Member Avatar for Ezzaral
0
79
Member Avatar for Mr.UNOwen

Hello, I'm creating a game and in this game if you press two particular buttons at once, a particular move is done. How do I go about doing this with KeyListener? Is there a way to get it to wait for a fraction of a second to see if there's …

Member Avatar for Ezzaral
0
3K
Member Avatar for NewToJava

hi, i just wrote my first java program, it compiles and runs and all, but the console window closes too quickly u can hardly see the output. how can i rectify that?

Member Avatar for Fungus1487
0
148
Member Avatar for venomlash

For those of you who also code in JAVA*: Does anyone know of anything in C++ that is at all like paintComponent or the Graphics class? HALP! *ROFLwaffles to those who do

Member Avatar for venomlash
0
193
Member Avatar for michael.ngobeni

I have a problem with my Hashtable output Hashtable HashTest = new Hashtable(); HashTest.put("B_1", "A"); HashTest.put("B_3", "B"); HashTest.put("B_5", "C"); HashTest.put("B_7", "D"); HashTest.put("B_9", "E"); HashTest.put("B_11", "F"); HashTest.put("J_1", "G"); HashTest.put("J_3", "H"); HashTest.put("J_5", "I"); HashTest.put("J_7", "J"); HashTest.put("J_9", "K"); Enumeration enum1, enum2; enum1 = HashTest.keys (); enum2 = HashTest.elements (); String CityCode, CityName; while …

Member Avatar for ~s.o.s~
0
103
Member Avatar for mimsc

this function call [code=java] <span>• <%=userData.getPhone()%></span> [/code] returns a phone # for ex. 8005551155 Need a suggestion on setting it up as 800-555-1155 when i do the call

Member Avatar for ~s.o.s~
0
111
Member Avatar for zuha

i'm doing my final year project this semester.. i'm having problem for getting javax.media package... can anyone help me?

Member Avatar for jwenting
1
76
Member Avatar for legilimen
Member Avatar for jwenting
0
53
Member Avatar for mattyd

Hello. I am new to Java and I am easing into this new language via some basic tutorials. I am using the Borland 2005 IDE; it is powerful and I quite like it save for that it seems [I]incredibly[/I] bulky, hogs [I]all[/I] resources, freezes, tries to shut itself down, etc, …

Member Avatar for jwenting
0
582
Member Avatar for staneja

I am attaching a war file that prints hello using servlet This is code for web.xm [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<?xml version="1.0" ?>[/COLOR] [URL="file:///D:/sumit/WEB-INF/web.xml#"][B][COLOR=#ff0000]-[/COLOR][/B][/URL] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]web-app[/COLOR][COLOR=#0000ff]>[/COLOR] [URL="file:///D:/sumit/WEB-INF/web.xml#"][B][COLOR=#ff0000]-[/COLOR][/B][/URL] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR][B]hello[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-class[/COLOR][COLOR=#0000ff]>[/COLOR][B]servlet1[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-class[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet[/COLOR][COLOR=#0000ff]>[/COLOR] [URL="file:///D:/sumit/WEB-INF/web.xml#"][B][COLOR=#ff0000]-[/COLOR][/B][/URL] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-mapping[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR][B]hello[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]url-pattern[/COLOR][COLOR=#0000ff]>[/COLOR][B]/hello[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]url-pattern[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-mapping[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]</[/COLOR][COLOR=#990000]web-app[/COLOR][COLOR=#0000ff]>[/COLOR] [COLOR=#0000ff][/COLOR] [COLOR=#0000ff]but …

Member Avatar for ~s.o.s~
0
178
Member Avatar for gwong

Hi, I was wondering if it's possible to use the sprintf or any kind of print statements that formats your output into a particular format. The value that is passed to me is "45.0", and I would like the output to be displayed as "45.00". Thanks for any replies!

Member Avatar for gwong
0
167
Member Avatar for taran30

[code]i have to make a project in java at the beginners level.....so anybody who has ideas on the same...cud u plz help me...i have only 2 months to complete the project...[/code]

Member Avatar for iamthwee
0
82
Member Avatar for pmanya555

hi i am student of msc it i need good project of system sw on java or .net , if any body have any sugetion or idea please help me

Member Avatar for arkaprava
0
96
Member Avatar for arkaprava

I want to do a project on J2me where from my mobile I can lock the car , switch off my light and can be able to different household works .Can anybody provide me some tutorials or suggestion so thath I can proceed for my project ?? plz provide some …

Member Avatar for arkaprava
0
95
Member Avatar for haroldjclements

I have a .jar file located in my program files that is from a third party and is require when running the bean on the web server. When running the app in a non jsp environment, I use the [code]java –cp {jar file name and location} [class name][/code] How do …

Member Avatar for jwenting
0
70
Member Avatar for naahamm

hello every one! i have a web site i have developed with php and jsp and am having problems trying to send messages to my contacts using javascripts. could anyone pls guide me?

Member Avatar for Ezzaral
0
58
Member Avatar for karan sharma
Member Avatar for michael.ngobeni

Hi guys I have a tricky XML/Java situation that I need some tips on I have an XML file <country> <country-name code=”USA”> <city>City1</city> <city>City2</city> <city>City3</city> </country-name> <country-name code=”FRA”> <city>City1</city> <city>City2</city> <city>City3</city> </country-name> </country > Firstly I need to count how many cities per country. I know I have to get …

Member Avatar for orko
0
214

The End.