35,618 Topics
![]() | |
Hi all, I am newbie for JSP.i want to create a simple website which provide search function from Database(MySQL). I downloaded Apache Tomcat ,MySQL and JDK 6 Update 12 with Java EE.Who can tell me how to setup this simple website ? help! Thank You! :-) | |
Hi Everyone: I am trying to use google code rest-client ([url]http://code.google.com/p/rest-client/downloads/list?can=1&q=&colspec=Filename+Summary+Uploaded+Size+DownloadCount[/url]) to query a REST web server. But, I could not use it properly as after logging in to the web server, the session expires immediately. I am just wondering if it is by design or I am doing something … | |
Hi, I want to read an integer value from console, but my input returns the ASCII value of integer, Please Help me. [CODE]import java.io.*; class Test{ public static void main(String args[])throws IOException{ BufferedInputStream br=new BufferedInputStream(System.in); System.out.println("Enter an Integer"); int i=br.read(); //int j=(int)i; System.out.print(i); } }[/CODE] Thanks | |
i have apache server and i want to access database by jsp what can i do please gve me steps actually iam at intially stage in jsp | |
hi everyone, i need help with an assignment that i'm having trouble with. I need to create a class called Money whose objects represent amounts of money, with two instance variables of type int for the dollars and cents in the amount of money i got the constructors down but … | |
Hi, would anyone please tell me the latest encryption algorithm for the media file such as audio,video etc. Thanks in advance. | |
Hi all, I am working on Xalan-J XSLT processor.I have implemented the javascript extension function but in runtime it is showing TransformerException. Please help me on this. I am using `jdk1.6` and included `xalan.jar,xercesImpl.jar,xml-apis.jar;serializer.jar;bsf.jar;js.jar;xsltc.jar` into my classpath. Hereby, I am attaching the code what I have written <?xml version="1.0"?> <xsl:stylesheet … | |
Hello, I know Java and Objective C are totally different languages, but I thought may be since both are object oriented languages, there maybe some similarities between the two to help me make the transition. I also know C, so some of the stuff is looking similar. Could someone help … | |
Guys...I am writing a program in Java which includes writing different panels where i need to pass values from one panel to another. i.e I have got a combo box to choose a title and i need to get the performances for that title in my next panel. So can … | |
Running this file returns the error: Exception in thread "main" java.lang.NullPointerException at Packet.<init>(test.java:20) at test.main(test.java:46) here: line 20 : this.data[i][j] = data[i][j]; line 46 : Packet packet = new Packet(4,data,count,column); can anyone help ma how to create this constructor that accepts String[][] ? [code] class Packet{ int op_code; String[][] data; … | |
I created a html form and i want to submit the form automatically. So i used Javascript. I add that html form in java using JEditorpane, but JEditorPane doesn't support javascript. i heard that there is Rhino package which supports Javascript. But I dont know how to add Rhino in … | |
Hi everybody. I am a student in computers at the Hebrew University in Jerusalem. I started to work with Java - and working with Product Version: NetBeans IDE 6.5 Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16 System: Windows XP version 5.1 running on x86; Cp1252; en_US I have an urgent … | |
hi, I'm trying to run my 1st servlet I'm using eclipse and tomcat but I get an error that I cannot solve. can anyone tell me what I'm missing? here is my index.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> <head> … | |
String test="abacedabcedbcdea" find the frequency of a , b ,c ,e and d | |
Hi, does anyone know what is wrong here? The program is supposed to find the largest number entered, and the 2nd largest number entered. The process for assigning the 2nd largest is not working, I do not think I am evaluating it correctly, and suggestions? [code=java] package random; import java.util.Scanner; … | |
Any one can tell me how to save text area thing to text file in arranged. like i save it.. become "Splited Result:New Sentence = sdsdsdsd sdsd sds.Tokenized Result:sdsdsdsd | sdsd | sds | Part of Speech Result:sdsdsdsd/KNK | sdsd/KNK | sds/KNK | i wan it become like tat : … | |
Hi I want to program a IM in java, but I don't know where to start. I can't find information on the net about IM programming. Could anyone please help me, I'm lost. I want to hopefully get the IM working from pc to mobile phone and vice versa. Any … | |
hi friends i am connecting to sql server with java through eclipse as IDE. here's my base connectivity class to sql server public class BaseDAO { public Connection getConnection() throws Exception { String userName = "aman"; String password = "password"; String url = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=amandb"; // step 1 Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); // Step … | |
Hi, does anyone know how to calculate the time difference between one row and another row inside one column? The time is already sort in a column. So, I hope to know that the difference time between first row and second row and consequently. Time is count by using the … | |
Hi everyone I'm new to JSP and followed a code I read in a book here is my code: [code=JSP]<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <% String connectionURL = "jdbc:mysql://192.168.10.2/ox?user=moop&password=unbind"; Connection connection = null; Statement statement = null; ResultSet rs = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection cn = DriverManager.getConnection(connectionURL); Statement … | |
Hey guys, I'm new here. Hello. I have a question for you huys. I've been stuck here for more than 2 hours figuring this out. Problem Create a menu-driven "Guess the Number Game" that allows the player to choose from two options: Version 1 - allows unlimited guesses Version 2 … | |
firstly hello to you all.. Secondly, im new(ish) to java and prone to doing silly things so i'm probably doing it all wrong BUT I want to be able to have a class that has as one of its members as an array of objects. When the class is instanced … | |
I am trying to add data from an array into a jTable, I have seen [URL="http://www.netbeans.org/kb/55/vwp-databoundcomponents.html"]one[/URL] or [URL="http://blogs.sun.com/winston/entry/nb6_table_binding_enhancement"]two[/URL] tutorials which say go to the "Table Layout" page but I cannot find this page anywhere in NB (have been searching for ages now) so I cant get my array into my … | |
Binary Search tree help Can somebody explain to me what this code is doing step by step?, thanks [CODE=java] TREE-SUCCESSOR(x) 1 if right[x] ≠ NIL 2 then return TREE-MINIMUM (right[x]) 3 y ← p[x] 4 while y ≠ NIL and x = right[y] 5 do x ← y 6 y … | |
Hi guys, I am trying to use JavaWebstart to launch a application i have developed. I have two problems: 1. It doesn't launch in Firefox but it works in IE7 2. After loading the file says Unable to Launch Application Here is the link[URL="http://nerdaid.ca/offsitelaunch.jnlp"] http://nerdaid.ca/offsitelaunch.jnlp[/URL] please check it out let … | |
hello im trying to get down a model that conceptually represents the data transfers that my application uses. I basically got this: [End User] <- command line interface -> [My Program] <-> { Java Virtual Machine <-> Java Interpreter <-> Operating System/Windows } <-> Computer The program uses Java's I/O … | |
Ok, just need some guidance on this, I have an array and a few text fields but am unsure about how to actually insert the text from the fields into an array when the ok button is pressed . I thought I would have to use "getInputValue()" and create a … | |
Hey! Does anyone know how to print out several pages? I have no problem printing out first page but the rest of the pages is a problem for me. All pages look the same just with different text so I don't think I need the book class for that. The … | |
after building the GUI using the java swing and awt ,how do i make the response of my mouse click pass the mesage accross from the client;s machine to the server machine?and where can i reaD more about it and also how do i get it to control and update … |
The End.