The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
When you post the code please comment to help me understand what is going on here. Please follow the directions exactly or I cannot awartd points. None of the answers provided in the past are compiling correctly. I believe that I have the environment set up correctly.
Create a servlet that reads an ASCII plain text file and sends the output to the browser that invokes the servlet. Name your ASCII file c:\temp\servlet1.txt. You must locate it in the c:\temp directory to receive credit. This is so I can run and grade it on my computer without modifying your source code. Hint: use the file I/O examples we covered previously and use absolute file paths. A good file to read is the source code to your program (i.e., copy and rename your Java file to c:\temp\servlet1.txt) Attach your servlet source code file and text file to this assignment in one zipped file. Use TextReader as the class name. Use TextReader as the servlet name, and textReader as the URL pattern. Notice the difference in capitalization. Do not copy (cut and paste) any example code, create your own code and use the examples as a guide.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll