36,051 Topics
![]() | |
Hello Everyone, Can you give me some idea on how to connect to an https site which requires user name and password? I would like to download or upload a file to the https using Java. Is this possible? Any suggestions are greatly appreciated. Looking forward to your replies. Thanks … | |
In my application I have: Class B Class C extends B. Class C contains one method that overrides a method in B. Lets call the method myMethod and Class C has the constructors that simply call the super method in the parent class. In a JSP file that uses these … | |
Hello All. First, I thank you all for viewing this thread. Second, I was wondering if anyone here knows of a way to pull data from Wireshark and to insert it into an Eclipse Application. My eclipse application is measuring data sent across a network. If I can pull packets … | |
Hello I am looking forward for converting a .jpg image into binary image. Please guide me. | |
Hi iam having really an annoying problem .. iam inserting some to DB ( Mysql ) throught ( jdbc ) from ( servlets ) and want to get the last insert id to move on .. but just it doesnt work .. always throws NULL in the exception .. this … | |
hii,im new to java graphics.can anyone tell me how to create a circular slider(like a Jslider just its circular in fashion). | |
Hello. I'm developing a game in c++ and have found that you almost have to be Bill Gates to figure out how to connect to the internet using c++. So I've taken the idea that I should create the first section of my game in Java. This section would open … | |
[CODE]Could not connect to: : 50404 java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:180) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:560) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:377) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) [/CODE] has anyone run into this issue and or find a fix? I've not been … | |
Hi, I am trying to write some code which uses a JSlider to specify the number of lables to be displayed on a frame. I know how to create the JSlider and display it, but I am not sure how to implement different numbers of lables. I hope someone can … | |
I have a jsp page where certain parameter/value pairs need to be sent to one application server and a different set to another totally different server, is there a way to do that by the user pressing one submit button. And if not why not?? Wouldn't you think it is … | |
Hi All, I have been facing this issue for a while now. We have a site and it has the a few JSPs for the *view* part. In it, if the screem resolution of the monitor is reduced below 1280 x 600. i.e. if the display resolution is set to … | |
Hi all , I have been given a task which is to create a (log in )web page , user has to log in to the page after that a page with many links of forms such as leave form, feedback form,complain form,...etc. once a user has clicked to one … | |
hi all ...how are u? i have a question ...how can i output the items of a java Stack ...is there any predifine method?? and another question ...how can i use the class Queue without interface ? ...because i'm typing in my code (Queue q =new Queue();) but it's giving … | |
Hello, I have a question about sorting. How can I sort HashMap by element in the HashMap ? That's meaning, if I have in the Sys class map such as: [code=java]protected Map <Constructors,RaceTeam>raceTeam=new HashMap<Constructors,RaceTeam>();[/code] and in the RaceTeam class I have this variables: [code=java] protected Constructors name; protected int totalScore; … | |
| |
Hi all , I have been assigned to do a task which is to create a web based application, the task is actually a normal form application, I have to use that form and make it online as a web-based application and store the information in a database I know … | |
Hello, I have a Tree structure with custom TreeNode nodes. The structure of TreeNode is: private int level; private String label = null; private String data = null; private TreeNode parent = null; private Vector <TreeNode> children = null; I should find each unique path from root to all leaves … | |
hello, My application is rendering the map by using the geospatial data from the database.when i zoom the map by certain value of the zoom factor, my map image gets zoomed.but the text that is there on the map image remains the same size.how to zoom this text ?? thanx … | |
hello everybody i am newbie to jsp. working on some project and struck into some problem. my poject is about web rendering . i am creating a buffer image and storing that in to some file .when i am trying to open this file on browser using jsp,it is not … | |
Am having problem calling a simple stored proc to insert data from a java program. The insert statement works fine when called directly with prepare statement. But when I use call it through a strored proc I get an error. jar file is ojdbc5.jar. - oracle10g. Then i tried another … | |
this is my code and it says i have problem in line 5 which i couldnt solve . can anyone please help me with this soon! [code=java]import java.text.*; public class SavingsAccount { private double static annualInterestRate; //declare static variable private double savingsBalance; //instance variable public SavingsAccount(double bal); //constructor { savingsBalance= … | |
I'm having a problem deciding how to handle a situation. I'll briefly explain whats going on before I ask the question(s). I have a viewObject (bean) and what it does is display information that is gathered. To keep it from getting too complicated I'll say I have 3 jLabels. One … | |
is it possible to use try catch exception inside while loop? [code=java]while(username_ctr <= 5){ try{ user1 = str_div[username_ctr].indexOf("open_pm_tab",username_start); user2 = str_div[username_ctr].indexOf("')", user1); user3 = str_div[username_ctr].lastIndexOf(',', user2) + 3; str_username[username_ctr] = str_div[username_ctr].substring(user3, user2); //System.out.println(str_div[username_ctr].substring(user3, user2)); username_ctr++; }catch(Exception e){ slash1 = str_div[username_ctr].indexOf("</font", 0); slash2 = str_div[username_ctr].lastIndexOf('*', slash1); //System.out.println(slash1); //System.out.println(slash2); //System.out.println(str_div[username_ctr].substring(slash1, slash2)); //System.out.println(str_div[1].substring(slash2,slash1)); … | |
Hi, I am trying to do something like this:- [CODE]1 10 20 30 ##########|##########|########## rect 1 rect2 rect3 5 ########### 15 user rect - (transparent and temporary based on user mousedrag) [/CODE] Now If a user clicks suppose in the middle of rect1 and drags it to the middle of … | |
I'm starting to experiment around with Java Web Start since applets have some limitations. I'm using Net Beans and it's working fine except that I get this pop-up when I run it: [quote] The application's digital signature cannot be verified. Do you want to run the application? [/quote] It would … | |
I'm having a problem with my countdown timer and am figuring that I'm missing something obvious. All I'm trying to do here is get my jLabel to countdown from 60 to 0. [code] ActionListener refreshListener = new ActionListener() { int counterLimit = 60; public void actionPerformed(ActionEvent e) { javax.swing.Timer refreshTimer … | |
So I am writing a voice activated recording program, and one of the things I would like it to do is plot the current and past volume level on a JPanel. Write now I am simply reading one byte from the audio buffer, converting it to an int, taking its … | |
| |
Hi all , I have decided to use java applets and java servlets regarding creating a form.(because I don't know other langauages except java) guys the scenario is like this , visitors will enter to website, surfing it and then they will enter to feedback form , they have to … | |
Hello, I am getting out of bound error whenever i run the program and trying to add a Node (this would be in my switch). but the error that i am getting is just above my switch statement. Can anyone help me to figure out what it is that i … | |
hello friends,I made an applet to calculate sales tax but i am having a problem in executing it.It is giving error on execution. and the error it is giving is, cant create:java.lang.reflect.InvocationTargetException following is the piece of code of applet. import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; public class … | |
I'm trying to compare lines in two different files. The basic idea is I want to take line 1 of file 1 and compare it to all the lines of file 2 and print the results into a third file, then do the next line of file 1 and repeat … | |
i want to write an application that will use a mobile phone to make voice broadcast in java.I know it is possible,but what are the dimensions,i will be very grateful if any1 can render an opinion to help me out | |
i made an audio application confernce using tcp it was good but the delay was not good i try to do it using udp but i found some problem like nat network and i can't use the same socket to send and receive in two threads tell me this socket … | |
1. a. Create a parent class "Vehicle" with one method "turnLeft" that prints "Vehicle turning left". b. Create a child class "Bike" which overrides the "turnLeft" method and prints "Bike turning left". c. Create a Vehicle reference referring to a Bike object. Is it legal? What happens when the "turnLeft" … | |
Hi,Im makin a web based application.For users to access it they need to login. I m using java,jsp,html for this.I wish to know how can i prevent access to the pages of application without logging in i.e. if user types in URL of some page of application in the address … | |
1 [icode]<%@page import = “java.util.*” %>[/icode] 2 [code=JSP]<% String s1= request.getParameter(“str1”); String s2= request.getParameter(“str2”); str = concatenateStr(s1, s2); %>[/code] 3 ) [code=JSP] <%! String str ; public String concatenateStr(String s1, String s2){ return s1+s2 ; } %>[/code] | |
Question 1 You are required to write the code for sevlet which will take username and password from the html file and matches with database which contains two columns; one for username and other for password. Providing correct information leads to welcome page otherwise to a login page again. You … | |
Create unlimited dynamic textbox and insert that value which is fill by user in database.how to do it in JSP, Servlet and Hibernate , MySQL explanation:suppose i fill my name "David" in 1 textbox now i clik add more generate 1 text box fill in this "Chris" if wanna more … | |
anybody online there, i want the solution of my problem.i will feel free to discuss the code of my aplication | |
hi, any one plz tell me how to connect oracle database with the help of struts . i am begginner in struts or plz send me some tutorial in struts or plz send me some sample project in struts thank u:eek: | |
I am trying to execute a exe file within' a jar file. My question: 1. How do I locate the exe within' the jar? I am using the [ICODE]runtime().exec()[/ICODE] to launch it. Right now I have to extract it then launch it, then after it's finished delete it. Thanks PO | |
Okay so I found some code online to create a simple chat server and I was trying to teach myself with it. I have a few questions though. First off here is the code: [B]ChatServer.java[/B] [CODE] import java.io.IOException; import java.net.InetAddress; import java.net.Socket; import java.net.ServerSocket; import java.net.UnknownHostException; import java.util.Scanner; public class … | |
I just inctance 5 JFrames with string drawed and its using 100% ...??? that add(panel); make the diference in CPU 5 or 100% I marked it in the comment in the code here's the code: [CODE]//import java.awt.event.WindowEvent; //import java.awt.event.WindowListener; import java.awt.*; //import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.event.*; import … | |
Is there something in Java that will perform the + or - operation? I need to compare a couple variables but the variables are not going to be exact, they'll be off by about +or- 2. | |
1.) I want to stream Live Audio, and i have chosen JMF to do it, i am an absolute beginner to JMF, so can anyone help me by providing me with some easy to understand Source codes of a Live audio/video program, so that i could go through it and … | |
Hi all, Goodday...! Im delevoping a struts project of my own. Having doubt in database connection. Actually where i have to write code for connection, there itself my doubt starts.... whether i hv to write a connection code in (1) execute method in Action class, OR in (2) servlets, OR … | |
Hello all, it's been a while since I've had a question, but I'm back. I'm trying to write a Vector class which can be any type. The problem I have is that generics can only hold objects, so when I try to say x+=vec.x it says that it cannot do … | |
Hi i am working swing based applet application which is deployed on a [B]jboss3.2.6[/B] webserver.the jar file [B]application.jar[/B] size is 140kb.i compressed the jar file using sun java pack200 technology as [B]application.pack200.gz[/B] file.now the jar file size is 46kb.the jar is deployed on application.war file with context-path [B]/application[/B] on the … | |
In my textArea the strings ' and " are passed to my Java method as unicodes. So instead of ' what i see is ’ What can i do to prevent this because it is also updated in the database as its unicode representetive. |
The End.