35,618 Topics

Member Avatar for
Member Avatar for onejavaone
Member Avatar for peter_budo
0
139
Member Avatar for hajjo

how can i write a code which counts to me number of visits a user had to site, and total number of visits to that site from all users.

Member Avatar for hajjo
0
79
Member Avatar for beanboy

i'm trying user login ...logged in users are sent to a hash map for further reference. my prob is hashmap creates new map every time a user logs in......how to put all the users in a single hashmap...? thanks beanboy

Member Avatar for javaAddict
0
48
Member Avatar for moonis.ahmed

My query has two parts: 1. Can I pass an audio file from one jsp to another using form submit. 2. If yes, then how do I write this file to another file in the next jsp page. I was going through the AudioInputstream class but couldnt make much head-through. …

Member Avatar for moonis.ahmed
0
586
Member Avatar for sayaan

Hi, I have written a jsp page which extract large data (1.5MB) from database and downloaded to a csv file. The browser promtpts a file save dialog box and user can save it in csv file in local drive. The program works fine only problem is, in csv file there …

Member Avatar for sayaan
0
227
Member Avatar for altf2junkie

I've been giving myself a crash course in Java using some lectures from Stanford, and I started working on my practice midterm yesterday. So I'm reading my way through Sun's Java tutorial, and they don't define what the operator *= is, and that's the third question on my practice midterm. …

Member Avatar for prisonpassioner
0
150
Member Avatar for prisonpassioner

hi i am a new one to this community i have a problem in my code ,in that when i try to implement keylistener it works only for text not for image while using drawImage the image painted but not moved and when iam trying it with draw string keyListener …

Member Avatar for prisonpassioner
0
100
Member Avatar for osirion666

Okay First off i cant figure out where my code is wrong i have stored the ID of the records i want to delete to an array called todelete[] these values are taken from checkbox called delete (stored the ID of the record to the value parameter of the checkbox) …

Member Avatar for osirion666
0
78
Member Avatar for ashish2234

Actually , i must admit , i did not knew about connecting with database but i am trying to learn , i want to insert data into jtable from Ms acess database , i have made a table called song_library there and also created the dsn as testy1...Also in the …

Member Avatar for puneetkay
0
134
Member Avatar for ronny22

Hi everybody sorry if the title is misleading what am meant to say does anyone know of such a book or anything where I or we (depending anyone coming back to this thread) lol Know were we can see step by step on how to build application on java you …

Member Avatar for harsh2327
0
218
Member Avatar for ashish2234

i am done with almost all the functions of a simple mp3 player , i am trying to make , i 'm stuck with pause function, i dont know , i was thinking of creating a separate thread for it... [code] private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) { song_name=(String) jTable2.getValueAt(jTable2.getSelectedRow(), 0); if(count>0) …

Member Avatar for prisonpassioner
0
134
Member Avatar for msalahu

Dear Members, I developed following class to creat a virtual key boad. While user will click it should type that number to login field. The class is compiled with jdk1.6.0_14. successfully But while button is clicked its not typing that number to login filed. Kindly help to resolve this problem …

Member Avatar for msalahu
0
183
Member Avatar for hajjo

hello i am trying the following code [CODE]<%@ page import="java.util.*" %> <HTML> <BODY> <%! Date theDate = new Date(); Date getDate() { System.out.println( "In getDate() method" ); return theDate; } %> Hello! The time is now <%= getDate() %> </BODY> </HTML>[/CODE] its so simple, taken from a tutorial. the question …

Member Avatar for peter_budo
0
112
Member Avatar for ndoe

may i ask again!different question but still use netbean! i want active a tombol in a condition, i have 5 question in panel a if the 5 question is true tombol in panel b is active!how the idea,i tried use method getParent but is not succes!thanks all and how change …

Member Avatar for peter_budo
0
111
Member Avatar for theo19

Guys, kindly help me. How can user enter a character? or How can I use the Enumerated Type for this? Thanks:) [CODE] import java.util.Scanner; public class RockPaperScissors { public static void main(String[] args) { Scanner input= new Scanner(System.in); char x,y; System.out.print("Player 1:"); x=input.nextLine(); System.out.print("Player 2:"); y=input.nextLine(); switch(x) { case 'P': …

Member Avatar for VernonDozier
0
4K
Member Avatar for Aphrodite

The code below runs successfully but once run and the user enters a message into the text field named input and clicks the button named send, I receive a null pointer expression. Within the inner action listener it calls the method sendMessage() which gets the text and assigns it to …

0
56
Member Avatar for rp_prasanna

i have a requirement of adding rows which consist of textboxes and select box. the values stored should be set in the form. I am using Struts jsp. i tried using indexed properties on forms along with logic iterate tag....

0
51
Member Avatar for Alex_

Hello, i want to print on my website how many people are viewing it. I thought doing it with cookies: 1. Give the guest a [I]guest [/I]cookie. Increase a static variable "guest". 2. If he registers, give him a [I]user[/I] cookie. Decrease "guest" by 1 , Increase "user" by 1. …

Member Avatar for Alex_
0
122
Member Avatar for hajjo

[CODE]<html> <head> <script type="text/javascript"> function formValidator(theForm) { if (theForm.location.value == "") { alert("Please choose a location"); theForm.location.focus(); return (false); } if ( ( theForm.browser[0].checked == false ) && ( theForm.browser[1].checked == false ) && ( theForm.browser[2].checked == false ) && ( theForm.browser[3].checked == false )) { alert("please choose a subscription …

0
56
Member Avatar for mdew_47

I am thinking of building a media player that could read all the audio ,video file types as my final year project using java in the linux environment( fedora core 4). But i don't know from where should i start, pls is there anyone who can help. I will be …

Member Avatar for devpiyu
0
293
Member Avatar for sriasarch

Hi, I am getting parsing error in xpath transformation String s = "if (/blah/text()!='') then blah/text() else ''"; XPathExpression expression = xpath.compile(s); Object o = expression.evaluate(target, XPathConstants.NODESET); I am using normal core java and xml packages to parse import javax.xml.parsers. DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.xpath.XPath; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathExpression; import …

0
94
Member Avatar for hajjo

[CODE]<%@ page import="java.util.*" %> <%@ page import="java.sql.*" %> <%@ page import="java.text.*" %> <% Statement stmt =null; Connection conn =null; ResultSet rs = null; try { String url = "jdbc:oracle:thin:@ahmad:1521:PLSExtProc"; String user = "training"; String password = "training"; Class.forName("oracle.jdbc.driver.OracleDriver"); System.out.println("--------------"); //Get a connection to the database conn = DriverManager.getConnection(url, user, password); …

Member Avatar for hajjo
0
93
Member Avatar for pandeyprashant

hello every one, i m trying to insert data from jsp page to database using sql insert query. every thing is working fine but when i m using autonumber in database(Ms Access) it is showing error. so please help me how to do it??/

Member Avatar for pandeyprashant
0
848
Member Avatar for ehsankhan2000

I am running this code It is giving an error which is out of my understanding CODE: [code=jsp]<html> <head> <title>Login Page</title> </head> <body bgcolor="#C0C0C0"> <form method="GET" action="http:\\localhost:8000\login_page.jsp"> <marquee style="font-family:Arial;font-size:14pt;color:#800000;fontstyle: italic;font-weight:bold">eResource System -----&gt;The World of Learning</marquee> <table border="1"width="100%"> <tr> <td width="18%"> <p><font face="Arial"size="2"color="#800000"><b><a HREF="home_page.htm">Home</a></b></font></p> <p><b><font face="Arial"size="2"color="#800000"><a HREF="chart_toppers.jsp">Chart Toppers</a></font></b></p> <p><b><font face="Arial"size="2"color="#800000"><a HREF="search_home_page.htm">Search</a></font></b></p> …

Member Avatar for kvprajapati
0
79
Member Avatar for jaiprakash15

Dear friends, i am Jai.. i have developed a web based product where i have implemented Localisation concept..when the user selects the languages in a webpage.d webpage will convert itself into that particular language.i use to place the language related this in *.properties file and access that using Locale concept. …

Member Avatar for kvprajapati
0
99
Member Avatar for anshusharma

hello , i am new to web applications.in my final year project,earlier i was making call to database to get the data.Now i have to replace that database call with a webservice call. i used axis2 to create a client stub and than wrote the java client to consume the …

0
55
Member Avatar for pandeyprashant

hello everyone, i m new to dotpropertyfile.please help me in this. How to use dotPropertyfile in java. thanks in advance.

Member Avatar for kvprajapati
0
96
Member Avatar for kbjustin

While I am familiar java but i am basically new to creating a GUI using java. I need to make it so when a user clicks on a button another window pops up displaying various statistics about that product. The thing is the amount of information I need to display …

Member Avatar for BestJewSinceJC
0
148
Member Avatar for llemes4011

Hello! Today I started a SourceForge project for the game that I'm making, and I wanted to get input on the Map Builder/Editor. I DID include a readme file that has directions, contact info, and future features. [URL="https://sourceforge.net/projects/jiso/files/Map%20Editor/"]JISO Map Builder[/URL] Please give me feedback, this is a project that I …

Member Avatar for llemes4011
0
207
Member Avatar for akulkarni

i have subject advanced java programming in my syllabus i will be learning socket programming servelets, corba,AMI,java beans etc. I have heard about apachetomcat server.How do i get the required software from net.thanks

Member Avatar for BestJewSinceJC
0
139

The End.