36,051 Topics
![]() | |
hi! I m writing a jsp where i want the page content to change when the selected option from a combo changes...how do i execute the method that determines the code which will fetch that data....i guess i'' have to go with javascript but i dont think a java script … | |
Alright I am having my program read two text files (in csv format) and once it reads them, I am wanting it to do a check to see if two columns match, if they do I want it to write it to a new file. I have coded it, but … | |
I did a google search and found that PHP uses: $_SERVER['HTTP_USER_AGENT'], which would give the following result, should I visit a page: [code] Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16 [/code] is their any functionality in java that will do the same?? … | |
Sup fellas...another question..how Can I pass my jsp as the contents of a email message. The way we send email around here is we set the parameters of a form into a DB table and a cron job sends the emails out [code] String address= "suggestaservice@agentadvantage.com" String name = request.getParameter("name"); … | |
as far as i understand in order to sort a multidimensional array you have to make you own class that implements Comparator. the string which is to be sorted has the following structure: [0][0] filename1 [0][1]filesize1 [0][2]lastmodified1 [1][0] filename2 [1][1]filesize2 [1][2]lastmodified2 ... i want to be able to compare by … | |
![]() | OK, so here is my problem. I have created this application that inventory's books & magazines. Everything compiles fine. I prompt the user at the beginning to pick the length of the array (stored in numBooks) then when it comes time to pass the array to the GUI, I get … ![]() |
I want to write a bot in Java that will register in websites. I have no idea how to auto select the fields and submit button. I know How Java Robot class Api and it does not contain any method which selects fields for me.How to track down the fields? … | |
I'm trying to figure out how to get results from a database query to be displayed on a listed page and if the user wants to know more about the results they will click one of the dynamically generated items that is hyperlinked. This will then bring the user to … | |
Hello Im a java Beginner and I need a program that the output is like this: * ** *** ** * and a Diamond Can s0meone make me a program of this.. Just a simple code. Thank you so much!! | |
Hello everyone, I'm working on a school project and am using some code from the book to sort an array in ascending order. I'm apologize ahead of time if my methods seem crude. I've used this sort method on a normal array of numbers and the numbers were ordered correctly; … | |
i want to select java or c# please help me to select better programming language and easy to programming language i have experience in c++ if java is better please tell me why java is better or c# please introduce me best books for java and c# | |
Hey guys, a long shot in the dark, but I've googled around for this and so far not promising! All the threads / pages / wikis etc I've read are all pre 2005 and state it can't be done yet. I can't find any information thats up to date. So … | |
Hi All, Im fairly new to Java and im currently working my way through a couple of books but im stumped with something. I want to know, or get an example of how i can add an action to a button which outputs to a screen. I just cant seem … | |
hello java experts, I have made a program for remote method invocation but i am not able to do get output even i am able to do registry socket error it shows during run made. plz help me out if anyone knows.......... 1)name:AuhorServer import java.rmi.*; public interface AuthorServer extends Remote … ![]() | |
Hi Friends hope you are fine, my question is how to send a respond message created by a servlet to a specific e-mail. let's say I create a registration servlet, this servlet will send a respond message to an e-mail , instead of showing the respond message as a web … | |
Hello to all, I was wondering how to run servlets using Glassfish V2. I'm using NetBeans 6.5 and need to use servlets, but I don't want to install Tomcat to do so, any suggestions? | |
I have a problem with tomcat 5.5. I always have to start a service manually.So what can I do in order to make it start automatically? | |
Is it possibile to insert SQL in JSP? If you have examples about how to connect to a MySQL database from a JSP web page, how to view, edit, create tables please send. I am looking forward to receive some code about JSP & MySQL. Yours sincerely, Laurian Lazar | |
hi all , I have a simple question , let's say we have a servlet program and a web page . the question is how to make a servlet calls the web page and sends it as a respond to any request coming to the servlet. Is there any statement … | |
Hello everyone I'm just a newbie in java/jsp Need suggestion and how to proceed in the following: 1. Wanted to create web app. (jsp/servlet) with login and access autorization. the situation is like i have a home page with login info inputs, i direct the inputs to a jsp in … | |
can anybody tell me how do i create a link that forces a .doc file to download on the client computer or if that's really difficult to do without a ftp server.. then how can i display the file in browser as pdf | |
Hello, I'm writing a keylogger program that (as the name states), logs all keystrokes into a .txt file. The problem I am encountering is adding the key listener. I know I have to add the key Listener to something, however is there a way to have the key listener always … | |
i am working with a JTabbedPane and am facing a problem. i want to change the title of a tabbedpane. i am using the setTitleAt() method. however there is no change in the top corner where the name of the tab is displayed. however when i am using getTitleAt() method … | |
Hi, I'm in a IntrotoOOP class at my school, and my instructor asked me to look up how to fill a Java Swing Class ComboBox with data from a MySql Database. Does anyone know? This question has been quite hard to find any answers on and I have been really … | |
i am havin a problem using a RadioButton to control labels on a panel.Anytime i click on one of the JRadio button it controls all the other panels at the same time instead of only controlling its label on its panel. Please all hw do i go about setting my … | |
[CODE]// PUT YOUR HEADER DOCUMENTATION HERE! import java.util.Scanner; import java.util.Random; public class life { // the size of the grid (GRIDSIZE x GRIDSIZE) final private static int GRIDSIZE = 18; /********************************************************************************/ public static void main ( String args[] ) { boolean[][] board = new boolean[GRIDSIZE][GRIDSIZE]; char choice; int x = … | |
[CODE=JAVA]// This is the Debts program in Java import java.io.*; class Debts { public static void main(String[] args) throws IOException{ BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); String Amount, Payable, Interest, Paid; double Value, Rate, Spent; int Years; System.out.print("Enter Amount: "); Amount=stdin.readLine(); Value=Double.parseDouble(Amount); System.out.print("Enter Payable in years: "); Payable=stdin.readLine(); Years=Integer.parseInt(Payable); System.out.print("Enter Intrest Rate: … | |
I did a google search and found that PHP uses: $_SERVER['HTTP_USER_AGENT'], which would give the following result, should I visit a page: [code] Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16 [/code] is their any functionality in java that will do the same?? … | |
I have a collection of objects descended from JComponent that are displayed on an object desended from JPanel. Basically these JComponent-based objects are components that can be added and placed arbitrarily and can be dragged about on the panel. The panel is in charge of repainting all the tools/components that … | |
how to output a string after a count of every 10 numbers ina count of 50 numbers. | |
hi all , my question is how to create a hypertext link in servlet so if the user click it, it shows another web page or a message . | |
A java program that creates an array of Student names .Program should give me a change to have the following operations: a.Print all elements in the array. b.Modifies the element at a particular location of the array(delete and add). please | |
I posted a code on this link [URL="http://www.daniweb.com/forums/post915333.html#post915333"]http://www.daniweb.com/forums/post915333.html#post915333[/URL] and the thread was solved, but I'm looking forward for another method using switch case.... but an error says : incompatible types found: java.lang.String required: int is the re a possible way that forces switch case method to use string instead of … | |
ok so i want to read a .txt file line by line. I have the code for that BUT i want to keep track of what line im on, i might be completely braindead from working on this whole project forever but heres the line by line code i am … | |
I have a passkey to authenticate access to a web service in the code of one of my java serlvets. How easy is it for someone to view the code for my java servlet when it is on my web server? It would pose a security risk to my entire … | |
When developing web report, many developers use VMware to simulate different operating systems on a same server. Then, they can realize cross-platform deployment and debug of web report. According to real application of web report, I will discuss three network setting ways of VMware with all of you. [B]Bridge way[/B] … | |
/* *It's a Running program that generates DBF file *Question is: How can I make an IDX file Out of this. *I tried to changed the extension by .idx but I'm not sure if it is *correct. */ package src.maintenance.DBFextraction; import java.awt.Dimension; import java.awt.Font; import java.awt.Point; import java.awt.Rectangle; import java.awt.Robot; … | |
hello.. uuhhmm ... i have a problem here.. i want to know how can i do that if the tuition paid "yes/no": "N" .. then message_error exist that "you need to pay first.." ,. and dont print the result,, but if the answer is "Y" then .. it proceed to … | |
Actually i download the source code of forum website from a website but there is no documentation about interfaces code contain java and servlet classes. i send this code with email tell me how this code interact with interfaces and what are the names of interfaces and how many textareas … | |
hii i will to code a submit button so that a mail is generated carrying the information of the client to a destined email id form the database. i want this email created and sent without the user seeing the content, eg when u register at some site u get … | |
Please let me know how to stop Thread B from Thread A ? | |
im just new here..and i really need some1 who can help me do our exercises..its about java(using looping/iteration)..i know others in java but not yet 'bout looping.. | |
Write a JAVA program that will generate/output the following numbers. 1, 2, 4, 7, 11, 16, 32, 39, 47, 56, 66 (using looping) | |
![]() | I am writing a program that simulates a simple library. It compiles with no exceptions. However, it keeps printing when the printAvalibleBooks() method is called. the exact same book even though I have a method that is supposed to poplalate the array here is what I have so far. [code]public … |
Hello everyone! I'm looking for a class in the Java API that can take the complete structure of a directory in itself and that can be passed on sockets, so it can be used on other machines of a network. Is there someone that can show me an existing class? … | |
Hello - I am trying to catch a NumberFormatException using the code below. However, even though it does perform the System.out.println() in the catch statement when a non-number is entered, it still "blows up" displaying the NumberFormatException with all of its accompanying messy messages in the console. I thought I … | |
i have to print 1 3 2 4 5 i the input output should be 1 3 2 4 5 4 5 6 9 9 11 15 20 26 i am getting a weird output my code is [code] import java.io.*; class nik1234 { public static void main(String args[])throws IOException … | |
I need an example on queue implementation in java | |
Hey guys, Is it possible for a J2ME application to access the devices phonebook? I've been googling but nothing much as turned up. John | |
Write a JAVA program that will input the base and power and display the result: Example: Base is 4 Power is 2 the answer is 16 42 = 16 Base is 2 Power is 5 the answer is 32 25 = 32 Base is 0 Power is any no. the … |
The End.