35,618 Topics

Member Avatar for
Member Avatar for moonis.ahmed

Hi, I want to get only the filename from the entire path in a file dialog in JSP. Right now I am using type "file" in input tag. any help will be appreciated. cheers!

Member Avatar for kvprajapati
0
118
Member Avatar for ashu_305

I developed a pgm for msg transfer using UDP.i need a source code for transfering file using UDP and (with GUI), More details:After entering name of file on clients gui,the server should transfer the file to client and the contents of the file should be displayed on clients gui.

Member Avatar for DangerDev
0
112
Member Avatar for ashu_305

i need guidance to develope a pgm for msg transfering using tcp.i alredy developed this for single client and single server but i need to transfer msg from one client to another via single server.

Member Avatar for wildgoose
0
73
Member Avatar for NewToThis

I keep getting a 'illegal start of an expression' and ')' expected on a loop line for a program that counts and compare ten numbers and displays the largest. I have checked for "{}" and "()" parity, and also for ";" at the end of my statements; but the following …

Member Avatar for cgeier
0
124
Member Avatar for cesarnz

hi all, does anyone know much about the FESI interpreter ??? i am getting an error while using this third party product (GTX) which is written in java and i cant work out whats wrong. FESI is built into this product which i am using so i dont know the …

Member Avatar for cesarnz
0
116
Member Avatar for Chris Ichikawa

Hello, everyone. Can someone explain to me on how to read a .mdf file (the SQL Server 2005 Express kind)? I have a Java IDE (JCreator) and the JDBC (SQL Server 2005 Express compatible) installed into this computer. Right now, I'm using this: [CODE]Connection c = java.sql.DriverManager.getConnection("jdbc:sqlserver://localhost\\SQLEXPRESS;DatabaseName=qsscsdb;IntegratedSecurity=True");[/CODE] to read the …

0
68
Member Avatar for MoZo1

Well, so if I use static initialization blocks to access another static data inside another class: [code=java] public class StaticTestA { public static Queue queue = new LinkedList(); static { System.out.println("A start"); StaticTestC.queue.add("A"); StaticTestA.queue.add("A"); StaticTestB.queue.add("A"); System.out.println("A stop"); } } public class StaticTestB { public static Queue queue = new LinkedList(); …

Member Avatar for JamesCherrill
0
129
Member Avatar for FaMu

Hi, In this code: DrawPanel.java [code=java] import java.awt.Graphics; import javax.swing.JPanel; public class DrawPanel extends JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); int width = getWidth(); int height = getHeight(); g.drawLine(0, 0, width, height); g.drawLine(0, height, width, 0); } } [/code] and this the application DrawPaneTest.java [code=java] import javax.swing.JFrame; public …

Member Avatar for harsh2327
0
106
Member Avatar for Acegikmo

For example: [CODE]package topdowngame; public class SpeedDir { double speed; private double direction; static final SpeedDir INTERNAL = new SpeedDir(1,45); // Other stuff [/CODE] If I write a code like this and excute it when I click: [CODE]player.speedDir = SpeedDir.INTERNAL;[/CODE] It only works the first time I click. I have …

Member Avatar for kvprajapati
0
107
Member Avatar for memegha123

hi! i m trying to write some user entered entries to a text file on server... here is my code [CODE] String news=new String(); String path=application.getRealPath("news.txt"); news=request.getParameter("news"); PrintWriter pw = new PrintWriter(new FileOutputStream(path)); pw.println(news); pw.close(); [/CODE] this just doesnt seem to work....can anyone help?News is a text are field on …

Member Avatar for memegha123
0
143
Member Avatar for OnIIcE

hello, im soon to be starting a Masters in Multimedia Computing so have been thinking of a few ideas to do my project on. One of them was to make a mobile/multiplatform e-comic reader - supporting the cbr/cbz formats (which are both comic archives compressed as zip/rar). Would Java be …

0
73
Member Avatar for malugirl4

I'm trying to finish this code..I'm still getting errors..can some plese help me! [TEX][ICODE]import java.util.Scanner; import java.util.Random; public class robot { public static void main (String args []) { int robot_x = 0; int robot_y = 0; int robot_m_x = 0; int robot_m_y = 0; int[] robot_instructions = new int[64]; …

Member Avatar for wildgoose
0
153
Member Avatar for rje7

Why does the thread 3 execute before thread 2 though iam invoking it before thread 3? if i am right.. after invoking thread 1 the printmsg1 enters into the synchronized state. thread 2 is put in the stack then thread 3 is put in the stack. so after the thread …

Member Avatar for JamesCherrill
0
1K
Member Avatar for brizhou

I need to implement an online auction as a client-server application (not Web based) Th auction should involve just two items for which people may bid. At the start of the application, the server will expect to be told the final bidding time for each of the two items, using …

0
54
Member Avatar for bharatshivram

How can we display a list of all the databases in MYSQL using Servlets / JSP / JAVA ? Regards, Bharat Shivram

Member Avatar for kvprajapati
0
52
Member Avatar for .11

You guys know of a good Java Ide? I have tried Netbeans and Eclipse but its slow. Loading the programs up takes about 5-7 minutes, and when I type. It freezes and 15-25 seconds later it show it on the screen. I need something better....Any ideas?

Member Avatar for ~s.o.s~
0
164
Member Avatar for swastikpadhy
Member Avatar for Ezzaral
0
63
Member Avatar for TheWhite

I'm looking for a way to detect when a JFrame is moving (maybe there is some kind of listener). I have a primary JFrame that loads a 2nd JFrame next to it. I want this 2nd JFrame to move simultaneously with the primary JFrame as though it were attached. I …

Member Avatar for Ezzaral
0
136
Member Avatar for tdamon

Hi Friends, I am very new to JSP.Just started learning few days back.I am struck with form validations in JSP.Can you pl help me as to how to validate the inputs entered by user in the form.No alerts shud be there.For example..if user doesnot enter any mandatory column(say first name),it …

Member Avatar for peter_budo
0
142
Member Avatar for iceskater2752

Numbers whose sum of digits is divisible by 3 represent numbers divisible by 3. Write a program to verify this famous statement. Input a 5-digit integer n from the keyboard. Find the sum of the digits. Call it sum. Verify that either (a) both n and sum are divisible by …

Member Avatar for sneaker
0
143
Member Avatar for cesarnz

hi all, i have been tasked to write a servlet (java 1.4.2) which grabs a file from a ftp server via sftp. i know how to write a simple servlet but i dont know much about sftp. Couldnt find any api on the suns site either. any help on how …

Member Avatar for peter_budo
0
133
Member Avatar for tdamon

Hi, I have a query regarding ratinaing the values entered into form by user.When user enters the search criteria and click on "search"/My bean search the DB and gives the results..But the problem I am facing is...after returning the results it doesnot display what criteria the user has entered...can you …

Member Avatar for peter_budo
0
109
Member Avatar for spalax

Hi, i'm trying to read a simple email file from a folder in my computer. I find this code but, it's not working. i didn't understand theses lines: what should i write for mail.host? what should i write for "mail.transport.protocol", "smtp"? props.put("mail.host", "smtp.gmail.com"); props.put("mail.transport.protocol", "smtp"); [CODE] import java.util.*; import java.io.*; …

Member Avatar for spalax
0
3K
Member Avatar for stella44

[code]public class Intersection { private static String intersect[]= new String[3]; public static void main(String args[]) { // initialize Intersection intersect[0]="A"; intersect[1]="B"; intersect[2]="C"; for (int i=0; i<intersect.length ;i++) {System.out.println(intersect[i]);} Intersection inter= new Intersection(); System.out.print(inter.getIndex("C")); } //get index of intersection public int getIndex(String str) { for(int i=0;i<intersect.length;i++) { if(intersect[i].equalsIgnoreCase(str)) { return i; …

Member Avatar for VernonDozier
0
150
Member Avatar for tajtosh

I am developing an desktop application in which I need to use javafx and java both as I read on sun's site that, we can use objects of javafx classes within java programs but when I tried it, I didn't get how to? Can any body help me how to …

Member Avatar for kvprajapati
0
94
Member Avatar for caierhui

[code=java]//their is an error in my program... and i dont know what it is... //and i need to make two columns how can i do that? import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.util.EventListener; public class Assign_1 extends JFrame { private JLabel quizOneL,quizTwoL,quizThreeL,quizFourL,AverageScoreL; private JTextField quizOneTF,quizTwoTF,quizThreeTF,quizFourTF,AverageScoreTF; private JButton calculateB, exitB; …

Member Avatar for sneaker
0
123
Member Avatar for fareast87

Greeting everyone.. This is my very first thread. I'm a final year student doing my thesis. I want to develop a software of Java that can encrypt an image so that it can be transformed to unreadable form. My idea is to transform the image file (i.e JPG, BMP) to …

Member Avatar for fareast87
0
184
Member Avatar for robben

I've developed function which allows to skip to a desired line number within a text file (see function). However, what I would like to do is develop a function which takes me to the beginning of the file (i.e. line 0) after calling the navigateForwardToLine function. However, I can't seem …

Member Avatar for sneaker
0
202
Member Avatar for hvardhan1000

How to get and set SNMP protocol variables of a router...? Is IP address really an SNMP variable ? Which method or what code should I use for sending the snmp GET and SET packets to that router? will socket programming be efficient? PLs give example..

0
48
Member Avatar for emint

hi all i got problem reading multiple table from ms access using jdbc. i read two table from one class but i got 12 table to read. so how can i do dat? any help will be great thank you

Member Avatar for emint
0
222

The End.