-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] Behalf Of seo22
Sent: Tuesday, April 08, 2003 9:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Please confirm (conf#f9132a4fa1ae0fd8918d034cbe918565)


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] Behalf Of Eric J. Chet
Sent: Tuesday, April 08, 2003 7:58 PM
To: [EMAIL PROTECTED]
Subject: Please confirm (conf#f9132a4fa1ae0fd8918d034cbe918565)


<< IMPORTANT INFORMATION! >>

This is an automated message.

The message you sent (attached below) requires confirmation
before it can be delivered. To confirm that you sent the
message below, just hit the "R"eply button and send this
message back (you don't need to edit anything). Once this is
done, no more confirmations will be necessary.

<< INFORMA��O IMPORTANTE >>

Esta � uma mensagem autom�tica

A mensagem que voc� enviou (em anexo) requer confirma��o
antes de ser entregue. Para confirmar o envio basta
pressionar o bot�o de "Reply" e enviar esta mensagem de
volta (n�o � necess�rio editar). Uma vez que isto seja
feito, novas confirma��es n�o ser�o necess�rias.

This email account is protected by:
Active Spam Killer (ASK) V2.2 - (C) 2001-2002 by Marco Paganini
For more information visit http://www.paganini.net/ask

--- Original Message Follows ---

Date:         Tue, 8 Apr 2003 05:44:20 +0530
From: Pranav Lal <[EMAIL PROTECTED]>
Subject:      Re: Beginner jsp question.
To: [EMAIL PROTECTED]

I am confused,
I appreciate the point about markup. However, don't JSP pages compile into=
=20
servlets? so there is not much difference between writing a separate=20
servlet for say displaying some data and using tags to refer to that=20
servlet  rather than writing scriptlets? since those scriptlets will=20
compile into servlets?

Pranav



At 09:33 AM 4/7/2003 -0700, you wrote:
 >You should do you *best* to only have markup in your
 >JSP pages. HTML tags and JSP tag libraries are
 >preferred. In a perfect world, there would be no
 >scriplets (java code) in a JSP page. Your servlets or
 >model objects would do your database lookup's and your
 >JSP would reflect this data.
 >
 >It's considered 'bad practice' to have java code
 >surrounding your HTML tags. There may be situations
 >where it cannot be avoided and a scriplet must be
 >written in your page but a lot of the tag libs out
 >there these days do a very good job of preventing this.
 >
 >- Bacon -
 >
 >Ed Ventura wrote:
 >
 >>
 >> I=B9ve been reading everywhere that you should make it a
 >> habit to not put java
 >> code inside of jsp pages. Is this a good practice?
 >> Should database lookups
 >> and displaying information really only be done in
 >> servlets? If so, do you
 >> use the servlet to display the database information or
 >> is it ok to put java
 >> code around the html tags?
 >>
 >> Thanks,
 >> Ed ventura.
 >>
 >>
=
 >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DT
=
o

(Original message truncated)

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to