More details

job (job)
<本文发表于: 相约加拿大:枫下论坛 >
Sorry, I didn't read your post in time.

Another contact manager program reads first name, sure name and phone number from a text file and create a Contact object with name and phone number. The the contact manager puts the object of Contact into a ordered linked list which was already created.

QueryServlet receives string input from the user in html(submit form). If the length of the string is 1 (one character) then it opens a new browser window and use FirstLetterQueryServlet to show all the contact with the name starting with that character.

If the length of the string is greater than 1 (a string) then it use SurnameQueryServlet to open a new window to show all the contacts starts with the string input.

Now I know how to open a new window in servlet and transfer parameters between servlet. What I am not sure is:

1. How to handle different input in QueryServlet (invoke different servlet with Char or String)?

2. How do the three servlets communicate with the contact manager program?

Thank you very much, Jeffery and look forward to hearing from you.
<本文发表于: 相约加拿大:枫下论坛 >

2001-11-21 -04:00

回到话题: 各位大虾,JAVA servlet紧急求救!

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论