Re: jsp include question

2000-11-12 Thread Venu Gopal

Which one is best to use? The simple situation is like
i want to include header & footer on every page which
one should i use?

 or <%@include file="relative URL" %>?

Venu

--- Shireesh Thanneru <[EMAIL PROTECTED]>
wrote:
>  happens at run-time, where as
> <%@ include file="URL" %> happens at compile time.
>
> Shireesh Thanneru
>
> On Sun, 12 Nov 2000, Chin Sung Kit wrote:
>
> >hi all,
> >
> >what's the difference between  and
> <%@include
> >file="relative URL" %>?
> >
> >thank you.
> >
> >ced
> >
>
>===
> >To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jsp include question

2000-11-12 Thread Scott Evans

The difference is when you want to include the file - at compile time
<%@include file="URL" %> or at runtime . Using the compile time
option results in faster execution, while the runtime option results in the
flexibility to decide dynamically which file to include.

-Original Message-
From: Venu Gopal [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 12, 2000 10:47 AM
To: [EMAIL PROTECTED]
Subject: Re: jsp include question


Which one is best to use? The simple situation is like
i want to include header & footer on every page which
one should i use?

 or <%@include file="relative URL" %>?

Venu

--- Shireesh Thanneru <[EMAIL PROTECTED]>
wrote:
>  happens at run-time, where as
> <%@ include file="URL" %> happens at compile time.
>
> Shireesh Thanneru
>
> On Sun, 12 Nov 2000, Chin Sung Kit wrote:
>
> >hi all,
> >
> >what's the difference between  and
> <%@include
> >file="relative URL" %>?
> >
> >thank you.
> >
> >ced
> >
>
>===
> >To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: difference between <%!...%> and <%....%>

2000-11-12 Thread Venu Gopal

This might be a slight deviation .. but i just want to
know..

If we declare a variable in <%! %> and after that if
you include a file. Can i be able to access the above
variable in the included file?

Eg:

file : first.jsp

<%!
   String name = "sample";
%>



Can i be able to access "name" in abc.jsp ?

Cheers,
Venu

--- Geert Van Damme <[EMAIL PROTECTED]> wrote:
> Yes
> and in most cases (IMHO nearly always) you should
> use <% %>.
> I've seen many problems from people using <%! %>
> without any understanding
> of how it works.
>
> Geert Van Damme
>
> > -Original Message-
> > From: A mailing list about Java Server Pages
> specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> SANDEEP UPPAL
> > Sent: maandag 25 september 2000 11:08
> > To: [EMAIL PROTECTED]
> > Subject: Re: difference between <%!...%> and
> <%%>
> >
> >
> > can we declare a variable like <% public int =
> 1;%>
> >
> > regards,
> >
> > Sandeep
> > - Original Message -
> > From: Rathna <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, September 25, 2000 2:19 PM
> > Subject: Re: difference between <%!...%> and
> <%%>
> >
> >
> > This <%! ...%> scriptlet is used to define a
> global functions
> > and variables, means out side the serivce
> method.The second
> > one is to declare the functions and variables
> inside the service
> > method ...
> >
> > hope this helps,
> >
> > with regards,
> >rathna.
> >
> >
> > SANDEEP UPPAL wrote:
> >
> > > both <%!...%> and <%.%> can be used for
> declaring variables.
> > >
> > > What is the difference between both and which to
> use ?
> > >
> > > regards,
> > >
> > > Sandeep Uppal
> > >
> > >
> >
>
==
> > =
> > > To unsubscribe: mailto [EMAIL PROTECTED]
> with body: "signoff
> > JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found
> at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> > --
> > Cheers,
> > rathna
> >
> >
> > ø¤°`°¤ø,¸¸¸,ø¤°`°¤ø,¸¸»«¸,ø¤°`°¤ø,¸¸,ø¤°`°¤ø
> >
> >   P Rathinavel
> >   Sr.Systems Engineer - eCommerce Division
> >   Wipro Technologies
> >   Electronic City
> >   Bangalore 561229, India
> >   Tel  : 8520420/416/424/408  Extn : 1313
> >   E-mail: [EMAIL PROTECTED]
> >   www.wipro.com
> >
> > ø¤°`°¤ø,¸¸¸,ø¤°`°¤ø,¸¸»«¸,ø¤°`°¤ø,¸¸,ø¤°`°¤ø
> >
> >
>
==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> > JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found
> at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
>
==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> > JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found
> at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Bean's - quick look?

2000-11-12 Thread Venu Gopal

Hi Experts,

I'm just wondering whether we can do the following
from beans, though these are simple and stupid ones
for experienced guys:

1. Can i access the request,response,cookie objects
from a bean? If i tried to do that it gave me an
error. JspWriter i have come across, but i don't have
any clue how to use it??? Can some one give an example
code how to acces all the above 3 objects?

2. Where can i find ONLY beans interest mailing list?
Like i found the RMI interest mailing list on
java.sun.com ?

3. And a very stupid question, whats BDK for? what are
server side developed beans used by JSP? Are they both
same? According to me BDK is to develop front-end
reusable components..and the server side beans are for
accessing server resources. Am i correct?

Help me

Cheers,
Venu


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Bean's - quick look?

2000-11-12 Thread Scott Evans

1. You can, if you provide your bean with the appropriate object references
and import the proper classes. There is nothing magical here that does this
automatically.
2. I don't know, maybe try a search engine
3. I think the BDK is meant for developing visual beans that can be modified
in a GUI IDE, which isn't of much use in servlets. JavaBeans in JSP/Servlets
basically are java objects that follow the getXXX()/setXXX() naming
conventions for accessor/mutator methods and provide a no-args constructor.
This allows the jsp container to instantiate them and set their values using
reflection. For example, for a property named foo, the jsp container will
use reflection to invoke your bean's setFoo() and getFoo() methods.

Scott


-Original Message-
From: Venu Gopal [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 12, 2000 11:20 AM
To: [EMAIL PROTECTED]
Subject: Bean's - quick look?


Hi Experts,

I'm just wondering whether we can do the following
from beans, though these are simple and stupid ones
for experienced guys:

1. Can i access the request,response,cookie objects
from a bean? If i tried to do that it gave me an
error. JspWriter i have come across, but i don't have
any clue how to use it??? Can some one give an example
code how to acces all the above 3 objects?

2. Where can i find ONLY beans interest mailing list?
Like i found the RMI interest mailing list on
java.sun.com ?

3. And a very stupid question, whats BDK for? what are
server side developed beans used by JSP? Are they both
same? According to me BDK is to develop front-end
reusable components..and the server side beans are for
accessing server resources. Am i correct?

Help me

Cheers,
Venu


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



JSP with Oracle ?

2000-11-12 Thread Kunal H. Parikh

Hi !

Can someone who has connected from JSP to an Oracle server using the Oracle
thin Driver, mail me with the details towards doing so, please ...

I have managed to write a java program to connect to an Oracle DB using the
Oracle thin driver, but don't know how to put it in JSP code or servlet. I'm
new to JSP and servlets.

Any help will b highly appreciated.

Thanx in Advance,

Kunal H. Parikh (KayPee)
ICQ #: 4883151

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jsp include question

2000-11-12 Thread Saravanan

Superb...

I was wondering what to do ?

Thanls Shireesh Thanneru

Luv,
Saravanan
- Original Message -
From: Shireesh Thanneru <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 12, 2000 10:46 AM
Subject: Re: jsp include question


>  happens at run-time, where as
> <%@ include file="URL" %> happens at compile time.
>
> Shireesh Thanneru
>
> On Sun, 12 Nov 2000, Chin Sung Kit wrote:
>
> >hi all,
> >
> >what's the difference between  and <%@include
> >file="relative URL" %>?
> >
> >thank you.
> >
> >ced
> >
>
>===
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP with Oracle ?....from Nova

2000-11-12 Thread Nova Bhojwani

The jdbc code to be connected to the databse is to be
written in the scriplet tag that is <% %>

a sample code of that block is
declare the con connection object,url as string in the
declarative block.
<%try
{
Class.forName("net.avenir.jdbc2.Driver");
url= "jdbc: AvenirDriver: //dell06:1433/TrainCert";
con = DriverManager.getConnection(url, "VeriWorld",
"VeriWorld");
st = con.createStatement();
}
catch(Exception e){}
%>

--- "Kunal H. Parikh" <[EMAIL PROTECTED]>
wrote:
> Hi !
>
> Can someone who has connected from JSP to an Oracle
> server using the Oracle
> thin Driver, mail me with the details towards doing
> so, please ...
>
> I have managed to write a java program to connect to
> an Oracle DB using the
> Oracle thin driver, but don't know how to put it in
> JSP code or servlet. I'm
> new to JSP and servlets.
>
> Any help will b highly appreciated.
>
> Thanx in Advance,
>
> Kunal H. Parikh (KayPee)
> ICQ #: 4883151
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jsp include question

2000-11-12 Thread Shireesh Thanneru

If you want any of the variables, objects, etc. to be visible in other included
jsps, then use <%@include file="url">, otherwise, if they don't share any
variables, objects, use 

Shireesh Thanneru

On Sun, 12 Nov 2000, Venu Gopal wrote:

>Which one is best to use? The simple situation is like
>i want to include header & footer on every page which
>one should i use?
>
> or <%@include file="relative URL" %>?
>
>Venu
>
>--- Shireesh Thanneru <[EMAIL PROTECTED]>
>wrote:
>>  happens at run-time, where as
>> <%@ include file="URL" %> happens at compile time.
>>
>> Shireesh Thanneru
>>
>> On Sun, 12 Nov 2000, Chin Sung Kit wrote:
>>
>> >hi all,
>> >
>> >what's the difference between  and
>> <%@include
>> >file="relative URL" %>?
>> >
>> >thank you.
>> >
>> >ced
>> >
>>
>>===
>> >To unsubscribe: mailto [EMAIL PROTECTED] with
>> body: "signoff JSP-INTEREST".
>> >Some relevant FAQs on JSP/Servlets can be found at:
>> >
>> > http://java.sun.com/products/jsp/faq.html
>> > http://www.esperanto.org.nz/jsp/jspfaq.html
>> >
>> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>> >
>>
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>> >
>>
>>
>===
>> To unsubscribe: mailto [EMAIL PROTECTED] with
>> body: "signoff JSP-INTEREST".
>> Some relevant FAQs on JSP/Servlets can be found at:
>>
>>  http://java.sun.com/products/jsp/faq.html
>>  http://www.esperanto.org.nz/jsp/jspfaq.html
>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
>__
>Do You Yahoo!?
>Yahoo! Calendar - Get organized for the holidays!
>http://calendar.yahoo.com/
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jsp include question

2000-11-12 Thread V.A. Kozhevnykov

<%@include file="relative URL" %> - this will include file in compile
time(usually use to include static html files )
 - this will include file in runtime(usually use to include
dynamoc content producers jsp files)
 Valik

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Chin Sung Kit
Sent: Sunday, November 12, 2000 12:54 PM
To: [EMAIL PROTECTED]
Subject: jsp include question


hi all,

what's the difference between  and <%@include
file="relative URL" %>?

thank you.

ced

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Bean's - quick look?

2000-11-12 Thread Roberto Camps

About 1)  I suggest not to access request, response, cookie and other
web-specific information from beans. I say this, because you'll want to
reuse beans maybe in other type of applications, so it's simpler and more
object-
oriented to leave those specifics information to JSPs pages or servlets.
It's my point of view. You can access information from the request object,
and pass that information to a bean method. Then you can use the returned
information from the bean method and display it within the JSP (instead of
using the response object from the bean).
Of course, you can access and use those objects from a bean, but the way I
told you it's more object-oriented and you'll end up with more reusable
objects.

Robert.


> -Mensaje original-
> De: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]En nombre de Venu Gopal
> Enviado el: Domingo, 12 de Noviembre de 2000 06:20 a.m.
> Para: [EMAIL PROTECTED]
> Asunto: Bean's - quick look?
>
>
> Hi Experts,
>
> I'm just wondering whether we can do the following
> from beans, though these are simple and stupid ones
> for experienced guys:
>
> 1. Can i access the request,response,cookie objects
> from a bean? If i tried to do that it gave me an
> error. JspWriter i have come across, but i don't have
> any clue how to use it??? Can some one give an example
> code how to acces all the above 3 objects?
>
> 2. Where can i find ONLY beans interest mailing list?
> Like i found the RMI interest mailing list on
> java.sun.com ?
>
> 3. And a very stupid question, whats BDK for? what are
> server side developed beans used by JSP? Are they both
> same? According to me BDK is to develop front-end
> reusable components..and the server side beans are for
> accessing server resources. Am i correct?
>
> Help me
>
> Cheers,
> Venu
>
>
> __
> Do You Yahoo!?
> Yahoo! Calendar - Get organized for the holidays!
> http://calendar.yahoo.com/
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Is there any way to send an Email with an attachment !

2000-11-12 Thread M. Simms

It is more involved.See below example.
Note: What is missing below is setting the actual map object which I believe
is correct as :
map = new URLName("c:\\windows\\windows.gif");
Note: there are other constructors as wellsee the docs.

-
Insert the Multipart object into the Message object by calling
setContent(Multipart) within a newly-constructed Message object.
The example below creates a Multipart object and then adds two message parts
to it. The first message part is a text string, “Spaceport Map,” and the
second
contains a document of type “application/postscript.” Finally, this
multipart
object is added to a MimeMessage object of the type described above.
After all message parts are created and inserted, call the saveChanges
methodto
ensure that the client writes appropriate message headers. This is identical
to the
process followed with a single part message. Note that the JavaMail API
calls the
saveChanges method implicitly during the send process, so invoking it is
unnecessary and expensive if the message is to be sent immediately.
// Instantiate a Multipart object
MimeMultipart mp = new MimeMultipart();
// create the first bodypart object
MimeBodyPart b1 = new MimeBodyPart();
// create textual content
// and add it to the bodypart object
b1.setContent("Spaceport Map","text/plain");
mp.addBodyPart(b1);
// Multipart messages usually have more than
// one body part. Create a second body part
// object, add new text to it, and place it
// into the multipart message as well. This
// second object holds postscript data.
MimeBodyPart b2 = new MimeBodyPart(); b2.setContent(map,"application/
postscript");
mp.addBodyPart(b2);
// Create a new message object as described above,
// and set its attributes. Add the multipart
// object to this message and call saveChanges()
// to write other message headers automatically.
Message msg = new MimeMessage(session);
// Set message attrubutes as in a singlepart
// message.
msg.setContent(mp); // add Multipart
msg.saveChanges(); // save changes

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Venu Gopal
> Sent: Saturday, November 11, 2000 3:27 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Is there any way to send an Email with an attachment !
>
>
> If not JMAPI how to send attachment through email? I'm
> using a mailing servlet. But i'm just looking for
> sending the attachment through the same. Is that
> complex thing?
>
> Venu
>
> --- Aby Kuriakose <[EMAIL PROTECTED]> wrote:
> > check dis link
> > http://www.jguru.com/jguru/faq/view.jsp?EID=30251
> > they hav a sample code for sending a mail with an
> > attach using javamail
> > api's
> > - Original Message -
> > From: Bhuvaneswari Palanivel
> > <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, November 08, 2000 4:33 AM
> > Subject: Is there any way to send an Email with an
> > attachment !
> >
> >
> > > Hi,
> > >
> > > I am using Java Mail API for sending mail. Is
> > there any method or
> > something
> > > to send a email with an attachment?
> > > Please refer some site name.
> > >
> > > Thanks,
> > > Bhuvana
> > >
> > >
> >
> ==
> =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff
> > JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found
> > at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
> __
> Do You Yahoo!?
> Thousands of Stores.  Millions of Products.  All in one Place.
> http://shopping.yahoo.com/
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be fo

Re: (off topic)javascript: How can I disable the maximize button in NS and IE

2000-11-12 Thread M. Simms

No way.but you can control the resizing IF and when you open the window
from Javascript:

w = window.open("index.html","start",features);
where features contains: "resizable=no"

otherwise you must code on "onresize" event handler with some javascript in
the static html:


function retainit() {
 window.location.href = window.location.href ;
}




> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Lorena Carlo
> Sent: Saturday, November 11, 2000 3:45 PM
> To: [EMAIL PROTECTED]
> Subject: (off topic)javascript: How can I disable the maximize button in
> NS and IE
>
>
> Hello everybody
>
> Can somebody tell me how can I disable the maximize button of the
> tittle bar
> in both NS an IE.
>
> Thanks a lot in advance
>
> Lorena
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Checking File Extn of images from a directory

2000-11-12 Thread Sunil Roy

Dear JSP  gurus,

Using JSP, I am displaying images using a 1-d array of image nos. into a
webpage.The array
actually consists of only the image nos.(without the extn.), corresponding
to the image file names in a directory.
In the JSP, I am using the following  piece of code to display the images.

<%!
int row;
String[] rowData;

String  getRowData( int row )
{
return ( "" + rowData[row] + ".jpg" );
}
%>

  I am then assigning an array of image nos.(without the extn.) from
a servlet to this rowData[] in JSP.

 Then for displaying the images , I am using the following piece of
code( given below in brief)

<%for ( row=0; row< rowData.length; row++ )
{
%>

<%
  }
%>

Now, the problem is that the extn. of image is not const.
It can be .jpg  or  .gif  or  .jpeg
So, I need to check the extn. of each image . which I am calling from this
directory, & accordingly assign the extn. in the getRowData(row)  method  at
runtime.
I don't have the slightest idea as to how to check the image ext. from the
directory for the image that I am calling.

Could anybody pl. help?
Any help will be greatly appreciated.

Sunil K. Roy

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Display from JSP Divided into Multiple Webpages

2000-11-12 Thread Sunil Roy

Dear JSP  GURUS,

I am displaying images thru JSP using a  1-dim. array of image nos.  into a
webpage.

I wish to divide the display  of  this 1- Dimentional array of image nos.
into multiple WebPages, depending on the no. of elements in the array.

I wish to limit the images per page to 10 only & the subsequent images
should be displayed in the subsequent pages, each page showing only 10
images.

I do not know how to split this display.

Can anybody help? Matter urgent.

Any help will be hoghly appreciated.

Thanks in anticipation.

Sunil K. Roy

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: resultset to jsp

2000-11-12 Thread Sunil Roy

- Original Message -
From: "T A Flores" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 04, 2000 9:33 PM
Subject: Re: resultset to jsp


> Duncan,
>
> You're right if the result set object is not passed to a collection it
> will be lost when the stmt/connection is closed.  I think enough of
> this thread since it was already sufficiently covered.
>
> I have for those who have an inability to search the archive attached
> the code in question.
>
> In the servlet . . . .
>
>  rs = stmt.executeQuery( sql );
>  while (rs.next( ) ){
>
>  Vector vector = new Vector();
>  vector.add(new Integer(rs.getInt("var1")));
>  vector.add(new Integer(rs.getInt("var2")));
>  vector.add(rs.getString("var3"));
>  vector.add(rs.getString("var1"));
>  hashtable.put(rs.getString("var1"),vector);
>
>  session.setAttribute("Name the hashtable", hashtable);
>
> then in the JSP . . . .
> <%
>  Enumeration enum=null;
>  Hashtable ht = new Hashtable();
>  Vector v = new Vector();
>
>  try{
> ht =(Hashtable) session.getAttribute("HashtableName");
>  enum = ht.keys();
>  int i=0;
>  }catch(Exception e){System.out.println(e.toString());}
> %>
> <%
>while(enum.hasMoreElements()){
>v = (Vector) ht.get(enum.nextElement());
> %>
> 
> 
> <%=v.get(0).toString()%>
> <%=v.get(1).toString()%>
> <%=v.get(2).toString()%>
> 
> <%
>  }
> %>
>
>
>
> - Original Message -
> From: Duncan Rose <[EMAIL PROTECTED]>
> Date: Saturday, November 4, 2000 6:28 am
> Subject: Re: resultset to jsp
>
> > My understanding of it is that if you close the db
> > connection or the prepared statement or whatever, the
> > result set becomes invalid, so you can't reference
> > the ResultSet object after a connection closure (i.e.
> > the connection is not held open if you have a resultset
> > reference, rather the reference becomes invalid if you
> > close the connection).
> >
> > Could be wrong though.
> >
> >-Duncan
> >
> > -Original Message-
> > From: Ron Chan [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, November 04, 2000 2:02 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: resultset to jsp
> >
> >
> > Hi,
> >
> > 1. you have a bean that does the database query.
> > 2. either that bean or a utility, iterates the
> > resultset for the column values, puts them into the
> > TableModel. put the TableModel into the session.
> > 3. In the jsp file, get from the session, and loop to
> > display into .
> >
> > one reason for not using the resultset was my concern
> > that the database connection is kept open. Can someone
> > confirm whether this is true or not.
> >
> > thanks,
> >
> > ron
> >
> >
> >
> > --- T A Flores <[EMAIL PROTECTED]> wrote:
> > > If you use the or JTable how exactly are you
> > > getting the result
> > > set from the Servlet/Bean?
> > >
> > > - Original Message -
> > > From: Ron Chan <[EMAIL PROTECTED]>
> > > Date: Friday, November 3, 2000 5:02 pm
> > > Subject: Re: resultset to jsp
> > >
> > > > Hi,
> > > >
> > > > why not put the resultset into a TableModel format
> > > for
> > > > transport. Whatever display, if AppleJTable, if
> > > html, can loop
> > > > rows and columns into a
> > > >  tag. etc.
> > > >
> > > > ron
> > > >
> > > >
> > > > --- T A Flores <[EMAIL PROTECTED]> wrote:
> > > > > It is possible, however, why would you want to
> > > use
> > > > > and array why not
> > > > > use a vector of hashtables.  I posted a response
> > > to
> > > > > a similiar problem
> > > > > using servlet to jsp last month (I believe more
> > > > > toward the middle of
> > > > > October).  Why don't you search the archive and
> > > see
> > > > > if that helps you
> > > > > at all.
> > > > >
> > > > > - Original Message -
> > > > > From: Ginni <[EMAIL PROTECTED]>
> > > > > Date: Monday, January 3, 2000 3:27 pm
> > > > > Subject: resultset to jsp
> > > > >
> > > > > > hi,
> > > > > >
> > > > > > I query my database and get a resultset in my
> > > bean
> > > > > , now is it
> > > > > > possible to
> > > > > > get all the records in the resultset into an
> > > > > array. i want to
> > > > > > retrieve this
> > > > > > array in my jsp and display the values there.
> > > is
> > > > > that possible
> > > > > >
> > > > > > there are 2 things here,
> > > > > >
> > > > > > 1. i need to get the resultset into an array
> > > (in
> > > > > asp, i use
> > > > > > getrows() for
> > > > > > this purpose)
> > > > > > 2. i need to get the array into my jsp. (could
> > > i
> > > > > use getProperty
> > > > > > for this)
> > > > > >
> > > > > > thanks for ur time,
> > > > > > :-)
> > > > > > Have a great Day!
> > > > > > -Ginni
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> 
> > > > > ===
> > > > > > To unsubscribe: mailto [EMAIL PROTECTED]
> > > with
> > > > > body: "signoff
> > > > > > JSP-INTEREST".
> > > > > >

Re: resultset to jsp

2000-11-12 Thread Sunil Roy

Hai Flores,

Could You pl. tell me why we have to go thru so mch complication when we can
achieve the same goal easily with a 2-d array, both for retrieval from
resultset inside the servlet & also for displaying the result in the  JSP.

What is the advantage of using a hashtable( containing vectors as its
values),  instead of  simply using a 2-d array.

Your method is definitely, but appears to be far too complicated compared to
arrays.

Bye

Sunil Roy

- Original Message -
From: "T A Flores" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 04, 2000 9:33 PM
Subject: Re: resultset to jsp


> Duncan,
>
> You're right if the result set object is not passed to a collection it
> will be lost when the stmt/connection is closed.  I think enough of
> this thread since it was already sufficiently covered.
>
> I have for those who have an inability to search the archive attached
> the code in question.
>
> In the servlet . . . .
>
>  rs = stmt.executeQuery( sql );
>  while (rs.next( ) ){
>
>  Vector vector = new Vector();
>  vector.add(new Integer(rs.getInt("var1")));
>  vector.add(new Integer(rs.getInt("var2")));
>  vector.add(rs.getString("var3"));
>  vector.add(rs.getString("var1"));
>  hashtable.put(rs.getString("var1"),vector);
>
>  session.setAttribute("Name the hashtable", hashtable);
>
> then in the JSP . . . .
> <%
>  Enumeration enum=null;
>  Hashtable ht = new Hashtable();
>  Vector v = new Vector();
>
>  try{
> ht =(Hashtable) session.getAttribute("HashtableName");
>  enum = ht.keys();
>  int i=0;
>  }catch(Exception e){System.out.println(e.toString());}
> %>
> <%
>while(enum.hasMoreElements()){
>v = (Vector) ht.get(enum.nextElement());
> %>
> 
> 
> <%=v.get(0).toString()%>
> <%=v.get(1).toString()%>
> <%=v.get(2).toString()%>
> 
> <%
>  }
> %>
>
>
>
> - Original Message -
> From: Duncan Rose <[EMAIL PROTECTED]>
> Date: Saturday, November 4, 2000 6:28 am
> Subject: Re: resultset to jsp
>
> > My understanding of it is that if you close the db
> > connection or the prepared statement or whatever, the
> > result set becomes invalid, so you can't reference
> > the ResultSet object after a connection closure (i.e.
> > the connection is not held open if you have a resultset
> > reference, rather the reference becomes invalid if you
> > close the connection).
> >
> > Could be wrong though.
> >
> >-Duncan
> >
> > -Original Message-
> > From: Ron Chan [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, November 04, 2000 2:02 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: resultset to jsp
> >
> >
> > Hi,
> >
> > 1. you have a bean that does the database query.
> > 2. either that bean or a utility, iterates the
> > resultset for the column values, puts them into the
> > TableModel. put the TableModel into the session.
> > 3. In the jsp file, get from the session, and loop to
> > display into .
> >
> > one reason for not using the resultset was my concern
> > that the database connection is kept open. Can someone
> > confirm whether this is true or not.
> >
> > thanks,
> >
> > ron
> >
> >
> >
> > --- T A Flores <[EMAIL PROTECTED]> wrote:
> > > If you use the or JTable how exactly are you
> > > getting the result
> > > set from the Servlet/Bean?
> > >
> > > - Original Message -
> > > From: Ron Chan <[EMAIL PROTECTED]>
> > > Date: Friday, November 3, 2000 5:02 pm
> > > Subject: Re: resultset to jsp
> > >
> > > > Hi,
> > > >
> > > > why not put the resultset into a TableModel format
> > > for
> > > > transport. Whatever display, if AppleJTable, if
> > > html, can loop
> > > > rows and columns into a
> > > >  tag. etc.
> > > >
> > > > ron
> > > >
> > > >
> > > > --- T A Flores <[EMAIL PROTECTED]> wrote:
> > > > > It is possible, however, why would you want to
> > > use
> > > > > and array why not
> > > > > use a vector of hashtables.  I posted a response
> > > to
> > > > > a similiar problem
> > > > > using servlet to jsp last month (I believe more
> > > > > toward the middle of
> > > > > October).  Why don't you search the archive and
> > > see
> > > > > if that helps you
> > > > > at all.
> > > > >
> > > > > - Original Message -
> > > > > From: Ginni <[EMAIL PROTECTED]>
> > > > > Date: Monday, January 3, 2000 3:27 pm
> > > > > Subject: resultset to jsp
> > > > >
> > > > > > hi,
> > > > > >
> > > > > > I query my database and get a resultset in my
> > > bean
> > > > > , now is it
> > > > > > possible to
> > > > > > get all the records in the resultset into an
> > > > > array. i want to
> > > > > > retrieve this
> > > > > > array in my jsp and display the values there.
> > > is
> > > > > that possible
> > > > > >
> > > > > > there are 2 things here,
> > > > > >
> > > > > > 1. i need to get the resultset into an array
> > > (in
> > > > > asp, i use
> > > > > > getrows() for
> > > > > > this purpose)
> > > > > > 2. i need to get the a

Re: Best JSP Tool

2000-11-12 Thread Alan KF LAU

Really? Would you please point me to the link where I could download the
Enterprise version? I can only find the community version so far.

Thank you very much!

Alan.
>
> All the three versions are free now, there is a code to download versions other than 
>the community version. The code is on the web. I found FOJ is very straight forwad 
>and easy to use with some difficulty in debugging. Jbuilder 3.5 is useless in develop 
>servlet/jsp. Jbuilder 4.0 is out, but its professional version does not support 
>servlet/jsp debugging. Its Ent version is expensive and is design for team use.
>
> Some one said earlier FOJ is more than enough. That is very true. I think FOJ is the 
>best FREE software tool I ever used. However, It is hard to find solution if you do 
>have a question. I hope SUN have a mailing list or knowlege base (they may already 
>have one but is is extremly small) for FOJ.
>
> JJ FU
> SUN Certified Java Programmer
>
> >>> Sreenivasa Kumar Majji <[EMAIL PROTECTED]> 11/06/00 11:03PM >>>
> The Community Edition is free, however Internet Edition will be released
> some time in Dec.
>
> Sreenivasa Kumar Majji
> - Original Message -
> From: "Alan KF LAU" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 07, 2000 03:39
> Subject: Re: Best JSP Tool
>
>
> | Yes, the community version of Forte is free, but if you are working on
> | it for product delivery you'd better check with the license. Check with
> | local sales in doubt.
> |
> | Just one more thing if any sales executives of Sun could here: Why don't
> | you sell Forte in Hong Kong? We can't use free version due to policies.
> |
> | > I'll second that. Even though we have a generous budget for tools, my
> team
> | > standardized on Forte which is free.
> | > It has its problems but is is much better than good enough. The tech
> support
> | > is surprisingly good and the interface is excellent. Of course, it's
> also
> | > open source...
> | > My $.02
> | >
> | > Patrice
> | >
> | > -Original Message-
> | > From: OpinionOne [mailto:[EMAIL PROTECTED]]
> | > Sent: Monday, November 06, 2000 7:08 AM
> | > To: [EMAIL PROTECTED]
> | > Subject: Re: Best JSP Tool
> | >
> | >
> | > Forte is a pretty good IDE... You can get it at java.sun.com
> | >
> | > - Larry
> | >
> | > - Original Message -
> | > From: "Ryan Richards" <[EMAIL PROTECTED]>
> | > To: <[EMAIL PROTECTED]>
> | > Sent: Monday, November 06, 2000 9:48 AM
> | > Subject: Re: Best JSP Tool
> | >
> | >
> | > > VI is the best I know of.
> | > >
> | > > Ryan Richards
> | > > Sr. Software Developer
> | > > Atkins-Benham
> | > > http://www.atkinsbenham.com
> | > >
> | > >
> | > >
> | > >
> | > >
> | > > -Original Message-
> | > > From:Khurram Sardar [EMAIL PROTECTED]
> | > > Sent:Mon, 6 Nov 2000 12:00:18 +0500
> | > > To:  [EMAIL PROTECTED]
> | > > Subject: Best JSP Tool
> | > >
> | > >
> | > > Hello Everyone,
> | > >  Does any one know that which one is the best JSP tool other than
> | > notepad.
> | > > AS per my knowledge Tools like JBuilder are really good at it.
> | > >  Please share your knowledge of JSP tools with me also if anyone
> know
> | > about
> | > > some web site giving benchmarks on comparisons of JSP tools.
> | > >  I think it will be helful to all of us and solve many of tool
> | > dependent
> | > > problems.
> | > > Waiting for your interest
> | > > Khurram
> | > > Junior System Analyst Programmer
> | > >
> _
> | > >
> | > > Disclaimer:
> | > >
> | > > "This  message is confidential. It may also be privileged or otherwise
> | > protected
> | > > by  legal  rules. If you have received it by mistake please let us
> know by
> | > reply
> | > > and then delete it from your system."
> | > >
> | > >
> | >
> ===
> | > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> | > JSP-INTEREST".
> | > > Some relevant FAQs on JSP/Servlets can be found at:
> | > >
> | > >  http://java.sun.com/products/jsp/faq.html
> | > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> | > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> | > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> | > >
> | > >
> | > >
> | > >
> | >
> ___
> | > > Visit http://www.visto.com/info, your free web-based communications
> | > center.
> | > > Visto.com. Life on the Dot.
> | > >
> | > >
> | >
> ===
> | > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> | > JSP-INTEREST".
> | > > Some relevant FAQs on JSP/Servlets can be found at:
> | > >
> | > >  http://java.sun.com/products/jsp/faq.html
> | > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> | > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> | > >  http://www.j

Re: jsp include question

2000-11-12 Thread Yang cun dong

Chin Sung Kit£¬ÄúºÃ
Ò»¸öÊǶ¯Ì¬£¬Ò»¸öÊǾ²Ì¬

ÔÚ 00-11-12 18:54:00 ÄúдµÀ£º
>hi all,
>
>what's the difference between  and <%@include
>file="relative URL" %>?
>
>thank you.
>
>ced
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

ÖÂ
Àñ£¡

ycd
[EMAIL PROTECTED]

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP with Oracle ?

2000-11-12 Thread Venu Gopal

I did that connection part. You need to have
classes12_01.zip files in the CLASSPATH to connect to
Oracle from JSP / Servlets. JSP i'm sure as of now.
Coz i connected Oracle from JSP. Servlets not yet
done. But will be the same. What else you need?

Venu

--- "Kunal H. Parikh" <[EMAIL PROTECTED]>
wrote:
> Hi !
>
> Can someone who has connected from JSP to an Oracle
> server using the Oracle
> thin Driver, mail me with the details towards doing
> so, please ...
>
> I have managed to write a java program to connect to
> an Oracle DB using the
> Oracle thin driver, but don't know how to put it in
> JSP code or servlet. I'm
> new to JSP and servlets.
>
> Any help will b highly appreciated.
>
> Thanx in Advance,
>
> Kunal H. Parikh (KayPee)
> ICQ #: 4883151
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jsp include question

2000-11-12 Thread rizwan ahmed

The Answer is that, simply
the first u wrote runs at runtime & second one at
complile time

--- Chin Sung Kit <[EMAIL PROTECTED]> wrote:
> hi all,
>
> what's the difference between  and
> <%@include
> file="relative URL" %>?
>
> thank you.
>
> ced
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP connects to DB

2000-11-12 Thread rizwan ahmed

u should put ":" instead of "." as seperator ...

i lined errors with ""
1...use " " to a complete the statement

u should write

2...Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

replace this and have a go ...
  good luck 



--- Martin Smith <[EMAIL PROTECTED]> wrote:
> Shouldn't he put "." and not ":" as separators in
> that Class.forName string?
>
> mfs
>
>
> T L wrote:
>
> > It seemes the compiler did not find your JDBC
> driver. You are using
> > JDBC:ODBC, then
> use"Class.forName("jdbc:odbc:JdbcOdbcDriver")". It
> is in the
> > java.sql package.
> > good luck
> >
> > >From: JEANCHG <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages
> specification and
> > > reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: JSP connects to DB
> > >Date: Tue, 7 Nov 2000 16:05:29 +0800
> > >
> > >I am new to this field, so I have some silly
> questions here.
> > >
> > >Can I call directly the method in JDBC classes in
> my jsp file to connect to
> > >my database, or it is necessary to write a
> connection bean to connect the
> > >DB.
> > >
> > >My JSP source code:
> > >
> > ><%@ page language="java" %>
> > ><%@ page import="java.lang.*" %>
> > ><%@ page import="java.sql.*" %>
---> > ><%@ page contentType="text/html;
charset=Big5" %>
---> > ><%Class.forName("Driver");%>
> > ><%String url="jdbc:odbc:localhost";%>
> > ><%Connection
>
con=DriverManager.getConnection(url,"1234567890","");%>
> > ><%Statement stmt =con.createStatement();%>
> > ><%String test="select * from tbl_eDN";%>
> > ><%ResultSet rs=stmt.executeQuery(test);%>
> > >
> > >But the error message on the web page is:
> > >
> > >Error: 500
> > >Location: /examples/jsp/jean/DBtest.jsp
> > >Internal Servlet Error:
> > >
> > >javax.servlet.ServletException: Unable to load
> class Driver
> > > at
> >
>
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> > >l.java:386)
> > > at
> >
>
>jsp.jean._0002fjsp_0002fjean_0002fDBtest_0002ejspDBtest_jsp_0._jspService(_0
> >
>
>002fjsp_0002fjean_0002fDBtest_0002ejspDBtest_jsp_0.java:111)
> > > at
> >
>
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> > > at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> >
>
>org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> > >va:174)
> > > at
> >
>
>org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
> > > at
> >
>
>org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> > > at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> >
>
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> > > at
> >
>
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> > > at
> >
>
>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > >(Ajp12ConnectionHandler.java:156)
> > > at
> >
>
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
> > >)
> > > at java.lang.Thread.run(Thread.java:484)
> > >
> > >Root cause:
> > >java.lang.ClassNotFoundException: Unable to load
> class Driver
> > > at
> >
>
>org.apache.jasper.runtime.JspLoader.findClass(JspLoader.java:184)
> > > at
> >
>
>org.apache.jasper.runtime.JspLoader.loadClass(JspLoader.java:136)
> > > at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> > > at
>
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> > > at java.lang.Class.forName0(Native
> Method)
> > > at
> java.lang.Class.forName(Class.java:120)
> > > at
> >
>
>jsp.jean._0002fjsp_0002fjean_0002fDBtest_0002ejspDBtest_jsp_0._jspService(_0
> >
>
>002fjsp_0002fjean_0002fDBtest_0002ejspDBtest_jsp_0.java:72)
> > > at
> >
>
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> > > at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> >
>
>org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> > >va:174)
> > > at
> >
>
>org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
> > > at
> >
>
>org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> > > at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> >
>
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> > > at
> >
>
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> > > at
> >
>
>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > >(Ajp12ConnectionHandler.java:156)
> > > at
> >
>
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
> > >)
> > > at java.lang.Thread.run(Thread.java:484)
> > >
> > >Thanks
> > >
> >
>
>==

Session Size ?

2000-11-12 Thread Venu Gopal

Hi,

Is there any restriction on the size of the session?
Like cookie have restriction that only 20 can be added
per domain and only 4K can be the size. So is there
any thing for session too? Or we can just keep adding?

Sorry for the ignorance.

Venu

__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP with Oracle ?

2000-11-12 Thread Saravanan

Tou can also connect using ODBC... Confiure your odbc to connect to an
Oracle Service

Luv,
Saravanan
- Original Message -
From: Venu Gopal <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 13, 2000 9:21 AM
Subject: Re: JSP with Oracle ?


> I did that connection part. You need to have
> classes12_01.zip files in the CLASSPATH to connect to
> Oracle from JSP / Servlets. JSP i'm sure as of now.
> Coz i connected Oracle from JSP. Servlets not yet
> done. But will be the same. What else you need?
>
> Venu
>
> --- "Kunal H. Parikh" <[EMAIL PROTECTED]>
> wrote:
> > Hi !
> >
> > Can someone who has connected from JSP to an Oracle
> > server using the Oracle
> > thin Driver, mail me with the details towards doing
> > so, please ...
> >
> > I have managed to write a java program to connect to
> > an Oracle DB using the
> > Oracle thin driver, but don't know how to put it in
> > JSP code or servlet. I'm
> > new to JSP and servlets.
> >
> > Any help will b highly appreciated.
> >
> > Thanx in Advance,
> >
> > Kunal H. Parikh (KayPee)
> > ICQ #: 4883151
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
> __
> Do You Yahoo!?
> Yahoo! Calendar - Get organized for the holidays!
> http://calendar.yahoo.com/
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Session Size ?

2000-11-12 Thread Craig R. McClanahan

Venu Gopal wrote:

> Hi,
>
> Is there any restriction on the size of the session?
> Like cookie have restriction that only 20 can be added
> per domain and only 4K can be the size. So is there
> any thing for session too? Or we can just keep adding?
>
> Sorry for the ignorance.
>

A session's attributes are stored in the JVM's memory space, in a Hashtable or
something equivalent.  Therefore, the only restriction is how much memory space you
make available in your server's JVM for all of the concurrently active sessions.

No matter how many such variables you have stored, the session identifier requires
only a single cookie.

> Venu
>

Craig McClanahan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Jbuilder 4.0 (Full Version) Download Page

2000-11-12 Thread ayin

Jbuilder 4.0 (Full Version) Download Page

http://go2.163.com/~thegreenapple/downjb4.htm

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Oracle Conn - soln

2000-11-12 Thread Balaji R

Hi,
this is the relevant parts of the example for ORACLE connection,
put classes12.zip in the classpath, and use this code.
Config.java

public class Config
{
public static String DbIp= "172.16.1.4";
public static String DbPort  = "1521";
public static String DbSid   = "v8i815";
public static String DbUsername  = "cool";
public static String DbPassword  = "cool";
}

parts of db.java
 
Config conf = new Config();
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
con =
DriverManager.getConnection("jdbc:oracle:thin:@"+conf.DbIp+":"+conf.DbPort+"
:"+c
onf.DbSid,conf.DbUsername,conf.DbPassword);
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM
category_mast");
out.println("");
while(rs.next())
{
out.println(rs.getString(1));
}

hope this was helpful
-bala

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets