36,051 Topics

Member Avatar for
Member Avatar for Megha_Patni

Hi All, I have to do a validation on date in my form. I get a string of the format "dd/mm/yyyy" in my form. now i have to check that this date should be of the past including the present week(for eg. if I add the entry on 04/09/2007 then …

Member Avatar for ~s.o.s~
0
72
Member Avatar for gauri_me_i

I am going to do a project on JSP.Can anybody tell me some names of good books on JSP,SQL,ORACLE & J2EE.I really want to learn to do a best project.plz reply soon....

Member Avatar for peter_budo
0
66
Member Avatar for swanside

Hello all. I am looking for some guidence please. At the place I work, there is a database which is accessible by three users. They have a front end exe file which connects to a MS Access database with several tables in it. The info is used for logging incomming …

0
42
Member Avatar for ceyesuma

I need some help with my classpath I think. My project compiles yet the jsp can not find the classes. What can I check to make sure the classes are going to the right folder?

0
44
Member Avatar for pmhayden

I have a ComboBox defined as follows: [B][COLOR=#7f0055]private[/B][/COLOR][COLOR=#000000] String[] [/COLOR][COLOR=#0000c0]months[/COLOR][COLOR=#000000] = {[/COLOR][COLOR=#2a00ff]"Month"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"01"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"02"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"03"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"04"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"05"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"06"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"07"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"08"[/COLOR][COLOR=#000000], [/COLOR] [COLOR=#2a00ff]"09"[/COLOR], [COLOR=#2a00ff]"10"[/COLOR], [COLOR=#2a00ff]"11"[/COLOR], [COLOR=#2a00ff]"12"[/COLOR]}; [B][COLOR=#7f0055]private[/B][/COLOR] JComboBox [COLOR=#0000c0]jComboBoxMonth[/COLOR] = [B][COLOR=#7f0055]null[/B][/COLOR]; and down further I have: [COLOR=#0000c0]jComboBoxMonth[/COLOR][COLOR=#000000] = [/COLOR][B][COLOR=#7f0055]new[/B][/COLOR][COLOR=#000000] JComboBox([/COLOR][COLOR=#0000c0]months[/COLOR][COLOR=#000000]);[/COLOR] [COLOR=#000000][/COLOR] [COLOR=#000000]Now i am trying to do run an if statement …

Member Avatar for peter_budo
0
90
Member Avatar for ceyesuma

Hello I am at a work computer (firewall) I need to add to the CLASSPATH and the PATH to use apache tomcat. Though I know this addition won't disrupt anything I do not have a administrative password. Is there a way to add to these enviornmental system variables? DOS maybe?

Member Avatar for Paul.Esson
0
107
Member Avatar for ceyesuma

[code] <form action="interface.jsp" method="post"> <input type="text" name="accttxtbox" value="Enter Account number"> <% if(request.getParameter("createacct" != null)){%> <jsp:useBean id= "creditCardBean" class = "creditcardproject.CreditCard"/> <%long AccountNo=getNewAccount()%> <%accttxtbox.value(AccountNo)%> <% double CreditLimit =creditCardBean.CreditLimit %> <% double TotalCharges =creditCardBean.TotalCharges %> <% double TotalPayments =creditCardBean.TotalPayments %> <tr><th>Account</th><th>CreditLimit</th><th>TotalCharges</th><th>TotalPayments</th></tr> <tr> <td><%= AccountNo %></td> <td><%= CreditLimit %></td> <td><%= TotalCharges %></td> <td><%= …

0
79
Member Avatar for ceyesuma

[B]This class was given to me. I need to work with JSP. Am I correct in thinking that I need to make the methods setters and getters for each method I need data from. And if so could you give me an example of one? Lets say I needed to …

0
72
Member Avatar for paleciop

Hi, im having trouble with a code, it doesnt do what its supposed, theres something wrong with it but i cant find what, maybe you could help me find the problem and fix it. heres the code: public static byte[] runlengthencoding(byte[] m) { byte[] copia = new byte[m.length+9999999]; for(int w …

Member Avatar for Ezzaral
0
142
Member Avatar for vamsee

hello friends, I'm doing a project with JSP, MySQL and Tomcat. I need a code to calculate the execution of a JSP page. Its V.V.V.Urgenttt... plzzz help mee out

Member Avatar for Ezzaral
0
479
Member Avatar for ceyesuma

[code] <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <context-param> <param-name>webmaster</param-name> <param-value>webmaster@myeducationonline.com</param-value> </context-param> <context-param> <param-name>jdbcDriver</param-name> <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value> </context-param> <context-param> <param-name>dbURL</param-name> <param-value>jdbc.odbc.clientDB</param-value> </context-param> <session-config> <session-timeout>30</session-timeout> </session-config> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app> [/code] so this file as to be put in my "workspace" where my projects are ?

Member Avatar for Ezzaral
0
148
Member Avatar for ceyesuma

You really do not have to open the netbeans project. However you can. Does anyone know why when I comple the jsp's can not find the bean because the class file is in the build/classes file and not the src file. Does it not need to be there? Or I …

Member Avatar for Ezzaral
0
102
Member Avatar for Pyare007

How to solve stack over flow? In my application no recursive function call. It is a [B]J2EE application (web)[/B] In the application one Applet is calling. This applet having many pages and many records, and the records arranged in different pages. While going to next page it taking too much …

Member Avatar for masijade
0
80
Member Avatar for bigbluesky

I can only get 2 of the buttons to work - what am I doing wrong? I have been working on this for 5 days. I also cannot get my icon to work - do I need more of an address? [CODE] import java.util.ArrayList; //For ArrayList public class Product implements …

Member Avatar for plasmafire
0
134
Member Avatar for ceyesuma

I would like to use netbeans, and a tomcat server with a suitable jvm I am uninstalling all of the above because it does not seem to be working together. Is there some where I can get a download that will set me up to all these things with out …

Member Avatar for peter_budo
0
134
Member Avatar for apontutul

hi guys......i want to view a piechart extracting items from a mysql database. i've created a button on a jsp page(view.jsp) which is calling another jsp page(viewrst.jsp) when i click that. the code for (viewrst.jsp) is given below: [code] <%@ page language=[COLOR=red]"java"[/COLOR]%> <%@page import=[COLOR=red]"org.jfree.chart.*;"[/COLOR]%> <%@page import=[COLOR=red]"java.sql.DriverManager;"[/COLOR]%> <%@page import=[COLOR=red]"java.sql.*;"[/COLOR]%> <%@page import=[COLOR=red]"org.jfree.data.jdbc.*;"[/COLOR]%> …

Member Avatar for peter_budo
0
207
Member Avatar for ceyesuma

I am using a example in a book to build my own program (java server pages) I can not even get the example to run. Is there someone to take a look at the program? (netbeans package)? [EMAIL="ceyesuma@hotmail.com"][/EMAIL]

Member Avatar for ceyesuma
0
142
Member Avatar for ceyesuma

org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. error: Invalid class file format in C:\Program Files\Java\jdk1.6.0_02\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '49.0' is too recent for this tool to understand. I'm not sure what to do to fix this error tomcat 4.0; any help?

Member Avatar for peter_budo
0
143
Member Avatar for apontutul

I want to generate a code that will automatically take the poll-id..of which the user wishes to view the result of that poll. there's the code:using mysql & java & another thing i wish to use this on a jsp page: [CODE] package votepiepack; import java.sql.Connection; import java.sql.DriverManager; import java.sql.*; …

Member Avatar for apontutul
0
99
Member Avatar for staneja

Hi All I want to implement "FIX protocol" The Financial Information eXchange (FIX) protocol using java technology can any of you please guide me what are the things i need to know in java to implement this. and any further help from where i can get to know more about …

Member Avatar for sergeant
0
139
Member Avatar for umadas

HI alll I need help to send the link values to the action class.More precisely, i have many links in my jsp page,now i want the value of the link selected in the action class. I am using <html:link> tag in jsp and request.getparameter() in action class.kinldy help with a …

0
83
Member Avatar for w32.sysfile

i want to do a compiler but, now i am stuck in the compilation part, suppose that i want to compile "cool.java" that is located in the bin directory, what shold i do?? help please

Member Avatar for w32.sysfile
0
146
Member Avatar for umadas

Hi all i have a table having 2 columns inside a jsp page.i want this table to be put in a list box.Is this possible? if yes,please do provide a syntax for the same.Thanks in advance Umadas

Member Avatar for lookof2day
0
103
Member Avatar for tummala.kranthi

validations is not work properly,directly goes to failure page.The error page ie properties file is not taken&validation.xml is not taken,what can i do pls tell.ok bye

Member Avatar for lookof2day
0
59
Member Avatar for volscolts16

Hi All, Thanks to everyone who helped work out my probs last semester. Ended up with a B in Computer Science class. Even though I thought I was going to fail. Anyway, New semester another new problem. I have done the assignment and keep running it. I keep getting an …

Member Avatar for peter_budo
0
98
Member Avatar for markku

Hello, Well guys, I consider myself a beginner in Java generally and in JMF in particular, and actually I am student at the University and doing my project which creating Multi-video-Players (kindly check out my code in the bottom), so I have 6 different players and each one plays different …

0
66
Member Avatar for michael.ngobeni

I have two questions 1. How do I use a Replace() function in JSP e.g. String strName = "My name is"; String strName2 = replace(strName, "is", "is Michael"); 2. How do I make a string to start with a capital letter e.g. I want [COLOR=red]d[/COLOR]avid to be [COLOR=red]D[/COLOR]avid Thank you.

Member Avatar for peter_budo
0
2K
Member Avatar for mimsc

I have an idea how to do this, but never did it before heres my code: <label for="weatherCity">City:</label> <select name="weatherCity" id="Cities"> <option value="0"> </option> here's my query: SELECT distinct state FROM ols_weather_current ORDER BY 1 asc; [code=java] Connection connection; PreparedStatement pstmt; ResultSet rst2; try { // execute the query connection …

Member Avatar for Sulley's Boo
0
102
Member Avatar for ttamilvanan81

Dear all, I was stored the gif/jpg image into the MySQL Database as a buffered image. But when i was retrive the image from database and display in jsp page, it will not working well. The image is not displaying. The content get from the database, but it's type is …

Member Avatar for ttamilvanan81
0
478
Member Avatar for ticlar

Could not upload the files. Please make sure they have a correct extension. File Status : EuroMan Easter.jar Was Not Uploaded! Name: EuroMan Easter.jar Type: application/x-zip Size: 88653 Tmp: EuroMan Easter.jar When i uplaod games on Rannat, i will get following error , it's ince 7 days i got this …

0
47
Member Avatar for arkaprava

I want to install JForum on sun apserver However during installation I found the following problem [B][U]Please give write access for the user who is running the webserver to the file 'index.htm' and for the directory 'WEB-INF/config' and its subdirectories before continuing. [/U][/B] Tell me how can I troubleshoot this …

0
74
Member Avatar for taconator

I need some help. I have to translate a c app into java. Which would be no problem if I knew c. Is there a good uber begginers level tutorial somewhere, that i might be able to figure out what this c code is doing? I mean, i am seeing …

Member Avatar for taconator
0
121
Member Avatar for mimsc

[code=java] <select name="weatherStat" id="States"> <% try { Connection connection = DataBaseConnectionManager.getConnection(); String sqlQuery = "SELECT distinct state FROM ols_weather_current ORDER BY 1 asc"; ResultSet rst2; PreparedStatement pstmt; pstmt = connection.prepareStatement(sqlQuery); rst2 = pstmt.executeQuery(sqlQuery); while (rst2.next ()) { <option value=rst2.getString("state")></option> } rst2.close(); pstmt.close(); } catch (Exception e) { e.printStackTrace(); } %> …

Member Avatar for Ezzaral
0
95
Member Avatar for tech291083

Hi, [COLOR=#000000]I have this Java code not running properly with showing the following error at command prompt on Linux os.[/COLOR] [COLOR=#000000] [/COLOR] [CODE] [root@localhost PracJava]# javac clicker.java [root@localhost PracJava]# java clicker Exception in thread "main" java.lang.NoSuchMethodError: main [/CODE] [COLOR=#000000] [/COLOR] [COLOR=#000000]Can any one help please? Thanks..... [/COLOR] [CODE] import java.applet.Applet; …

Member Avatar for lookof2day
0
138
Member Avatar for sach_ak47

I want to maintain single session for every module I am working on one project ,in that i am using differnt module for(disply item,download item ,and billing) i want to maintain single session when request goes from 1st module to last module Please help me

Member Avatar for lookof2day
0
88
Member Avatar for apontutul

I want to generate a code that will automatically take the poll-id..of which the user wishes to view the result of that poll. there's the code:using mysql & java & another thing i wish to use this on a jsp page: [code] package votepiepack; import java.sql.Connection; import java.sql.DriverManager; import java.sql.*; …

Member Avatar for lookof2day
0
116
Member Avatar for apontutul

what I mean is that, when I click a hyperlink on a webpage it will call a .java file which will then show "text or image"..is it possible? if yes how?....please suggest.......thanks

Member Avatar for lookof2day
0
97
Member Avatar for jools68

I'm fairly inexperienced with java and haven't had any experience with SOAP at all and have been trying to get a Sample SOAP webapp working. After I startup tomcat and go to [URL]http://localhost:8080/soap/admin[/URL] the Apache SOAP Admin page comes up and if I try to click on any of the …

Member Avatar for venu@baylogic
0
169
Member Avatar for apontutul

I want to generate a code that will automatically take the poll-id..of which the user wishes to view the result of that poll. there's the code:using mysql & java & another thing i wish to use this on a jsp page: [code] package votepiepack; import java.sql.Connection; import java.sql.DriverManager; import java.sql.*; …

Member Avatar for apontutul
0
109
Member Avatar for Nperic

Now i created a Client for the HOPP. i made a button which submits the guess to the server, but logically this doesnt output. What do you think seems to be the problem here. [code]public void actionPerformed(ActionEvent e){ String command = e.getActionCommand(); if(command.equals("Join Game")){ serverResponseArea.append("Sending join game request\n"); try{ clientHOPP.send(new …

Member Avatar for Nperic
0
174
Member Avatar for deridder149

Hello all, very useful forum you guys have here. maybe you might be able to help me with an issue i am having with a program i am writing? I am trying to dynamically load a class that the user specifies. I am coding in standard java 1.5 and swing. …

Member Avatar for deridder149
0
94
Member Avatar for Dio1080

Ok guys, I need help, I found a couple of examples but don't understand. None of the Java examples uses this method for Converting letters uppercase to lowercase: int offset = (int) 'a' -(int) 'A'; char lowercase = (char)((int)uppercase + offset); Can somebody get me on the right track here …

Member Avatar for Ezzaral
0
159
Member Avatar for vivek_green

hi, I have a probelm,two thread from two different JVM's accessing the same file causing improper data for the 2 JVM's resulting in improper data. If it same JVM i can go for synchronized block ,wil not happen with independent JVM.soluion pls?

Member Avatar for Ezzaral
0
100
Member Avatar for staneja

I am passing an object of class "String" to hello function and i want to pribt all the chars so i am using foreach loop My main motive is to use foreach so please help me to type cast it follwoing is the code i have [B][COLOR=#7f0055][/COLOR][/B] [B][COLOR=#7f0055]int[/B][/COLOR] [COLOR=#0000c0]i[/COLOR]=0 ; …

Member Avatar for Ezzaral
0
89
Member Avatar for Nperic

I have built a program which acts as a Number Guessing Game using HOPP. Everything compiles like it should but my UI isnt loading because of a series of Exceptions. I was wondering if there are any helpful tips. I have added the code as an attachment. Thankyou, any help …

Member Avatar for Nperic
0
111
Member Avatar for pbrookee

Hello all, I have a question and hope someone can help me. I have 3 Java .exe/packages in which I want to make into one .exe so all can be installed one by one from the same .exe. Can I do that using VB? Thanks! Kudos!

0
63
Member Avatar for onsir

hello how to convert string to double, and result is string. example ; String code =00000000001; Double plus =code + 1; String result =plus; // and result is 0000000002 thanks

Member Avatar for masijade
0
155
Member Avatar for w32.sysfile

this is my code.. [code]class NewAction implements ActionListener { public void actionPerformed(ActionEvent e) { TArea2.setDocument(new PlainDocument()); } } void confirmation() { int ReturnValue=JOptionPane.showConfirmDialog(null,"Do you want to open a new file? ","Confirmation ", JOptionPane.YES_NO_CANCEL_OPTION ); if(ReturnValue==JOptionPane.YES_OPTION) { //HOW CAN I POSSIBLY CALL THE METHOD IN THE NewAction class?? } else if(ReturnValue==JOptionPane.CANCEL_OPTION) …

Member Avatar for orko
0
110
Member Avatar for sam18

How can i display the output of this coding in frames instead of Command Prompt. and i want to view the result of that student only whose rollno is entered. [code] import java.awt.*; //import java.applet.*; import java.awt.event.*; import java.lang.*; import java.sql.*; public class wscreen extends Frame implements WindowListener,ActionListener { Button …

Member Avatar for Ezzaral
0
160
Member Avatar for bigbluesky

[QUOTE]I have tried to rezize my output window by changing the values in the width and legth - nothing happens. What am I doing wrong?[/QUOTE] [CODE] private final static int FRAME_GRID_ROWS = 3; private final static int FRAME_GRID_COLS = 1; private final static int FIELD_PANEL_ROWS = 10; private final static …

Member Avatar for Ezzaral
0
79

The End.