35,617 Topics

Member Avatar for
Member Avatar for rpjanaka

Hi I am using the "< jsp:setProperty " tag.... so I want to set the properties manually if the corresponding property field is empty(null) in the web form. So it was hard corded in the setter method of the bean class. [COLOR=sienna]public void setName(String name) { if (name == null) …

Member Avatar for jwenting
0
68
Member Avatar for kiranme

<%@ page language = "java" import = "java.sql.*" %> <%@ page import = "java.sql.*" %> <%@ page import = "java.text.*" %> <% String username,passw,passw1,compnam,tinn; username= request.getParameter("username"); passw = request.getParameter("pwd"); passw1 = request.getParameter("pwd1"); compnam = request.getParameter("compname"); tinn=request.getParameter("TIN"); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String st = "jdbc:odbc:loginval"; Connection cn = DriverManager.getConnection(st," "," "); Statement stmt = …

Member Avatar for jwenting
0
62
Member Avatar for George2

Hello everyone, I am wondering what is the differences between Java HotSpot(TM) Client VM and the J2SE VM I downloaded from java.sun.com? Are they the same thing? Why Hotspot VM has client and server version? thanks in advance, George

Member Avatar for jwenting
0
60
Member Avatar for kavitha0904

hi.. pls anybody can tell me what is CHECKED AND UNCHECKED EXCEPTION means.. i dont understand this.. pls help me..

Member Avatar for jwenting
0
72
Member Avatar for Pauer100

I have an employee class see atthachement whic compiles fine and i have written some code called EmployeeAdd which uses the Employee Class which was deifining an Employee. However my problem is when i am trying to import the Employee in to EmployeeAdd the error message i am getting is …

Member Avatar for Pauer100
0
137
Member Avatar for rpjanaka

hi i want to break the following string.. {ok,[{operators,'sri','mob',45,45,45,45},{operators,'sri','dia',45,45,45,45}]} by using [COLOR=red]{operators, [/COLOR][COLOR=black]this point.. i used the StringTokenizer class to do this by giving the [/COLOR][COLOR=red]{operators, [/COLOR][COLOR=black]as Delimiter. But when it runs it gives completely different result than I expected that is it was matched any character that the delimiter …

Member Avatar for rpjanaka
0
190
Member Avatar for itdisc

Hi all, I Just have to retrieve the data from the oracle database n just write the retrieved data to text file.Please Can anybody send me the code? Its very urgent. [IMG]http://forums.devx.com/images/smilies/frown.gif[/IMG] Thanks in advance.

Member Avatar for ajay_tabbu
0
106
Member Avatar for ajay_tabbu

[code=java] class Rev { char a[]; char i=3; void str() { for(i='A';i<'D';i++) { a[i]='i'; } } void show() { for(int i='A';i<'D';i++) { System.out.print(a[i]); } } Void reversStr() { for(i='A';i<'D';i++) { System.out.print(a[i]); } } } class Revers { public static void main(String[] args) { Rev a1=new Rev(); a1.str(); a1.show(); a1.reversStr(); } …

Member Avatar for iamthwee
0
84
Member Avatar for kimbokasteniv

I was going through the questions in my study guide for computer science, and I noticed a few blocks of code that contained syntax that I had never used before. My first question is on the ^ operator. What exactly does this do? My second questions is on the use …

Member Avatar for kimbokasteniv
0
135
Member Avatar for javabuddy

hi, anybody can teach me how to code user interface in swings using ftp protocol? awaiting for ur reply java buddy

Member Avatar for kimbokasteniv
0
81
Member Avatar for shrini

Firstly,I used an option [B]javac -deprecated[/B] javafilename.java and compiled.secondly i have run the program using [B]java[/B] filename but cannot view any result. can anybody help in this regard,ur help much appreciated Thanks, Shrini.

Member Avatar for jwenting
0
2K
Member Avatar for vivekr

Is it possible to merge together python and javascript.. I am looking forward to fetching the contents of a webpage, parse them and use them in a webpage from javascript. I am a beginner in javascript and i couldn't find any means to fetch the contents(The webpage's entire source code) …

Member Avatar for bumsfeld
0
66
Member Avatar for itsnexgen

Hello guys, I am trying to design a Task handling tool. In the Right hand side, a panel which contains (columns and rows) as : Week/Time Monday Tuesday Wed ... 10:00 AM x 11:00 AM What i want to do here is, try to make a right click on the …

Member Avatar for iamthwee
0
87
Member Avatar for Cudmore

My question today is regarding multidimensional arrays, and synchronization.. I'm working on a client/server project and I'm not sure about the theory of an idea I came up with: I have an array: [INLINECODE]Object[][] myArray = new Object[256][];[/INLINECODE] It is an array of arrays. The length of myArray is 256 …

Member Avatar for Cudmore
0
763
Member Avatar for syed.ijaz

Our company is doing a project for the City of Chicago and we are trying to communicate with their servers using web services. Their environment is java based but we are using .NET on our end. The problem we are currently facing right now is that we are not able …

Member Avatar for jwenting
0
215
Member Avatar for ketz_01

[COLOR=Black][COLOR=Blue]Ok, firstly im new to this java thing...but i think its still exciting to do. but i have an error now...[/COLOR][COLOR=#0000FF][COLOR=Blue].. cannot find symbol symbol: constructor Employee location: class Employee Employee e = new Employee (" info"); and the arrow tingy pointin by the word new...so im wondering wat is …

Member Avatar for iamthwee
0
76
Member Avatar for mitaldoshi

I am a student of comuter enginnering 6thsem. I have to make a project based on java. Please help me by suggesting an award winning project.

Member Avatar for jwenting
0
93
Member Avatar for ronakp25

Hi I am migrating my application from Websphere to JBoss. My whole application is in app folder.(I have defines csc as env variable which points to my app) Can anyone tell me where I can spceify classpath of my application in configuration files in [B][U]JBoss[/U][/B]. Like in websphere I sepecify …

Member Avatar for jwenting
0
85
Member Avatar for Perumal

Hi I develpoed a Web applicaton by using the JSP and MySql.That comes a Communication Link Failure Error.I tried up to my Knowledge, yet i didn't solve.Kindly help him and give the soluation. [B]Developed Details[/B] Platform : windows2000 S/w : java 1.5.0_07 Server : apache tomcat 5.5.17 DB : MySql …

0
66
Member Avatar for itsnexgen

Hello Friends, I am trying to learn JSP, Servlets at the moment. What am trying to do : A simple text field and a button What should happen : When you click the button a text should appear something which is specified in the code. for example, "Pradeep". I am …

Member Avatar for itsnexgen
0
803
Member Avatar for cms271828

Hi again, can anyone explain why the code below doesn't execute the attributeAdded(...) method [CODE] package pack1; import java.io.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; public class ShowFrame extends HttpServlet implements ServletContextAttributeListener { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.getServletContext().setAttribute("name","cat"); String v=(String)this.getServletContext().getAttribute("name"); response.setContentType("text/html;charset=UTF-8"); PrintWriter out = …

0
57
Member Avatar for hegRT

Hi, Im new to JSP and I am trying to add data from a simple registration page using JSP to a table in mysql, My code seems to be working OK howerver when I check the table in MySQL Control Centre...no new records have been added, I am able to …

Member Avatar for jwenting
0
168
Member Avatar for ryy705

Hi, I just installed MySQL on my computer and went though a decent MySQL tutorial. Now I need you guys help me out so I can get my java programs to connect to MySQL. I am using the following code from a book to connect. [code] import java.sql.*; public class …

Member Avatar for ryy705
0
460
Member Avatar for Cudmore

Hi! I'm looking to learn something today, and I have just the question. In writing a recent program, I found no Java method suited to compare two byte arrays. Maybe the method exists, or maybe not. In any case, this is a learning expedition, and I came up with a …

Member Avatar for jwenting
0
121
Member Avatar for Talon

Hi, I've got a project in which I need the program to reject a sentence if it has a certain word in it using StringTokenizer. Here is what I have so far [code] import TerminalIO.*; import java.util.*; public class Censor { public static void main(String args[]) { KeyboardReader reader = …

Member Avatar for Talon
0
141
Member Avatar for sandeepmuleymca

hi , i got project which already developed in c/c++ as visual studio project so i have to convert it into the java so can u give any information regarding whether any tool is available for conversion or suggest me any way to do this in short time waiting for …

Member Avatar for vegaseat
-1
107
Member Avatar for jlord05

:cheesy: pls help me on my project!!! you must input 5 numbers and the program must find the smallest from the five inputs then subtract the smallest from the other inputs..pls help me and pls show the source code:cheesy:

Member Avatar for jwenting
0
70
Member Avatar for cassyjack

Can someone take a look at this. Create a method called findElement, which takes an integer value and a two-dimensional integer array as inputs and returns true if the value is in the array. If the value is not in the array, the method should return false. This is what …

Member Avatar for Infarction
0
150
Member Avatar for dami06

Hi guys, I have a problem in a GUI i am trying to build. Below is the question and I was hoping you could help me out with what to do. Basically, I have do the first program which is to create a GUI but I am having a problem …

Member Avatar for iamthwee
0
102
Member Avatar for mzd12111

Hi everyone , my problem is that : i Wrote a game program (applet) but when the Applet starts , user must click on it to activate it , how can i do to my applet that when it starts , it Activate itself automatically Thanks in anyhelp

Member Avatar for iamthwee
0
62

The End.