Académique Documents
Professionnel Documents
Culture Documents
www.bluestar.inf.br www.bluestar.inf.br
__________________
Struts
http://struts.apache.org/
Struts
Framework
Aplicao reutilizvel e semicompleta que pode ser especializada para produzir aplicaes personalizadas
Struts
uma camada de controle flexvel baseada em tecnologias como Servlets, JavaBeans, ResourceBundles, e XML, e vrios pacotes comuns da Apache.
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Camada de Controle
Tem responsabilidades de integrar/interagir com camadas de model/modelo e view/apresentao.
Apresentao View
Controle Controller
Modelo Model
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Ferramentas de Trabalho Eclipse Tomcat Struts Hibernate Mysql
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Tutorial de Configurao Bsica http://notasderua.blogspot.com/2007/12/stru ts-aula01-tutorial-de-configurao_01.html
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Construindo a aplicao
Configurar Hibernate
hibernate.cfg.xml Bibliotecas HibernateUtil.java
Criar a entidade Livro e uma classe de servio com operaes de Listar e Salvar. Criar classes de ao
ListarLivroAction.java SalvarLivroAction.java
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Construindo a aplicao Configurar aes no struts-config.xml Criar telas
/web/jsp/livro/listar.jsp /web/jsp/livro/criar.jsp
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Criar classes de ao
ListarLivroAction.java
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Criar classes de ao
SalvarLivroAction.java
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Criar objeto de formulrio
LivroForm.java
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Configurar aes no struts-config.xml
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Criar telas
/web/jsp/livro/listar.jsp
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br
Struts
Criar telas
/web/jsp/livro/criar.jsp
BL U E ST AR T E CHNOL OG Y
www.bluestar.inf.br