Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Java Servlet And Jsp
reciter
post 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. huh.gif
Go to the top of the page
 
+Quote Post
jacksonicson
post 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!
Go to the top of the page
 
+Quote Post
arunkumarhg
post 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
Go to the top of the page
 
+Quote Post
khmerneed
post 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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Auto Run Java Program(11)
  2. Java Script Drop Down Menu With Css(2)
  3. convert .java to .c(5)
  4. [help] Java Script: Window.open(10)
  5. Java Mobile Applications(7)
  6. How To Create Java Button Or Frame(14)
  7. Hotspot Virtual Machine Exception_access_violation(4)
  8. Java For The Beginning Programmer Ebook(4)
  9. Best Java Framework For J2ee?(6)
  10. Jsp Or Java Chat Script Like Mig33(5)
  11. Helpful Registry Edit For Java Programmers(3)
  12. Budding Java Game Developers?(10)
  13. Java Or C++(10)
  14. Java Vs Javascript(11)
  15. Free Java Hosting?(2)
  1. Java Object[][] Help(2)
  2. Learn Java Programming Language Online Step By Step(1)
  3. Java Game(2)
  4. I Need Help With Setting Up My Site, Made Using Java(5)
  5. Call Pdf995 From Java(0)
  6. How To Implement Single Instance Application On Java(0)
  7. Java Multithreading Issues(2)
  8. Java And Xml: Links You Must Have(1)
  9. Java De/compiler(5)
  10. Java Obfuscator(1)
  11. Which Is Good Java Or Dot Net(3)
  12. Java Script To Hide The Url In Address Bar(6)
  13. Fun In Sun (java)(2)


 



- Lo-Fi Version Time is now: 7th October 2008 - 09:31 AM