reset password
Author Message
abhishek_sharma
Posts: 79
Posted 14:46 Apr 07, 2009 |

Hi Professor Sun,

Can we use mysql for assignment 2

 

Last edited by abhishek_sharma at 14:47 Apr 07, 2009.
cysun
Posts: 2935
Posted 14:49 Apr 07, 2009 |

You don't need to use a database for homework 2.

migcov
Posts: 10
Posted 11:34 Apr 12, 2009 |

Prof. Sun, in the homework you say "you should have at least two pre-created entries in each of the blogs", so if we don't need to use a database to store these entries, from where do we display them? where they come from? are we supposed to create them each time we run the application? or should we store them on files? Thanks.

cysun
Posts: 2935
Posted 12:24 Apr 12, 2009 |
migcov wrote:

Prof. Sun, in the homework you say "you should have at least two pre-created entries in each of the blogs", so if we don't need to use a database to store these entries, from where do we display them? where they come from? are we supposed to create them each time we run the application? or should we store them on files? Thanks.

The data should be stored in application scope. You can create some entries when you create the blog in the servlet init() method. See the GuestBook example discussed in class.