From the course: Learning Java Enterprise Edition
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution - Java EE Tutorial
From the course: Learning Java Enterprise Edition
Solution
- [Instructor] Okay so let's have a look at the solution to our first challenge. Our first challenge is to change the name that we use to refer to our tracking bean. So the way we do this is we go to our Track bean. And here at the top of the page you just enter between brackets, a different name. So now our bean is called tracker. And when this bean is visible to a JServ page that's the name that it will use. We also need to make a corresponding change to the view. So here in the view you can see we were using the word track which is the name of the class with the first letter lower-cased. Now we need to change this to the name that we've given our bean which is called tracker. So what we'll do is we'll just do a simple change we'll just copy and paste here. We'll find every instance within this page of our bean track, and simply replace every single instance. If your ID has refactoring, you could use a refactoring to make this change. But let's go through and make changes to every…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.