• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write site when register will provide a space for example 1G space.

 
chenchih lee
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to ask has anyone write jsp code if i register an account and will the account will provide a space for example 1G.

I wants to write a code that user need to register an account, and it will give you for example 1 G of space. User can only used up to 1G, like upload photo document.
i wants to used like google. When we register google mail, it will give us an amount of space. Do anyone know how is this going to work .

How is this going to work. I just wish all user register an account and will automatic gain 1 G space.

Do anyone have any idea.
 
Tim Moores
Saloon Keeper
Posts: 3266
55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While I'm not quite sure what you mean by "how to write the site" (although I hope you'll use at least servlets in addition to JSPs), you would need three things in place for starters: storage space on your network in the order of 1GB * (current number of users), a way to keep track of how much storage each user uses at any moment (so you can reject further storage requests), and a way to see how much storage is used overall and how that changes over time - so you can react to looming shortages by adding further capacity. (You may need less than 1GB of storage for each user if your numbers indicate that the typical user uses less than that.)
 
chenchih lee
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Do you have any example coding or you know which keyword would be able to find in google, for me to start. I need to direction fist. Why can't we used JSP instead of servlets.
 
Tim Moores
Saloon Keeper
Posts: 3266
55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you have so far? Where are you stuck making progress?

You could start with a web app that allows users to register and log in. Then allow them to upload files, or create content, so they use storage space. Finally, put the monitoring if the storage space I in place.

As to JSPs and servlets - you would use both. JSPs are the V in MVC, whereas servlets are the C. If you don't know about MVC, start by familiarizing yourself with that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!