inam paki

Greenhorn
+ Follow
since Jul 30, 2002
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 inam paki

U better Pass refernce of the JFrame in which u added JPanel and then resizing it will automatically increase ur JPanel size.
Actually Java's Layouts make some boundaries in preffered size of Components. They always select the best size which fits ur JFrame's size.
18 years ago
RMI is better solution if u don't 've any concurrency issue n transaction issue in ur application involved.
HI:
If U extend ur Class with Thread Class then it won't give u any error.
Bcoz the run(int ...) method u declared will overload the run() method in Thread Class that is concrete in Thread Class.
but if u implements Runnable interface u will 've to Override the abstract run() method declared in Runnable interface. that was the problem u faced
Hi all:
I am working on a project in which u add some numbers in a blicking list. n when ever any Call pings ur Cell phone the Caller number should be first checked from that list.
if that caller does not belong to that list that ring should tone.
If Caller belongs to that list then MIDLET should return buzzy tone to Caller.
Thanx if any Ideas Plz. Do reply at the forum or at my mailing address inampaki@lycos.co.uk
18 years ago
Hi;
I faced the same Problem with Tomcat.
n I solved this One by Using the Absolute url.
response.snedRedirect("http://127.0.0.1:8080/servlet/......");
I think u should also check it.
Regards,
19 years ago
JSP
Hi Tim;
lib folder is always contained inside web-inf.
U put it in the right place.
U can do it in another way.
put ur .jar file in
....\jdk\jre\ext\lib
now it will be available to any .class.
19 years ago
JSP
Hi;
U better add these two following Lines in ur autoexec.bat file:
let's Suppose U installed jdk under C:\jdk1.3
and tomcat under C:\Tomcat
then
set JAVA_HOME=C:\jdk1.3;
set TOMCAT_HOME=c:\Tomcat;
19 years ago
JSP
Hi
Let's take ur code in some depth u 've two StringBuffer objects. n there handeles r a and b in main method(I will call them amain and bmain).
U passed the references(handeles) of these objects to a method sweep .
Method Sweep has its own references but towards those Objects creadted in main method.
now when u change the object referred by a(of sweep) it actually changes the Actual object.
but when u excute a=b; u actually shifts the reference of bsweep from the object in main.
That's why "b is Two " printed.
If u 've any more query abt. this u can mail me personnaly at inampaki@lycos.com
Regards
Hi Linda;
If U don't wana change ur Plateform u can use the Second method defined by Nathan.Or U can create ur JFileChooser with a constructor pointing to the current user directory.
19 years ago
Hi Barry,
The mechanism/protocol on which HttpServlet operate is Sessionless/stateless not the Servlet in General.
You can create such Servlets who own/manage their Session by them but the difference is that their protocol will be different may be ftp instead of http.
And the second thing about your query is that you can initialize your instance after checking each HttpSession object by the method isNew(); this method returns true if the Session created right now and false otherwise.
for example:
HttpSession session = req.getSession();
if(session.isNew())
//here initialize your object.
this will work.
19 years ago
Hi Thomas;
Remember one thumb rule while dealing with any one of these JAVA primitives
*byte
*short
*char
when ever you perform any opertation on these types they are promoted to int or the other superior type u r assigning to.
19 years ago
Hi garimella
1) In my opinion Object class actually provides a mechanism to handle any kind of Object polymorphically.
Or in simple words You can say that it acts as the most common handle/reference an object can get
So you can deal different objects in same category.
2) java.lang package contains all the classes a user's class may need without importing any other package. This prevents any beginner to be confused in packages.
19 years ago
Hi
U better call the getClass() method on those objects in your session. It will return you the
Class type Object now call the getName() method on it.
This will return You the name of the class Your object belongs to in String. like:
Object obj = session.getAttribute("key");
Class c = obj.getClass();
String className = c.getName();
now you can check this String for any decision.
19 years ago
JSP
Hi Praveen
To avoid resizing effect in Your code You should
take care of Screen resolution and create your components relative to The current Screen size with the help of Toolkit().
get the Toolkit Object n then use its ScreenSize()
method to determine the current Screen Size.
Now by dividing Screen width and screen height attributes you can create your GUI very Flexible for any Screen resolution.
Regards
19 years ago