reset password
Author Message
raylongma1018
Posts: 81
Posted 17:04 Jul 10, 2015 |

so in step 3 we just use csjobs.dll as a reference to produce "postgre sql" in csjobs-create.sql? it should produce the same table as csjobs.dll did? and then we add more elements requested by homework description?

also for step 4 there are many codes I have never seen before in the Dao implementation. some of the codes i don't understand please help:

in ModeMap models.put( "users", userDao.getUsers() ); 

which scope does modelmap.put save to? session? application? page?

does models.put works the same as servletcontext.setAttriute as we did in cs320 dynamic web project?

what does the @Autowired  do before the UserDao?

what does @controller do in class usercontroller  ?

 

 

cysun
Posts: 2935
Posted 17:06 Jul 10, 2015 |

1. Yes

2. Don't worry about the code in controller. We'll talk about it later.
 

raylongma1018
Posts: 81
Posted 17:12 Jul 10, 2015 |

so in step 4 are we just try to show our output in a table which is very similar to the database table we created in step 3?

cysun
Posts: 2935
Posted 17:16 Jul 10, 2015 |
raylongma1018 wrote:

so in step 4 are we just try to show our output in a table which is very similar to the database table we created in step 3?

Something like that. It's basically a way to make sure the whole application works; the output display is not important.