User Profile
Collapse
-
which port number you have assigned for tomcat? try changing your tomcat port number as it may be viable that some other service like your database is using the same port. no two servers can run simultaneously on the same port... -
Computer forensics
Hello all,
I wanna make my career in Computer forensic, but I don't know what to do? Can anyone please help me?
thanks & regards -
thank you all.
I got the solution. I use JavaScript to allow only numbers to be entered in text field.Leave a comment:
-
Input text field in Form
Hello,
can anyone please tell me how can I create a input text field in form that can only accept numbers.
thanks -
Yes I'm overriding methods using declarative tags. But destroy() method isn't working..Leave a comment:
-
I think errors cannot be handled in java. Only exception can be handled.Leave a comment:
-
Not getting desired records
Hello..
I'm facing problem with a simple select query.
this my table structure.
Name Null? Type
USER_ID NOT NULL VARCHAR2(10)
USER_NAME NOT NULL VARCHAR2(30)
PASSWORD VARCHAR2(30)
I insert user_id, user_name but I left the password empty. Now when I run the following query:
select * from hrms_user_login... -
It seems that this problem is due to the rest of the code. Post your code so that I can help you.Leave a comment:
-
Apache Tomcat-6.0.24 installation problem
Hello all,
I am trying to install Apache-tomcat-6.0.24 on Redhat Linux system. But I'm facing some problems.
After unpacking the "apache-tomcat-6.0.24-src.tar.gz" file in /home/anurag folder. when I move to apache-tomcat-6.0.24-src/bin and try to start the server by running command:
$ sh startup.sh
it is giving the following errors:
"Cannot find ./catalina.sh"... -
The problem is that, you're performing %, and / operations on a String.
try this...
import javax.swing.*;
class Demo
{
public static void main(String[] args)
{
int str;
String s;
int l,sum=0;
s=JOptionPane.s howInputDialog( " enter integer");
str=Integer.par seInt(s);
l=s.length();
for(int i=1;i<=l;i++)
{
...Leave a comment:
-
anurag275125 replied to How to write an program that converts a temperature given Fahrenheit to centigrade?in Javatry this..
Code:import java.util.*; public class TemperatureConversion { public static void main(String args[]) { float f,c; Scanner sc=new Scanner(System.in); System.out.println("Enter temperature in fahrenheit : "); f=sc.nextFloat(); c=((f-32)*5)/9; System.out.println("Celsius Temperature : "+c); } }
Leave a comment:
-
Overriding init() and destroy() methods in JSP document
Hello all,
Can anyone please tell, is it possible to override the init() and destroy() methods of Servlet in JSP page. When I override the init() method then it gives no error, but when I override the destroy() method, then it gives an error something like--
"cannot override final method??????? "
plz help me out... -
1. Go to C:\WINDOWS\syst em32, copy cmd application file.
2. Place this into C:\Program Files\Java\jdk1 .6.0_06\bin\New _beg directory.
3. Create a shortcut to cmd application on the desktop.
When you double-click on that, you will be in C:\Program Files\Java\jdk1 .6.0_06\bin\New _beg directory.Leave a comment:
-
It means that some of the methods that you're using in the program is deprecated in the Java API you're using. Try to compile and run your program using old Java API, e.g. if you're using JDK1.5 then try your program on JDK1.2, or lower versions.Leave a comment:
-
anurag275125 replied to How do write a method that accepts two arguments: reference to a String object and ain JavaYou should write the code something like that...
Code:public class ShowCharMethod { public static void main(String args[]) { String testString="New York"; showChar(testString,2); } static void showChar(String string, int position) { char letter=string.charAt(position); System.out.println("Character at position "+position+" : "+letter);
Leave a comment:
-
Convert two long numbers into String, then merge these two strings and then again convert this string into long number like this:
long l1=1234
long l2=5678
String s1=Long.toStrin g(l1);
String s2=Long.toStrin g(l2);
String s=s1+s2;
long l=Long.valueOf( s).LongValue();Leave a comment:
-
-
Memory is allocated for an object with the new operator. And now question is, how this memory is deallocated? Unlike C\C++ where memory is deallocated using the delete operator. java handles memory deallocation by an automatic called, Garbage Collection.
when no reference to an object exists , then that object is considered to be no longer required, and hence becomes a suitable candidate for garbage collection.
Garbage collection...Leave a comment:
-
implementation of ServletRequest and ServletResponse interfaces
Hello all,
we write the following line while developing servlet application by extending GenericServlet abstract class:
Code:public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException
-
If we create connection to the database in the init method, and we're releasing the connection in destroy method. Then in this case, with each client request, is the connection is established in init method, request is processed in service method and finally, destroy method is called to release the connection??Leave a comment:
No activity results to display
Show More
Leave a comment: