35,618 Topics

Member Avatar for
Member Avatar for loveforfire33

Hi, i have got a popup box on a aspx page using JavaScript - what i would like to happen is after the user clicks the box for the browser to navigate to a different aspx page. i have tried using response.redirect and other methods - to no avail. i …

Member Avatar for loveforfire33
0
149
Member Avatar for pradeesiva

Hi I wanna execute servlet progam in net beans , anybody please tell is tomacat must for run it?

Member Avatar for peter_budo
0
23
Member Avatar for baktha.thalapat

I have the java code to implemented jsp page, here how to view the pages 100 [code] <% PreparedStatement preparedStatement = null; PreparedStatement preparedStatements = null; ResultSet rs4 = null, rss = null, rst = null; java.sql.Timestamp timest; DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Connection conn = null; Timestamp timestamp; …

Member Avatar for peter_budo
0
175
Member Avatar for mrblaze

Hi.. can anyone pls help me to write the source code for B+ tree and B tree. I would be thankful if anyone provide the full source code for AVL,Splay,B+ and B tree. Plz help me.

Member Avatar for leiger
0
103
Member Avatar for adams161

Hi, i got a jeditor pane working to display web links in my program. normal web pages display fine, and I got a hyperlink listener and that is working so they can click links. I use setPage("url as string");. what I'm noticing is if the page has pictures on it, …

Member Avatar for leiger
0
108
Member Avatar for joe_ojah

Hi Everyone, I am writing a program that i want to output some values from the database using a JoptionPane. I have the output using the System.Out.Println(), but i want a JOptionPane. Would anyone please Help.....??? This is what i have so far; st1 = con.createStatement(); rs2 = st1.executeQuery("select Block,Room,Bed …

Member Avatar for javaAddict
0
157
Member Avatar for Tyrone.Wilson

I have a program in which I have used a .myFileType file. obviously windows does not recognise the file type and so I have to browse for the file in the application. how do I make it so that windows knows .myFiletype's native application and launch the application on double …

Member Avatar for NormR1
0
144
Member Avatar for rojo821

my java programs are not running. actually they are running but the are invisible. I click on task manager and they show running. I actually click on the screen and you hear an error ding as if you are clicking on the window in a wrong spot. I have windows …

Member Avatar for stultuske
0
186
Member Avatar for sowmyacrao

Hi All, I want to create a manifest file through java program and wanted to capture the required parameters like excluding generated code , some of the legacy application through manifest file and wanted to generate autmoatically. If anybody have an idea about this kind of requirement do advice, Thanks …

Member Avatar for NormR1
0
34
Member Avatar for Alex_

Hello. That function worked fine firstly. Then i started to change some code, but nothing essential, just changing some variables to private class fields etc. I've restarted the OS , but has same output this is my code now: [code] doc = (AbstractDocument) jTextPane1.getDocument(); FileReader theFileIO = null; char[] c …

Member Avatar for Alex_
0
108
Member Avatar for monaprerita

[code]import java.awt.*; import java.awt.event.*; import java.applet.*; public class AL extends Frame implements WindowListener,ActionListener { TextField text = new TextField(20); Button b; private int numClicks = 0; public static void main(String[] args) { AL myWindow = new AL("My first window"); myWindow.setSize(350,100); myWindow.setVisible(true); } public AL(String title) { super(title); setLayout(new FlowLayout()); addWindowListener(this); …

Member Avatar for NormR1
0
1K
Member Avatar for ravi25a

i have created a delete.jsp page which checks for datatype entered in the fields and when user enters the student id will delete it from database.i am succesfull while following insert.jsp but i am geting proublem while updating and deleting. i have linked insertiion,updation and deletion jsp files to 1 …

Member Avatar for parry_kulk
0
197
Member Avatar for jonoj

Hey guys :) I'm making a code and testing it in drjava but at this stage there is just one function I am having trouble with. Here is my code so far [code=java] import java.util.ArrayList; class Player { //instance fields, a name, a place, and an inventory String name; LocationID …

Member Avatar for JamesCherrill
0
156
Member Avatar for manmeet khanuja

Hi all, I am trying to create a website project having multiple pages showing data from database. I am using Netbeans IDE 6.7 and Apache Tomcat Server and Microsoft SQL Server 2005. I was developing this site using JSP,Servlets,JavaBeans to fetch data using MVC Architecture but since i needed some …

0
46
Member Avatar for EverydaySunday

Hi everyone, i encountered this error when i want to forward user to different page according to different situation. The error occurs if the login is null and the cash is null :( seems like the it does not know where to forward because there is two forward. is there …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for moman1981

I have been working on a tic tac toe game for a couple of days. And I just realize that I needed to do a GUI for it. With the following code, would it be fairly easy to add a GUI to this? and if so, what would be the …

Member Avatar for NormR1
0
362
Member Avatar for mahdi68

Hi is java suitable language for robot programming ( like line follower robots) ??? thanks

Member Avatar for NormR1
0
87
Member Avatar for abctoz

Hi All, I have created a CON, PRN folder([url]http://www.hoax-slayer.com/con-folder-name.shtml[/url]) using "md\\.\\c:\con " through DOS prompt, i was trying to create same CON and PRN folder through Java code using "Runtime.getRuntime().exec("md\\\\.\\d:\\con");" But it is giving following Exception : Cannot run program "md\\.\d:\con": CreateProcess error=2, The system cannot find the file specified …

Member Avatar for masijade
0
177
Member Avatar for ttboy04

Hello, My ouput is showing as... "1 2 3 (10)(23)(29)" when it should be... "1(10) 2(23) 3(29)" I don't think I am too far off. Here's the code and thanks in advance. // int[] Groups = {10, 23, 29}; in the constructor public String toString() { String tempStringB = ""; …

Member Avatar for ttboy04
0
106
Member Avatar for johndoe444

Hi, I am getting this exception: [CODE] javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - ob jectClass: value #0 invalid per syntax]; remaining name 'dc=jndiTest' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source) at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source) at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source) at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown Source) at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown Source) at com.sun.jndi.toolkit.ctx.ComponentContext.p_createSubcontext(Unknown Source) at com.sun.jndi.toolkit.ctx.PartialCompositeContext.createSubcontext(Unk nown Source) at com.sun.jndi.toolkit.ctx.PartialCompositeContext.createSubcontext(Unk nown Source) at …

Member Avatar for johndoe444
0
144
Member Avatar for P00dle
Member Avatar for MrBlack

Hi i m new to java, i want to make a simple application with netbeans ,(To Learn) i want to learn how to get data from a data base(mysql database) and display to textBoxes, and also want to learn how insert delete update database, Are there any tutorials or ebooks.plz …

Member Avatar for MrBlack
0
113
Member Avatar for abctoz

HI All, I want to create one folder which should open only with my application. Is it possible through JAVA ?? Please Guide me and send the Java code if possible Thanks in Advance

Member Avatar for masijade
0
333
Member Avatar for BuhRock

I have to write a program that creates a GUI and asks the user to select from a group of buttons which time of the day they made the call, and input in a text field how many minutes the call was. for the day time, it's supposed to be …

Member Avatar for NormR1
0
765
Member Avatar for spartanace

Hey for some reason my rectangles are being drawn after the start variable has been incremented all the way through. This is causing them to go off the screen. What i wanted, is like in the code, i want it to draw, increment draw increment until the loop is finished.[CODE]import …

Member Avatar for NormR1
0
608
Member Avatar for Alex_

I'm trying to make a html editor. I need to set different colors for different words... I managed to the change text's background color, but not it's foreground. Can some one help me? this is my code [code=java] public class HEditorView extends FrameView { public HEditorView(SingleFrameApplication app) { super(app); initComponents(); …

Member Avatar for Alex_
0
328
Member Avatar for MrBlack

There is an error , it is cannot find Symbol [CODE] import java.sql.*; public class Main { public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver"); String connectionUrl = "jdbc:mysql://localhost/mytestdb?" + "user=root&password=PHP"; Connection con = DriverManager.getConnection(connectionUrl); } catch (SQLException e) { System.out.println("SQL Exception: "+ e.toString()); } catch (ClassNotFoundException cE) { …

Member Avatar for MrBlack
0
4K
Member Avatar for fankoff

Hi guys, I need an advice on a html-refreshing issue I have one html document containing three different forms with three submit buttons for each form. The first form has some input fields for personal information (name,surname, age etc). When the user fills in the fields, presses the submit button, …

Member Avatar for fankoff
0
136
Member Avatar for ceyesuma

Hello: Soon I will need to have my foriegn keys working. I have tried to set them up with no luck. Could someone show me how to set the payee_uid below? I am using an Apache Derby Embbeded Db 10.5.3. Thanks [code] <entry key="createStudentTable"> CREATE TABLE student ( stu_uid VARCHAR(11) …

Member Avatar for ceyesuma
0
91
Member Avatar for bymak87

I had to write 10 objects of cars into an array and now my problem now is writing the array into a text file. I am able to get the correct output in the console, but when I open the text file I get part of the desired output, as …

Member Avatar for JamesCherrill
0
231

The End.