|
|
| (25 revisões intermediárias por 2 usuários não estão sendo mostradas) |
| Linha 1: |
Linha 1: |
| No Jupiter-web: [[http://sistemas2.usp.br/jupiterweb/obterDisciplina?sgldis=SCC0263&nomdis= ementa]] | | No Jupiter-web: [[https://uspdigital.usp.br/jupiterweb/obterDisciplina?sgldis=scc0263&nomdis= ementa]] |
|
| |
|
| '''1.o Semestre de 2010'''
| | == 1º Semestre 2010 == |
|
| |
|
| Material disponível [[http://www.icmc.usp.br/~mello aqui]]
| | *[[scc-263(mello)| Técnicas de Programação para Web]] - prof. Rodrigo Mello |
| | |
| [http://netuno.icmc.usp.br/ssp01 Site de submissão de trabalhos]
| |
| | |
| '''Trabalhos'''
| |
| | |
| Trabalho 1 - até 17/03/2010 (23:59h). Entregar um arquivo Zipado (com todo o conteúdo do sistema) via sistema de submissão de trabalhos.
| |
| A descrição do trabalho já está disponível no sistema de submissões. Por favor, cadastrem-se no sistema de submissões de trabalhos.
| |
| | |
| '''Plano de Aulas'''
| |
| | |
| <b>Apresentar ementa</b>
| |
| <b>O que é um Servidor Web?</b>
| |
| <b>Instalação do Web Server Apache</b>
| |
| <b>Html básico</b>
| |
| <ul>
| |
| <li>html, head, body, p, br, table, table border, table bgcolor, tr bgcolor, font face color size, espaço, body cellspacing cellpadding topmargin leftmargin, a href, img, ...
| |
| </ul>
| |
| <b>CSS básico</b>
| |
| <ul>
| |
| <li>para fontes
| |
| </ul>
| |
| | |
| <b>Criar primeiras páginas em JSP</b>
| |
| <ul>
| |
| <li>request.getParameter
| |
| <li>out.print
| |
| <li>System.out.println
| |
| <li>Compilação do JSP
| |
| </ul>
| |
| | |
| <b>Desenvolver um primeiro sistema com html, css, banco de dados, page import, configuração de banco na classe e depois em uma interface. Exemplo: search engine</b>
| |
| | |
| <b>Decidir sobre um sistema para implementar (criar página template, usar img, html, page import, header, footer, jsp:include page, response.sendRedirect). Algumas opções:</b>
| |
| <ul>
| |
| <li>e-Commerce
| |
| <li>Gerenciador de Conteúdo
| |
| <li>Blog
| |
| <li>Orkut
| |
| <li>Twitter
| |
| </ul>
| |
| | |
| <b>Decidimos sobre o eCommerce</b>
| |
| <ul>
| |
| <li>Insert com e sem JavaBeans (jsp:useBean id class scope, com e sem uso de jsp:setProperty name property, jsp:getProperty)
| |
| <li>Cascade StyleSheet
| |
| <li>Upload de Imagem de Produto
| |
| <li>Editar produto
| |
| <li>Remover produto
| |
| <li>Buscar produto por código
| |
| <li>Stored Procedure para inserir, atomicamente, um produto e obter seu código
| |
| <li>Home page do site de ecommerce - findAll (header e footer) (jsp:include page="" (executa e depois inclui) e <%@ include file="" %> (inclui e depois executa))
| |
| <li>Sessão para o Shopping Cart (sessão (session.setMaxInactiveInterval(segs), setAttribute(String, Object), getAttribute(String), invalidate())
| |
| </ul>
| |
| | |
| <b>Evoluir sistema adicionando:</b>
| |
| <ul>
| |
| <li>response.sendRedirect()
| |
| </ul>
| |
| | |
| bash-3.1# /etc/rc.d/rc.postgresql start
| |
| | |
| Creating PGDIR /var/lib/pgsql: ok
| |
| | |
| Initializing database: ok
| |
| | |
| Starting PostgreSQL: ok
| |
| | |
| bash-3.1# su - postgres
| |
| | |
| postgres@athena:~$ createuser -P uguuugle
| |
| | |
| Enter password for new role:
| |
| | |
| Enter it again:
| |
| | |
| Shall the new role be a superuser? (y/n) y
| |
| | |
| postgres@athena:~$ createdb -U uguuugle guuugledb
| |
| | |
| postgres@athena:~$ psql -U uguuugle guuugledb
| |
| | |
| psql (8.4.0)
| |
| | |
| Type "help" for help.
| |
| | |
| | |
| guuugledb=# create table webpage (url varchar(255) not null, body text);
| |
| | |
| CREATE TABLE
| |
| | |
| guuugledb=#
| |
| | |
| guuugledb=# insert into webpage values ('http://www.google.com', 'concorrente outro google fake');
| |
| | |
| INSERT 0 1
| |
| | |
| guuugledb=# insert into webpage values ('http://www.yahoo.com', 'ms microsoft ultra fake');
| |
| | |
| INSERT 0 1
| |
| | |
| guuugledb=# select * from webpage;
| |
| | |
| url | body
| |
| | |
| -----------------------+-------------------------------
| |
| | |
| http://www.google.com | concorrente outro google fake
| |
| | |
| http://www.yahoo.com | ms microsoft ultra fake
| |
| | |
| (2 rows)
| |
| | |
| | |
| guuugledb=# \q
| |