Re: Tutorial on JSP

2000-05-17 Thread Mihail Belanov

The big tutorial "Servlet Essentials":
www.novocode.com/doc/servlet-essentials/
Other tutorials you can find at www.servlets.com

- Original Message -
From: Ashesh Kumar Singh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 7:45 AM
Subject: Tutorial on JSP


> Hi All,
> Can anyone help me by suggesting me the name of some site where I can get
> Tutorials on JSP. Actually there is no book available in the market on JSP
> here.
>
> Expecting some help on the matter soon,
>
> Ashesh.
>
>
===
> 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: and does not work. Please help.

2000-05-17 Thread Dorin Hogea

Try :





Best regards,
Dorin.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Luong, Dat
Sent: Tuesday, May 16, 2000 10:15 PM
To: [EMAIL PROTECTED]
Subject: Re:  and  does not work. Please help.


Hi Kevin,

Thanks for your response. I need to pass the parameter into
the IncludedPage that's why I use the way I posted in the question
unless you have the other way to pass the parameter into the IncludedPage.
The question is posted again here for reference.


*includingPage.jsp
*





*includedPage.jsp
*
parentPage:<%=request.getParameter("parentPage") %> // create syntax
error

parentPage:<% request.getParameter("parentPage") %> // syntax ok but
doesnot work

thanks

-Original Message-
From: Kevin Cowan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 16, 2000 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re:  and  does not work. Please help.


all your jsp include needs is a / and not the end tag, like so:




This code will include your page.


-Original Message-
From: Luong, Dat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 16, 2000 12:54 PM
To: [EMAIL PROTECTED]
Subject:  and  does not work. Please help.


Hi

I'm using JSP version 1.0 on VisualAge for Java and I can not get the
following code working. Any hint will be highly appreciated.


*includingPage.jsp
*





*includedPage.jsp
*
parentPage:<%=request.getParameter("parentPage") %> // create syntax
error

parentPage:<% request.getParameter("parentPage") %> // syntax ok but
doesnot work

thanks

===
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

===
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: CHECK-BOX

2000-05-17 Thread Geert Van Damme

I don't like the way checkboxes work either.
In most cases I put the real value (0 or 1) in a hidden field and use the
onclick event of the checkbox to change the value of the hidden field. See
what I mean?

Geert 'Darling' Van Damme



> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Pillai, Arumugam
> Sent: dinsdag 16 mei 2000 22:55
> To: [EMAIL PROTECTED]
> Subject: CHECK-BOX
>
>
> Hi there,
>
> When i call
>
> request.getParameterValues("chkbox")
> and if no chkbox is selected, its throwing a
> java.lang.NullPointerException
> error.How should i handle this.
> Thanks in advance.
>
> ==
> =
> 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



Error in starting TOMCAT

2000-05-17 Thread Gogia Nitin

While starting TOMCAT i am getting error on
HttpConnectionHandler class ? How can i come out of this problem. Please
Help.

Nitin

===
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



Internationalized iPlanet

2000-05-17 Thread Antonio Jimenez

hi all,

i am working with Oracle7 database configured in spanish
with JSWDK i can insert and get special characters ... no problem
with iPlanet Web Server 4.1 i can get, but insert is wrong
it insert "¿" character

any idea (any environment variable?)
thanks

regards
--
Antonio Jimenez

===
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: Problem loading a Java class

2000-05-17 Thread Joseph Okomba

I have put the class in Tomcat's CLASSPATH. But I am not getting a different
type of error now (listed below). I don't get this error when calling the
class from command prompt. Is there something I am missing out?

Error

===
Internal Servlet Error:
javax.servlet.ServletException:
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:386)
at
_0002findex_0002ejspindex_jsp_92._jspService(_0002findex_0002ejspindex_jsp_9
2.java:358)
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,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
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,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)
Root cause:
java.lang.NullPointerException:
at
_0002findex_0002ejspindex_jsp_92._jspService(_0002findex_0002ejspindex_jsp_9
2.java:103)
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,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
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,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)


End error



> -Original Message-
> From: Donald Vandenbeld [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 16, 2000 9:58 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Problem loading a Java class
>
> Make sure that the CheckUser.class file is in Tomcat's CLASSPATH.
>
> Joseph Okomba wrote:
>
> > Help please. I am new to JSP and Tomcat.
> >
> > I have written a Java class which compiles and runs properly from the
> > command prompt, but gives errors when I try to load it in a JSP file.
> This
> > is how I am loading the class:
> >
> > <%@ page session="true" %>
> > <%@ page language="java" import="java.io.*" %>
> > 
> > <%
> > boolean permit = false;
> >  String strUserid = request.getParameter("userid");
> >  String strPasswd = request.getParameter("passwd");
> >
> > if ((strUserid.equals("")) || (strPasswd.equals(""))){
> > permit = false;
> > } else {
> >
> > permit = checkUser.authenticate(strUserid, strPasswd);
> >
> > } //end-else
> >
> > if(!permit){  // the user has permission
> > %>
> > 
> > <%
> > } //end if
> > else {
> > %>
> >
> > And the following is the error I am getting:
> >
> > Internal Servlet Error:
> > org.apache.jasper.JasperException: Unable to compile class for
> >
> JSPE:\jakarta-tomcat\work\localhost_8080%2Fmembers\_0002findex_0002ejspind
> ex
> > _jsp_92.java:74: Class CheckUser not found.
> > CheckUser checkUser = null;
> > ^
> >
> E:\jakarta-tomcat\work\localhost_8080%2Fmembers\_0002findex_0002ejspindex_
> js
> > p_92.java:77: Class CheckUser not found.
> > checkUser= (CheckUser)
> > ^
> >
> E:\jakarta-tomcat\work\localhost_8080%2Fmembers\_0002findex_0002ejspindex_
> js
> > p_92.java:82: Class CheckUser not found.
> > checkUser = (CheckUser)
> > Beans.instantiate(getClassLoader(), "CheckUser");
> >  ^
> > 3 errors
> >
> > I will appreciate any assistance.
> >
> >
> ==
> =
> > 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
> > 

rbponnam@quantumgsdc.co.in

2000-05-17 Thread raveendra

Raveendra Ponnam
ph: 3110911-3 ext:21(off)
"[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: Tutorial on JSP

2000-05-17 Thread Ashesh Kumar Singh

Thanks Balaji !!

Ashesh

-Original Message-
From:   Rangan Balaji [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, May 17, 2000 10:37 AM
To: [EMAIL PROTECTED]
Subject:Re: Tutorial on JSP

Hi Ashesh,

Check out the links given at the bottom of the mail , they give u a
good idea on JSP.
However Some important links are:-

Java Server Pages (JSP)

http://java.sun.com/products/jsp/
http://java.sun.com/products/jsp/docs.html
http://www.sunworld.com/sunworldonline/swol-08-1998/swol-08-asp.html
http://www.javaworld.com/javaworld/jw-03-2000/jw-03-ssj-jsp.html
http://www.gamelan.com/journal/techworkshop/092199_jsp1.html
http://www.gamelan.com/journal/techworkshop/092899_jsp2.html
http://www7.software.ibm.com/vad.nsf/data/document2389?OpenDocument
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
http://www.browsebooks.com/Fields/
http://java.sun.com/products/jsp/jsp-asp.html
http://java.sun.com/products/jsp/technical.html
http://java.sun.com/products/jsp/faq.html
http://www.serverpages.com/Java_Server_Pages/
http://www.jsptutorial.com/
http://www.servletcentral.com/1998-12/jsp.dchtml
http://csclub2.stthomas.edu:8080/mfcatlin/tutorial/files/read.html
http://csclub2.stthomas.edu:8080/mfcatlin/tutorial/jdbc/index.html
http://java.sun.com/products/jsp/html/jspbasics.fm3.html
http://www.interpasnet.com/JSS/
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/
http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-forms.html

http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-jspxml.html
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
http://www.taglib.com/
http://jakarta.apache.org/taglibs/
http://jsptags.com/

http://www.devx.com/upload/free/features/javapro/2000/04apr00/te0004/te0004-
1.asp


Balaji.B.Rangan


 Message History



From: [EMAIL PROTECTED] on 05/17/2000 03:45 AM GMT

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Tutorial on JSP



Hi All,
Can anyone help me by suggesting me the name of some site where I
can get
Tutorials on JSP. Actually there is no book available in the market
on JSP
here.

Expecting some help on the matter soon,

Ashesh.


===
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: JSPs and XML.

2000-05-17 Thread Robert Nicholson

I would like to know if a JSP app emits XML what component of existing
application servers can translate that to whatever presentation language is
prefered? I want to understand how XSLT fits into a JSP app's architecture.

- Original Message -
From: "Shawn McKisson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 16, 2000 9:15 PM
Subject: Re: JSPs and XML.


> Just return XML tags instead of only HTML tags.
> There is nothing special that needs to be done.
>
> If you are going to just turn around and reprocess the XML into HTML using
> something like XSL, then you are basically needlessly supporting two
> presentation layers. You should reconsider your app architecture.
>
> --shawn
>
> - Original Message -
> From: Bilal Ali Nawaz <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 16, 2000 1:36 AM
> Subject: JSPs and XML.
>
>
> > hi all,
> > can anyone please direct me to some useful resources on the web
concerning
> how
> > to output XML through a JSP? basically what i want to study is that can
> XML be
> > 'thrown' by a jsp just like HTML? and if so, how??
> >
> > thanking all of you in advance,
> > bilal.
> >
_
> >
> > 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
> >
>
>
===
> 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



Errorpage directive and Tomcat

2000-05-17 Thread Mugdha Kulkarni

Hi all,
I have a problem with my JSPs when I am using Tomcat with Apache.
I get following error while accessing my JSPs. These JSPs work fine with
Apache-Jserv.

org.apache.jasper.JasperException: Page directive: can't have multiple
occurrences of errorPage

Actually the page doesn't have errorpage directive in it and still it is
giving such an error, can anybody please help me ?

Thanks,
Mugdha



Get free email and a permanent address at http://www.netaddress.com/?N=1

===
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: Errorpage directive and Tomcat

2000-05-17 Thread Robert Nicholson

Any includes in this page?

- Original Message -
From: "Mugdha Kulkarni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 3:13 AM
Subject: Errorpage directive and Tomcat


> Hi all,
> I have a problem with my JSPs when I am using Tomcat with Apache.
> I get following error while accessing my JSPs. These JSPs work fine with
> Apache-Jserv.
>
> org.apache.jasper.JasperException: Page directive: can't have multiple
> occurrences of errorPage
>
> Actually the page doesn't have errorpage directive in it and still it is
> giving such an error, can anybody please help me ?
>
> Thanks,
> Mugdha
>
>
> 
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>
===
> 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: Errorpage directive and Tomcat

2000-05-17 Thread Abdul Sattar

Hi


I am new to jsp. please send me some material  that help me .
Sattar




- Original Message -
From: Mugdha Kulkarni <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 3:13 PM
Subject: Errorpage directive and Tomcat


>Hi all,
>I have a problem with my JSPs when I am using Tomcat with Apache.
>I get following error while accessing my JSPs. These JSPs work fine with
>Apache-Jserv.
>
>org.apache.jasper.JasperException: Page directive: can't have multiple
>occurrences of errorPage
>
>Actually the page doesn't have errorpage directive in it and still it is
>giving such an error, can anybody please help me ?
>
>Thanks,
>Mugdha
>
>
>
>Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>===
>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: [Re: Errorpage directive and Tomcat]

2000-05-17 Thread Mugdha Kulkarni

In fact I am getting the same problem in each of my JSPs. Even if it has
Errorpage directive or it doesn't have or it really does have multiple
errorpages directives. I have checked for all the includes so that there are
not multiple occurences of errorpage directive because of them. Still the
problem persists..

Mugdha

Robert Nicholson <[EMAIL PROTECTED]> wrote:
Any includes in this page?

- Original Message -
From: "Mugdha Kulkarni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 3:13 AM
Subject: Errorpage directive and Tomcat


> Hi all,
> I have a problem with my JSPs when I am using Tomcat with Apache.
> I get following error while accessing my JSPs. These JSPs work fine with
> Apache-Jserv.
>
> org.apache.jasper.JasperException: Page directive: can't have multiple
> occurrences of errorPage
>
> Actually the page doesn't have errorpage directive in it and still it is
> giving such an error, can anybody please help me ?
>
> Thanks,
> Mugdha
>
>
> 
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>
===
> 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



Get free email and a permanent address at http://www.netaddress.com/?N=1

===
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: Using EJB or JavaBeans ( MCV architecture )

2000-05-17 Thread Kent Symanzik

I would not use EJBs unless your application warrants it.  If your team is
green and you are on a very tight schedule I would not try to use EJBs.
They add a whole new level of complexity and if you do not design your EJB
implementation correctly you will have performance issues to deal with.

The advantages of using EJB's are scalability since your EJB's can run on
servers other than your webserver and can service multiple webservers.  You
also can have more than one EJB server that support multi-server
transactions.

Disadvantages are added complexity, all calls to EJB's are remote even if
your EJB server is on the same machine, even calls from one EJB to another
is remote.  For significant applications you will have poor performance
unless you control the way your EJB's are accessed.  There are a number of
design patterns for doing this.  One common fallacy is to just make all your
domain objects EJB's.  This is what we all want to do but it results in a
unreliable (since everything is remote) and poor performing system.

It may sound like I don't like EJB's but that is not true.  I think they are
a great idea but I'm just warning that there are many complex issues
involved in implementing a successful application using EJBs.

Kent

- Original Message -
From: Tom Gordon <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 16, 2000 2:37 PM
Subject: Re: Using EJB or JavaBeans ( MCV architecture )


> Hi, I am also pondering whether to use EJB in conjunction with JSP and
> servlets.  Did you ever get an answer to this question?
>
> Thanks,
> Tom
>
>
> "Bragg, James" wrote:
> >
> > What is the advantage of using EJB over JavaBeans (as the Model) in an
web
> > based application in which JSP will be used for Presentation(View), and
> > Serlvets as the Controller.
> >
> > If I wasn't using Servlets as the Controller, I could seen the need for
EJBs
> > over JavaBeans for Security, Transaction Management and Session
control...
> >
> > Problem is that I have a very small, very green(new to these
technologies)
> > develpment team trying to learn and develop this application in a very
short
> > timeframe.  So the issue is do we include EJB and increase risk of
missing
> > target date, or settle for JavaBeans and reduce the capabilies of the
web
> > app.
> >
> > What is Advantage of using EJB over JavaBeans when used as the Model?
> >
> > thanks..
> >
> > James
> >
> >
===
> > 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: [Re: Errorpage directive and Tomcat]-- Solved the problem

2000-05-17 Thread Mugdha Kulkarni

Ya the problem was really with includes. Thanks a lot !
Mugdha

Robert Nicholson <[EMAIL PROTECTED]> wrote:
Any includes in this page?

- Original Message -
From: "Mugdha Kulkarni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 3:13 AM
Subject: Errorpage directive and Tomcat


> Hi all,
> I have a problem with my JSPs when I am using Tomcat with Apache.
> I get following error while accessing my JSPs. These JSPs work fine with
> Apache-Jserv.
>
> org.apache.jasper.JasperException: Page directive: can't have multiple
> occurrences of errorPage
>
> Actually the page doesn't have errorpage directive in it and still it is
> giving such an error, can anybody please help me ?
>
> Thanks,
> Mugdha
>
>
> 
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>
===
> 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



Get free email and a permanent address at http://www.netaddress.com/?N=1

===
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: How can I arrange a JSP document to print on paper ?

2000-05-17 Thread Christian Billen

You want to use style sheet for this, for example you can do page break
using Some Content

Take a look at this link:
http://www.webreview.com/pub/2000/01/07/style/nov99.html

Christian

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of HASAN BASRI AKIRMAK
> Sent: Tuesday, May 16, 2000 3:32 PM
> To: [EMAIL PROTECTED]
> Subject: How can I arrange a JSP document to print on paper ?
>
>
> Hello,
> I know, this may be a little weird question but, in our IS application, we
> are generating database reports using JSP + beans (outputs are in
> HTML). And
> the customer  likes us to make some basic arrangements on output, like
> printing every people's output on a seperate A4 paper, or
> providing the sum
> of a colon at the end of the page.
>
> My question is is there any trick that we can use to arrange a report's
> certain rows to print in a paper (Any page break hints maybe ? ) ?
>
> Thanx for any help in advance ...
>
> --
> HBA
> [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

===
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: JSPs and XML.

2000-05-17 Thread Shawn McKisson

Why would you want to take data, convert it into another form of data and
*then* convert it into HTML?

This is like pouring yourself a cold beer by first pouring it from the
bottle into one mug, then  pouring that mug into another mug.

If a you have a JSP page which does emit XML, you could chain the output of
that page through another servlet which performed the XML/XSL conversion. So
the XML/XSL servlet would use the JSP page as a data source.

There were some really good articles about 7-12 months ago on XML-INTEREST
about this.
If I can find them I will mail them to you.

--shawn

- Original Message -
From: Robert Nicholson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 5:10 AM
Subject: Re: JSPs and XML.


> I would like to know if a JSP app emits XML what component of existing
> application servers can translate that to whatever presentation language
is
> prefered? I want to understand how XSLT fits into a JSP app's
architecture.
>
> - Original Message -
> From: "Shawn McKisson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 16, 2000 9:15 PM
> Subject: Re: JSPs and XML.
>
>
> > Just return XML tags instead of only HTML tags.
> > There is nothing special that needs to be done.
> >
> > If you are going to just turn around and reprocess the XML into HTML
using
> > something like XSL, then you are basically needlessly supporting two
> > presentation layers. You should reconsider your app architecture.
> >
> > --shawn
> >
> > - Original Message -
> > From: Bilal Ali Nawaz <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, May 16, 2000 1:36 AM
> > Subject: JSPs and XML.
> >
> >
> > > hi all,
> > > can anyone please direct me to some useful resources on the web
> concerning
> > how
> > > to output XML through a JSP? basically what i want to study is that
can
> > XML be
> > > 'thrown' by a jsp just like HTML? and if so, how??
> > >
> > > thanking all of you in advance,
> > > bilal.
> > >
> _
> > >
> > > 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
> > >
> >
> >
>
===
> > 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



A GOOD DEVELOPMENT ENVIRONMENT

2000-05-17 Thread Lamport, Mark

Hi,

I'm looking for a good IDE Dev tool to develop JSP and EJB Applications, so
far I've seen JBuilder and Visual Age.  Can anyone recommend any others or
the ones above?

Regards,


Mark Lamport
mailto:[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



JavaBeans Compile?

2000-05-17 Thread Pete Walsh

Ok I am starting to use JavaBeans with JSP pages.  I've never made a 'bean'
before and I was wondering how to do it.  When I try to recompile the code
to a bean I dont get errors (using normal javac 'filename') but when the jsp
pages comes up it has errors.  The code isnt messed up because I am using
the code for an example that works.  Is compiling a bean different than
compiling normal Java code?

Also do I need Java Enterprise Edition SDK 1.2.1?  I have the Standard
Edition SDK 1.3.  (When I tried to install the J2EE it didnt have javac in
it and I was all confused)  Please explain if this is the reason.  I just
started programming in java and don't know the basics.  Thanks.

Thanks

Pete

===
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



Returning information from Servlet

2000-05-17 Thread Karthik Pattabhiraman

Hi,
   I am karthik from Bangalore,India. I have a small problem with
JSP/Servlet. I am having a onload call in my JSP in which I am calling a
servlet. The servlet talks to the database and gets a ResultSet. I now have
to pass the resultSet back to the calling JSP. Is there any way to do it?

Eagerly waiting for a reply. Any sample code will be extremely helpfull

Thanks
karthik

===
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



Clarification

2000-05-17 Thread Sujoy Kumar Bose

Hi,

Can somebody simplify the terms used in the followimg mail.I quote


>From :Nestel, Frank [[EMAIL PROTECTED]]

To: [EMAIL PROTECTED]

"Thank you again. I've only read the servlet 2.2 specs yet to know
that a war file is a special kind of jar file. So I guess I know
how to contruct a war file.

But new questions arise:
 * How do I configure the servlet container to fetch files from an
   war archive instead of an directory (a sample web.xml would be nice)
 * Are there limitations in existing 2.2 engines (Resin is one of our
   current favorites) concerning war-Archives?
 * How is it possible to remove all JAVA/JSP source code from an
   application before shipment.

Thank you again.
"


Rgds,


Sujoy

===
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: Clarification

2000-05-17 Thread Peter Choe

from my understanding, WAR files are self extracting. once you put the war file in
the appropriate directory and it is called by the client it will extract the files
and create the appropriate directory.

Sujoy Kumar Bose wrote:

> Hi,
>
> Can somebody simplify the terms used in the followimg mail.I quote
>
> >From :Nestel, Frank [[EMAIL PROTECTED]]
>
> To: [EMAIL PROTECTED]
>
> "Thank you again. I've only read the servlet 2.2 specs yet to know
> that a war file is a special kind of jar file. So I guess I know
> how to contruct a war file.
>
> But new questions arise:
>  * How do I configure the servlet container to fetch files from an
>war archive instead of an directory (a sample web.xml would be nice)
>  * Are there limitations in existing 2.2 engines (Resin is one of our
>current favorites) concerning war-Archives?
>  * How is it possible to remove all JAVA/JSP source code from an
>application before shipment.
>
> Thank you again.
> "
>
> Rgds,
>
> Sujoy
>
> ===
> 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



Problems accessing bean from JSP??

2000-05-17 Thread Vasu Suram

Hi!
I am using JSWDK-1.0.1. How can access a bean which is in the directory
JSWDK-1.0.1\eserv\web-inf\servlets\mypackage from a JSP  which is in the
directory JSWDK-1.0.1\eserv\JSP\
Could anyone help me with this problem?

Thanks in advance
Vasu Suram

===
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



Reg Kit for Servlets

2000-05-17 Thread Aravind Kumar LNS

Hi,
   I understand that for coding servelets i need to have the JSDK.But i am
unable to locate the site where i can download it.I have tried to locate in
the sun related sites but was of no use.
Can somebody give me the exact URL of a site that offers a downloadable kit
for coding servelets.

Regards
Aravind

===
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: Reg Kit for Servlets

2000-05-17 Thread AVATAR SINGH

http://java.sun.com/j2ee/j2sdkee/

Aravind Kumar LNS wrote:

> Hi,
>I understand that for coding servelets i need to have the JSDK.But i am
> unable to locate the site where i can download it.I have tried to locate in
> the sun related sites but was of no use.
> Can somebody give me the exact URL of a site that offers a downloadable kit
> for coding servelets.
>
> Regards
> Aravind
>
> ===
> 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



Offtopic: Quick Java programming question...

2000-05-17 Thread Scott Costa

I'm trying to write a method which returns an array of Hashtables, and in
the method, I am assembling the data as a vector, and trying to user
"toArray()" to return the data as an array.
Something like this:

private Hashtable[] getStuff() {
  Vector stuff = new Vector();
  Hashtable ht = new Hashtable();
  ht.put("A", "Stuff A");
  ht.put("B", "Stuff B");
  stuff.add(0, ht);
  return (Hashtable[]) stuff.toArray();
}

This compiles great, but when I execute the line:
Hashtable[] test = getStuff();

I get a java.lang.ClassCastException.  The only way I have been able to get
this to work, is to have the function return "Object[]", and explicitly cast
the returned object everytime I reference it, but I would like to make the
function simply return an array of Hashtable objects.

Any ideas on why the code above doesn't work, or how I can get it to work?

Thanks,
Scott Costa
[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: Reg Kit for Servlets

2000-05-17 Thread Vasu Suram

Arvind, try this page
http://java.sun.com/products/jdk/1.2/index.html

Regards
Vasu Suram
PM/400 Developer
Rochester IBM
Tie Line: 553-1177
email: [EMAIL PROTECTED]


Aravind Kumar LNS <[EMAIL PROTECTED]> on 05/17/2000 11:51:30
AM

Please respond to A mailing list about Java Server Pages specification and
  reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Reg Kit for Servlets




Hi,
   I understand that for coding servelets i need to have the JSDK.But i am
unable to locate the site where i can download it.I have tried to locate in
the sun related sites but was of no use.
Can somebody give me the exact URL of a site that offers a downloadable kit
for coding servelets.

Regards
Aravind

===
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



[ANN] Java servlets office suite

2000-05-17 Thread Dmitri Namiot

Coldjava implemented version 1.46 of Servlets Office Suite
(Java SOS).

Java SOS is a collection of "out of the box" Java servlets
ready for building Web pages. SOS plays the same role as a
set of CGI scripts and can be used to add dynamic capabilities
to Web sites. It's free for any non-commercial use and available
for download from our site:
http://coldjava.hypermart.net


ServletShop: java server side programming
http://coldjava.hypermart.net


Get your own FREE, personal Netscape WebMail account today at 
http://webmail.netscape.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: Reg Kit for Servlets

2000-05-17 Thread Veda Vasireddy

You can download jsdk from
http://java.sun.com/products/java-server/servlets/

Veda.

Aravind Kumar LNS wrote:
>
> Hi,
>I understand that for coding servelets i need to have the JSDK.But i am
> unable to locate the site where i can download it.I have tried to locate in
> the sun related sites but was of no use.
> Can somebody give me the exact URL of a site that offers a downloadable kit
> for coding servelets.
>
> Regards
> Aravind
>
> ===
> 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: Offtopic: Quick Java programming question...

2000-05-17 Thread Bip Thelin

> private Hashtable[] getStuff() {
>   Vector stuff = new Vector();
>   Hashtable ht = new Hashtable();
>   ht.put("A", "Stuff A");
>   ht.put("B", "Stuff B");
>   stuff.add(0, ht);
>   return (Hashtable[]) stuff.toArray();
> }

Try exchange "return (Hashtable[]) stuff.toArray()" with:
"return (Hashtable[]) stuff.toArray(new Hashtable[0])" It should do the trick.

Cheers, Bip

===
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: Problems accessing bean from JSP??

2000-05-17 Thread Apollo Mcowiti

Normally the jswdk-1.0.1 config expects the beans to be in
eserv\web-inf\jsp\beans\mypackage



-Original Message-
From: Vasu Suram [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 11:05 AM
To: [EMAIL PROTECTED]
Subject: Problems accessing bean from JSP??


Hi!
I am using JSWDK-1.0.1. How can access a bean which is in the directory
JSWDK-1.0.1\eserv\web-inf\servlets\mypackage from a JSP  which is in the
directory JSWDK-1.0.1\eserv\JSP\
Could anyone help me with this problem?

Thanks in advance
Vasu Suram

===
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: Problems accessing bean from JSP??

2000-05-17 Thread Vasu Suram

That I understand, but how can I make my servlets which are in the
directory JSWDK-1.0.1\eserv\web-inf\servlets\ access the bean in
JSWDK-1.0.1\eserv\web-inf\jsp\beans\ ?

Regards
Vasu Suram

Apollo Mcowiti <[EMAIL PROTECTED]> on 05/17/2000 12:58:54 PM

Please respond to A mailing list about Java Server Pages specification and
  reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Problems accessing bean from JSP??




Normally the jswdk-1.0.1 config expects the beans to be in
eserv\web-inf\jsp\beans\mypackage



-Original Message-
From: Vasu Suram [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 11:05 AM
To: [EMAIL PROTECTED]
Subject: Problems accessing bean from JSP??


Hi!
I am using JSWDK-1.0.1. How can access a bean which is in the directory
JSWDK-1.0.1\eserv\web-inf\servlets\mypackage from a JSP  which is in the
directory JSWDK-1.0.1\eserv\JSP\
Could anyone help me with this problem?

Thanks in advance
Vasu Suram

===
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: Offtopic: Quick Java programming question...

2000-05-17 Thread Robert Nicholson

What does this do?

return (HashTable[])stuff.toArray(new HashTable[0]);

- Original Message -
From: "Scott Costa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 10:15 AM
Subject: Offtopic: Quick Java programming question...


> I'm trying to write a method which returns an array of Hashtables, and in
> the method, I am assembling the data as a vector, and trying to user
> "toArray()" to return the data as an array.
> Something like this:
>
> private Hashtable[] getStuff() {
>   Vector stuff = new Vector();
>   Hashtable ht = new Hashtable();
>   ht.put("A", "Stuff A");
>   ht.put("B", "Stuff B");
>   stuff.add(0, ht);
>   return (Hashtable[]) stuff.toArray();
> }
>
> This compiles great, but when I execute the line:
> Hashtable[] test = getStuff();
>
> I get a java.lang.ClassCastException.  The only way I have been able to
get
> this to work, is to have the function return "Object[]", and explicitly
cast
> the returned object everytime I reference it, but I would like to make the
> function simply return an array of Hashtable objects.
>
> Any ideas on why the code above doesn't work, or how I can get it to work?
>
> Thanks,
> Scott Costa
> [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
>

===
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: Offtopic: Quick Java programming question...

2000-05-17 Thread Zaina Ajakie

it casts the objects into hashtable array ojects...


-Original Message-
From: Robert Nicholson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Offtopic: Quick Java programming question...


What does this do?

return (HashTable[])stuff.toArray(new HashTable[0]);

- Original Message -
From: "Scott Costa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 10:15 AM
Subject: Offtopic: Quick Java programming question...


> I'm trying to write a method which returns an array of Hashtables, and in
> the method, I am assembling the data as a vector, and trying to user
> "toArray()" to return the data as an array.
> Something like this:
>
> private Hashtable[] getStuff() {
>   Vector stuff = new Vector();
>   Hashtable ht = new Hashtable();
>   ht.put("A", "Stuff A");
>   ht.put("B", "Stuff B");
>   stuff.add(0, ht);
>   return (Hashtable[]) stuff.toArray();
> }
>
> This compiles great, but when I execute the line:
> Hashtable[] test = getStuff();
>
> I get a java.lang.ClassCastException.  The only way I have been able to
get
> this to work, is to have the function return "Object[]", and explicitly
cast
> the returned object everytime I reference it, but I would like to make the
> function simply return an array of Hashtable objects.
>
> Any ideas on why the code above doesn't work, or how I can get it to work?
>
> Thanks,
> Scott Costa
> [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
>

===
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: Problems accessing bean from JSP??

2000-05-17 Thread Apollo Mcowiti

In that case, you need to instantiate the bean:
Say the bean bean0 is in package myPackage, then within your servlet you do
this:
jsp.beans.myPackage.bean0 b= new jsp.beans.myPackage.bean0();
Hope this helps


-Original Message-
From: Vasu Suram [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 1:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Problems accessing bean from JSP??


That I understand, but how can I make my servlets which are in the
directory JSWDK-1.0.1\eserv\web-inf\servlets\ access the bean in
JSWDK-1.0.1\eserv\web-inf\jsp\beans\ ?

Regards
Vasu Suram

Apollo Mcowiti <[EMAIL PROTECTED]> on 05/17/2000 12:58:54 PM

Please respond to A mailing list about Java Server Pages specification and
  reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Problems accessing bean from JSP??




Normally the jswdk-1.0.1 config expects the beans to be in
eserv\web-inf\jsp\beans\mypackage



-Original Message-
From: Vasu Suram [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 11:05 AM
To: [EMAIL PROTECTED]
Subject: Problems accessing bean from JSP??


Hi!
I am using JSWDK-1.0.1. How can access a bean which is in the directory
JSWDK-1.0.1\eserv\web-inf\servlets\mypackage from a JSP  which is in the
directory JSWDK-1.0.1\eserv\JSP\
Could anyone help me with this problem?

Thanks in advance
Vasu Suram

===
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

===
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



Java Proviler Websphere AS and/or VAJ Websphere test environment

2000-05-17 Thread Antoniuk, Jacek

Can anyone recommend a good profiler for java servlets for Websphere AS to
check java servlets for memory leaks and performance bottlenecks...
Is possible to use Visual Age Websphere Test Environment for testing java
servlet performance?

Thanks!

Jacek

[EMAIL PROTECTED]
W: 813 282-8828
 1 800 280-8828 x1072
H: 727 669-8193

===
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



datbase access using jsp.jdbc

2000-05-17 Thread Raghu Srinivasan

Hi,
Does anyone have some code ( a .jsp and .java file using jdbc ) using which
one can select ( from say EMP ) and display the results on a web page. I am
running into NullPointerExceptions with the Vector datatype. If anyone has
already done this then can you send me some working code?? I will wade
through it myself.
Thanks,
Raghu

===
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



Web Browser detection in JSP

2000-05-17 Thread P.J. Tenn

Hello,

I am surprised this wasn't already have been posted and answered, but I
searched the archives of this mailing list and could not find any info on
this ...

At any rate, is there a way to detect whether someone is using Netscape or
IE using JSP?  I know this can be done easily in JavaScript using code along
the lines of:

var browser = navigator.appName;
var Nav = (browser == "Netscape");
var IE = (browser == "Microsoft Internet Explorer);

However, I need to set boolean variables within the scriptlet <% ... %> tags
based on whether Netscape or IE is being used.
Thanks in advance!!!

P.J.

===
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



Cannot create bean of class - Error

2000-05-17 Thread Pedro Meza

I am getting this error:  Cannot create bean of class checkbox.Client

I do not know why   The following is my code for the class.  I am trying to
read records from a file readDB()
and using jsp be able to get the values for the record such as getcuid()
and go to the next file record nextRecord().

package checkbox;

import java.io.*;
import java.util.StringTokenizer;


public class Client {
 public String cuid;
 public String first_name;
 public String last_name;
 public String work_phone;
 public String email;
 public String work_address;
 public String home_address;
 public String RC;
 public String RCBS;
 public Client next;

 //Constructor
 public Client(String[] Value, Client new_client)
 {
  cuid = Value[0];
  first_name = Value[1];
  last_name = Value[2];
  work_phone = Value[3];
  email = Value[4];
  work_address = Value[5];
  home_address = Value[6];
  RC = Value[7];
  RCBS = Value[8];
  next = new_client;
 }

 public void readDB() {

  String filePath = "C:\\demo\\clients.txt";

  // Initialize list head
  Client head = null;

  // Read File
try {
  BufferedReader in = new BufferedReader(new FileReader(filePath));
  String line;
  String[] Value = new String[8];
  int x=0;

try {
  // Read each record
  while ((line = in.readLine())!= null) {
   // Break record into columns
StringTokenizer st = new StringTokenizer (line,"\t");
   while (st.hasMoreTokens()) {
Value[x]=st.nextToken();
x++;
   }
   // Create Client Object
   head = new Client(Value, head);
  }
in.close();
  }
catch (IOException e) {
}
  }
  catch (IOException e) {
  }
 }

 public String getcuid() {
  return cuid;
 }

 public String getfirst_name() {
  return first_name;
 }

 public String getlast_name() {
  return last_name;
 }
 public String getwork_phone() {
  return work_phone;
 }
 public String getemail() {
  return email;
 }
 public String gethome_address() {
  return home_address;
 }

 public String getRC() {
  return RC;
 }
 public String getRCBS() {
  return RCBS;
 }

 public int nextRecord() {
  int EOF = 0;
  int NEXT = 1;
  next = next.next;
  if (next != null ) {
   return NEXT;
  }
  else {
   return EOF;
  }
 }

}

Thanks,

Pedro
(303) 624-1545

===
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: Offtopic: Quick Java programming question...

2000-05-17 Thread Gocin.com

You can only cast an Object[] to a Hashtable[] if the array was originally
made at a Hashtable[] (Or something to that effect, I read it in the JDC
forums)

To do what you want to do, add code to the following effect at the end of
your method:

Hastable[] hashArray = new Hashtable[stuff.size()];
stuff.copyInto(hashArray);
return hashArray;


Good luck,
Jason B.

>- Original Message -
>From: "Scott Costa" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, May 17, 2000 10:15 AM
>Subject: Offtopic: Quick Java programming question...
>
>
>> I'm trying to write a method which returns an array of Hashtables, and in
>> the method, I am assembling the data as a vector, and trying to user
>> "toArray()" to return the data as an array.
>> Something like this:
>>
>> private Hashtable[] getStuff() {
>>   Vector stuff = new Vector();
>>   Hashtable ht = new Hashtable();
>>   ht.put("A", "Stuff A");
>>   ht.put("B", "Stuff B");
>>   stuff.add(0, ht);
>>   return (Hashtable[]) stuff.toArray();
>> }
>>
>> This compiles great, but when I execute the line:
>> Hashtable[] test = getStuff();
>>
>> I get a java.lang.ClassCastException.  The only way I have been able to
>get
>> this to work, is to have the function return "Object[]", and explicitly
>cast
>> the returned object everytime I reference it, but I would like to make
the
>> function simply return an array of Hashtable objects.
>>
>> Any ideas on why the code above doesn't work, or how I can get it to
work?
>>
>> Thanks,
>> Scott Costa
>> [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: cookies and redirects

2000-05-17 Thread Fred Durham

I had this problem also. The cookie path and domain seemed to have been set
in such a way that the cookie was not "seen" buy the redirected-to page.

I added setPath and setDomain like this:

Cookie c = new Cookie("rememberme", "checked");
c.setMaxAge(24*365*60*60);
c.setPath("/");
c.setDomain(".cafepress.com");
response.addCookie(c);


and the problem was solved


-fred



> I am having the same problem as below.  I set a cookie on login, then
> redirect to the appropriate page without even writing a single line to the
> output stream and the cookie does not get set.  Is there any way to get
> around this?
>
> Travis
>
> On Mon, 17 Apr 2000 08:10:21 -0400, Jerry Denman <[EMAIL PROTECTED]>
wrote:
>
> >Without seeing your code I can only make a guess - all cookie operations
> >typically must take place within the  tags.  Most often the
> >cookie will not set if done in any other portion of the HTML code.
> >
> >Hope that helps
> >
> >Jerry M Denman
> >Management Information Consulting
> >
> >-Original Message-
> >From: Mr. Srinivas Rao [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, April 17, 2000 7:54 AM
> >To: [EMAIL PROTECTED]
> >Subject: JSP query with cookies setting
> >
> >
> >hi,
> >I am facing very strange problem that is I am using jsp with tomcat web
> >server.
> >
> >I am trying to add certain cookies on certain conditions.  I am able to
do
> >it as per my wish if I just let the page go on its flow..but if i am
trying
> >to redirect the page after adding the cookie, it wont add the cookie
> >althought redirecting the page properly and doing all other things in the
> >required manner.
> >
> >Please try to find the solution and mail me..
> >
> >Regards
> >
> >ES Rao
>
> Travis Reeder
> Director, Internet Technologies
> Xabre.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: Web Browser detection in JSP

2000-05-17 Thread Donald Vandenbeld

I am using something like this in my controller servlet:

boolean nav = false;
boolean ie = false;
String browser = request.getHeader("User-Agent");
if (browser.indexOf ("Mozilla") && (!browser.indexOf("compatible"))) nav = true;
if (browser.indexOf ("MSIE")) ie = true;

Donald

"P.J. Tenn" wrote:

> Hello,
>
> I am surprised this wasn't already have been posted and answered, but I
> searched the archives of this mailing list and could not find any info on
> this ...
>
> At any rate, is there a way to detect whether someone is using Netscape or
> IE using JSP?  I know this can be done easily in JavaScript using code along
> the lines of:
>
> var browser = navigator.appName;
> var Nav = (browser == "Netscape");
> var IE = (browser == "Microsoft Internet Explorer);
>
> However, I need to set boolean variables within the scriptlet <% ... %> tags
> based on whether Netscape or IE is being used.
> Thanks in advance!!!
>
> P.J.
>
> ===
> 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: Problems accessing bean from JSP??

2000-05-17 Thread Vasu Suram

Thanks Apollo..Anyways I found a way to put beans in a diferrent directory,
other than JSWDK-1.0.1/eserv/JSP/beans. You can enter the classpath in the
file startserver.bat. Add the intended directory in set beanJars= with the
other directories. That worked!!

Regards
Vasu Suram
PM/400 Developer
Rochester IBM
Tie Line: 553-1177
email: [EMAIL PROTECTED]


Apollo Mcowiti <[EMAIL PROTECTED]> on 05/17/2000 01:40:38 PM

Please respond to A mailing list about Java Server Pages specification and
  reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Problems accessing bean from JSP??




In that case, you need to instantiate the bean:
Say the bean bean0 is in package myPackage, then within your servlet you do
this:
jsp.beans.myPackage.bean0 b= new jsp.beans.myPackage.bean0();
Hope this helps


-Original Message-
From: Vasu Suram [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 1:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Problems accessing bean from JSP??


That I understand, but how can I make my servlets which are in the
directory JSWDK-1.0.1\eserv\web-inf\servlets\ access the bean in
JSWDK-1.0.1\eserv\web-inf\jsp\beans\ ?

Regards
Vasu Suram

Apollo Mcowiti <[EMAIL PROTECTED]> on 05/17/2000 12:58:54 PM

Please respond to A mailing list about Java Server Pages specification and
  reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Problems accessing bean from JSP??




Normally the jswdk-1.0.1 config expects the beans to be in
eserv\web-inf\jsp\beans\mypackage



-Original Message-
From: Vasu Suram [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 11:05 AM
To: [EMAIL PROTECTED]
Subject: Problems accessing bean from JSP??


Hi!
I am using JSWDK-1.0.1. How can access a bean which is in the directory
JSWDK-1.0.1\eserv\web-inf\servlets\mypackage from a JSP  which is in the
directory JSWDK-1.0.1\eserv\JSP\
Could anyone help me with this problem?

Thanks in advance
Vasu Suram

===
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

===
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: datbase access using jsp.jdbc

2000-05-17 Thread Bip Thelin

Here you'll find the information you need, including samples:
http://java.sun.com/j2se/1.3/docs/guide/jdbc/index.html

..bip

Raghu Srinivasan wrote:
>
> Hi,
> Does anyone have some code ( a .jsp and .java file using jdbc ) using which
> one can select ( from say EMP ) and display the results on a web page. I am
> running into NullPointerExceptions with the Vector datatype. If anyone has
> already done this then can you send me some working code?? I will wade
> through it myself.
> Thanks,
> Raghu

===
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: Web Browser detection in JSP

2000-05-17 Thread Shrisha Radhakrishna

<%String browser = request.getHeader("User-Agent");
System.out.println(browser);
String type=null;
if(browser.indexOf("MSIE") >= 0)
  type = "IE";
else
  type = "other";
 System.out.println(type);
%>


- Original Message -
From: "P.J. Tenn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 12:26 PM
Subject: Web Browser detection in JSP


> Hello,
>
> I am surprised this wasn't already have been posted and answered, but I
> searched the archives of this mailing list and could not find any info on
> this ...
>
> At any rate, is there a way to detect whether someone is using Netscape or
> IE using JSP?  I know this can be done easily in JavaScript using code
along
> the lines of:
>
> var browser = navigator.appName;
> var Nav = (browser == "Netscape");
> var IE = (browser == "Microsoft Internet Explorer);
>
> However, I need to set boolean variables within the scriptlet <% ... %>
tags
> based on whether Netscape or IE is being used.
> Thanks in advance!!!
>
> P.J.
>
>
===
> 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!?
Talk to your friends online with Yahoo! Messenger.
http://im.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: How to generate unique filename each time run the jsp

2000-05-17 Thread Sudhir A.

Hi,
Here is the one of the possible ways. Consider taking all of these,
(All numbers)

(Hour+minute+second+day+month+year)

Looks like a Long string, but you can use this string to create your unique
file name. Since the code is going to be running on the Server, the filename
generated will always be unique. Also you can get all of them from single
object (calendar). So it should not be time consuming too.

Sudhir
[EMAIL PROTECTED]
http://www.javacommerce.com


- Original Message -
From: Sachin S. Khanna <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 13, 2000 2:03 AM
Subject: Re: How to generate unique filename each time run the jsp


> Well one possible thing to do could  be the following :
>
> private static int x = 0;
> public synchronized static int getId(){
> return ++x;
> }
>
> And add the int value returned by the getId() method with the name of the
> user.
> Just a suggestion :-).
> Have a nice day.
> With regards,
> Sachin S. Khanna.
> www.emailanorder.com
> - Original Message -
> From: Tiana Zhang <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 12, 2000 11:59 PM
> Subject: How to generate unique filename each time run the jsp
>
>
> > Hello, I need suggestion for the following task:
> >
> > I have a jsp(jsp1) page which is gonna to invoke some other program, the
> result
> > is that jsp1 is gonna to create an Html file. This file will be loaded
by
> > another jsp(jsp2) file. My problem is how can I make the name of this
html
> file
> > unique (i can specify the name anyway I wanted). The reason I want to do
> this is
> > to avoid two users run the jsp1 file at the same time and write to the
> same html
> > file. After jsp2 loaded the corresponding html file, this file will be
> deleted.
> >
> >
> > Any suggestion?
> >
> > Thanks a bunch.
> >
> > Tiana
> >
> >
>
===
> > 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

===
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: Web Browser detection in JSP

2000-05-17 Thread Nestor Florez

Does that really work?  I thought that the IE browser had in there something
like
"Mozilla compatible".

Nestor :-)

-Original Message-
From: Donald Vandenbeld [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 12:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Web Browser detection in JSP


I am using something like this in my controller servlet:

boolean nav = false;
boolean ie = false;
String browser = request.getHeader("User-Agent");
if (browser.indexOf ("Mozilla") && (!browser.indexOf("compatible"))) nav =
true;
if (browser.indexOf ("MSIE")) ie = true;

Donald

"P.J. Tenn" wrote:

> Hello,
>
> I am surprised this wasn't already have been posted and answered, but I
> searched the archives of this mailing list and could not find any info on
> this ...
>
> At any rate, is there a way to detect whether someone is using Netscape or
> IE using JSP?  I know this can be done easily in JavaScript using code
along
> the lines of:
>
> var browser = navigator.appName;
> var Nav = (browser == "Netscape");
> var IE = (browser == "Microsoft Internet Explorer);
>
> However, I need to set boolean variables within the scriptlet <% ... %>
tags
> based on whether Netscape or IE is being used.
> Thanks in advance!!!
>
> P.J.
>
>
===
> 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: Offtopic: Quick Java programming question...

2000-05-17 Thread Osvaldo Pinali Doederlein

From: "Bip Thelin" <[EMAIL PROTECTED]>
> Try exchange "return (Hashtable[]) stuff.toArray()" with:
> "return (Hashtable[]) stuff.toArray(new Hashtable[0])" It should do the
trick.

This is more efficient:

return (Hashtable[]) stuff.toArray(new Hashtable[stuff.size()]);

because the data will be put in the same array you pass to toArray().  In
the previous code, the data can't fit in the zero-element parameter, so
toArray() creates a new array, using the parameter only to know the type.
This creation uses reflection, so it's even slower than a normal new.

And the following is even faster (by a hair):

Hashtable ret = new Hashtable[stuff.size()];
stuff.toArray(new Hashtable[ret]);
return ret;

because you avoid the evil typecheck.

===
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: Web Browser detection in JSP

2000-05-17 Thread Apollo Mcowiti

You may also do this within the jsp itself
apollo

-Original Message-
From: Donald Vandenbeld [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 2:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Web Browser detection in JSP


I am using something like this in my controller servlet:

boolean nav = false;
boolean ie = false;
String browser = request.getHeader("User-Agent");
if (browser.indexOf ("Mozilla") && (!browser.indexOf("compatible"))) nav =
true;
if (browser.indexOf ("MSIE")) ie = true;

Donald

"P.J. Tenn" wrote:

> Hello,
>
> I am surprised this wasn't already have been posted and answered, but I
> searched the archives of this mailing list and could not find any info on
> this ...
>
> At any rate, is there a way to detect whether someone is using Netscape or
> IE using JSP?  I know this can be done easily in JavaScript using code
along
> the lines of:
>
> var browser = navigator.appName;
> var Nav = (browser == "Netscape");
> var IE = (browser == "Microsoft Internet Explorer);
>
> However, I need to set boolean variables within the scriptlet <% ... %>
tags
> based on whether Netscape or IE is being used.
> Thanks in advance!!!
>
> P.J.
>
>
===
> 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: Web Browser detection in JSP

2000-05-17 Thread Donald Vandenbeld

I check for MSIE instead of 'compatible' because I thought browsers like Opera
might also have compatible in the string.  Here are the strings I get returned on
two systems (NT and Win 95)

I get this returned for Netscape:
Mozilla/4.73 [en] (WinNT; U)
Mozilla/4.08 [en] (Win95; I;Nav)

and this for Internet Explorer:
Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)

I would be interested in learning what some of the less common browsers are
returning...

Donald

This is the JSP I used:

Browser Test


<%= request.getHeader("User-Agent") %>




Nestor Florez wrote:

> Does that really work?  I thought that the IE browser had in there something
> like
> "Mozilla compatible".
>
> Nestor :-)
>
> -Original Message-
> From: Donald Vandenbeld [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 17, 2000 12:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Web Browser detection in JSP
>
> I am using something like this in my controller servlet:
>
> boolean nav = false;
> boolean ie = false;
> String browser = request.getHeader("User-Agent");
> if (browser.indexOf ("Mozilla") && (!browser.indexOf("compatible"))) nav =
> true;
> if (browser.indexOf ("MSIE")) ie = true;
>
> Donald
>
> "P.J. Tenn" wrote:
>
> > Hello,
> >
> > I am surprised this wasn't already have been posted and answered, but I
> > searched the archives of this mailing list and could not find any info on
> > this ...
> >
> > At any rate, is there a way to detect whether someone is using Netscape or
> > IE using JSP?  I know this can be done easily in JavaScript using code
> along
> > the lines of:
> >
> > var browser = navigator.appName;
> > var Nav = (browser == "Netscape");
> > var IE = (browser == "Microsoft Internet Explorer);
> >
> > However, I need to set boolean variables within the scriptlet <% ... %>
> tags
> > based on whether Netscape or IE is being used.
> > Thanks in advance!!!
> >
> > P.J.
> >
> >
> ===
> > 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

===
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



Mainting sessions across boxes with JRun

2000-05-17 Thread David Eaves

All,

I have two Sun boxes running Jrun sitting behind a load-balanacer. As
requests for servlets and JSPs come in they are split between the two Sun
boxes depeneding on load. This seems to handle our current load just fine.
However, if I want to use sessions to pass information between JSPs if the
successive requests are routed through the load-balancer to the other box, I
lose my session. How can I maintain a session in JRun across machines and
JRun instances?

Thanks,
Dave Eaves

===
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: How can i read a file in UNIX / AIX from an servlet

2000-05-17 Thread Alexander Bonilla

Hello, I need suggestion for the following task:

My problem is how can I read a file in UNIX / AIX from an servlet.

Here a code.

java.io.File file = new java.io.File("/usr/bin", "file.txt");
java.io.BufferedReader in = new java.io.BufferedReader(new
java.io.FileReader(file));
String s = in.readLine();
while (s != null) {
System.out.println(s);
}


Any suggestion?

Thanks a all.

Alex.



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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



session objects with arrays

2000-05-17 Thread Ornelas, Gabriel (CAP, CORP)

Hi everyone,

Thanks for your time,
I'm need to store some information into a a session object does
anyone know if I can store this information
as an bidemensional array, such as a matrix ?

Thnaks... Ornelas.

===
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: Offtopic: Quick Java programming question...

2000-05-17 Thread Scott Costa

Actually, you can, and it does. :)
Thanks, for all the advice guys.  I knew I was missing something simple, and
this solved my problem! :)

-Original Message-
From: Danny Trieu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 2:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Offtopic: Quick Java programming question...


no can't do that 

toArray() return Object[] and you can't cast like that

Robert Nicholson wrote:

> What does this do?
>
> return (HashTable[])stuff.toArray(new HashTable[0]);
>
> - Original Message -
> From: "Scott Costa" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 17, 2000 10:15 AM
> Subject: Offtopic: Quick Java programming question...
>
> > I'm trying to write a method which returns an array of Hashtables, and
in
> > the method, I am assembling the data as a vector, and trying to user
> > "toArray()" to return the data as an array.
> > Something like this:
> >
> > private Hashtable[] getStuff() {
> >   Vector stuff = new Vector();
> >   Hashtable ht = new Hashtable();
> >   ht.put("A", "Stuff A");
> >   ht.put("B", "Stuff B");
> >   stuff.add(0, ht);
> >   return (Hashtable[]) stuff.toArray();
> > }
> >
> > This compiles great, but when I execute the line:
> > Hashtable[] test = getStuff();
> >
> > I get a java.lang.ClassCastException.  The only way I have been able to
> get
> > this to work, is to have the function return "Object[]", and explicitly
> cast
> > the returned object everytime I reference it, but I would like to make
the
> > function simply return an array of Hashtable objects.
> >
> > Any ideas on why the code above doesn't work, or how I can get it to
work?
> >
> > Thanks,
> > Scott Costa
> > [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
> >
>
>
===
> 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: Offtopic: Quick Java programming question...

2000-05-17 Thread Danny Trieu

no can't do that 

toArray() return Object[] and you can't cast like that

Robert Nicholson wrote:

> What does this do?
>
> return (HashTable[])stuff.toArray(new HashTable[0]);
>
> - Original Message -
> From: "Scott Costa" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 17, 2000 10:15 AM
> Subject: Offtopic: Quick Java programming question...
>
> > I'm trying to write a method which returns an array of Hashtables, and in
> > the method, I am assembling the data as a vector, and trying to user
> > "toArray()" to return the data as an array.
> > Something like this:
> >
> > private Hashtable[] getStuff() {
> >   Vector stuff = new Vector();
> >   Hashtable ht = new Hashtable();
> >   ht.put("A", "Stuff A");
> >   ht.put("B", "Stuff B");
> >   stuff.add(0, ht);
> >   return (Hashtable[]) stuff.toArray();
> > }
> >
> > This compiles great, but when I execute the line:
> > Hashtable[] test = getStuff();
> >
> > I get a java.lang.ClassCastException.  The only way I have been able to
> get
> > this to work, is to have the function return "Object[]", and explicitly
> cast
> > the returned object everytime I reference it, but I would like to make the
> > function simply return an array of Hashtable objects.
> >
> > Any ideas on why the code above doesn't work, or how I can get it to work?
> >
> > Thanks,
> > Scott Costa
> > [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
> >
>
> ===
> 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 objects with arrays

2000-05-17 Thread Melli, Patrick

Yes,

// create the JSPTableModel
JSPTableModel model = new JSPTableModel();

// create a new TableModel as the source
TableModel tableModel = createTableModel();
model.setModel(tableModel);

// add the JSPTableModel into the session so that it
// can be found by the JSP page
HttpSession session = req.getSession();
session.putValue("model", model);


where
public class JSPTableModel {
// the data model
protected TableModel model;


-Original Message-
From: Ornelas, Gabriel (CAP, CORP)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 5:05 PM
To: [EMAIL PROTECTED]
Subject: session objects with arrays


Hi everyone,

Thanks for your time,
I'm need to store some information into a a session object does
anyone know if I can store this information
as an bidemensional array, such as a matrix ?

Thnaks... Ornelas.

===
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



Netscape table problem

2000-05-17 Thread Howard Lee

Hi guys,

The web site I'm working on looks fine on IE, but it looks strange on
Netscape. I'm using one  with specific width, and another  with
width percentage.

e.g. <%@ include file="some.jsp" %><%@
include file="someother.jsp" %>

On IE, it keeps the width 140, but on Netscape it does to a certain point
when I'm dragging the window and then it gets all whacked when it gets too
big. What am I doing wrong? Thank you very much!

howard

===
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: Offtopic: Quick Java programming question...

2000-05-17 Thread Osvaldo Pinali Doederlein

Oops.  I actually wanted to type this:
--
And the following is even faster (by a hair):

Hashtable ret = new Hashtable[stuff.size()];
stuff.toArray(ret);
return ret;

because you avoid the evil typecheck.

===
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/JAVA IDE

2000-05-17 Thread Frank Apap

Does anyone know a good jsp and java IDE for linux?  The only one I know of
that does what I want is Borland's JBuilder 3.5.  But only the enterprise
edition supports jsp and I don't have the money for it.  Any suggestions
would be great thanks.

- Frank

===
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 objects with arrays

2000-05-17 Thread Javier Cazares

.The HttpSession class has all the methods you need to store/retieve
objects across requests.

.You can store objects by:


HttpSession session = req.getSession(true);

session.putValue("myObject",Object);
...
Object obj = (Object)session.getValue("myObject");

.This class has other useful methods, like getValueNames() and
getValue(name[])

.Hope helps,

.javier.

   Javier Cazares
GEPS Intranet Web Team, Softtek
1 River Road, Bldg. 40-213
Schenectady, NY 12345
P: (518) 385-1521
Email: [EMAIL PROTECTED]


> -Original Message-
> From: Ornelas, Gabriel (CAP, CORP)
> Sent: Wednesday, May 17, 2000 5:05 PM
> To:   [EMAIL PROTECTED]
> Subject:  session objects with arrays
>
> Hi everyone,
>
> Thanks for your time,
> I'm need to store some information into a a session object does
> anyone know if I can store this information
> as an bidemensional array, such as a matrix ?
>
> Thnaks... Ornelas.
>
> ==
> =
> 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: Netscape table problem

2000-05-17 Thread Mohan Radhakrishnan

Hi,

This is a mailing list about Java Server Pages specification and reference.

bye,
Mohan
-Original Message-
From: Howard Lee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 3:35 PM
To: [EMAIL PROTECTED]
Subject: Netscape table problem


Hi guys,

The web site I'm working on looks fine on IE, but it looks strange on
Netscape. I'm using one  with specific width, and another  with
width percentage.

e.g. <%@ include file="some.jsp" %><%@
include file="someother.jsp" %>

On IE, it keeps the width 140, but on Netscape it does to a certain point
when I'm dragging the window and then it gets all whacked when it gets too
big. What am I doing wrong? Thank you very much!

howard

===
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: Offtopic: Quick Java programming question...

2000-05-17 Thread Suresh Potiny

Actually, there are two versions of toArray available
in the Vector class (jdk1.2 onwards) where the first
one with no argument returns Object[] (which cannot
be casted Scott found out) and the second one takes
an array argument and returns an array with the type of
the argument passed in. If the passed-in array is smaller
than the size of the vector, a new array will be created
and returned, otherwise the original will be returned.

S
- Original Message -
From: Danny Trieu <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 2:21 PM
Subject: Re: Offtopic: Quick Java programming question...


> no can't do that 
>
> toArray() return Object[] and you can't cast like that
>
> Robert Nicholson wrote:
>
> > What does this do?
> >
> > return (HashTable[])stuff.toArray(new HashTable[0]);
> >
> > - Original Message -
> > From: "Scott Costa" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 17, 2000 10:15 AM
> > Subject: Offtopic: Quick Java programming question...
> >
> > > I'm trying to write a method which returns an array of Hashtables, and
in
> > > the method, I am assembling the data as a vector, and trying to user
> > > "toArray()" to return the data as an array.
> > > Something like this:
> > >
> > > private Hashtable[] getStuff() {
> > >   Vector stuff = new Vector();
> > >   Hashtable ht = new Hashtable();
> > >   ht.put("A", "Stuff A");
> > >   ht.put("B", "Stuff B");
> > >   stuff.add(0, ht);
> > >   return (Hashtable[]) stuff.toArray();
> > > }
> > >
> > > This compiles great, but when I execute the line:
> > > Hashtable[] test = getStuff();
> > >
> > > I get a java.lang.ClassCastException.  The only way I have been able
to
> > get
> > > this to work, is to have the function return "Object[]", and
explicitly
> > cast
> > > the returned object everytime I reference it, but I would like to make
the
> > > function simply return an array of Hashtable objects.
> > >
> > > Any ideas on why the code above doesn't work, or how I can get it to
work?
> > >
> > > Thanks,
> > > Scott Costa
> > > [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
> > >
> >
> >
===
> > 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: A GOOD DEVELOPMENT ENVIRONMENT

2000-05-17 Thread Russell, Richard (DEH)

emacs.

rr

> -Original Message-
> From: Lamport, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 17, 2000 11:59 PM
> To: [EMAIL PROTECTED]
> Subject: A GOOD DEVELOPMENT ENVIRONMENT
>
>
> Hi,
>
> I'm looking for a good IDE Dev tool to develop JSP and EJB
> Applications, so
> far I've seen JBuilder and Visual Age.  Can anyone recommend
> any others or
> the ones above?
>
> Regards,
>
>
> Mark Lamport
> mailto:[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

===
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/JAVA IDE

2000-05-17 Thread Kevin Duffey

Forte for Java is free, and supports JSP, HTML, Java, etc. Not all that easy
to use, and I don't like the multiple tabs it puts on the Windows Start
menu, but it may be good for Linux.

===
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: Cannot create bean of class - Error

2000-05-17 Thread Hans Bergsten

Pedro Meza wrote:
>
> I am getting this error:  Cannot create bean of class checkbox.Client
>
> I do not know why   The following is my code for the class.  I am trying to
> read records from a file readDB()
> and using jsp be able to get the values for the record such as getcuid()
> and go to the next file record nextRecord().
>
> package checkbox;
>
> import java.io.*;
> import java.util.StringTokenizer;
>
> public class Client {
> [...]
>  //Constructor
>  public Client(String[] Value, Client new_client)
> [...]

A bean must have a no-args constructor. That's the constructor the bean
container (in this case the JSP container) will call to create an
instance. Since your class doesn't specify a no-args constructor, it
fails. Instead of setting variables through the constructor, use
separate setter methods. I suggest you read the JavaBeans spec for
details:

  

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.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: Clarification

2000-05-17 Thread Russell, Richard (DEH)

> from my understanding, WAR files are self extracting. once
> you put the war file in
> the appropriate directory and it is called by the client it
> will extract the files
> and create the appropriate directory.

I'm no guru, but I think you are wrong (probably wrong more in you choice of
word than your understanding, but I'll clarify anyway...)

A self-extracting archive is one that requires no other program to extract
it. In WindowsLand, you often get WinZip self-extractors. They are
executable programs that extract files from themselves... They differ from
plain vanilla WinZip archives in that the standard WinZip archive needs an
unzipping program (eg WinZip) to extract files from it.

WAR files are more like zip archives than WinZip self-extractors. They
contain no code in themselves that will extract anything. They are just in a
format known to the Java platform, and when it comes across a WAR (or JAR)
file in it's classpath, it will extract the files from it. Note that the JVM
itself does the extracting (ie a program external to the WAR/JAR file
itself)...

As for the other questions, I'm not real familiar with JSP technology, but
I'll offer some answers anyway...

>
> Sujoy Kumar Bose wrote:
>
> > Hi,
> >
> > Can somebody simplify the terms used in the followimg
> mail.I quote
> >
> > >From :Nestel, Frank [[EMAIL PROTECTED]]
> >
> > To: [EMAIL PROTECTED]
> >
> > "Thank you again. I've only read the servlet 2.2 specs yet to know
> > that a war file is a special kind of jar file. So I guess I know
> > how to contruct a war file.
> >
> > But new questions arise:
> >  * How do I configure the servlet container to fetch files from an
> >war archive instead of an directory (a sample web.xml
> would be nice)

I imagine (no experience here...) that you would specify it in the classpath
or something similar... It may depend on the individual container...

> >  * Are there limitations in existing 2.2 engines (Resin is
> one of our
> >current favorites) concerning war-Archives?

no idea

> >  * How is it possible to remove all JAVA/JSP source code from an
> >application before shipment.

JAVA source: When you make the WAR (JAR) file, simply don't include the
.java files. All you need put in there is the .class files

JSP source: My (poor) understanding is that JSP doesn't really get compiled
into .class files. You distribute your JSP files as they are, and they are
parsed and compiled dynamically, as needed. Remember that the end result of
processing a .jsp file is a .html file, but this .html file changes
depending on the data given to the .jsp file... So... You do put your .jsp
sources into the WAR file. However, most of your important code (your
business logic) will be in the Java classes anyway, so someone seeing your
JSP code is not much different from someone veiwing your html source...

someone correct me if I am wrong...

HTH

rr

===
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: datbase access using jsp.jdbc

2000-05-17 Thread anju kandru

HTML>




The Title




<%@ page  language="java"  import="java.sql.*"
session="true"  %>

<%@ page import="java.sql.ResultSet" %>

<%@ page import="java.sql.DatabaseMetaData" %>

<%@ page import="java.sql.ResultSetMetaData" %>
<%@ page import="java.lang.*" %>












<%! int numcols,numrows;
String current_table="vertical";
ResultSet rus=null;
ResultSetMetaData rsmd=null;
String current_table1;
DatabaseMetaData dbm=null;

Connection cc;
 Statement stmt=null;
 String sql=null;
 String b=null;
 String c=null;
String ss="select * from ";

%>

<%
  String name=request.getParameter("USER");
  out.println("HELLO"+name);


  try
  {
   cc=db.getConnect();
   }catch (ClassNotFoundException e)
   {
 throw new ServletException("drivers not
found",e);
   }





current_table1=request.getParameter("tablename").toUpperCase();
 System.out.println(current_table1);
 dbm=cc.getMetaData();

 sql=ss+current_table1;
 rus = db.getexecSQL(sql);
%>







   DATA MAINTENANCE   
 <%= current_table1 %> DATA
  





 
 <%
   ResultSetMetaData rsmd=null;
   rsmd = rus.getMetaData();
   numcols=rsmd.getColumnCount();


   ResultSet
rs=dbm.getColumns(null,null,current_table1,null);

   for (int colnum=1;colnum<=numcols;colnum++)
   {
  %>

  <%= rsmd.getColumnName(colnum).toUpperCase()%>

<%
}
%>





<%
  while (rus.next())
 {
   %>



<%
   for (int columns=1;columns<=numcols;columns++)
   {
   %>
   
<%
 }
  numrows=numrows+1;

 %>

 
<%
System.out.println(numrows);
 }

  rus.close();
  db.close();
%>







__
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.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



pre-initialized name-values pairs in JSP's

2000-05-17 Thread Kumaraswamy Allamraju

How would I configure my jsp's to read
a pre initialized name-value pair, the way we do for servlets.
I do not want to pass the name value pair as my query string.
Is it possible?

Kumar Allamraju


Get free email and a permanent address at http://www.netaddress.com/?N=1

===
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: Web Browser detection in JSP

2000-05-17 Thread Robert Nicholson

Look at the headers in the request object. I don't know if UserAgent will
tell you enough or not.

- Original Message -
From: "P.J. Tenn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 12:26 PM
Subject: Web Browser detection in JSP


> Hello,
>
> I am surprised this wasn't already have been posted and answered, but I
> searched the archives of this mailing list and could not find any info on
> this ...
>
> At any rate, is there a way to detect whether someone is using Netscape or
> IE using JSP?  I know this can be done easily in JavaScript using code
along
> the lines of:
>
> var browser = navigator.appName;
> var Nav = (browser == "Netscape");
> var IE = (browser == "Microsoft Internet Explorer);
>
> However, I need to set boolean variables within the scriptlet <% ... %>
tags
> based on whether Netscape or IE is being used.
> Thanks in advance!!!
>
> P.J.
>
>
===
> 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: Offtopic: Quick Java programming question...

2000-05-17 Thread Robert Nicholson

Are you sure?

- Original Message -
From: "Danny Trieu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 2:21 PM
Subject: Re: Offtopic: Quick Java programming question...


> no can't do that 
>
> toArray() return Object[] and you can't cast like that
>
> Robert Nicholson wrote:
>
> > What does this do?
> >
> > return (HashTable[])stuff.toArray(new HashTable[0]);
> >
> > - Original Message -
> > From: "Scott Costa" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 17, 2000 10:15 AM
> > Subject: Offtopic: Quick Java programming question...
> >
> > > I'm trying to write a method which returns an array of Hashtables, and
in
> > > the method, I am assembling the data as a vector, and trying to user
> > > "toArray()" to return the data as an array.
> > > Something like this:
> > >
> > > private Hashtable[] getStuff() {
> > >   Vector stuff = new Vector();
> > >   Hashtable ht = new Hashtable();
> > >   ht.put("A", "Stuff A");
> > >   ht.put("B", "Stuff B");
> > >   stuff.add(0, ht);
> > >   return (Hashtable[]) stuff.toArray();
> > > }
> > >
> > > This compiles great, but when I execute the line:
> > > Hashtable[] test = getStuff();
> > >
> > > I get a java.lang.ClassCastException.  The only way I have been able
to
> > get
> > > this to work, is to have the function return "Object[]", and
explicitly
> > cast
> > > the returned object everytime I reference it, but I would like to make
the
> > > function simply return an array of Hashtable objects.
> > >
> > > Any ideas on why the code above doesn't work, or how I can get it to
work?
> > >
> > > Thanks,
> > > Scott Costa
> > > [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
> > >
> >
> >
===
> > 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: Mainting sessions across boxes with JRun

2000-05-17 Thread Robert Nicholson

Are there hooks in JSP to have your sessions be persistent?

Can one make HTTPSessions persistent in JSP with minimal impact to existing
code?

- Original Message -
From: "David Eaves" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 12:02 PM
Subject: Mainting sessions across boxes with JRun


> All,
>
> I have two Sun boxes running Jrun sitting behind a load-balanacer.
As
> requests for servlets and JSPs come in they are split between the two Sun
> boxes depeneding on load. This seems to handle our current load just fine.
> However, if I want to use sessions to pass information between JSPs if the
> successive requests are routed through the load-balancer to the other box,
I
> lose my session. How can I maintain a session in JRun across machines and
> JRun instances?
>
> Thanks,
> Dave Eaves
>
>
===
> 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/JAVA IDE

2000-05-17 Thread Rick Loek

VisualAge is available too.

At 07:14 PM 5/17/00 -0400, you wrote:
>Does anyone know a good jsp and java IDE for linux?  The only one I know of
>that does what I want is Borland's JBuilder 3.5.  But only the enterprise
>edition supports jsp and I don't have the money for it.  Any suggestions
>would be great thanks.
>
>- Frank
>
>===
>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



Reminder...HttpConnectionHandler

2000-05-17 Thread Gogia Nitin

I am asking my question again which i asked yesterday for which no response
was received.
While starting Tomcat i am getting some Class error on HttpConnectionHandler
class
which is present in jakarta-tomcat/src/share/org/apache/tomcat/service/http

Can anyone guide me why is this happening...

Nitin

===
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: Reminder...HttpConnectionHandler

2000-05-17 Thread Ritesh Sinha

Hi Nitin,
This is probably a problem with your class path just check.
Ritesh

Ritesh Sinha,
Software Engineer,
Information Technologies India Ltd.,
A-41 MCIE, Mathura Road, Delhi 110044 , INDIA.
Phone: +91-11-695-9000 Ext 348
Email: [EMAIL PROTECTED]
---
--
Please visit http://www.palmgreetings.com , Worlds first and only site for
E-greetings on your mobile devices. Coming Soon for Mobile Phones too.










Gogia Nitin <[EMAIL PROTECTED]> on 05/18/2000 10:03:58 AM

Please respond to A mailing list about Java Server Pages specification and
  reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:(bcc: Sinha Ritesh-SWD-ITIL-UB/Itilmail)

Subject:  Reminder...HttpConnectionHandler




I am asking my question again which i asked yesterday for which no response
was received.
While starting Tomcat i am getting some Class error on
HttpConnectionHandler
class
which is present in jakarta-tomcat/src/share/org/apache/tomcat/service/http

Can anyone guide me why is this happening...

Nitin

===
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



Fw: Re: Using EJB or JavaBeans ( MCV architecture )

2000-05-17 Thread Vikram Dhawan

hello friends...
i am working on EJB. and i think that EJB is very powerfull as compared to
the java beans...
because in business applications u can use EJB in three tyer archtecture. in
EJB there are session beans in which u can define yr business logic throgh
those session beans u can access the entiy beans those are model to yr data
. a very good way of database hadling and prossing is there in ejb. it will
definately emplify yr e-commerce projects perfomance.
thanx
vikram

- Original Message -
From: Tom Gordon <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 12:07 AM
Subject: Re: Using EJB or JavaBeans ( MCV architecture )


> Hi, I am also pondering whether to use EJB in conjunction with JSP and
> servlets.  Did you ever get an answer to this question?
>
> Thanks,
> Tom
>
>
> "Bragg, James" wrote:
> >
> > What is the advantage of using EJB over JavaBeans (as the Model) in an
web
> > based application in which JSP will be used for Presentation(View), and
> > Serlvets as the Controller.
> >
> > If I wasn't using Servlets as the Controller, I could seen the need for
EJBs
> > over JavaBeans for Security, Transaction Management and Session
control...
> >
> > Problem is that I have a very small, very green(new to these
technologies)
> > develpment team trying to learn and develop this application in a very
short
> > timeframe.  So the issue is do we include EJB and increase risk of
missing
> > target date, or settle for JavaBeans and reduce the capabilies of the
web
> > app.
> >
> > What is Advantage of using EJB over JavaBeans when used as the Model?
> >
> > thanks..
> >
> > James
> >
> >
===
> > 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!?
Talk to your friends online with Yahoo! Messenger.
http://im.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: Reminder...HttpConnectionHandler

2000-05-17 Thread Gogia Nitin

everything is present in my class path including JDK path; JDK\lib\Tools.jar

I have set Java_Home
I have set Tomcat_Home

Any other clue ?

Nitin

> -Original Message-
> From: Ritesh Sinha [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 18, 2000 10:48 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Reminder...HttpConnectionHandler
>
> Hi Nitin,
> This is probably a problem with your class path just check.
> Ritesh
>
> Ritesh Sinha,
> Software Engineer,
> Information Technologies India Ltd.,
> A-41 MCIE, Mathura Road, Delhi 110044 , INDIA.
> Phone: +91-11-695-9000 Ext 348
> Email: [EMAIL PROTECTED]
> --
> -
> --
> Please visit http://www.palmgreetings.com , Worlds first and only site for
> E-greetings on your mobile devices. Coming Soon for Mobile Phones too.
>
>
>
>
>
>
>
>
>
>
> Gogia Nitin <[EMAIL PROTECTED]> on 05/18/2000 10:03:58 AM
>
> Please respond to A mailing list about Java Server Pages specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: Sinha Ritesh-SWD-ITIL-UB/Itilmail)
>
> Subject:  Reminder...HttpConnectionHandler
>
>
>
>
> I am asking my question again which i asked yesterday for which no
> response
> was received.
> While starting Tomcat i am getting some Class error on
> HttpConnectionHandler
> class
> which is present in
> jakarta-tomcat/src/share/org/apache/tomcat/service/http
>
> Can anyone guide me why is this happening...
>
> Nitin
>
> ==
> =
> 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: Offtopic: Quick Java programming question...

2000-05-17 Thread Shawn McKisson

The code you posted did not compile.
With a few minor changes, I have the following working code:

import java.util.Hashtable;
import java.util.Vector;
public class HashTableArrayTest
{
 public static void main(String[] args)
 {
  Hashtable[] h = getStuff();
  System.out.println(h[0].toString());
 }

 public static Hashtable[] getStuff()
 {
  Vector stuff = new Vector();
  Hashtable ht = new Hashtable();
  ht.put("A", "Stuff A");
  ht.put("B", "Stuff B");
  stuff.addElement(ht);
  return toArray(stuff);
 }

 public static Hashtable[] toArray(Vector v)
 {
  Hashtable[] h = null;

  if (v != null)
  {
   h = new Hashtable[v.size()];
   v.copyInto(h);
  }

  return h;

 }
}



- Original Message -
From: Scott Costa <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 12:15 PM
Subject: Offtopic: Quick Java programming question...


> I'm trying to write a method which returns an array of Hashtables, and in
> the method, I am assembling the data as a vector, and trying to user
> "toArray()" to return the data as an array.
> Something like this:
>
> private Hashtable[] getStuff() {
>   Vector stuff = new Vector();
>   Hashtable ht = new Hashtable();
>   ht.put("A", "Stuff A");
>   ht.put("B", "Stuff B");
>   stuff.add(0, ht);
>   return (Hashtable[]) stuff.toArray();
> }
>
> This compiles great, but when I execute the line:
> Hashtable[] test = getStuff();
>
> I get a java.lang.ClassCastException.  The only way I have been able to
get
> this to work, is to have the function return "Object[]", and explicitly
cast
> the returned object everytime I reference it, but I would like to make the
> function simply return an array of Hashtable objects.
>
> Any ideas on why the code above doesn't work, or how I can get it to work?
>
> Thanks,
> Scott Costa
> [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
>

===
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: JSPs and XML.

2000-05-17 Thread Daniel Lopez

Hi Shawn,

We are doing something very similar, and we might as well use JSP later
down the road so I'll get you my own reasoning.
Why? Because that way you have the data generated by your action
completely independent of the way you present the data. So independent
that you don't have to use Java to format this data or even produce it.
For example, right now we skipped the JSP part because we are generating
the XML directly from PL/SQL but if we have to add some operations that
will be done better in Java (handling files...) we just need to produce
XML from Java and use the same XSLT sheets as the PL/SQL operations. Our
grahical designer won't even know if we are performing the logic in
PL/SQL or Java. And you might ask then why use JSP instead of generating
XML directly from servlets. Well, for the same reason we generate HTML
through JSP instead of generating it directly from servlets, to make the
result independent of the classes that implement it, easier to produce
without getting into the code...
Another reason why one would want to generate XML from JSP would be to
be able to forward this result to diferent XSLT and produce WML, HTML,
... using the same functionality but with diferent XSLT.
I understand that one might think, why add such an overhead... Again,
JSPs are supposed not to be such an overhead because they are compiled
into servlets the first time you access them (you might even precompile
them sometimes) so they are more like a different way of specifying your
output.

So, IMHO, if you are just producing HTML, you are just performing your
operations in Java and you don't have a designer that can play XSLT,
then there's no need to go for XML. But if you want to produce different
ouput formats reusing the same functionality, you need to seamlesly
integrate different sources of the information into your HTML layer or
you have a designer that can play XSLT then you can get some advantages
by using XML and you might want to produce it from Java through JSP.

Just my 2ec
Dan
---
Daniel Lopez Janariz ([EMAIL PROTECTED])
Web Services
Computer Center
Balearic Islands University
---


Shawn McKisson wrote:
>
> Why would you want to take data, convert it into another form of data and
> *then* convert it into HTML?
>
> This is like pouring yourself a cold beer by first pouring it from the
> bottle into one mug, then  pouring that mug into another mug.
>
> If a you have a JSP page which does emit XML, you could chain the output of
> that page through another servlet which performed the XML/XSL conversion. So
> the XML/XSL servlet would use the JSP page as a data source.
>
> There were some really good articles about 7-12 months ago on XML-INTEREST
> about this.
> If I can find them I will mail them to you.
>
> --shawn
>
> - Original Message -
> From: Robert Nicholson <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 17, 2000 5:10 AM
> Subject: Re: JSPs and XML.
>
> > I would like to know if a JSP app emits XML what component of existing
> > application servers can translate that to whatever presentation language
> is
> > prefered? I want to understand how XSLT fits into a JSP app's
> architecture.
> >
> > - Original Message -
> > From: "Shawn McKisson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, May 16, 2000 9:15 PM
> > Subject: Re: JSPs and XML.
> >
> >
> > > Just return XML tags instead of only HTML tags.
> > > There is nothing special that needs to be done.
> > >
> > > If you are going to just turn around and reprocess the XML into HTML
> using
> > > something like XSL, then you are basically needlessly supporting two
> > > presentation layers. You should reconsider your app architecture.
> > >
> > > --shawn
> > >
> > > - Original Message -
> > > From: Bilal Ali Nawaz <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, May 16, 2000 1:36 AM
> > > Subject: JSPs and XML.
> > >
> > >
> > > > hi all,
> > > > can anyone please direct me to some useful resources on the web
> > concerning
> > > how
> > > > to output XML through a JSP? basically what i want to study is that
> can
> > > XML be
> > > > 'thrown' by a jsp just like HTML? and if so, how??
> > > >
> > > > thanking all of you in advance,
> > > > bilal.
> > > >
> > _
> > > >
> > > > 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.o

Re: Mainting sessions across boxes with JRun

2000-05-17 Thread Shawn McKisson

A solution I have seen work really well is to bind a user session to a
particular web server instead of binding each request to a particular web
server. If you don't have this capability, then I would recommend something
like a singleton session manager running on box that maintains session
information for the entire app.
Whatever your solution, you should take into account your fault tolerance
requirements since it might help lead you to the "better " soln.

--shawn

- Original Message -
From: David Eaves <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 2:02 PM
Subject: Mainting sessions across boxes with JRun


> All,
>
> I have two Sun boxes running Jrun sitting behind a load-balanacer.
As
> requests for servlets and JSPs come in they are split between the two Sun
> boxes depeneding on load. This seems to handle our current load just fine.
> However, if I want to use sessions to pass information between JSPs if the
> successive requests are routed through the load-balancer to the other box,
I
> lose my session. How can I maintain a session in JRun across machines and
> JRun instances?
>
> Thanks,
> Dave Eaves
>
>
===
> 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: How can i read a file in UNIX / AIX from an servlet

2000-05-17 Thread Shawn McKisson

What is wrong with the code you posted?
Just send the output to the response stream instead of stdout.

--shawn

- Original Message -
From: Alexander Bonilla <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 4:06 PM
Subject: Re: How can i read a file in UNIX / AIX from an servlet


> Hello, I need suggestion for the following task:
>
> My problem is how can I read a file in UNIX / AIX from an servlet.
>
> Here a code.
>
> java.io.File file = new java.io.File("/usr/bin", "file.txt");
> java.io.BufferedReader in = new java.io.BufferedReader(new
> java.io.FileReader(file));
> String s = in.readLine();
> while (s != null) {
> System.out.println(s);
> }
>
>
> Any suggestion?
>
> Thanks a all.
>
> Alex.
>
>
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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