Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating blueprints for your web application

 
Ali Gordon
Ranch Hand
Posts: 182
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I now know the basics of JSP and Servlets and I am going to make my own web app (shopping cart). I have some ideas for a simple app in which I can practice
what I have learned. But, I am having great difficulty in making a blue print for my code. But, I don't know if my blue print is useful or even missing something.
Can someone please tell me where I can learn a formal process to make blueprints (not algorithms or flowcharts) for my code/web app ? I want to be able to
make such amazing blueprints, that a beginner coder could simply follow the requirements and do all the coding himself. How do I do this ?

What I did so far -

1 - Finalize a small list of features in the app.
2 - Identify all the entities or classes needed for the app - Customer, Product, ShoppingCart, etc.
3 - A list of all the web-pages/servlets/jsp's that the app might require.

I wonder if I can start coding right away. I hope that I have not missed something which will bite me later and will require a
whole rewrite of the code.

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what you mean by "blueprint". If you are talking about the structure of the application, have you read this article?
 
Ali Gordon
Ranch Hand
Posts: 182
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Not sure what you mean by "blueprint". If you are talking about the structure of the application, have you read this article?


Thanks. One of the things I needed was structure/architecture. I also need a formal way do document my design and revise it before I start coding. I want to have a "good plan"
so that I don't miss anything or miss very little details in the beginning itself.
 
Daniel Val
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ali Gordon wrote:I now know the basics of JSP and Servlets and I am going to make my own web app (shopping cart). I have some ideas for a simple app in which I can practice
what I have learned. But, I am having great difficulty in making a blue print for my code. But, I don't know if my blue print is useful or even missing something.
Can someone please tell me where I can learn a formal process to make blueprints (not algorithms or flowcharts) for my code/web app ? I want to be able to
make such amazing blueprints, that a beginner coder could simply follow the requirements and do all the coding himself. How do I do this ?

What I did so far -

1 - Finalize a small list of features in the app.
2 - Identify all the entities or classes needed for the app - Customer, Product, ShoppingCart, etc.
3 - A list of all the web-pages/servlets/jsp's that the app might require.

I wonder if I can start coding right away. I hope that I have not missed something which will bite me later and will require a
whole rewrite of the code.

Thanks.


Hi,

Suggestion:
- figure out all the pages you will need.. There will be portions that repeat on each page, like the left or right hand menu, the header, the footer, whatever
- get a good html editor and do all the pages. Do not start coding jsp or anything dynamic till you finished the html
- if you have any ajax or something that will show / hide artifacts using javascript, then your html template must contain all the possible artifacts. Then you hide whatever you have to hide when rendering the page, etc, but you will have all the html you need to work with.

Then start coding. Take out the header and the footer and put jsp:include in your pages. Then get each page and code it. You assume you hold in either request or in the session some value objectd where the rendering information resides. That object, associated with each page, must contain all the info you need to render that page

And a last advice: NEVER use scriptlets in your jsp. Either use custom tags or jstl tags, accessing stuff in that object mentioned above..

Then it is simple: your code will fill out that object, store it in request / session / whatever and then forward to your jsp.
 
Michael Gomez
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ali,

Not sure what you mean by "blueprint" diagram, but I use the following for planning my apps:

  • Wireframe - For planning the look of a webpage & navigation between pages
  • Class Diagram - Shows how classes relate to each other. I use an eclipse plugin to generate it
  • Use case diagram - Interactions between users and the application

  •  
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!