35,618 Topics

Member Avatar for
Member Avatar for hidash_in

hi all, i want to open a file from the server system using java pls anyone can help me pls i dont have any knowledge about this pls tell some idea.

Member Avatar for DangerDev
0
115
Member Avatar for darkagn

Hi all, I am fairly new to using Eclipse (or any IDE for that matter) and I am having trouble getting the TPTP Profiler plugin working. I'm hoping that someone out there might have seen this behaviour before and has the fix for it... :) I am running Eclipse 3.3.1.1 …

Member Avatar for andreash
0
137
Member Avatar for ashkash

I have strings in Java where each one is as follows: "Case Number XXX-XXX-XXX" The "XXX-XXX-XXX" part is different for each string. I want to just extract the "XXX-XXX-XXX" portion of each string. I am assuming this is the third token in the string. What would be the best way …

Member Avatar for stultuske
0
243
Member Avatar for rickster11

Alright, I've been working on this one line for awhile, can't quite get it. I need to read all the characters after the "," (comma), ending at the end of the line. I'm guessing I'm just making a simple mistake. Can anyone help me out? [code]blocksArray [numBlocks][1] = Integer.parseInt(line.substring (line.indexOf(","),line.length())); …

Member Avatar for javaAddict
0
102
Member Avatar for wolverine_ramir

is it possible that i could create an array from a class and return the value of that array? and how? how can i access that array

Member Avatar for WhYuLoOkIn
0
99
Member Avatar for shaikh_mshariq

I am developing a program to gather information from the client. I have apache tomcat web server and all the client have one client program to communicate to the server. I want to make this connection http for security reason but i know how can i do this. It is …

Member Avatar for vpcse
0
264
Member Avatar for Shveetis

Hello everyone.. I need to retrieve the number of classes loaded from the MBeans and I am facing problem with the same... Is there any specific package to be imported?? I am unable to work it out though it is really simple.. Thanks in advance...

0
72
Member Avatar for piers

For the guys who helped on the card.java file I did thnaks a lot I got that done. I have now moved onto the next part of that and have to complete this skeleton file. this is the spec for this file. [QUOTE]This class has two attributes: an array of …

Member Avatar for Ezzaral
0
156
Member Avatar for Shveetis

Hello everyone.. I am trying to retrieve a URL of applications from a text file... My text file contains 3 URLS for 3 applications say for example : C:/ABC.java C:/JVM.java C:/Tomcat.java I have tried implementing a code for the same but when I try to copy the URL into a …

Member Avatar for Phaelax
0
107
Member Avatar for fatjoy25

import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.awt.Graphics; import java.lang.Math; import java.applet.Applet; import javax.swing.event.*; import javax.swing.event.*; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Maint extends JApplet implements Runnable,ActionListener,MouseListener,MouseMotionLi stener { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; Point dot[] = new Point[1000]; Point start, end; int dots = …

Member Avatar for Ezzaral
0
98
Member Avatar for King_Walnut

I'm making a vending machine .. and everything's pretty much together, I just have a few problems that I don't have the faintest clue how to fix Firstly, when I choose a snack, the price of the thing comes up fine, no bother. But if I start to pay, then …

Member Avatar for Ezzaral
0
135
Member Avatar for narendra_jntu

I am very new to java . I am having some confusion in java versions. Actually what is java2 java 5 ,jdk1.5 alot of confusion i am having . Is there any special meaning in that. What j2se,j2me,j2ee. What is the difference among them. Is there any special purpose for …

Member Avatar for Phaelax
0
102
Member Avatar for javaStud

I am trying to do a primary key so that each member can't hava the same ID and if th same ID is entered an error is give. Can someone please help me cause I can't do it at all.Thank you. [CODE] static void addMember(ArrayList<GymUser> UserListIn) { String tempUserrID; String …

Member Avatar for javaStud
0
95
Member Avatar for ttamilvanan81

Hai, i am tried to use the SQL Server with Java and Tomcat 5.0 Application Server. I am using the JDBC Driver for Java connecting with SQL Server. I m using SQL Server 2005. But the JDBC Connection doesn't create. I have used the following code for java database connectivity …

Member Avatar for sabindas
0
425
Member Avatar for alejalv

so i wrote this recursion program that uses memoization to calculate the fibonacci numbers. it's supposed to scan a user inputted number, call the method, check to see if the number is in the array, if not store it, ad increment the counter. so i should end up with the …

Member Avatar for DangerDev
0
91
Member Avatar for javaStud

In this method I am trying to locate a user by its ID and then remove it. I am having errors in the second if statment (cannot find symbol-method getID() ). [CODE] static void removeMember(ArrayList<GymUser> UserListIn) { Scanner keyboard = new Scanner(System.in); keyboard.useDelimiter("\n"); System.out.print("Enter the ID no of the member …

Member Avatar for javaStud
0
91
Member Avatar for shashipkiran

Can anyone tell me the code to refresh a JSP page onload...? <meta http-equiv="refresh" content="1"> I have used this code and this keeps on refreshing the page every second. But i just want it once...Pls help me...?

Member Avatar for shashipkiran
0
97
Member Avatar for Spartan552

Hi! [QUOTE] Date now = new Date( System.currentTimeMillis() ); SimpleDateFormat sdf = new SimpleDateFormat( "dd/MM/yyyy hh:mm:ss" ); String snow=sdf.format( now ); out.println( snow );[/QUOTE] prints [QUOTE]07/02/2008 03:22:32[/QUOTE] but when I'm trying to send a query involving 'now' string that contains the datetime, I get this on the sql database [QUOTE] …

Member Avatar for masijade
0
51
Member Avatar for alejalv

hey guys, i have a project due tomorrow on recursion. the task was to write a recursive program that prints the value of fibonacci numbers and the number of calls made. i wrote the program and it returns the value at the end just fine, but i have been unable …

Member Avatar for DangerDev
0
94
Member Avatar for ysong

Tried to zip multiple files on the fly in java servlet with zip package (ZipOutputStream), so users can download the zip file by calling the servlet. It works fine for small files. But occasionally the browser stops the download before completion when users invoke the servlet action, and the zip …

0
56
Member Avatar for elcorillord

I have to basically write a fuction that does the inmemoized recursion and count the number of times is called..which i did.. the second part is that i dont understand which is to create a global array of 100 and calculate the function using memoization... can some one help..this is …

Member Avatar for alejalv
0
90
Member Avatar for electron33

Hi. I have a little problem. i tries to connect to a datasource defined in Tomcat context. But when i run the jsp page i got an error telling that the driver i not found. I'm using the mysql jar 5.0.x whitch i have placed under Catalina common lib folder …

Member Avatar for electron33
0
100
Member Avatar for javaStud

Hey all. I am having some problems in my project work. I am trying to this 'transaction' class in which the user enters his personal details.Now all I want to do is that when I create a new account for the user, I must also know the date when the …

Member Avatar for javaStud
0
89
Member Avatar for Reena Balu

Hi, I am new to PHP. I have a login and logout pages are in php. i have to pass the user id or the session to my jsp page. The id should not pass in the url for security purpose and also the browser back button should not work …

Member Avatar for jwenting
0
57
Member Avatar for vedmack

Hi I have built a web site using Struts/Tiles... in one of the tiles i got iframe in which I load a XML file from the server like this <iframe name="showXml" frameborder="no" src="filename.xml" width="100%" height="100%" ></iframe> the problem is that after I'm updating the file in other Tile (and the …

0
55
Member Avatar for eddy556

I'm having problems performing math in JSP. I have a line: double percentage = (useful / nonuseful) * 100; which is giving me an error, how do I fix this? Thanks

Member Avatar for eddy556
0
102
Member Avatar for paurik

ERROR: All the code compiles without any errors or warnings. On Calling the native method FindOs from Java code, i get the following error: # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1026f8e0, pid=3484, tid=2192 # # Java VM: Java HotSpot(TM) …

0
50
Member Avatar for joyeetadeb85

Hello everyone...i am new to this community, and also a first time user of jsp... I have to complete, and make some modifications in a particular project (made by someone else), which has been made in JSP. I have to add a textbox, followed by a button (with the label …

Member Avatar for iamus
0
71
Member Avatar for Ankita B

Hi, Im writin the followin code to connect with oracle `database.im` also using toad .I keep geetin errors even if i declare `private String AQC1_UID = "";` and so on.. import java.sql.*; public class Login { public static void main(String[] args) { String AQC1_UID = ""; String AQC1_USER_PWD = ""; …

Member Avatar for Ankita B
0
124
Member Avatar for suzy_naresh
Member Avatar for javaAddict
0
81

The End.