You will be working towards Project 2 part 1 that is posted in Assignments section. You need to complete the two JSP files where you see the ######## markings. You also will complete #1, #2, and attempt #3 in the DroneDataService.java file.
This lab will involve the following new features:
REST web service.
DETAILS
First go to C:Program FilesApache Software FoundationTomcat 8.5 … and change the security settings on the “webapps” folder to allow full control to users as we’ve done before.
Unzip the zip file into your tomcat “webapps” folder.
Inside the dronerecon folder, you should then have your JSPs, WEB-INF folder, etc. that are all included in the zip file.
NOTE: You may have a different version than 8.5 above for your path.
You will fill in code where you see the ######## markings in the following files:
DroneDataService.java
In the zip file:
drone_launch.jsp
drone_sim.jsp
If you’ve properly updated the JSP files…
You should be able to go to the following when Tomcat is running:
http://127.0.0.1:8080/dronerecon/drone_launch.jsp
After entering info and submitting, then you should see a grid printed with the proper number of cols and rows that you entered on the drone_sim.jsp page.
For DroneDataService.java editing…
Create a new java project (if using NetBeans, choose a “class library” type of project) because you will be eventually creating a JAR file when done to deploy to Tomcat.
In the src folder in your project, create a folder structure of comdronereconws, or you can create a new package by right clicking on src if using IntelliJ and entering in com.dronerecon.ws – you will see this already at the top of the DroneDataService.java file:
package com.dronerecon.ws;
This represents the folder structure in your src folder.
Put the java file that is on the Assignments page for Project 2 into the ws folder.
It should appear in your IDE project.
In the java file, edit and complete #1 and #2, and then try to make an attempt at #3, but if you don’t complete it properly, that’s okay! And don’t worry about #4 unless you want to try to get it all working before next class. We will finish this file in class next time.
OPTIONAL: If you do happen to finish the file and want to see if you can get it to work, then you would…
Add the servlet api jar from tomcat to your project library by doing this:
IntelliJ: Look back at the posted instructions from Week 11’s module.
NetBeans IDE: Right click the “Libraries” folder in your NetBeans project and choose “Add JAR/Folder”, and then navigate to your Tomcat folder in the lib folder and choose “servlet-api.jar”.
Build this project so that a JAR file is created.
IntelliJ: Same instruction file from Week 11’s module.
And then you would put this JAR file in your dronereconWEB-INFlib folder.
(HINT: if you’re going to take on this then the JSON string you build has to be returned correctly, and to include quotes as part of your string you have to escape it, which just means a before the quote like this … String sExample = “this quote ” is ignored as an ending java quote mark because of the slash”;)
TURNING IN LAB:
Turn in the above 3 files (2 JSPs and 1 java file) into your lab 10 assignment spot in Canvas.
IMPORTANT: DO NOT ZIP your folders/files please.
How to create Testimonial Carousel using Bootstrap5
Clients' Reviews about Our Services
Client ID 45637
U.S.A
Brilliant services. I ordered a 4 page essay and it was delivered in less than 24hours with every detail intact!
Client ID 45783
U.K
Aceassignment is the way to go. The writers are humble and patient with clients. I know this after using the website for about an year
Client ID 45214
U.K
My writer did a brilliant job. Not only did she delivered the paper on time and it was superb as my professor granted me an A without any criticism
Client ID 45009
CAD
I was running late with my assignment. I run into aceassignment on google, placed my order and within less than 18 hours my page essay was delivered. Thank you Aceassignment.
Client ID 45870
U.S.A
I've been using Aceassignment for about 2 years. My writer always delivers quality work. Mind you whenever I request for a revision it's always done ASAP and free of charge
Client ID 44218
U.S.A
At first, I was scared and hesitant about using this website. Didn't know if they would deliver, but they assured me they will. And for sure they did. I will definitely continue to use their service!
Client ID 45622
U.S.A
Easy to use website. You simply give your essay's instructions, make payment and before you known it the paper is delivered to you.
Client ID 43964
U.S.A
Unlike other platforms, this website is quite cheap and the quality is high. I have them manage my whole class and everything has been smooth this far.
Client ID 41996
U.K
Thanks for the excellent job. Swift and on the subject, just the way I like it. The Support team was quite nice to me, helped me with the order placing process.
Client ID 47654
AU
They are a marvel. I love their support team, they are so polite, it’s like speaking to a butler or something. Very pleasant people and good service of course.
Client ID 45670
FRA
Thank you for the help, I took my time and ordered a 14 days long essay. It came much earlier, around 7 days after I ordered it. Oh, and it was good, of course. I like the writer who did that, will definitely use again.
Client ID 22368
US
What I received was great. I forgot to mention in the instructions field that I needed reference page and by default, there was 0 in the number of references. I was surprised to see a full-fledged reference page in my paper with relevant citations. Bravo!
Client ID 46325
U.S.A
I was bombarding him with fine tuning and he handled it professionally. Thank you I will hire again the writer
Client ID 456820
U.S.A
Provided exceptional essay writing help in a short period of time. I plan to work with writer on many more projects!
Client ID 36890
UAE
Awesome paper in such a short amount of time. Was in a jam with another service who didn't deliver, but my writer did the job correctly. I will use her again to do my essays for sure!
Client ID 41427
U.K
Pretty good essay writer. I only made a couple of adjustments. She caught some instructions for the essay writing assignment that I didn't even notice, including them which was a pleasant surprise. Definitely recommend.
Client ID 45009
CAD
It was a very long paper, but the writer followed all the instructions, and she even finished the paper 5 days before the due date. Will write an essay with her again, thanks!
Client ID 36984
U.S.A
Writer was timely and proficient. I had to ask for a revision, but I got it back quickly with no other issues. Would use this essay writing service again.
Client ID 42960
CAD
Paper writing was prepared and submitted prior to the completed request date, and there were changes made quickly after I requested. This paper writer was accurate with numbers.
Client ID 31638
U.K
The first time I ordered here and it was a success. I received my order on time and according to my instructions. Thank you!
Client ID 46041
CAD
When I first discovered this website I was hesitant on whether they will deliver a plag free paper. The support team reassured me of their plagiarism policy. In deed they kept their word as the paper I got was authentic and plagiarism free.