Вы находитесь на странице: 1из 32

Nombre: I_En_r_iq,--u_e __ _j Telefono: 19256789

Agregllr

Del 'Nombre

Ordanar

Buscar par Tel

Tamaiio

Lista Enlazada

Totlll:c=]

Salvador, 9245687 Omar, 9252525

Estlldo: §allladOr, 9245687 agregado

L6gica de Presentaci6n

r s = sezve r , CreateObject("ADODB.Recordset") rs.ActiveConnection MM CUCI STRING

r s , Source = "SELECT" FROM dbo. P lantilla IolHERE Codigo

L6gica de Negocio

" + Replace (rs_MMColPar8ID,

'" ''') + ""

2

= 3

= 0

<title>Horarios</title>

<meta http-equiv="Content-Type" content="text/htIlll; charset=iso-8859-l"> </head>

<body bgcolor="#FFFFFF" text="#OOOOOO">

L6gica de Presentaci6n

<%11" J:s.EOF OJ: J:s.BOF Then

Response.lifJ:ite "<p a.l i qne " & "left" & ">&nbsp;"

Response .1ifJ:ite "No se encont.r o el codigo "&nbsp&rs_MMColPar8ID Response .1ifJ:ite "<p>&nbsp ;</p>"

Response .1ifJ:ite "<A HREF=' plantilla. asp' >Regresar<! A> " Response.End

End If %>

<table width="4l"" border="O"> <to

<td width="lH" bgcolor="#000066"><b><font face="Arial, Helvetica, sans-serif" size="-l" color="#FFFFFF">Codigo</font><

L6gica de Negocio

width="83%" bgcolor="#EEEEEE"><b><font face="Arial, Helvetica, sans-serif" size="-l" color="#OOOOOO"><"=(l:s.Fields.

Logica de

. ,

Prcsentacion

public class ServletEj extends HttpServlet {

private static final String CONTENT_TYPE = "text/htrnl":

public void init() throws ServletException { }

public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response setContentType(CONTENT _TYPE);

PrintWriter out = response .getWriter();

out.println("< html> ");

out.println("< head> <title> ServletEj<ltitle> </hea.d> "); out.println("< body bgcolor=\',#ffffffi''> ");

out.println("< p> The senllet has received a. "+ request.getMethodO + ". This is the reply.</p> "); out.println("<ibody> <Jhtmb ");

}

public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response);

}

public void destroy() { }

__ t

Para obtener Ayuda, presione Fl

P Busqueda * Favoritos

The servlet has received a GET. This is the reply.

<%@ page contentType="textlhtml; charset=iso-8859-1" lanquaqe=rjava" import="java.util."" %> <html>

<head>

<title>

jsp Ejemplo <!title>

<!head>

<body bgcolor="#ffffff"> <h1>

Ejemplo de Una Jsp <!h1>

Fecha Actual: <%= new Date() %> <!body>

<!html>

Ejemplo de Una Jsp

Fecha Actual Mon Mar 29 14:32:54 CST 2004

Logica de Prescntacion

Aplicacion Web Servlets, JSP

EJB

Facade EJB

I. ";:,.:.. ,..::.. 1

1;1__ 10_

........ ................l

"""

Servidor J2EE Servidor J2EE

Linux W·

Contenedor EJB

Servlet
inicio index.jsp
_ ___..
J \ []
. ___ 1 1.. *

Categoria EJB Empresa EJB

Contenedor Web

Servidor DB

dbdirectorio.j ds

Solaris

Realiza busquedas desde un navegador de Internet

Realiza busquedas desde un celular usando J2ME

------c:>""'~Realiza busquedas usando WAP~

Usuario

I 7: Muestra Resultado

o ~

I I

I 8: Regresar I

~ 0

Usuario

I "~~~ I

I I I I I I I I I I

4: Muestra CapturaCE I

CU

5: Regresar ¢

I

o

3: Elige OPCiOneSI

2: Muestra princiP~ I

6: Ingresa Busquada

9: Salir App

Вам также может понравиться