|
|
|
|
![]() ![]() |
Oct 22 2004, 08:26 AM
Post
#1
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 36 Joined: 17-October 04 Member No.: 1,794 |
Please allow an elementary question. I am a JAVA beginner. Although it thinks that a chat will be made from servlet, is moving servlet on one's page possible? Is the place which is writing the installation method in this site? If it is, please let me know.
|
|
|
|
Nov 12 2004, 05:29 PM
Post
#2
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 10 Joined: 12-November 04 Member No.: 2,259 |
If you want to have a chat you can download a servlet which provides you with this option. You can put the chat everywhere you want! You must have a Servlet Container and a JSP Engine like Tomcat behind your Webserver!
|
|
|
|
Nov 29 2004, 04:58 AM
Post
#3
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 13 Joined: 20-November 04 Member No.: 2,355 |
[quote=jacksonicson,Nov 12 2004, 11:59 PM]If you want to have a chat you can download a servlet which provides you with this option. You can put the chat everywhere you want! You must have a Servlet Container and a JSP Engine like Tomcat behind your Webserver!
[/quote] Buddy just go to javazoom.com you will get good stuff of chat servlet from there with doc |
|
|
|
Dec 7 2004, 05:54 AM
Post
#4
|
|
|
Cambodian Web & Software Developer. ![]() ![]() ![]() ![]() Group: Members Posts: 59 Joined: 16-November 04 From: Cambodia Member No.: 2,307 |
I am a beginner of servlet/jsp. but i have build a function which may be very useful for a developer, i am asking trap17 for free hosting account for servlet/jsp. and i will post many source code on my free hosting account.
Now i would like to post my small function which useful here. It was call navigation page it is the recordset paging which i build up myself. this one has three language. The first one is PHP, then i convert it to ASP, Now i convert it to Servlet/JSP public String navigation(int totalrow,int start,String referer) { String result=""; int totalpage=0; int previous=0; int snext=0; int pageleft=0; int sdnbp=0; int sdnap=0; int ddpp=20; int dnbp=10; int dnap=10; if ((totalrow % ddpp) == 0) { totalpage = totalrow/ddpp; } else { totalpage = totalrow/ddpp + 1; } if (totalrow < ddpp) { result+="Page 1"; } if (totalrow > ddpp) { if (start==1) { result+=" "; } if (start!=1) { previous=start-1; result+="<a href="+referer+"?start="+previous+">[Previous]</a>"; } if (start < dnbp) { sdnbp=1; } if (start == dnbp) { sdnbp=start-dnbp+1; } if (start > dnbp) { sdnbp=start-dnbp; } for (int i=sdnbp;i<= start-1;i++) { result+="<a href="+referer+"?start="+i+">["+i+"]</a>"; } result+="["+start+"]"; pageleft=totalpage-start; if (pageleft < dnap) { sdnap=start+pageleft; } if (pageleft == dnap) { sdnap=start+pageleft; } if (pageleft > dnap) { sdnap=start+dnap; } for (int i=start+1;i<=sdnap;i++) { result+="<a href="+referer+"?start="+i+">["+i+"]</a>"; } if (start == totalpage) { result+=" "; } else if (start < totalpage) { snext=start+1; result+="<a href="+referer+"?start="+snext+">[Next]</a>"; } result=result; } return result; } Please enjoy my code. Thanks & Best Regards, Dorei |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 7th October 2008 - 09:31 AM |