This paper presents an approach for Web Engineering based on Model-Driven architecture. This
approach proposes an UML-based web modeling method and a systematic development process for
developing Rich Internet Applications (RIAs). The process begins with a requirements analysis to final
implementation and covers the Computation-Independent Model (CIM), Platform-Independent Models
(PIM), Platform-Specific Models (PSM) and the transformation rules between each model. This
approach defines a UML Profile for modeling this specific domain. This profile extends from Web
Application Extensions to modeling the concept of RIAs. In addition, we develop a tool named
“WAE2CODE” for generating the code template from PSM. It can parse the class diagrams and
sequence diagrams drawn by MagicDraw, representing the static and dynamic concept of the system
separately. We then translate these diagrams to code templates automatically. As a result of transforming
these models within differing levels of abstract concern about a system which the Model-Driven
Development desires, the stakeholder can build a complex web application in an efficient way.