For this challenge, you are going to add an image to your resources folder for the sample web app. The sample web app was created using the maven archetype plugin with an archetype artifact id of maven-archetype-webapp. Once the image is added to the resources folder and the code is updated, you can test your new version of the web app.
(light music)…- [Instructor] Welcome to your next challenge.…In this challenge, I'd like you to add a resource…to your sample web app.…That resources is gonna be an image.…I have provided an image in the exercise files folder…for this challenge, or you could find one of your own.…Just remember to make sure that it's license-free…and copyright-free.…What you want to do is add the image to your index.jsp page.…To do that, you're gonna use the image tag.…
In HTML, you're gonna add a less than sign,…IMG space, SRC equals, and you're gonna indicate…the location of your image.…Remember, the IMG tag in HTML is an empty tag,…meaning that it only has an open part.…It does not have a closing tag.…Finally, test your new app to make sure…not only hello world prints,…but also your image shows up on your page.…I'm estimating that this challenge…will take about 10 minutes.…Have fun with it.…
- Downloading Maven
- Installing Maven
- Understanding the lifecycle and dependencies of Maven
- Working with the Project Object Model (POM)
- Defining project relationships
- Using Maven plugins
- Creating a sample project with Maven
- Writing tests in Maven
- Packaging your app
Skill Level Intermediate
Java Database Integration with JDBCwith David Gassner2h 51m Intermediate
Java EE Essentials: Enterprise JavaBeanswith Patrick Royal1h 45m Intermediate
1. Get Started with Maven
2. Understand Maven
3. Project Object Model (POM)
4. Maven Plugins
5. Create a Project with Maven
6. Test with Maven
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.