pankaj goswami

Greenhorn
+ Follow
since Oct 10, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pankaj goswami

hello friends

I have doubt about Action Event. I am unable to understand that when this event will occur?Is this generate only when button pressed or it fired by other reasons also. Please clear my this doubt in simple way.

Thank you in advance.
13 years ago
i use it start because without start window is disappearing.

can any one tell it if there is problem with start which i wrote than why it is compiling java code . It is showing new window only when i want to run complied code.
13 years ago
i made bat file so that i can compile and run java program. my problem is that it is compiling but when i am tring to program by java file name. new window bat file is popping up .
this is my bat file content

set JDKPATH=D:\Program Files\Java\jdk1.6.0_11
set PATH=%JDKPATH%\bin;%PATH%
set CLASSPATH=.;%CLASSPATH%;%JDKPATH%\lib
start


so please tell why this is happing instead of program running it is oping new console window.
13 years ago
now i got it

thanks allot for your quick replies.
we say that interface extends from one or more interfaces. like interface A extends interface 8.

My question is that when class implements interface A than it become must for it to give body of methods in interface in it. but it is also must for this class to give body of method of interface B.

EXP:
INTERFACE B
{ method1();
method 2();
}

INTERFACE A extends INTERFACE B
{ method 3();
METHOD4();
}

CLASS C implements A
{METHOD 3()
{
}
METHOD4()
{
}
}

I WANT TO KNOW THAT IN THIS IMPLEMENTING CLASS I MUST HAVE TO GIVE BODY OF METOD1 AND METHOD 2 ALSO OR NOT? IF YES THAN WHY?
look if your making your application for network purpose than go for JNDI not for jdbc. because on network data connection with jdbc will effect server performance.

this is what i think.
14 years ago
JSP
here is my web.xml:-

<web-app>
<servlet>
<servlet-name>alias1</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>alias1</servlet-name>
<url-pattern>/alias</url-pattern>
</servlet-mapping>

when i try to access by http://localhost:8080/alias1/alias

i am getting error 404.

please tell me where i am wrong in my xml entries and please descible me these tag in this xml. i am in doubt . please

thanks for your support.
14 years ago
when i am running jboss application server by clicking on run file from its bin. server is starting but my cmd remains open. like in other server it went disaaper after starting it.i have window xp.
please help me out.
14 years ago
hi friends. i have jboss 4.2.2 ,i want to know how i change port number of it. because by default it uses 8080. but on 8080 i am running tomcat. i looked so many xml files in its directory but i am not able to find out. so please help me to change port number of jboss application server.


thank you for all your support i got from all of you.
14 years ago
yes when i am writting echo%classpath%.it is matching.so where i am going wrong
14 years ago
here is error which it is showing to me.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\PANKAJ>


C:\Documents and Settings\PANKAJ>f:

F:\>javac EmployeeDetails.java
EmployeeDetails.java:3: package javax.servlet does not exist
import javax.servlet.*;
^
EmployeeDetails.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
EmployeeDetails.java:5: cannot find symbol
symbol: class HttpServlet
public class EmployeeDetails extends HttpServlet
^
EmployeeDetails.java:9: cannot find symbol
symbol : class PrinterWriter
location: class EmployeeDetails
PrinterWriter out;
^
EmployeeDetails.java:10: cannot find symbol
symbol : class Resultset
location: class EmployeeDetails
Resultset rs;
^
EmployeeDetails.java:18: cannot find symbol
symbol : class HttpServletRequest
location: class EmployeeDetails
public void doGet(HttpServletRequest request,HttpServletResponse Response)throws
ServletException,IOException
^
EmployeeDetails.java:18: cannot find symbol
symbol : class HttpServletResponse
location: class EmployeeDetails
public void doGet(HttpServletRequest request,HttpServletResponse Response)throws
ServletException,IOException
^
EmployeeDetails.java:18: cannot find symbol
symbol : class ServletException
location: class EmployeeDetails
public void doGet(HttpServletRequest request,HttpServletResponse Response)throws
ServletException,IOException

^
EmployeeDetails.java:21: cannot find symbol
symbol : variable response
location: class EmployeeDetails
out=response.getWriter();
^
EmployeeDetails.java:25: cannot find symbol
symbol : method forname(java.lang.String)
location: class java.lang.Class
Class.forname("sun.jdbc.odbc.jdbcodbcDriver");
^
EmployeeDetails.java:30: cannot find symbol
symbol : method preparedStatement(java.lang.String)
location: interface java.sql.Connection
pstmt=con.preparedStatement(query);
^
EmployeeDetails.java:31: cannot find symbol
symbol : variable Integer
location: class EmployeeDetails
pstmt.setInt(1,Integer,parseInt(request.getParameter("id")));
^
EmployeeDetails.java:34: cannot find symbol
symbol : method getMetaData()
location: class EmployeeDetails
ResultSetMetaData rsmd=rs=getMetaData();
^
EmployeeDetails.java:36: cannot find symbol
symbol : variable put
location: class EmployeeDetails
put.println("<TABLE ALIGN=CENTRE BORDER=1 CELLPADDING=2>");
^
14 errors

F:\>
14 years ago
i add my class path as:

start->my computer->properties->advance->environment variables- select class path->and than i write my application server drive path i.e(D:\Sun\AppServer\lib\j2ee.jar.


but when i compile servlet program it says again and again import servlet package etc.

is i am setting class path wrong. and if am i. what is correct one.

thanks in advance.
14 years ago
i have sun application server and tomcat both. i wrote program of servlet but when i am compiling it .it is saying import servlet package etc. i want to know;-

1) what setting i have to do after installing sun application server and tomcat on computer so that my program(servlet/jsp) compile properly?

2) and how i do that?

i have window xp sp2
location of my sun application server installed is=D:\Sun\AppServer
location of my tomcat server is =D:\program files\Apache Software Foundation\Tomcat 6.0


please tell me i am tring form so many days. please helppppppppp .me

thank you. looking for your replies.
14 years ago
thanks for your reply.
hi to all members out there. i am always confused in concept of compile error and exception. In coding i know where is wrong this code but i can not tell that it will lead to compile error or throw exception.


so please clear my this concept. Difference between compile error and exception in nutshell?