Page 1 of 1
how to model web page navigation in UML
Posted: Thu Jun 28, 2007 7:57 am
by raghavan20
are there any specific diagrams available in UML 2.0 to model web page navigation? i feel as the application grows the navigation should be modelled otherwise it gets too hard to remember.
Posted: Thu Jun 28, 2007 10:05 am
by Jenk
Navigation would be a use-case, surely?
Posted: Thu Jun 28, 2007 3:23 pm
by raghavan20
i am not sure. use case represent a collection of activity. you might do one or more collection of activities in one web page. even though they look closely similar but i guess there is a difference.
i prefer to specify activites in all pages and specify the parameters passed from one page to another or on which conditions, a page will be called. i am still unsure on my ideas so i will take your advice. is there an alternate professional way of doing this?
re: modeling page navigation w/ UML 2.0
Posted: Fri Jun 29, 2007 10:31 am
by analysis_manager
Hi Raghavan,
One way I used UML 2.0 to model web page navigation was to create a stereotyped class diagram. You can create one stereotype called <<web page>> and create one class for each page. You can also create multiple stereotypes, if you need more details, such as <<html page>>, <<pop-up>>, <<php page>>, etc.
Then I use directional associations between classes to show navigability - which page can be accessed from which page. If you want to go even further - you can define the links/buttons on your pages as class methods.
It was worked very well for me on many projects.
Hope this helps!
- Adrian
Re: re: modeling page navigation w/ UML 2.0
Posted: Fri Jun 29, 2007 10:41 am
by raghavan20
analysis_manager wrote:Hi Raghavan,
One way I used UML 2.0 to model web page navigation was to create a stereotyped class diagram. You can create one stereotype called <<web page>> and create one class for each page. You can also create multiple stereotypes, if you need more details, such as <<html page>>, <<pop-up>>, <<php page>>, etc.
Then I use directional associations between classes to show navigability - which page can be accessed from which page. If you want to go even further - you can define the links/buttons on your pages as class methods.
It was worked very well for me on many projects.
Hope this helps!
- Adrian
this appears to be one good option. if possible, could you please post a snapshot of one of your diagrams so that i can understand how effectively i can use it. thank you.
Re: re: modeling page navigation w/ UML 2.0
Posted: Fri Jun 29, 2007 12:30 pm
by analysis_manager
Sure... here's one example:
Regards,
Adrian
Posted: Fri Jun 29, 2007 2:46 pm
by raghavan20
thanks for the image adrian. i understand that you use association link label to mention on which button click to which page it is diverted and you are making the link stereotype as event.