35,617 Topics
![]() | |
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) … | |
<%@ 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 = … | |
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 | |
hi.. pls anybody can tell me what is CHECKED AND UNCHECKED EXCEPTION means.. i dont understand this.. pls help me.. | |
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 … | |
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 … | |
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. | |
[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(); } … ![]() | |
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 … | |
hi, anybody can teach me how to code user interface in swings using ftp protocol? awaiting for ur reply java buddy | |
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. | |
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) … | |
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 … ![]() | |
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 … | |
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 … | |
[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 … ![]() | |
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. | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
: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: | |
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 … | |
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 … ![]() | |
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 ![]() |
The End.