36,051 Topics

Member Avatar for
Member Avatar for itsnexgen

Hi All, I am thinking, it would be best to generate the complete Javascript Code for the navigation menu within a Java-Class and call this functionality out of the JSP page. To make it easier to maintain the menu-structure and all the therefore needed information, we had the idea to …

0
64
Member Avatar for d4n0wnz

Hi, I am taking a course that is Java based over the summer and the prerequisite class which I took a year ago was in c++ and has recently been switched over to java. So now the class expects me to have a good background in java but there is …

Member Avatar for rapperhuj
0
175
Member Avatar for programmingnoob

here's what to do: Imagine that you are part of a team creating a role-playing game. As a Support Programmer, you have been tasked by your Project Lead with creating the classes needed for player combat. For the first prototype, you will have to be able to create an attack() …

Member Avatar for Alex Edwards
0
130
Member Avatar for hav

just started playing around with CSS and find I have a weird little problem related to printing and hidden divs. a page contains hidden divs (hidden on screen) - the page uses a print css file so that these divs will be printed when the page prints there are also …

Member Avatar for shellydsilva
0
116
Member Avatar for Acidburn

Hey guys, Most embedded devices suc as the Amtel boards seen to require C / C++ programming, why don't they support Java? Is it question of performance? Or am I overlooking something?

Member Avatar for ssharish2005
0
168
Member Avatar for rob24

Alright. Usaly in the tool bar, there is the java symbol and it says java is running. Well my dad went on a spaz and Closed that. So now if I try to enter a chat room or watch a video (Not all videos) its just a blank field, nothing …

Member Avatar for bloody_ninja
0
136
Member Avatar for HLA91

Hey all I started learning java and I installed it on my Desktop(XP) and it was fine I could run the programs I made it was all good. When I came round to installing java on my laptop running Ubuntu I followed the guide here [URL="http://www.wikihow.com/Install-Java-on-Linux"]http://www.wikihow.com/Install-Java-on-Linux[/URL] I I followed the …

Member Avatar for peter_budo
0
187
Member Avatar for indianscorpion2

hello everyone...i am a graduate in computer science.... i have read and i have learnt core java..... but please clarify to me about J2EE, J2SE, javascript etc etc what are all these????? pls explain the difference between these and the basic core java that i learnt....... thanks in advance.

Member Avatar for Ezzaral
0
97
Member Avatar for Waseemn

Hello All, Now please do not laugh at me, I am trying my best here. As you all know, I am taking a Java programming introductory course at the local city college, and the instructor has mentioned that any program that contains code that he did not discuss in class …

Member Avatar for Ezzaral
0
125
Member Avatar for flash121

Hello, I am wondering if it's possible to hide/show components on a form, depending on which radio button is selected. For example lets say i have two radio buttons (in a buttongroup) and two buttons. When i select the first radio button i want the first button to show, and …

Member Avatar for flash121
0
114
Member Avatar for pkollmyr

I hae been trying to run some arguments in the cmd through java and it isn't giving me any errors. I know it is opening cmd and it executes the last argument to create the file. The only problem is that the output is not writed into the file. If …

Member Avatar for pkollmyr
0
182
Member Avatar for shwetha_cs26

public class pan extends JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); Color col1=jc.getColor(); g.setColor(col1); g.drawRect( 30,30,800,600);//600 = width 400 = height for(int i=30;i<=620; i=i+20) { g.drawLine(30,i,830,i); //for Horizontal lines change only y value (both shud be same) and x shud be 0 } g.setColor(Color.white); for( Integer i=10;i<=620; i=i+20) { …

Member Avatar for Ezzaral
0
173
Member Avatar for diasmvds

Hi all, I'm developing a drawing tool using Java. This will support drawing diagrams ( basically electrical components in a network ). As the drawing panel ,i have uesd a JPanel within JScrollPane so that user can scroll their diagram. The origin of my drawing panel is the top-left corner …

Member Avatar for Ezzaral
0
133
Member Avatar for pkollmyr

I am currently working on sending a file that contains one or more sentences through a parser, using command prompt. C:\ exe argument1 file is the format it must be sent it in command prompt The parser works and will return the parsed sentences in the command prompt ranging from …

Member Avatar for pkollmyr
0
126
Member Avatar for guravharsha

error:javax.servlet.ServletException: java.sql.SQLException: Illegal operation on emp -------------------------------------------------------------------------------- Hi, I am stuck here about 2-hours. Kindly help me. In this my updateuser.jsp page I am retrieving the data from drop down list which is in my search user.jsp . I am taking form name of searchuser.jsp page for reference here which …

Member Avatar for stephen84s
0
189
Member Avatar for Khakimonk

Hi, I am doing a computer home course and they have asked me to practise the use of the switch by creating an class which I then instantiate in another program to invoke the method that the switch is in. Phew. Anyway, the book I am currently learning from is …

Member Avatar for Khakimonk
0
108
Member Avatar for sannidhikumar99

[COLOR="Red"][B]how can i use clrscr() function in java programming.....[/B][/COLOR]

Member Avatar for bloody_ninja
0
134
Member Avatar for guravharsha

Hi, I am creating the updateuser.jsp page. For that I create search.jsp where one can serch users and after submitting this page.it should display the updateuser.jsp page where I can update the details of user. Here is my code of searchuser.jsp: [code=JSP]<% Connection connection = null; Statement st = null; …

Member Avatar for peter_budo
0
344
Member Avatar for senol01
Member Avatar for peter_budo
0
63
Member Avatar for inampudi

Hi, i want to upload a excel file and insert those data into mysql. i did in core java , just displayed excel sheet data into output. can you plz tell me how to do in jsp.. if possible send me the code

Member Avatar for peter_budo
1
77
Member Avatar for cs_learner

Hi, I am new to programming in java...can you recommend me some study material from which i can practice and get started.I want some reference where there are basic sample codes from which i can learn and start applying them in problems

Member Avatar for bloody_ninja
0
97
Member Avatar for SonxQ7

Trying to retrieve the OS environmental variable for a user... I looked at this code [code] import java.io.*; import java.util.*; public class ReadEnv { public static Properties getEnvVars() throws Throwable { Process p = null; Properties envVars = new Properties(); Runtime r = Runtime.getRuntime(); String OS = System.getProperty("os.name").toLowerCase(); // System.out.println(OS); …

Member Avatar for SonxQ7
0
164
Member Avatar for ade_ari_w0

How to read file from https post with certificate. This is my code public static void postHttp(String Linknya) throws MalformedURLException, IOException { File source=new File(path+"hasilnya.csv"); if (!source.isFile()) { source.createNewFile(); } source.setWritable(true); if (source.canWrite()) { BufferedInputStream bis = null; BufferedOutputStream bos = null; try { URL url = new URL(Linknya); URLConnection …

0
46
Member Avatar for TheBuzzer

I am wondering if there is a way to load up a image and trim the white space of it? like imagemagik for php have that feature but for java wonder if there is anything that can trim white space

Member Avatar for Ezzaral
0
942
Member Avatar for twgood

I really need help understanding this, I have to write 200-300 words due this week though I can not seem to understand what little my book tells me about it. Sadly this is all i got from my book...Multiple parameters can be declared by specifying a comma-separated list. Arguments passed …

Member Avatar for masijade
-2
9K
Member Avatar for sohel08

I'm trying to make a PhotoAlbum using JApplets.I write a Java code for it and then compile to make a .class file and then made a html file in the same directory which have .class file.But while running it on Web -Browser it doesn't load the applet and shows that …

0
63
Member Avatar for dhandapanik

Hi, I am working in a finance project where each transaction table is having more than 4 Million records just for 3 months. I have user & branch related information on other tables. I wrote a joined query by joining around 5 tables to summarize the report based on Branch, …

Member Avatar for dhandapanik
0
127
Member Avatar for shinobi59

I am trying to just compile a very back program and it compiles but when I run it I get errors: Java version = java version "1.5.0_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03) Java HotSpot(TM) Server VM (build 1.5.0_09-b03, mixed mode) Program HelloJava.java public class HelloJava { public …

Member Avatar for haxpor
0
108
Member Avatar for karthikvel

hi i'm a new member for this site. i'm a student. i would like to create some small java application softwares. so i need some support from you.

Member Avatar for stultuske
0
81
Member Avatar for netprogramme

I want to send value from Asp textbox to Javascript function on Button 1 click how i can have that . pls help This is my code <head runat="server"> function callserver(txt1) { //Here i have to receive the value var nm=txt1 alert(txt1); } </script> <asp:TextBox ID="TextBox1" runat="server" Style="z-index: 100; left: …

0
44
Member Avatar for lil_panda

Are there, in any way, shape, or form, pointers in java like there are in C and C++? If so, do I declare them the same way as in C++? My 873 page book doesn't explain pointers.

Member Avatar for sciwizeh
0
94
Member Avatar for lich

when you use floating points and do the coding normally you get 4 decimal points. . but if i want to make it to 2 decimal points. how can the program should be. please help me out here is the program i did /** * @(#)Average.java * * * @author …

Member Avatar for Alex Edwards
0
472
Member Avatar for warpath001

i have created a code which takes username pass etc from the user and then pts them in the database which is made using MSaccess the program complies very well but when i open my database no entries have been entered in there can u plz help [code] <%@page contentType="text/html"%> …

Member Avatar for jwenting
0
94
Member Avatar for anger2000

As the title says. I have a Application that takes in user input and saves it to a text file. I am trying to just make a simple JSP to display the text file now, but I am having problems. Anyone have a code snippet that could get me started?

Member Avatar for jwenting
0
34
Member Avatar for ramakanth

HI To All, I want small help ,How can we send multiple dropdown selected values to database using jsp as multipart form data is it possibleif yes how can we do that please help me its very urgent any body help me Advance Thanx TO One and all

Member Avatar for jwenting
0
136
Member Avatar for divya_31

Hi, I have a requirement to popup an alert message in a jsp page, I could achieve this. But I need to display this message on top of all the windows (for example, the user is in Email browser, the message should be displayed on it). Is it possible to …

Member Avatar for jwenting
0
37
Member Avatar for guravharsha

Hi, In main.jsp i wish to display the data from the database( user information stored in user table ). my codein main.jsp is: [code=JSP]<h2> description about user:</h2> <% Statement st = null; ResultSet rs = null; rs = st.executeQuery("Select description from user "); %> <option value = "<%=rs.getString("description")%>" > </option>[/code] …

Member Avatar for peter_budo
0
114
Member Avatar for Andina

I am having difficulty setting my computer up in order to do JSP. Some people are telling me to use Jakarta others are saying Apache Tomcat. When I try to find the things to download there are so many options with little or not tutorials accompaining it. Could someone provide …

Member Avatar for peter_budo
0
92
Member Avatar for Alex Edwards

Is it possible to generate something like the following-- [code=java] public interface Reference{ // Returns a reference of the provided type (in theory) public <E> E getReference(int num); // Set the reference of the type public <E> void setReference(int num, E ref); } [/code] [code=java] public class ClassFullOfReferenceVariables implements Reference{ …

Member Avatar for Ezzaral
0
131
Member Avatar for guravharsha

Hi All, I had created application where once you log in into index.jsp page, the next validateuser check for validation. but when i fill the form of username and password the error shows like: [COLOR="Red"]The requisted resources are not available[/COLOR] Here my context.xml [code=xml]<?xml version="1.0" encoding="UTF-8"?> <Context path="/student" docBase="student" debug="5" …

Member Avatar for stephen84s
0
187
Member Avatar for mysong

I need help adding tables in the payment area that shows the full payment plan. Also my months start high to low. I want the months to start with month 1 [CODE]import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.lang.Math; import java.text.NumberFormat; import javax.swing.table.*; //Setup lables and buttons public …

Member Avatar for Phaelax
0
142
Member Avatar for LevelSix

Basically, I need to write a program that takes a user input for multiple text files, and then prints them out into one file. I usually try not to pose questions here back to back, but alas, I need the help this time round. What really has me baffled is …

Member Avatar for LevelSix
0
1K
Member Avatar for wrappingduke

Hello, i'm attempting to create a splash screen using the code snippet posted on this site(i.e. DaniWeb) - [URL="http://www.daniweb.com/code/snippet697.html"]http://http://www.daniweb.com/code/snippet697.html[/URL] However, I'm having some difficulty. It appears that the splash screen will continue to run w/out disposing itself. That is, the screen hangs and does not go away. Also, the screen …

Member Avatar for wrappingduke
0
145
Member Avatar for Software guy

hi , i have a simple problem here, that is how can i convert an Decimal integer into Hexadecimal integer and not in Hexadecimal string. I have wrote the following code and managed to get the output from the program. But for a certain reason i cant use it again …

Member Avatar for Software guy
0
183
Member Avatar for guerreronoli

The project is completed, the report is working in the JCreator, but not when i run jar file.. I've searched the forum but i couldn't find to my requirements. I want to know to how to make the jar file that the report should also work.. Help needed plz..

Member Avatar for lucky1981_iway
0
86
Member Avatar for brr

[CODE]FLAG MANAME SUM(SUM_AMT) -------- ---------------------------------------- ------------ Credit Advance From Others 999 Credit Audit Expenses 567 Credit Bank of Maharashtra 100 Credit CASH 2766 Credit SBI 555 Credit State Bank Of India 3777 Credit Sundry Creditors 1111 Credit salaries payable 444 Debit Advance From Others 13332 Debit Advance Travelling 3000 Debit …

Member Avatar for lucky1981_iway
0
78
Member Avatar for HLA91

Hey all I recently picked up the book "Java the first semester". It uses the EasyIn class to get user input. I have downloaded the file EasyIn.java but I dont know how to make the class accessible from my programs. [QUOTE]As long as the EasyIn class is accessible you can …

Member Avatar for peter_budo
0
186
Member Avatar for dtfan6

Hi everyone ! This is my first new post, I have a problem with my Java code. I am trying to make a first applet, and have gotten this code from a book, "Java - An Introduction To Problem Solving & Programming", by Walter Savitch and Frank Carrano : [code] …

Member Avatar for dtfan6
0
136
Member Avatar for roshantheman

[B]generate a 5-day timetable for a school (multiple classsrooms) be able to assign students to specific courses to certain rooms/teachers at a specific time interval (without clashing with other classes) it must use a database as a medium (ODBC) this is a project that i need some drastic help in …

Member Avatar for javaAddict
0
102
Member Avatar for neha.99n

hi, i have to create 1 jsp page containing 2 radio buttons-buy,sell if i select "buy"radio button,it should display 2 jsp page containing drop down menus if i select items from drop down list,click on "submit" button it should dispay another page. can u pls send me the code for …

Member Avatar for masijade
0
150

The End.