📺 Develpreneur YouTube Episode

Video + transcript

Spring Boot - Simple Report

2024-01-25 •Youtube

Detailed Notes

We are continuing a series of tutorials focused on Spring Boot. The crux of the project is to convert/migrate an old JSP/Tomcat application to a modern Spring Boot application and Java 7/8 to a current version. We are working on a complex form for entering data. We add a basic report during this episode as we work towards rounding out the features.

You can learn more through our online classes at https://school.develpreneur.com and register for free. Registration will add you to our email list, and you will periodically receive coupons for courses and notifications of the latest releases.

Transcript Text
[Music]
well hello and welcome back we are
continuing our little journey from a
Java JSP application to a new fangled
spring boot application and we're just
chugging right along now we have uh
we've got our basic stuff working we got
a couple of our links projects being you
know we can create them we can add put
all kinds of information in them now
we're going to look at a project report
which uh if I click on it properly we
will see it is currently dead so we're
going to do some reporting and let's see
what that looks like most likely it is
oh it's probably the link itself uh so
if we go to look that means we need a
project report and project report ID so
it's probably not even getting ID so
let's start with our project
form and let's go there there's our
project form
and if we look
here when we do our report let's just go
look for report
oh uh oh it's not project form it's
actually the project what is it yes it
is uh yes so what did we call it we
called it project report let's see oh
it's probably K sensitive yes it
is and we're doing it onclick but what
we want it to be is a th
onclick and we're going to have to build
out wh we're have to build out our
little string
here so if we do
that let's just start with that let's
make sure we're getting the right link
built and then I'm
guessing we're going to have to actually
create that link and deal with it
because I don't think we have yet but
we're going to find out let's see how
much we've brought across there we go
now it's doing project report 28 so now
we have to go figure out if we go to so
we have a task controller which I don't
think has a
project report NOP and we've got our
hello which most likely does not have
our project so let's go flip back to
let's just create a new controller most
likely because we're going to go back to
our old one
and we're going to take a look at our
controllers uh let's see
Java blah blah blah blah blah blah blah
blah blah and we're going to come to our
C project Rec controller most likely so
we've edit project project report save
project did we already have I think we
have edit project is sitting on our
hello it is okay
so let's go
ahead and let's take that project
controller and we're going to move him
up
here and we're going to
take edit
project load project form we're going to
take several of these we're going to
move them over so let's see that's
projects
list
projects
so let's take that so we're going to
take projects projects with a code
little project
form edit project I'm going to take all
of
those and we're going to push those over
into our project
controller and he has an edit project he
has a project report which is the new
one we're going to
use uh let's
see I think he has save project we're
going to pick up
project form we're going to pick up and
so we should be able to take all of
those oh and we got to close out our
class because I got rid of
that and we have this HTTP seret request
oh this is going to be wrong because
this is now going to
be uh he is SNS
demo and he's not in the controller he's
just right
in
and let's see so we probably
need and that's going to be the
user cool uh let's see so we
have load
project we
do so he probably needs to
be oh it doesn't have it for an ID
interesting
enough yes it
does okay so what did we
miss let's try
this
uh ID is an
ant let's look at that uh the
method Low Project form
in how do Low Project
form
in
oh what did I do something's not set
right
um oh load project Report Form okay so I
needed a report form
somewhere my mistake so if we go back to
our
project
report there we
go that's the problem so we're going to
pull this
over
little project Report Form let's make
sure I didn't pull
that in the other
one I don't think I did because I think
I get to the end and I did edit
project I have project load project
form so if we do this
now
all right so we got this one cleaned up
we're going to need most likely in
the uh let's see so it's probably going
to be in load project report form which
we just did there's going to be a page
I'm guessing at the bottom Let's see
where' we go it's in
here and our page is probably going to
be project
form uh no it's got project form do we
have a project report that's project
form uh let's do project Report
Form project report form so we probably
need that because I don't think we have
it here oh we
do um he's not completely set up but
let's go figure it out this we may be
closer than I
thought so if we go rebuild that well it
doesn't like something we've got
something
here there's already a control
oh when we come over here we see that we
didn't save our file so let's try that
see if that makes something a little bit
different so now when we come when we
come over here let's do
this and open this guy up and project
report so we've got him coming across
now this is uh if you
note slight problem there um let's go
back to like projects or see so see here
you've got your
alternating and we've got that here if
we pick a
project but we've got a neat little
problem we've got to fix which is uh if
we look over to our report
form we are bringing in our tasks and
our overhead and although they look
almost the
same uh they don't and we basically just
are doing them back to back which is why
we've got you here's our tasks here's
our
overheads but it doesn't reset the
status so what we're going to do for
this is we're going to just for now now
there's a couple ways we can deal with
it uh we could try to combine
everything and do them all into one set
and then send that across so that it
knows uh you know the status for each of
those they're slightly different so we
would have to do like a little if or
something like that for now
because not too concerned about
it we will take this and we're just
going to take this make this a
row and we're not going to worry about
that the odd or even uh let's rebuild
it and if we look
now it'll just be a straight
uh it'll be this nice little simple
look uh and it is and we also got rid of
the uh the hover which is good because
there is
no uh if you look here there's no on
click so it doesn't make sense to do
that now what we could do is we could
probably you know add a nice little
border or something like that if we
wanted to for each of them so we do have
like within a field set we do have a row
so let's just try that let's see how
that
looks we're going to actually come back
next
episode and we are going
to do some we'll do some get into a
little bit of styling uh because it's
not that hard to do we're going to see
how quickly we can make this thing yeah
let's like brighten it up a little bit
make it look like it's not so
1990s uh let's see what the field set
thing does for us if we wrap every row
in a field set set and then come back
and do that it's going to be like we're
going to see this uh we're going to see
inside or like double up lines it's not
going to look awesome yeah see like that
but there is something that you know to
that so we could always make
this uh I don't even know what we have
set
up but let's try to
make
it I think we have a card
maybe uh actually let's go look at our
CSS real
quick so I think we had something set up
that was a little
different we'll go look at that real
quick but that'll be our start so
actually let's just do that for now
let's just leave this I don't know if we
have a card or not let me see if that's
lined up if so that may be for each row
but what we will do next time
around is we will come back to that
we're going to clean these up and make
these look a little
better along with sort of wrapping
up yeah oh so see there's the cards nice
so we can actually do some stuff with
that so we will clean that up next time
around uh do note that we in doing that
card uh we blew up our dibs a little bit
because they look different within a
card uh so we'll have to we'll have to
play around with that let's let's set
this back for now because we're going to
play around with this
in a styling episode I do want to look
at so basically where we're at I don't
think admin has anything I don't
remember what my admin does uh well
let's see where does it
go let's just edit
user uh I don't know if we have an edit
user
yet oh so we're missing a user form
let's see do we have edit user up in
hello so we may be able to turn that one
on real
quick yeah we do we just need oh we need
the user form which I think is not
here uh if we look in our
templates yeah there's a user list but
there's not a user form if we come down
here going do the same thing we've done
this a few times now we have a user form
yep there's a user form so let's pull
him up
here
and we're going to rename him simply to
an
HTML
HTML so that probably make that work
let's see what else did we have I think
we have so if we go to
projects difficulty and overhead let's
see if
those admin difficulty and probably
admin
overhead let's see if those two exist no
so let's see what is it complaining
about it may
[Music]
be the
forms uh where did it go uh let's see
template might oh that's just user oh I
think
admin so those are probably the admin
controller yep there we go so what we
can do is Let's uh we're going to pull
this
over so we're going to put that
here so we have our little admin
controller and he is going to be uh SNS
demo and let's just use the auto cuz we
got a couple of lookups there that works
oh wow that worked really quick uh let's
see difficulty form what are those doing
that's the lookup
form let's see do we have have those uh
where's our templates if we look
here uh we don't have a lookup form if
that's what it's looking for do we have
an admin NOP we don't have the admin so
let's take those so did we have a lookup
form we do we have a lookup form we have
a uh it doesn't have an admin
interesting uh so that is oh
admin
difficulty and so well that may
be I wonder if we lost a page here I
guess we are about to find out let's put
lookup form up
here let's bring that one
up and rename him to an
HTML uh
[Music]
rename
so if we take that and let's just go
ahead and run a couple of these through
and see what we
get guessing we're going to get some
issues but we're going to find out and
then what we'll do is we'll come back
we're going to do some styling clean
this up a little bit and then we'll wrap
up uh take more than a couple times
probably but uh oops that was in the
project there we go uh do we have a new
project we
do maintain overhead so it's still
giving us an HS oh probably
because that is totally
wrong if we do maintain difficulty
that's wrong if we do admin ah so
admin's coming through so we have a few
more links to do but that is where we
will pick up we're just going to keep on
chugging through this thing uh as always
you have any questions send us an email
at info@ developer.com other than that
go out there and have yourself a great
day a great week and we will talk to you
next
time
[Music]
Transcript Segments
0

[Music]

6.64

well hello and welcome back we are

9

continuing our little journey from a

12.2

Java JSP application to a new fangled

16.52

spring boot application and we're just

19.32

chugging right along now we have uh

21.64

we've got our basic stuff working we got

23.199

a couple of our links projects being you

26

know we can create them we can add put

27.88

all kinds of information in them now

31.32

we're going to look at a project report

34.559

which uh if I click on it properly we

37.2

will see it is currently dead so we're

38.879

going to do some reporting and let's see

40.48

what that looks like most likely it is

43.84

oh it's probably the link itself uh so

46.76

if we go to look that means we need a

49.68

project report and project report ID so

52.28

it's probably not even getting ID so

54.32

let's start with our project

56.079

form and let's go there there's our

58.84

project form

60.76

and if we look

63.479

here when we do our report let's just go

67.72

look for report

71.32

oh uh oh it's not project form it's

73.96

actually the project what is it yes it

77.64

is uh yes so what did we call it we

82.56

called it project report let's see oh

84.36

it's probably K sensitive yes it

87.88

is and we're doing it onclick but what

91.36

we want it to be is a th

94.159

onclick and we're going to have to build

96.56

out wh we're have to build out our

99.6

little string

102.64

here so if we do

107.719

that let's just start with that let's

109.799

make sure we're getting the right link

113.2

built and then I'm

116.479

guessing we're going to have to actually

118.64

create that link and deal with it

120.799

because I don't think we have yet but

122.2

we're going to find out let's see how

124

much we've brought across there we go

127.159

now it's doing project report 28 so now

129.399

we have to go figure out if we go to so

132.4

we have a task controller which I don't

134.319

think has a

137.08

project report NOP and we've got our

139.84

hello which most likely does not have

141.599

our project so let's go flip back to

144.879

let's just create a new controller most

146.8

likely because we're going to go back to

148.16

our old one

150.56

and we're going to take a look at our

155.959

controllers uh let's see

160

Java blah blah blah blah blah blah blah

162.8

blah blah and we're going to come to our

164.76

C project Rec controller most likely so

168

we've edit project project report save

170.44

project did we already have I think we

174.599

have edit project is sitting on our

177.8

hello it is okay

180.879

so let's go

183.56

ahead and let's take that project

188.879

controller and we're going to move him

191

up

194.04

here and we're going to

196.599

take edit

199

project load project form we're going to

201.879

take several of these we're going to

202.799

move them over so let's see that's

204.519

projects

205.84

list

208.68

projects

210.84

so let's take that so we're going to

212.439

take projects projects with a code

215.48

little project

217.159

form edit project I'm going to take all

220.319

of

221.599

those and we're going to push those over

223.799

into our project

225.68

controller and he has an edit project he

229.599

has a project report which is the new

231.08

one we're going to

232.64

use uh let's

235.239

see I think he has save project we're

237.92

going to pick up

241.079

project form we're going to pick up and

243.36

so we should be able to take all of

245.76

those oh and we got to close out our

247.879

class because I got rid of

251.48

that and we have this HTTP seret request

256.239

oh this is going to be wrong because

257.759

this is now going to

259.88

be uh he is SNS

264.44

demo and he's not in the controller he's

267.199

just right

268.6

in

271.72

and let's see so we probably

280.12

need and that's going to be the

283.72

user cool uh let's see so we

288.84

have load

291.639

project we

298.56

do so he probably needs to

303.56

be oh it doesn't have it for an ID

307.28

interesting

308.639

enough yes it

312.16

does okay so what did we

322.24

miss let's try

328.479

this

333.52

uh ID is an

339.56

ant let's look at that uh the

347.759

method Low Project form

351.8

in how do Low Project

356.479

form

358.479

in

363.08

oh what did I do something's not set

367

right

368.639

um oh load project Report Form okay so I

372.12

needed a report form

374.639

somewhere my mistake so if we go back to

377.759

our

380.08

project

382.08

report there we

384.919

go that's the problem so we're going to

387.039

pull this

388.4

over

391.44

little project Report Form let's make

393.16

sure I didn't pull

395.88

that in the other

401.28

one I don't think I did because I think

403.639

I get to the end and I did edit

406.039

project I have project load project

411.4

form so if we do this

418.4

now

422.36

all right so we got this one cleaned up

424

we're going to need most likely in

428.879

the uh let's see so it's probably going

430.96

to be in load project report form which

433.319

we just did there's going to be a page

435

I'm guessing at the bottom Let's see

437.319

where' we go it's in

441.72

here and our page is probably going to

445.039

be project

446.599

form uh no it's got project form do we

449

have a project report that's project

451.199

form uh let's do project Report

455.44

Form project report form so we probably

459.08

need that because I don't think we have

460.56

it here oh we

463.039

do um he's not completely set up but

465.879

let's go figure it out this we may be

468.08

closer than I

470.639

thought so if we go rebuild that well it

474.199

doesn't like something we've got

475.599

something

477.08

here there's already a control

481.36

oh when we come over here we see that we

484

didn't save our file so let's try that

487

see if that makes something a little bit

492.8

different so now when we come when we

495.68

come over here let's do

501.12

this and open this guy up and project

504.96

report so we've got him coming across

507.879

now this is uh if you

510.4

note slight problem there um let's go

513.919

back to like projects or see so see here

516.399

you've got your

517.719

alternating and we've got that here if

520.279

we pick a

522.599

project but we've got a neat little

524.92

problem we've got to fix which is uh if

528.36

we look over to our report

530.12

form we are bringing in our tasks and

533.68

our overhead and although they look

535.6

almost the

537.04

same uh they don't and we basically just

539.8

are doing them back to back which is why

541.68

we've got you here's our tasks here's

544.12

our

544.88

overheads but it doesn't reset the

547.16

status so what we're going to do for

548.88

this is we're going to just for now now

551.72

there's a couple ways we can deal with

553.6

it uh we could try to combine

557.16

everything and do them all into one set

560.279

and then send that across so that it

561.76

knows uh you know the status for each of

564.16

those they're slightly different so we

566.76

would have to do like a little if or

568.399

something like that for now

570.8

because not too concerned about

575.519

it we will take this and we're just

578.04

going to take this make this a

580.2

row and we're not going to worry about

582.279

that the odd or even uh let's rebuild

591.16

it and if we look

594.12

now it'll just be a straight

598.12

uh it'll be this nice little simple

602.36

look uh and it is and we also got rid of

606.079

the uh the hover which is good because

608

there is

609.24

no uh if you look here there's no on

611.64

click so it doesn't make sense to do

613.36

that now what we could do is we could

616.2

probably you know add a nice little

618.2

border or something like that if we

619.959

wanted to for each of them so we do have

622.839

like within a field set we do have a row

627.399

so let's just try that let's see how

629.16

that

629.959

looks we're going to actually come back

632.2

next

634.32

episode and we are going

638.32

to do some we'll do some get into a

641.44

little bit of styling uh because it's

643.12

not that hard to do we're going to see

644.56

how quickly we can make this thing yeah

647.279

let's like brighten it up a little bit

648.6

make it look like it's not so

651.839

1990s uh let's see what the field set

654.079

thing does for us if we wrap every row

658.16

in a field set set and then come back

660.88

and do that it's going to be like we're

662.959

going to see this uh we're going to see

665.519

inside or like double up lines it's not

668

going to look awesome yeah see like that

670.32

but there is something that you know to

672.6

that so we could always make

675.6

this uh I don't even know what we have

678.16

set

679.44

up but let's try to

682.36

make

685.48

it I think we have a card

691.639

maybe uh actually let's go look at our

693.72

CSS real

695.16

quick so I think we had something set up

698.2

that was a little

700.6

different we'll go look at that real

702.519

quick but that'll be our start so

704.12

actually let's just do that for now

705.32

let's just leave this I don't know if we

706.639

have a card or not let me see if that's

708.04

lined up if so that may be for each row

712.48

but what we will do next time

714.72

around is we will come back to that

717.12

we're going to clean these up and make

718.36

these look a little

721.72

better along with sort of wrapping

726.76

up yeah oh so see there's the cards nice

729.76

so we can actually do some stuff with

731.04

that so we will clean that up next time

732.48

around uh do note that we in doing that

735.76

card uh we blew up our dibs a little bit

738.399

because they look different within a

741.199

card uh so we'll have to we'll have to

743.519

play around with that let's let's set

746

this back for now because we're going to

747.92

play around with this

749.959

in a styling episode I do want to look

753.68

at so basically where we're at I don't

755.399

think admin has anything I don't

757.279

remember what my admin does uh well

759.639

let's see where does it

761.079

go let's just edit

764.48

user uh I don't know if we have an edit

766.92

user

772.12

yet oh so we're missing a user form

776.279

let's see do we have edit user up in

777.959

hello so we may be able to turn that one

779.48

on real

781.76

quick yeah we do we just need oh we need

785.76

the user form which I think is not

791.12

here uh if we look in our

793.92

templates yeah there's a user list but

796.04

there's not a user form if we come down

798.92

here going do the same thing we've done

801.16

this a few times now we have a user form

803.8

yep there's a user form so let's pull

805.76

him up

807.76

here

810.6

and we're going to rename him simply to

812.44

an

818.48

HTML

820.8

HTML so that probably make that work

823

let's see what else did we have I think

824.48

we have so if we go to

827.24

projects difficulty and overhead let's

829.88

see if

831.399

those admin difficulty and probably

834.48

admin

835.92

overhead let's see if those two exist no

839.079

so let's see what is it complaining

840.519

about it may

841.49

[Music]

842.68

be the

847.44

forms uh where did it go uh let's see

850.56

template might oh that's just user oh I

852.92

think

854.199

admin so those are probably the admin

858.399

controller yep there we go so what we

860.88

can do is Let's uh we're going to pull

864.399

this

866.199

over so we're going to put that

870.56

here so we have our little admin

874

controller and he is going to be uh SNS

882.56

demo and let's just use the auto cuz we

886.56

got a couple of lookups there that works

889.72

oh wow that worked really quick uh let's

892.759

see difficulty form what are those doing

894.88

that's the lookup

897.12

form let's see do we have have those uh

899.68

where's our templates if we look

902.32

here uh we don't have a lookup form if

905.639

that's what it's looking for do we have

908.279

an admin NOP we don't have the admin so

910.8

let's take those so did we have a lookup

913.04

form we do we have a lookup form we have

919.32

a uh it doesn't have an admin

921.68

interesting uh so that is oh

927.6

admin

929.48

difficulty and so well that may

935.36

be I wonder if we lost a page here I

938.6

guess we are about to find out let's put

941.68

lookup form up

943.72

here let's bring that one

948.639

up and rename him to an

953.839

HTML uh

956.03

[Music]

957.6

rename

961.399

so if we take that and let's just go

963.56

ahead and run a couple of these through

964.88

and see what we

967.72

get guessing we're going to get some

969.56

issues but we're going to find out and

970.959

then what we'll do is we'll come back

972.04

we're going to do some styling clean

973.319

this up a little bit and then we'll wrap

975.16

up uh take more than a couple times

977.759

probably but uh oops that was in the

979.959

project there we go uh do we have a new

982.36

project we

984.68

do maintain overhead so it's still

987.279

giving us an HS oh probably

990.759

because that is totally

994

wrong if we do maintain difficulty

996.92

that's wrong if we do admin ah so

998.959

admin's coming through so we have a few

1000.24

more links to do but that is where we

1003

will pick up we're just going to keep on

1004.319

chugging through this thing uh as always

1006.519

you have any questions send us an email

1007.959

at info@ developer.com other than that

1011.199

go out there and have yourself a great

1012.36

day a great week and we will talk to you

1015.36

next

1017.48

time

1023.77

[Music]