Harpal Singh

Ranch Hand
+ Follow
since Oct 10, 2000
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 Harpal Singh

Thanks a lot Alex
That makes things clear...
A very Happy New Year to you...
Cheers,
Harpal
17 years ago
Hi Nate and Alex,
Thanks a lot buddies ! But my doubt still persists... What I meant to ask was if I deploy my Application on MVC archi.... In the View if I put Swings and in my Controller if I use Servlets and Model is some database....How will (say if I am taking some data from user in swings forms and then sending to my Servlet for some Business logic) my Swing Application running on client side talk to my Servlet??

Else if that did not make much sense Alex as u said u have done many n tier archs with JSP and Swings just describe one of them in short like if u had Swings in presentation tier how did it talk to JSP or was it embedded in JSP ???
I hope I made some sense
Cheers,
Harpal
17 years ago
Hi Guys,
Nobody has a answer to it or is my question too weird to answer Did anyone ever wonder how Swing can be put in an n tier arch... else running Swing on a Stand alone PC is no big deal...
Cheers,
Harpal
17 years ago
Hi Guys,
Long time since I have posted here. I was just wondering how to use Swings as my front end in three tier arch.. How do I present a swing screen to the user on Presentation tier and how does this talk to My middle tier like servlets, ejb etc.. Correct me if I am wrong One solution that comes to my mind is using Applet-Servlet communication and putting Swing in applets. or is there a way to embed my Swing code with JSP or Servlet and present it to user??? Seems a bit confusing ...Can some throw some light on it.
Cheers,
Harpal
17 years ago
Dear John,
WOW! these are excellent notes....I am a SCJP and now after seeing your notes am planning for SCEA also......Thanks a ton...you have done a great favour to guys seeking certification....
Harpal
[This message has been edited by Harpal Singh (edited July 17, 2001).]
Dear Revathi,
What was that supposed to mean?this will locked soooon......
Harpal
17 years ago
Dear Abhay,
Servlets are allways faster...coz ultimately ur JSP's also convert in to servlets...now when to use what...when u have just business layer use servlets and when u have presentation layer that is to avoid spaghetti HTML code with servlets you use JSP....
hope it was of some help,
Harpal
17 years ago
Kajol,

maha anna has given an excellent link ....I think i need not provide u with an example.....maha at her best......as usual
Harpal
18 years ago
hey rishi,
chk this link out..... http://www.javaranch.com/ubb/Forum7/HTML/000598.html
Harpal
18 years ago
Kajol,
All u have to write is a JDBC code in ur servlets......
register the driver
connect to the database
and make the query and get the result set
tell me if u want the full code,
Harpal
18 years ago
Dear rishi,
if u r using win 98 or 95 then set the paths in autoexec.bat as follows
set java_home=c:\jdk1.3(or what ever remember not add bin coz it adds by itself)
set tomcat_home=c:\jakarta-tomcat-3.2.1(or whichever drive it is)
if u have NT or 2000 set it as an environment variable...
hope it helps,
Harpal
18 years ago
Dear Sachin,
Nothin to worry abt!It is a simple problem,Let us make a few changes....
1)in your servlet replace doPost() with service() method without changing anything else and now lets see if ur problem is solved
OR
2)if this does not work out make the above said change and change the method=post in html page to method=get
I am sure it should work .......Please let me know ASAP else I will set up the database and work on it...
Thanks,
Harpal
18 years ago
Dear Sachin,
Can u post ur code so that i can see what is wrong???I am sure something to do with doGet or doPost method.....
Harpal
18 years ago
Balaji,
if u r using 98 in Autoexec.bat type in set Java_home=
and J2EE_home= and if u r using win2000 set up the environment variables
Harpal
Well Well........resume!=stationary TOM but resume.append(logo) will work out....So guys go ahead put it on logo,stationary and tell the world u r a proud SCJP......
Harpal
18 years ago