Re: Tomcat servlet configuration question

2000-06-28 Thread Johannes O. Akinlaja

- Original Message -
From: "Laiwu Luo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 8:50 PM
Subject: Tomcat servlet configuration question


> I have a small application implemented in servlets running on Tomcat
> container. But to access servlets, users
> have to type the URLs  like
> "http:servlet/". I really like
> to change it so that users only need to enter URLs like
> "http:".
>
> I wonder whether I can ahieve this by simply editing something in the
> configuration files like web.xml?

Yes, you can. Just change the servlet mapping. You'll find examples (the
SnoopServlet) in the example application.

Yours

Toyin

>
> Thanks,
>
> -- Laiwu Luo
>
>
===
> 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: Strange Bug

2000-06-28 Thread Sachin S. Khanna

Hello Mr.Preston & Everybody Else,
Thanks for your explaination on how the buffer mechanism.
Well i had sent the code of my jsp file & bean to this list and as far as my
knowledge goes i'm not trying to call sendRedirect or any other method that
might throw the IllegalStateException and to testify to my above knowledge
i'm running the code on another page & it is running fantastically well.
I'd appreciate if the Big Guns of Jsp on this list could let me know their
thoughts on this strange behaviour.
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com
- Original Message -
From: Thomas Preston <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 8:49 PM
Subject: Re: Strange Bug


> Hi,
>
> Jsp uses buffer.  When you start to send html back to client from server
> side, it doesn't just start sending it immediately.  Instead it buffers
the
> output.  WHen the buffer is full, the buffer has to be flushed back to the
> client.  When this happens, the http head is sent along with the buffered
> body.  At this point the buffer is said to be committed (see any servlet
> book on this issue or servlet spec).  Once the buffer has been committed,
> the head has been sent back to the client, so any transaction that needs
to
> modify the head (like sendRedirect) will fail.  In WL implementation of
jsp,
> if you keepgenerated and view the .java file that is generated by the
> server, you will see a try block around the re-direction operation that
> occurs when page wants to go to an error page.  If re-direction is not
> possible because the head has been committed, you will get some type of
> error (like possibly illegalStateException) on the server console and the
> page will not be forwarded to the error page.
>
> >From: jonny doe <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Strange Bug
> >Date: Wed, 28 Jun 2000 07:41:30 -0700
> >
> >Hey Thomas,
> >
> >What do you mean by the buffer being 'committed'? I
> >came across this error to.
> >
> >--- Thomas Preston <[EMAIL PROTECTED]> wrote:
> > > Are you redirecting to an errorpage on error?  If
> > > so, redirecting to error
> > > page can't be done if the buffer has been
> > > "committed".  If this is the
> > > problem, then you are getting an exception on the
> > > page somewhere...
> > >
> > >
> > > >From: "Sachin S. Khanna" <[EMAIL PROTECTED]>
> > > >Reply-To: A mailing list about Java Server Pages
> > > specification and
> > > > reference <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Strange Bug
> > > >Date: Wed, 28 Jun 2000 16:01:15 +0530
> > > >
> > > >I have a simple jsp which uses a bean to send an
> > > email. The code is working
> > > >fine on one server but throwing the following error
> > > on the other:
> > > >java.lang.IllegalStateException: Response has
> > > already been committed
> > > >What could be the reason for this kind of strange
> > > behaviour.
> > > >Have a nice day.
> > > >With regards,
> > > >Sachin S. Khanna.
> > > >www.emailanorder.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
> > >
> > >
> >
> > > 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
> >
> >
> >__
> >Do You Yahoo!?
> >Get Yahoo! Mail - Free email you can access from anywhere!
> >http://mail.yahoo.com/
> >
>
>===
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> 
> Get Your Privat

Re: WebServer Source Code

2000-06-28 Thread V.Vasant

hi,
Actually what I had wanted was a look at the source. Doesn't Sun
provide the source as open source??

-V.Vasant

On Wed, 28 Jun 2000, Cogley, Jonathan wrote:

> A search on any popular search engine would not go amiss! :)
> http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
>
>
>
> -Original Message-
> From: Ritesh_Srivastava [mailto:[EMAIL PROTECTED]]
> Sent: 28 June, 2000 8:56 AM
> To: [EMAIL PROTECTED]
> Subject: Re: WebServer Source Code
>
>
> where is this decompiler available.
>
> > --
> > From: Prabhakar Vardhan Ojha[SMTP:[EMAIL PROTECTED]]
> > Reply To: A mailing list about Java Server Pages specification and
> > reference
> > Sent: Saturday, January 02, 1999 2:56 PM
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: WebServer Source Code
> >
> > use decompiler  "jad".
> >
> > You can download it for free.
> >
> > Regards,
> > prabhakar
> >
> > - Original Message -
> > From: Khem Chand Sachdeva <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 28, 2000 2:39 PM
> > Subject: Re: WebServer Source Code
> >
> >
> > > use any decompiler
> > > - Original Message -
> > > From: V.Vasant <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, June 28, 2000 3:05 PM
> > > Subject: WebServer Source Code
> > >
> > >
> > > > hi,
> > > > I would like to have a look at the source of the JavaWebServer
> > > > Can someone tell me where I can find these. I have got the
> > jswdk-1.0.1,
> > > > but I am unable to find it's source . All I see is only .class files.
> > > > Can someone please help me?
> > > >
> > > > -V.Vasant
> > > >
> > > >
> > >
> > ==
> > =
> > > > 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
>

===
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: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread jdeveloper

Hi, Corey A. Johnson,

If your jsp container inplements Servlet2.2 and jsp 1.1,
please try to use session.setAttribute() instead.


At 00-6-28 ÏÂÎç 03:36:00 you wrote:
>May be a direction i need to go...
>
>Thanks Chris!
>
>Cj
>
>Chris Ernenwein wrote:
>>
>> sessions work but not session = request.getSession(true);
>>
>> We got a new value each time it was called, if you look at the sessionID.
>>
>> We used session scope beans to hold data.
>>
>> Chris E
>>
>> -Original Message-
>> From: A mailing list about Java Server Pages specification and reference
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
>> Sent: Wednesday, June 28, 2000 1:05 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: Sessions/Cookies do not work in IE5!!
>>
>> That is crazy!  So you gave up?  This is for a huge Fortune 100 client
>> of mine...  I am going to raise all kinds of hell if this is not
>> fixable.  Do you want me to relay anything i find out?
>>
>> Cj
>>
>> Chris Ernenwein wrote:
>> >
>> > you are right.  We could not get it to work with IE either.
>> >
>> > Chris E
>> >
>> > -Original Message-
>> > From: A mailing list about Java Server Pages specification and reference
>> > [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
>> > Sent: Wednesday, June 28, 2000 12:39 PM
>> > To: [EMAIL PROTECTED]
>> > Subject: Sessions/Cookies do not work in IE5!!
>> >
>> > Hello all,
>> >
>> > I am at my wits end...  I just got off the phone with iPlanet...  they
>> > are now telling me that i have to call their Professional Services
>> > department... because support can not help me.. I AM LOSING MY MIND!
>> >
>> > I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.
>> >
>> > I am trying to simply get Sessions/Cookies to work in Internet Explorer
>> > 5.  I am setting a session in a JSP file:
>> >
>> > <%
>> > session = request.getSession(true);
>> > session.putValue("Test", "Test Value");
>> > %>
>> >
>> > I have done this hundreds of times in the past.
>> >
>> > All works fine with a Netscape browser... but the session will not set
>> > in IE...
>> >
>> > I have tried everything, including:
>> >
>> > 1) Checking date/time on my system and the server.
>> > 2) Testing has been done on 10 different desktops.. same results.
>> > 2) Wrote a test servlet instead of a JSP page... did not work either...
>> > (i know.. i know.. but it was worth i try!!)
>> > 3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
>> > FINE!!! In both browsers.
>> > 4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
>> > DID NOT WORK in IE, but works in Netscape
>> >
>> > Am i going crazy?  I can not believe this is isolated to me and my
>> > servers...  it must be something simple
>> >
>> > Any help/advice would be so much appreciated...
>> >
>> > Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
>> > myself with!!  ;-)
>> >
>> > Cj
>> > --
>> > Corey A. Johnson
>> > Creative Network Innovations, Inc.
>> > 1-800-264-5547 ** 1-407-259-1984
>> >
>> >
>> ===
>> > 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
>>
>> --
>> Corey A. Johnson
>> President/Director of Technology
>> Creative Network Innovations, Inc.
>> 1-800-264-5547 ** 1-407-259-1984
>>
>> ===
>> 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
>
>--
>Corey A. Johnson
>President/Director 

Re: bug with array casting within a JSP process

2000-06-28 Thread Sachin S. Khanna

One Observation :
You donot instantiate the myVec object in your code, that means you
are trying to call the add method on a null object which is going to throw a
NPE.
Instantiating the myVec object might just bring an end to your grief :-).
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com
- Original Message -
From: George Ludwig <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 29, 2000 12:26 AM
Subject: bug with array casting within a JSP process


> I have a javabean that's called from a JSP page. The bean compiles fine,
but at
> runtime JSP fails with no real explanation. The method code is something
like
>
> Vector myVec ;
>
> MyCustomObject mco = new MyCustomObject() ;
>
> myVec.add(mco) ;
>
> Object[] o = myVec.toArray() ;
>
> return (MyCustomObject)o ;
>
> I'm pretty sure I've done this before in other cases, but in JSP it just
fails.
> BTW, it fails in both the JSWDK as well as WebLogic (both under Linux
6.1).
>
> Obviously, I worked around it be just returning the array without casting
it, then
> casting each array element as I used it. But that's not clean and it
pisses me off.
>
> Is this a known bug? Where can I report it if it is?
>
> Cheers,
>
> George
>
>
===
> 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: response.redirect

2000-06-28 Thread Sanjay Gomes

Hi Mauro

WHich debugger can i use  for debugging JSPs
Also where can I get it

TIA
Sanjay

>that what I have seen happening in my debugger... >other .than that I
>cannot
>say

>mauro

>-Original Message-
>From: John Doe [mailto:[EMAIL PROTECTED]]
>Sent: 28 June 2000 17:36
>To: Mauro Gagni (EMS); JSP ML; [EMAIL PROTECTED]
>Subject: RE: response.redirect
>
>
>Can anyone please refer me to some concrete documentation on
>this.  I would
>really like to know if this is true:  is there another thread
>created which
>does the redirection code, while the current thread continues
>executing the
>code on the current page?
>
>thank you
>rostom
>
>--- "Mauro Gagni (EMS)" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >  I had the same problem and that is the way it work, it compute the code
> > until the end of the page.
> > I noticed that it actually creates a new thread for the
>redirection, while
> > the old one keeps executing until it eventually dies at the end
>of the page.
> >
> > hope it did help,
> > mauro
> >
> > > -Original Message-
> > > From: A mailing list about Java Server Pages specification
>and reference
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of John Doe
> > > Sent: 28 June 2000 02:40
> > > To: [EMAIL PROTECTED]
> > > Subject: response.redirect
> > >
> > >
> > > Hello,
> > > Can someone give a detailed explanation of how
> > > response.redirect() works.  I
> > > looked at the API and its not very detailed.
> > >
> > > The reason for this is that it seems that if I have html or java
> > > code AFTER a
> > > redirect on a JSP page, that code still gets executed.  This
>is not the
> > > behavior i want.  With a forward I know that all execution stops
> > > and a forward
> > > takes place.  Is this not the case with a redirect??
> > >
> > > thanks in advance.
> > >
> > >
> > > __
> > > Do You Yahoo!?
> > > Get Yahoo! Mail - Free email you can access from anywhere!
> > > http://mail.yahoo.com/


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



Re: off topic - maximum open cursors exceeded

2000-06-28 Thread Aggarwal, Pawan

I got this error when i was using wrong recordset variable while accessing
data..
so just check out..

> -Original Message-
> From: anderson
> Sent: Thursday, June 29, 2000 12:14 AM
> To:   [EMAIL PROTECTED]
> Subject:  off topic - maximum open cursors exceeded
>
> Anyone knows about this error in Oracle ? This error is about the number
> of Recordset that I use in my page ?
>
> 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



Re: Documentation

2000-06-28 Thread B.V.Murali Krishna (by way of G Sreenivasulu Naidu <[EMAIL PROTECTED]>)

>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
>Importance: Normal
>Date: Wed, 28 Jun 2000 16:15:03 -0700
>Reply-To: A mailing list about Java Server Pages specification and
>  reference <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and
>  reference <[EMAIL PROTECTED]>
>From: Jim Preston <[EMAIL PROTECTED]>
>Subject:  Re: Documentation
>To: [EMAIL PROTECTED]
>
>That may be because JSP doesn't really have an object model of its own to
>speak of. There are no objects and methods that make up JSP. A JSP is an
>HTML page with embedded Java code and some special tags. It gets compiled
>into a servlet.  So really, the JSP object model is the servlet object
>model.
>
>If you want explicit documentation, there are at least three good books on
>JavaServer Pages that will tell you pretty much everything you need.
>
>--Jim Preston
>
>
>-Original Message-
>From: A mailing list about Java Server Pages specification and reference
>[mailto:[EMAIL PROTECTED]]On Behalf Of Devon Manelski
>Sent: Wednesday, June 28, 2000 3:09 PM
>To: [EMAIL PROTECTED]
>Subject: Documentation
>
>
>I am also wondering about sources for explicit documentation regarding the
>JSP object model.  I have spent some time looking on Sun's site, in the
>Forte Docs and on the web but have been unable to come up with a simple set
>of listing of object, methods and properties.
>
>TIA,
>Devon
>
>===
>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
>
>
MURALI KRISHNA BALUSA
VELOCIENT TECHNOLOGIES
NEW DELHI.

===
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 using Javawebserver and jswdk

2000-06-28 Thread Sanjay Gomes

Another thing is u dont have to use both java webserver and jswdk .
Both r web servers , so what r u trying to do by combining both .Any one of
them is enough to run JSps
Sanjay



>From: Raghunath Raman <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Problem using Javawebserver and jswdk
>Date: Thu, 29 Jun 2000 12:53:29 +0800
>
>Syamala,
>
>Check out the following :-
>IN your MS-DOS program settings increase the memory from auto to 4096.
>This info is given in the readme notes of JSWK.
>Your files if they are servlets should be placed in the directory
>c:\jswdk-~1.1\webpages\web-inf\servlets
>Jsp pages should also be placed here.
>HTML pages need to be placed in the Webpages directory.
>Also you need to add entries in your mapping.properties and
>servlets.propoerties file which are under
>c:.\webpages\web-inf
>YOu can configure the location of your pages by editing the
>web-app.properties file.
>hope this helps.
>Cheers
>
>
>
> >From: Syamala kotamraju <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Problem using Javawebserver and jswdk
> >Date: Wed, 28 Jun 2000 16:31:49 -0400
> >
> >Hi,
> >
> >I am trying my first jsp program(which outputs hello world through the
> >out.println statement) using java webserver and jswdk.I have set the
> >classpath in the autoexec.bat as below:
> >set
> >CLASSPATH=.;c:\jswdk-1.0.1\lib\servlet.jar;c:\jswdk-1.0.1\lib\jspengine.jar
>;C:\JDK1.2.2\lib\tools.jar
> >set JAVA_HOME = "C:\JDK1.2.2"
> >I started my java webserver and invoked the startserver.bat file in the
> >jswdk installation directory.When i try to open the jsp file in the
>browser
> >by http://localhost:8080/first.jsp i am getting an error as file not
> >found(error 404). I placed my jsp file in the servlets directory of java
> >webserver installation directory.
> >Can someone tell me what exactly is the way to configure the java web
> >server
> >with jswdk.I think there's something wrong in my configuration.
> >I am also getting an error while starting the server with jswdk as
> >environment out of space.I tried changing the size to the maximum but no
> >use.
> >Please help me
> >TIS,
> >Syamala.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >Get your own Free Unified Messaging email account (with toll-free
>voicemail
> >and fax!) at http://www.electronmail.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
>
>
>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


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



Re: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread M. Simms

Uheven if it's just a "for-this-session" cookie, you still need to:
// check...are there cookies already set-up for this site / path ?
Cookie [] cookies = request.getCookies();

if they don't exist for the domain, (cookies.length=0) then:
// create a new one
Cookie info = new Cookie("cookie_name","");
// add some data
String stingval = "here is some cookie data - strings only !";
info.setValue(stringval);
// make sure it's accessible from all paths
info.setPath("/");
// lets save it ! - note: this cookie will disappear when the browser is
closed
response.addCookie(info);


I think the putValue is establishing some sort of session object - totally
unrelated to COOKIES.
Also, remember: Netscapes' implementation of cookies is totally distinct
from IE's !!

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
> Sent: Wednesday, June 28, 2000 2:39 PM
> To: [EMAIL PROTECTED]
> Subject: Sessions/Cookies do not work in IE5!!
>
>
> Hello all,
>
> I am at my wits end...  I just got off the phone with iPlanet...  they
> are now telling me that i have to call their Professional Services
> department... because support can not help me.. I AM LOSING MY MIND!
>
> I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.
>
> I am trying to simply get Sessions/Cookies to work in Internet Explorer
> 5.  I am setting a session in a JSP file:
>
> <%
> session = request.getSession(true);
> session.putValue("Test", "Test Value");
> %>
>
> I have done this hundreds of times in the past.
>
> All works fine with a Netscape browser... but the session will not set
> in IE...
>
> I have tried everything, including:
>
> 1) Checking date/time on my system and the server.
> 2) Testing has been done on 10 different desktops.. same results.
> 2) Wrote a test servlet instead of a JSP page... did not work either...
> (i know.. i know.. but it was worth i try!!)
> 3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
> FINE!!! In both browsers.
> 4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
> DID NOT WORK in IE, but works in Netscape
>
> Am i going crazy?  I can not believe this is isolated to me and my
> servers...  it must be something simple
>
> Any help/advice would be so much appreciated...
>
> Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
> myself with!!  ;-)
>
> Cj
> --
> Corey A. Johnson
> Creative Network Innovations, Inc.
> 1-800-264-5547 ** 1-407-259-1984
>
> ==
> =
> 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: Problem using Javawebserver and jswdk

2000-06-28 Thread Raghunath Raman

Syamala,

Check out the following :-
IN your MS-DOS program settings increase the memory from auto to 4096.
This info is given in the readme notes of JSWK.
Your files if they are servlets should be placed in the directory
c:\jswdk-~1.1\webpages\web-inf\servlets
Jsp pages should also be placed here.
HTML pages need to be placed in the Webpages directory.
Also you need to add entries in your mapping.properties and
servlets.propoerties file which are under
c:.\webpages\web-inf
YOu can configure the location of your pages by editing the
web-app.properties file.
hope this helps.
Cheers



>From: Syamala kotamraju <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Problem using Javawebserver and jswdk
>Date: Wed, 28 Jun 2000 16:31:49 -0400
>
>Hi,
>
>I am trying my first jsp program(which outputs hello world through the
>out.println statement) using java webserver and jswdk.I have set the
>classpath in the autoexec.bat as below:
>set
>CLASSPATH=.;c:\jswdk-1.0.1\lib\servlet.jar;c:\jswdk-1.0.1\lib\jspengine.jar
;C:\JDK1.2.2\lib\tools.jar
>set JAVA_HOME = "C:\JDK1.2.2"
>I started my java webserver and invoked the startserver.bat file in the
>jswdk installation directory.When i try to open the jsp file in the browser
>by http://localhost:8080/first.jsp i am getting an error as file not
>found(error 404). I placed my jsp file in the servlets directory of java
>webserver installation directory.
>Can someone tell me what exactly is the way to configure the java web
>server
>with jswdk.I think there's something wrong in my configuration.
>I am also getting an error while starting the server with jswdk as
>environment out of space.I tried changing the size to the maximum but no
>use.
>Please help me
>TIS,
>Syamala.
>
>
>
>
>
>
>
>
>
>
>
>
>Get your own Free Unified Messaging email account (with toll-free voicemail
>and fax!) at http://www.electronmail.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


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



Re: Problem using Javawebserver and jswdk

2000-06-28 Thread Sanjay Gomes

Hello Syamala,
In Java Web Server you have to place the JSP in the public_html directory
No other settings r required
Sanjay


>From: Syamala kotamraju <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Problem using Javawebserver and jswdk
>Date: Wed, 28 Jun 2000 16:31:49 -0400
>
>Hi,
>
>I am trying my first jsp program(which outputs hello world through the
>out.println statement) using java webserver and jswdk.I have set the
>classpath in the autoexec.bat as below:
>set
>CLASSPATH=.;c:\jswdk-1.0.1\lib\servlet.jar;c:\jswdk-1.0.1\lib\jspengine.jar;C:\JDK1.2.2\lib\tools.jar
>set JAVA_HOME = "C:\JDK1.2.2"
>I started my java webserver and invoked the startserver.bat file in the
>jswdk installation directory.When i try to open the jsp file in the browser
>by http://localhost:8080/first.jsp i am getting an error as file not
>found(error 404). I placed my jsp file in the servlets directory of java
>webserver installation directory.
>Can someone tell me what exactly is the way to configure the java web
>server
>with jswdk.I think there's something wrong in my configuration.
>I am also getting an error while starting the server with jswdk as
>environment out of space.I tried changing the size to the maximum but no
>use.
>Please help me
>TIS,
>Syamala.
>
>
>
>
>
>
>
>
>
>
>
>
>Get your own Free Unified Messaging email account (with toll-free voicemail
>and fax!) at http://www.electronmail.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


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



Re: Problem using Javawebserver and jswdk

2000-06-28 Thread Sanjay Gomes

Hi Mohan,
Where do u keep the jsp files in the jswdk and also the bean classes,I am
using Java Web Server which works fine but would like to know
Sanjay


>From: Mohan Nai <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Problem using Javawebserver and jswdk
>Date: Wed, 28 Jun 2000 13:52:24 -0700
>
>hi syamala,
>
>I don't think you java webserver if you have jswdk.
>It is enough if you have jswdk. I am  developing jsps
>using only jswdk.  Infact you will have some problems
>if you have java webserver runnning and if you start
>jswdk.(port clash if you don't change the port)
>
>
>  correct me if I am wrong.
>
>thanx,
>mohan
>
>
>
>
>
>
>--- Syamala kotamraju <[EMAIL PROTECTED]>
>wrote:
> > Hi,
> >
> > I am trying my first jsp program(which outputs hello
> > world through the
> > out.println statement) using java webserver and
> > jswdk.I have set the
> > classpath in the autoexec.bat as below:
> > set
> >
>CLASSPATH=.;c:\jswdk-1.0.1\lib\servlet.jar;c:\jswdk-1.0.1\lib\jspengine.jar;C:\JDK1.2.2\lib\tools.jar
> > set JAVA_HOME = "C:\JDK1.2.2"
> > I started my java webserver and invoked the
> > startserver.bat file in the
> > jswdk installation directory.When i try to open the
> > jsp file in the browser
> > by http://localhost:8080/first.jsp i am getting an
> > error as file not
> > found(error 404). I placed my jsp file in the
> > servlets directory of java
> > webserver installation directory.
> > Can someone tell me what exactly is the way to
> > configure the java web server
> > with jswdk.I think there's something wrong in my
> > configuration.
> > I am also getting an error while starting the server
> > with jswdk as
> > environment out of space.I tried changing the size
> > to the maximum but no
> > use.
> > Please help me
> > TIS,
> > Syamala.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Get your own Free Unified Messaging email account
> > (with toll-free voicemail and fax!) at
> > http://www.electronmail.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
>
>
>__
>Do You Yahoo!?
>Get Yahoo! Mail - Free email you can access from anywhere!
>http://mail.yahoo.com/
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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



Re: Design choices: JSP & Javascript

2000-06-28 Thread M. Simms

Watch Out :   mySELECTBOX.add(newOption);
Not supported in Netscape 4+ !!

Plus dynamic xx
entryagain, Netscape only requires this!!

Love those NS exceptions !

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Cogley, Jonathan
> Sent: Friday, June 23, 2000 8:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Design choices: JSP & Javascript
>
>
> Why not use some of Javascript's OO features for example ...
>
> // This javascript client side code should be generated from server side
> code
> // from your data source
>
> var myData = new Array();
>
> myData[0] = new Array();
> var myData[0].name = 'Fred';
> var myData[0].dob  = '05/07/1950';
>
> myData[1] = new Array();
> var myData[1].name = 'Susan';
> var myData[1].dob  = '05/09/1950';
>
> myData[2] = new Array();
> var myData[2].name = 'Joe';
> var myData[2].dob  = '05/08/1950';
>
>
> You now have a Javascript object (really just an array) with records
> containing properties relating to your data.
>
> You can then use a client-side function to populate a drop-down
> for example
> ...
>
> function populateDropDown() {
> for (var n=0; n < myData.length; n++) {
> var newOption = new Option(myData[n].name);
> newOption.value = n;
> newOption.dob = myData[n].dob;
> mySELECTBOX.add(newOption);
> }
> }
>
>
> I like this way of doing this and with a small amount of records being
> displayed the
> amount of content downloaded to the browser is not excessive.
>
> Cheers,
> J
>
>
>
> -Original Message-
> From: rohit [mailto:[EMAIL PROTECTED]]
> Sent: 23 June, 2000 12:51 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Design choices: JSP & Javascript
>
>
> M. Simms wrote:
> > Lots of considerations here...JavaScript can keep your
> server requests
> > lower
> > however, when databases are involved.unless you can generate
> > JavaScript arrays of small size (<200 items) and "pre-load" the
> HTML with
> > the data needed to process the screen, you are talking several
> server-side
> > trips.
> >
> > JavaScript's only real data repository with any usefulness is arrays.
>
> Could someone please tell me how to "pre-load" HTML files.
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.157 / Virus Database: 73 - Release Date: 05/31/2000
>
> ==
> =
> 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: Calling a JSP engine "offline"

2000-06-28 Thread Kyle Cordes

I second the question... I would like to use JSP as a general-purpose
templating engine, in contexts other than outputting the result to a web
page.



- Original Message -
From: "Stefano Andreani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 26, 2000 6:05 AM
Subject: Calling a JSP engine "offline"


> How can I call a JSP engine and put his output in a file, or a stream
> without sending it to the client? I can't find a solution because the
only
> way to run a JSP engine seems to be sending it an http request, and
the Jsp
> page output goes in a stream of the http response.

===
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: off topic - maximum open cursors exceeded

2000-06-28 Thread Hoang Manh Hung

Hi,
You have to change Database parameter OPEN_CURSORS (Normally I set it to a value
2000). This is located in $ORACLE_HOME/dbs/init.ora file
Restart the DB and try.

Cheers,
HungHM.


anderson wrote:

> Anyone knows about this error in Oracle ? This error is about the number
> of Recordset that I use in my page ?
>
> 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



Re: WebServer Source Code

2000-06-28 Thread Roongnapa Chadtianchai

http://www.geocities.com/SiliconValley/Bridge/8617/jad.html

Regards,
Roongnapa.


Ritesh_Srivastava wrote:

> where is this decompiler available.
>
> > --
> > From: Prabhakar Vardhan Ojha[SMTP:[EMAIL PROTECTED]]
> > Reply To: A mailing list about Java Server Pages specification and
> > reference
> > Sent: Saturday, January 02, 1999 2:56 PM
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: WebServer Source Code
> >
> > use decompiler  "jad".
> >
> > You can download it for free.
> >
> > Regards,
> > prabhakar
> >
> > - Original Message -
> > From: Khem Chand Sachdeva <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 28, 2000 2:39 PM
> > Subject: Re: WebServer Source Code
> >
> >
> > > use any decompiler
> > > - Original Message -
> > > From: V.Vasant <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, June 28, 2000 3:05 PM
> > > Subject: WebServer Source Code
> > >
> > >
> > > > hi,
> > > > I would like to have a look at the source of the JavaWebServer
> > > > Can someone tell me where I can find these. I have got the
> > jswdk-1.0.1,
> > > > but I am unable to find it's source . All I see is only .class files.
> > > > Can someone please help me?
> > > >
> > > > -V.Vasant
> > > >
> > > >
> > >
> > ==
> > =
> > > > 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: off topic - maximum open cursors exceeded

2000-06-28 Thread Kishore Raghavan

YOU can use this query (ORACLE) to see how many cursors are open.

Query : "SELECT value FROM v$sysstat WHERE name = 'opened cursors current'";

This would help you to see which part of you code is leaving the cursors
open..



Kishore Raghavan




-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Philip Doyle
Sent: Wednesday, June 28, 2000 3:14 PM
To: [EMAIL PROTECTED]
Subject: Re: off topic - maximum open cursors exceeded


Hi

this error is common for folks who use connection pooling - as Oracle
creates a session for each connection and will accumulate cursors associated
with each open connection in the pool throughout the connections life.

Therefore one should set the max uses for each connection in the pool and
recreate them to release the Oracle resources associated with them.

Also, one can have ones DBA increase the max open cursors setting for the
database which is in $ORACLE_HOME/dbs/init.ora as far as I
remember.

regards
Phil

- Original Message -
From: Mark Hills <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 11:41 PM
Subject: Re: off topic - maximum open cursors exceeded


> You should just be able to use the Connection's close() method when you're
> done with it (done processing the page, for instance). You will want to
look
> into connection pooling to cut down on the time it takes to open and close
> connections on a page. I think Oracle has some info up on their website
> about this, and I know WebLogic provides connection pooling as a "service"
> of the WebLogic server, so I'm assuming other servers may do this as well.
>
> -Original Message-
> From: anderson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 4:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: off topic - maximum open cursors exceeded
>
>
> Thank you so much... And the Connection, how can I close it when the
session
> ends ?
>
> []s
>
> Mark Hills wrote:
>
> > Make sure you close any database objects that you aren't using anymore,
> like
> > ResultSet, CallableStatement, and PreparedStatement objects. I've gotten
> the
> > same errors before when I've forgotten to close things and this has
taken
> > care of it.
> >
> > -Original Message-
> > From: anderson [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 28, 2000 1:44 PM
> > To: [EMAIL PROTECTED]
> > Subject: off topic - maximum open cursors exceeded
> >
> > Anyone knows about this error in Oracle ? This error is about the number
> > of Recordset that I use in my page ?
> >
> > 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

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

Re: NES and JSP

2000-06-28 Thread Piotr Wierzbicki

NES 3.6 by itself does not support JSP, but you can install a plug-in (eg. IBM's 
Websphere AppServer) that will "intercept" request for .jsp files, process them and 
return in HTML form to NES which in turn respond to a client. WAS comes with plugins 
for NES, Apache, IIS, Domino (did I forget anything?) Not that it is the best 
appserver/servlet container, but it's the one I have some knowledge about.

Happy serv-letting,
Piotr

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Aggarwal, Pawan
Sent: Wednesday, June 28, 2000 1:57
To: [EMAIL PROTECTED]
Subject: Re: NES and JSP


Just check out i think JSP are not supported over NES 3.6
but 4.x

> -Original Message-
> From: Ravi Jerome Barnes
> Sent: Tuesday, June 27, 2000 11:05 PM
> To:   [EMAIL PROTECTED]
> Subject:  NES and JSP
> Importance:   High
>
> Hi,
>
> Just need a confirmation and any further help on how to do the same.
> Has anyone deployed JSPs on Netscape Enterprise Server 3.6
>
> Any info regarding the same would be helpful
>
> Thanks and cheers
> Jerry
>
> ==
> =
> 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



Documentation

2000-06-28 Thread Devon Manelski

I am also wondering about sources for explicit documentation regarding the
JSP object model.  I have spent some time looking on Sun's site, in the
Forte Docs and on the web but have been unable to come up with a simple set
of listing of object, methods and properties.

TIA,
Devon

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

2000-06-28 Thread Jim Preston

That may be because JSP doesn't really have an object model of its own to
speak of. There are no objects and methods that make up JSP. A JSP is an
HTML page with embedded Java code and some special tags. It gets compiled
into a servlet.  So really, the JSP object model is the servlet object
model.

If you want explicit documentation, there are at least three good books on
JavaServer Pages that will tell you pretty much everything you need.

--Jim Preston


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Devon Manelski
Sent: Wednesday, June 28, 2000 3:09 PM
To: [EMAIL PROTECTED]
Subject: Documentation


I am also wondering about sources for explicit documentation regarding the
JSP object model.  I have spent some time looking on Sun's site, in the
Forte Docs and on the web but have been unable to come up with a simple set
of listing of object, methods and properties.

TIA,
Devon

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



intelligent code completion

2000-06-28 Thread Devon Manelski

Can't get intelligent code completion to work.  Any suggestions.


Thanks,
Devon Manelski



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Jim Bailey
Sent: Wednesday, June 28, 2000 4:30 PM
To: [EMAIL PROTECTED]
Subject: Re: forwarding using RequestDispatcher


What servlet/jsp engine are you using? Sounds like you have servlet 2.0
instead of servlet 2.1 or 2.2.  ServletContext.getRequestDispatcher() wasn't
added until servlet 2.1. Are you using Websphere 2.x or something else that
runs jsp 0.9x instead of jsp 1.x?

Jim Bailey



-Original Message-
From: Mohan Nai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 4:03 PM
Subject: forwarding using RequestDispatcher


hi,
I am having a strange problem with the
RequestDispatcher.

I am trying to forward a request from a servlet to
jsp using

 getServletContext().
 getRequestDispatcher(URL).forward(req, res);

 Where URL is the jsp location.


   But when I am trying to compile the servlet it says

Method getRequestDispatcher(java.lang.String) not
found in interface javax.servlet.ServletContext

   ANy suggestions???

thanx,
mohan

===
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: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Louis

I'm using Jrun 3.0 and IE5, it run without any problem.
I try Weblogic 5.1 and JSWDK and Tomcat b4, it run fine.
If your session not work when run on iPlanet & IE5, i think u have to chk
out iPlanet, its not the IE problem.


- Original Message -
From: "Chris Ernenwein" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 10:45 PM
Subject: Re: Sessions/Cookies do not work in IE5!!


> you are right.  We could not get it to work with IE either.
>
> Chris E
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
> Sent: Wednesday, June 28, 2000 12:39 PM
> To: [EMAIL PROTECTED]
> Subject: Sessions/Cookies do not work in IE5!!
>
>
> Hello all,
>
> I am at my wits end...  I just got off the phone with iPlanet...  they
> are now telling me that i have to call their Professional Services
> department... because support can not help me.. I AM LOSING MY MIND!
>
> I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.
>
> I am trying to simply get Sessions/Cookies to work in Internet Explorer
> 5.  I am setting a session in a JSP file:
>
> <%
> session = request.getSession(true);
> session.putValue("Test", "Test Value");
> %>
>
> I have done this hundreds of times in the past.
>
> All works fine with a Netscape browser... but the session will not set
> in IE...
>
> I have tried everything, including:
>
> 1) Checking date/time on my system and the server.
> 2) Testing has been done on 10 different desktops.. same results.
> 2) Wrote a test servlet instead of a JSP page... did not work either...
> (i know.. i know.. but it was worth i try!!)
> 3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
> FINE!!! In both browsers.
> 4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
> DID NOT WORK in IE, but works in Netscape
>
> Am i going crazy?  I can not believe this is isolated to me and my
> servers...  it must be something simple
>
> Any help/advice would be so much appreciated...
>
> Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
> myself with!!  ;-)
>
> Cj
> --
> Corey A. Johnson
> Creative Network Innovations, Inc.
> 1-800-264-5547 ** 1-407-259-1984
>
>
===
> 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: Problem using Javawebserver and jswdk

2000-06-28 Thread Shane Duan

Again, my boss took my laptop so I cannot check where exactly it is. :)
There should be a folder called public-html or something like that under
C:\jswdk-1.0.1.  That's your real root directory for webpages.  You need
to put your first.jsp file there instead of the servlet folder, which is
used for servlet.

Shane Duan
Lead Software Developer
[EMAIL PROTECTED]
.

 -Original Message-
From:   Syamala kotamraju [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, June 28, 2000 3:32 PM
To: [EMAIL PROTECTED]
Subject:Problem using Javawebserver and jswdk

Hi,

I am trying my first jsp program(which outputs hello world through the
out.println statement) using java webserver and jswdk.I have set the
classpath in the autoexec.bat as below:
set
CLASSPATH=.;c:\jswdk-1.0.1\lib\servlet.jar;c:\jswdk-1.0.1\lib\jspengine.
jar;C:\JDK1.2.2\lib\tools.jar
set JAVA_HOME = "C:\JDK1.2.2"
I started my java webserver and invoked the startserver.bat file in the
jswdk installation directory.When i try to open the jsp file in the
browser
by http://localhost:8080/first.jsp i am getting an error as file not
found(error 404). I placed my jsp file in the servlets directory of java
webserver installation directory.
Can someone tell me what exactly is the way to configure the java web
server
with jswdk.I think there's something wrong in my configuration.
I am also getting an error while starting the server with jswdk as
environment out of space.I tried changing the size to the maximum but no
use.
Please help me
TIS,
Syamala.












Get your own Free Unified Messaging email account (with toll-free
voicemail and fax!) at http://www.electronmail.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: off topic - maximum open cursors exceeded

2000-06-28 Thread Philip Doyle

Hi

this error is common for folks who use connection pooling - as Oracle
creates a session for each connection and will accumulate cursors associated
with each open connection in the pool throughout the connections life.

Therefore one should set the max uses for each connection in the pool and
recreate them to release the Oracle resources associated with them.

Also, one can have ones DBA increase the max open cursors setting for the
database which is in $ORACLE_HOME/dbs/init.ora as far as I
remember.

regards
Phil

- Original Message -
From: Mark Hills <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 11:41 PM
Subject: Re: off topic - maximum open cursors exceeded


> You should just be able to use the Connection's close() method when you're
> done with it (done processing the page, for instance). You will want to
look
> into connection pooling to cut down on the time it takes to open and close
> connections on a page. I think Oracle has some info up on their website
> about this, and I know WebLogic provides connection pooling as a "service"
> of the WebLogic server, so I'm assuming other servers may do this as well.
>
> -Original Message-
> From: anderson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 4:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: off topic - maximum open cursors exceeded
>
>
> Thank you so much... And the Connection, how can I close it when the
session
> ends ?
>
> []s
>
> Mark Hills wrote:
>
> > Make sure you close any database objects that you aren't using anymore,
> like
> > ResultSet, CallableStatement, and PreparedStatement objects. I've gotten
> the
> > same errors before when I've forgotten to close things and this has
taken
> > care of it.
> >
> > -Original Message-
> > From: anderson [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 28, 2000 1:44 PM
> > To: [EMAIL PROTECTED]
> > Subject: off topic - maximum open cursors exceeded
> >
> > Anyone knows about this error in Oracle ? This error is about the number
> > of Recordset that I use in my page ?
> >
> > 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

===
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: off topic - maximum open cursors exceeded

2000-06-28 Thread Mark Hills

Make sure you close any database objects that you aren't using anymore, like
ResultSet, CallableStatement, and PreparedStatement objects. I've gotten the
same errors before when I've forgotten to close things and this has taken
care of it.

-Original Message-
From: anderson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 1:44 PM
To: [EMAIL PROTECTED]
Subject: off topic - maximum open cursors exceeded


Anyone knows about this error in Oracle ? This error is about the number
of Recordset that I use in my page ?

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



Re: off topic - maximum open cursors exceeded

2000-06-28 Thread Mark Hills

You should just be able to use the Connection's close() method when you're
done with it (done processing the page, for instance). You will want to look
into connection pooling to cut down on the time it takes to open and close
connections on a page. I think Oracle has some info up on their website
about this, and I know WebLogic provides connection pooling as a "service"
of the WebLogic server, so I'm assuming other servers may do this as well.

-Original Message-
From: anderson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 4:24 PM
To: [EMAIL PROTECTED]
Subject: Re: off topic - maximum open cursors exceeded


Thank you so much... And the Connection, how can I close it when the session
ends ?

[]s

Mark Hills wrote:

> Make sure you close any database objects that you aren't using anymore,
like
> ResultSet, CallableStatement, and PreparedStatement objects. I've gotten
the
> same errors before when I've forgotten to close things and this has taken
> care of it.
>
> -Original Message-
> From: anderson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 1:44 PM
> To: [EMAIL PROTECTED]
> Subject: off topic - maximum open cursors exceeded
>
> Anyone knows about this error in Oracle ? This error is about the number
> of Recordset that I use in my page ?
>
> 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: using getRequestDispatcher()

2000-06-28 Thread Craig McClanahan

You've got servlet classes from an older version of the servlet API in your
classpath.  Look for and remove them (probably a file named "jsdk.jar").

Craig McClanahan


Mohan Nai wrote:

> hi,
>
>I am having a problem with getRequestDispatcher().
> I am trying to forwqard a request from a servlet to
> jsp using
>
> getServletContext().
>  getRequestDispatcher(URL).forward(req, res);
>
> where URL is the location of the jsp.
>
>  when I try to compile the servlet it gives me an
> error stating that method
> getRequestDispatcher(java.lang.String) not found in
> the interface getServletContext().
>
>DO u guys have any suggestions??
>
> thanx,
> mohan
>
> __
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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



Opening a PDF w/Servlet

2000-06-28 Thread Godino Javier

Hello:
I'm trying to send a PDF file with a Servlet. My Application Server is JRUN.
When a run this servlet, I received the message: "Connection reset by peer:
Socket write error."
Any help/advice would be so much appreciated.

Javier

java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:112)
at allaire.jrun.ServletOut.write(ServletConnection.java:526)
at
java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:126)
at allaire.jrun.servlet.ServletBAOS.commit(ServletBAOS.java:163)
at allaire.jrun.servlet.ServletBAOS.commit(ServletBAOS.java:140)
at
allaire.jrun.servlet.JRunOutputStream.write(JRunOutputStream.java:100)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:112)
at Clientes.ClientSrv.performTask(ClientSrv.java:126)
at Clientes.ClientSrv.doPost(ClientSrv.java:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
)
at allaire.jrun.servlet.Invoker.service(Invoker.java:84)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
at allaire.jrun.WorkerThread.run(WorkerThread.java:74)

This is the code of the servlet:

  public void doPost(HttpServletRequest request, HttpServletResponse
response)
  {

//---
// Set the output data's mime type
//---

response.setContentType( "application/pdf" ); // MIME type for pdf
doc


//
// Content-disposition header - don't open in browser and
// set the "Save As..." filename.
// *There is reportedly a bug in IE4.0 which ignores this...
//

response.setHeader("Content-disposition","attachment; filename=" +
"Example.pdf" );

BufferedInputStream bis = null;
BufferedOutputStream bos = null;

try {

ServletOutputStream out = response.getOutputStream ();

// Use Buffered Stream for reading/writing.
bis = new BufferedInputStream(new
FileInputStream("d:\\file.pdf"));
bos = new BufferedOutputStream(out);

byte[] buff = new byte[2048];
int bytesRead;

// Simple read/write loop.
while(-1 != (bytesRead = bis.read(buff, 0, buff.length)))
{
bos.write(buff, 0, bytesRead);
}

}
catch (Exception theException)
{
theException.printStackTrace();
}

 }
}

===
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: off topic - maximum open cursors exceeded

2000-06-28 Thread anderson

Thank you so much... And the Connection, how can I close it when the session ends ?

[]s

Mark Hills wrote:

> Make sure you close any database objects that you aren't using anymore, like
> ResultSet, CallableStatement, and PreparedStatement objects. I've gotten the
> same errors before when I've forgotten to close things and this has taken
> care of it.
>
> -Original Message-
> From: anderson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 1:44 PM
> To: [EMAIL PROTECTED]
> Subject: off topic - maximum open cursors exceeded
>
> Anyone knows about this error in Oracle ? This error is about the number
> of Recordset that I use in my page ?
>
> 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



Re: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Corey A. Johnson

May be a direction i need to go...

Thanks Chris!

Cj

Chris Ernenwein wrote:
>
> sessions work but not session = request.getSession(true);
>
> We got a new value each time it was called, if you look at the sessionID.
>
> We used session scope beans to hold data.
>
> Chris E
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
> Sent: Wednesday, June 28, 2000 1:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Sessions/Cookies do not work in IE5!!
>
> That is crazy!  So you gave up?  This is for a huge Fortune 100 client
> of mine...  I am going to raise all kinds of hell if this is not
> fixable.  Do you want me to relay anything i find out?
>
> Cj
>
> Chris Ernenwein wrote:
> >
> > you are right.  We could not get it to work with IE either.
> >
> > Chris E
> >
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
> > Sent: Wednesday, June 28, 2000 12:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: Sessions/Cookies do not work in IE5!!
> >
> > Hello all,
> >
> > I am at my wits end...  I just got off the phone with iPlanet...  they
> > are now telling me that i have to call their Professional Services
> > department... because support can not help me.. I AM LOSING MY MIND!
> >
> > I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.
> >
> > I am trying to simply get Sessions/Cookies to work in Internet Explorer
> > 5.  I am setting a session in a JSP file:
> >
> > <%
> > session = request.getSession(true);
> > session.putValue("Test", "Test Value");
> > %>
> >
> > I have done this hundreds of times in the past.
> >
> > All works fine with a Netscape browser... but the session will not set
> > in IE...
> >
> > I have tried everything, including:
> >
> > 1) Checking date/time on my system and the server.
> > 2) Testing has been done on 10 different desktops.. same results.
> > 2) Wrote a test servlet instead of a JSP page... did not work either...
> > (i know.. i know.. but it was worth i try!!)
> > 3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
> > FINE!!! In both browsers.
> > 4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
> > DID NOT WORK in IE, but works in Netscape
> >
> > Am i going crazy?  I can not believe this is isolated to me and my
> > servers...  it must be something simple
> >
> > Any help/advice would be so much appreciated...
> >
> > Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
> > myself with!!  ;-)
> >
> > Cj
> > --
> > Corey A. Johnson
> > Creative Network Innovations, Inc.
> > 1-800-264-5547 ** 1-407-259-1984
> >
> >
> ===
> > 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
>
> --
> Corey A. Johnson
> President/Director of Technology
> Creative Network Innovations, Inc.
> 1-800-264-5547 ** 1-407-259-1984
>
> ===
> 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

--
Corey A. Johnson
President/Director of Technology
Creative Network Innovations, Inc.
1-800-264-5547 ** 1-407-259-1984

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

 http://java.sun.c

Re: forwarding using RequestDispatcher

2000-06-28 Thread Mohan Nai

 Hi,

  I am using jswdk-1.0.1 .

   thanx,
mohan




--- Jim Bailey <[EMAIL PROTECTED]> wrote:
> What servlet/jsp engine are you using? Sounds like
> you have servlet 2.0
> instead of servlet 2.1 or 2.2.
> ServletContext.getRequestDispatcher() wasn't
> added until servlet 2.1. Are you using Websphere 2.x
> or something else that
> runs jsp 0.9x instead of jsp 1.x?
>
> Jim Bailey
> 
>
>
> -Original Message-
> From: Mohan Nai [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 4:03 PM
> Subject: forwarding using RequestDispatcher
>
>
> hi,
> I am having a strange problem with the
> RequestDispatcher.
>
> I am trying to forward a request from a servlet
> to
> jsp using
>
>  getServletContext().
>  getRequestDispatcher(URL).forward(req, res);
>
>  Where URL is the jsp location.
>
>
>But when I am trying to compile the servlet it
> says
>
> Method getRequestDispatcher(java.lang.String) not
> found in interface javax.servlet.ServletContext
>
>ANy suggestions???
>
> thanx,
> mohan
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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



Re: Problem using Javawebserver and jswdk

2000-06-28 Thread Mohan Nai

hi syamala,

   I don't think you java webserver if you have jswdk.
It is enough if you have jswdk. I am  developing jsps
using only jswdk.  Infact you will have some problems
if you have java webserver runnning and if you start
jswdk.(port clash if you don't change the port)


 correct me if I am wrong.

thanx,
mohan






--- Syamala kotamraju <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I am trying my first jsp program(which outputs hello
> world through the
> out.println statement) using java webserver and
> jswdk.I have set the
> classpath in the autoexec.bat as below:
> set
>
CLASSPATH=.;c:\jswdk-1.0.1\lib\servlet.jar;c:\jswdk-1.0.1\lib\jspengine.jar;C:\JDK1.2.2\lib\tools.jar
> set JAVA_HOME = "C:\JDK1.2.2"
> I started my java webserver and invoked the
> startserver.bat file in the
> jswdk installation directory.When i try to open the
> jsp file in the browser
> by http://localhost:8080/first.jsp i am getting an
> error as file not
> found(error 404). I placed my jsp file in the
> servlets directory of java
> webserver installation directory.
> Can someone tell me what exactly is the way to
> configure the java web server
> with jswdk.I think there's something wrong in my
> configuration.
> I am also getting an error while starting the server
> with jswdk as
> environment out of space.I tried changing the size
> to the maximum but no
> use.
> Please help me
> TIS,
> Syamala.
>
>
>
>
>
>
>
>
>
>
>
>
> Get your own Free Unified Messaging email account
> (with toll-free voicemail and fax!) at
> http://www.electronmail.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


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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



Re: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Jaffa, Dan

using Sessions and IE5 and Weblogic works fine for me.  I did not have to do
anything special

Daniel Jaffa

-Original Message-
From: Chris Ernenwein [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 6:14 PM
To: [EMAIL PROTECTED]
Subject: Re: Sessions/Cookies do not work in IE5!!


sessions work but not session = request.getSession(true);

We got a new value each time it was called, if you look at the sessionID.

We used session scope beans to hold data.

Chris E


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
Sent: Wednesday, June 28, 2000 1:05 PM
To: [EMAIL PROTECTED]
Subject: Re: Sessions/Cookies do not work in IE5!!


That is crazy!  So you gave up?  This is for a huge Fortune 100 client
of mine...  I am going to raise all kinds of hell if this is not
fixable.  Do you want me to relay anything i find out?

Cj

Chris Ernenwein wrote:
>
> you are right.  We could not get it to work with IE either.
>
> Chris E
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
> Sent: Wednesday, June 28, 2000 12:39 PM
> To: [EMAIL PROTECTED]
> Subject: Sessions/Cookies do not work in IE5!!
>
> Hello all,
>
> I am at my wits end...  I just got off the phone with iPlanet...  they
> are now telling me that i have to call their Professional Services
> department... because support can not help me.. I AM LOSING MY MIND!
>
> I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.
>
> I am trying to simply get Sessions/Cookies to work in Internet Explorer
> 5.  I am setting a session in a JSP file:
>
> <%
> session = request.getSession(true);
> session.putValue("Test", "Test Value");
> %>
>
> I have done this hundreds of times in the past.
>
> All works fine with a Netscape browser... but the session will not set
> in IE...
>
> I have tried everything, including:
>
> 1) Checking date/time on my system and the server.
> 2) Testing has been done on 10 different desktops.. same results.
> 2) Wrote a test servlet instead of a JSP page... did not work either...
> (i know.. i know.. but it was worth i try!!)
> 3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
> FINE!!! In both browsers.
> 4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
> DID NOT WORK in IE, but works in Netscape
>
> Am i going crazy?  I can not believe this is isolated to me and my
> servers...  it must be something simple
>
> Any help/advice would be so much appreciated...
>
> Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
> myself with!!  ;-)
>
> Cj
> --
> Corey A. Johnson
> Creative Network Innovations, Inc.
> 1-800-264-5547 ** 1-407-259-1984
>
>
===
> 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

--
Corey A. Johnson
President/Director of Technology
Creative Network Innovations, Inc.
1-800-264-5547 ** 1-407-259-1984

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

Problem using Javawebserver and jswdk

2000-06-28 Thread Syamala kotamraju

Hi,

I am trying my first jsp program(which outputs hello world through the
out.println statement) using java webserver and jswdk.I have set the
classpath in the autoexec.bat as below:
set
CLASSPATH=.;c:\jswdk-1.0.1\lib\servlet.jar;c:\jswdk-1.0.1\lib\jspengine.jar;C:\JDK1.2.2\lib\tools.jar
set JAVA_HOME = "C:\JDK1.2.2"
I started my java webserver and invoked the startserver.bat file in the
jswdk installation directory.When i try to open the jsp file in the browser
by http://localhost:8080/first.jsp i am getting an error as file not
found(error 404). I placed my jsp file in the servlets directory of java
webserver installation directory.
Can someone tell me what exactly is the way to configure the java web server
with jswdk.I think there's something wrong in my configuration.
I am also getting an error while starting the server with jswdk as
environment out of space.I tried changing the size to the maximum but no
use.
Please help me
TIS,
Syamala.












Get your own Free Unified Messaging email account (with toll-free voicemail and fax!) 
at http://www.electronmail.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: forwarding using RequestDispatcher

2000-06-28 Thread Jim Bailey

What servlet/jsp engine are you using? Sounds like you have servlet 2.0
instead of servlet 2.1 or 2.2.  ServletContext.getRequestDispatcher() wasn't
added until servlet 2.1. Are you using Websphere 2.x or something else that
runs jsp 0.9x instead of jsp 1.x?

Jim Bailey



-Original Message-
From: Mohan Nai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 4:03 PM
Subject: forwarding using RequestDispatcher


hi,
I am having a strange problem with the
RequestDispatcher.

I am trying to forward a request from a servlet to
jsp using

 getServletContext().
 getRequestDispatcher(URL).forward(req, res);

 Where URL is the jsp location.


   But when I am trying to compile the servlet it says

Method getRequestDispatcher(java.lang.String) not
found in interface javax.servlet.ServletContext

   ANy suggestions???

thanx,
mohan

===
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/JDBC-bean - Geert

2000-06-28 Thread Geert Van Damme

And I forgot few things.

- Sometimes (depending on the complexity) I put the lookup methods in a
separate class. (like StaffSearcher).
- I also create another object as an interface between servlets/JSP and the
bean to handle the communication between a posted form and the bean.
This is because I don't want to import javax.servlet. and use these specific
servlet classes in these beans.
I can use the updater in my servlets and JSP like
StaffUpdater updater = new StaffUpdater();
updater.update(request,response);


Geert 'Darling' Van Damme

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Geert Van Damme
> Sent: woensdag 28 juni 2000 21:35
> To: [EMAIL PROTECTED]
> Subject: Re: JSP/JDBC-bean - Geert
>
>
> nono, not at all. You understood this wrong.
> I'm not using EJB's myself, but with EJB's there's a very detailed outline
> on how you're supposed to create them and what methods are needed.
> If you use simple classes/beans to do the db work, there isn't any guide.
> So everyone has to re-invent what's the best way to code these. And I've
> seen quite some bad solutions.
>
> I used mainly 2 approaches.
> * the first one is a generic wrapper class around a SQL statement. The
> details (select statement, column list, data types, whether it's
> updateable
> or not, connection name...) are stored in a configuration file.
> This allows me to do easy reporting and direct updating/inserting in the
> database. The data are cached in memory so that I can close the connection
> after retrieving the data.
> This is more or less like a CachedRowSet.
>
> * On other occasions I create beans that map the specific
> business objects.
> But especially here it's not clear how we 're supposed to do this.
> I mostly create:
> - a constructor without params (required for beans) and that allows me to
> insert new objects in the db.
> - a constructor that takes the primary key
> - sometimes some other lookup constructors, like with a name.
> - a load method
> - a save method (that inserts or saves depending on whether the load
> function was already called)
> - sometimes a delete method (but I don't delete often from a database)
> - get and set methods for the main data fields
> - a generic get and set method for other data fields like
> String getValue(String field) and
> void setValue(String field, String value)
> - Static lookup methods that return an instance, an array of
> instances or an
> array of keys.
>
> I would like to put this way of working in some sort of light
> framework with
> interfaces, utility classes and parts of the code I keep
> rewriting in all my
> classes.
> I really need to do some good refactoring here.
> Are there any suggestions? remarks on my outline above, comments,
> alternatives
>
> Geert 'Darling' Van Damme
>
>
>
>
>
>
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Kishore Raghavan
> > Sent: woensdag 28 juni 2000 20:51
> > To: [EMAIL PROTECTED]
> > Subject: Re: JSP/JDBC-bean - Geert
> >
> >
> > Geert,
> >
> > I did not understand what you meant by this...
> >
> > [Geert Wrtoe...
> > > As you see, there are quite some problems left ;-)
> > > but the most important point is: How are we suppose to program
> > things like
> > > this?
> > > That is, if you're not using EJB's, but simple beans to store
> > the database
> > > information.
> > ...]
> >
> > Did you mean, we cannot write database applications without using EJBs ?
> >
> > Why do you feel EJBs are more scaleable ?
> >
> > Please clarify...
> >
> > Thanks
> > Kishore Raghavan
> >
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Pedro Meza
> > Sent: Tuesday, June 27, 2000 7:22 AM
> > To: [EMAIL PROTECTED]
> > Subject: JSP/JDBC-bean
> >
> >
> > Geert,
> >
> > I believe that you made some great points.  I am just beginning to learn
> > JSP -
> > JDBC/JavaBeans.  You are right in stating that I did ont close
> > the resultset
> > and
> > statement.  I see those  errors and others.  I have not found
> very much on
> > the
> > internet on JDBC/JavaBean coding so I tried something and appreciate the
> > feedback.
> >
> > The questions I have to your comments are:
> >
> > How does one do connection pooling and caching ???
> >
> > When displaying the results, why would vectors be useful ???  I
> > can sort in
> > my
> > query and do not need to reference the data but only to display it.
> >
> > I am not using EJB because my company does not support them ???
>   What are
> > there
> > advantages ??? I understand entity beans are too slow to use
> and resource
> > intensive.
> >
> > Thanks,
> >
> > Pedro
> >
> >
> > Geert Van Damme wrote:
> >
> > > Some remarks:
> > >
> > > Your class might work well for you, but to be used as a ki

using getRequestDispatcher()

2000-06-28 Thread Mohan Nai

hi,

   I am having a problem with getRequestDispatcher().
I am trying to forwqard a request from a servlet to
jsp using

getServletContext().
 getRequestDispatcher(URL).forward(req, res);

where URL is the location of the jsp.

 when I try to compile the servlet it gives me an
error stating that method
getRequestDispatcher(java.lang.String) not found in
the interface getServletContext().


   DO u guys have any suggestions??

thanx,
mohan






__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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



Re: Error..ORB implementation com.sybase.CORBA.ORB

2000-06-28 Thread Vasudha Deepak

In Jrun Default and Admin Server, there is an option of Java
Settings.Probably you need the set Java Arguments option in that .This is
where you can specify the ORB implementation details.


- Original Message -
From: Daryani Santosh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 1:34 PM
Subject: Error..ORB implementation com.sybase.CORBA.ORB


> Hi All,
>  I am using JRun3.0 , Personal Web Server4.0 and JDK 1.2.2.
>  While calling a bean method from my JSP I get the following error.The
bean is
> trying to connect to a component on a Jaguar CTS 3.5 server.
>
> can't instantiate default ORB implementation com.sybase.CORBA.ORB
> org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
> com.sybase.CORBA.ORB
> minor code: 0  completed: No
> at org.omg.CORBA.ORB.create_impl(ORB.java:305)
>
>
> The same code works , when I tear it from a bean and put it into a stand
alone
> app.
> Its not a path problem . Any clues ? Suggestions ? Your help is
appreciated.
>
> Thanks
> Santosh
>
>
===
> 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



Model 2 design question

2000-06-28 Thread Anurag Gaur

Hi All,

As I learned from Model 2 discussion (Craig, Kevin,.), the action class
should be passed the reference to servlet so that it has access to
servletcontext
and therefore access to the connection pool. The action class can pass
the database connection to the beans for them to access the database.

My question is to where to put the business logic and database
access: In action classes or the beans?

Beans hold the data, are stored in request or session scope so that they
can be accessed from resources like JSPs and servlets. Should they
be also responsible to access the database or call EJBs to get application
and situation specific data therefore making them useful under those
circustances only. If they are used more or less like data structures
with few operations, they are probably more re-useable. So, I tend to
put more code in action classes, like most of the business logic, accessing
resources like databases, EJBs, and so on so forth.

Any comments, suggestions, help is appreciated.

Thanks,
Anurag Gaur

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



forwarding using RequestDispatcher

2000-06-28 Thread Mohan Nai

hi,
I am having a strange problem with the
RequestDispatcher.

I am trying to forward a request from a servlet to
jsp using

 getServletContext().
 getRequestDispatcher(URL).forward(req, res);

 Where URL is the jsp location.


   But when I am trying to compile the servlet it says

Method getRequestDispatcher(java.lang.String) not
found in interface javax.servlet.ServletContext

   ANy suggestions???

thanx,
mohan







__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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



JSP/Java and XML Parser

2000-06-28 Thread Antoniuk, Jacek

Hi,
   I need to render HTML pages based on provided XML/XSL definition (from
database) using Java and JSP as much as possible.
The catch is that a requirement is to be able to add latter a business logic
(validation) between some of the generated
web pages and be able to modify the outline of generated pages.
Could anyone recommend an approach?...

Thanks!

Ja

===
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: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Sven van 't Veer

Chris Ernenwein wrote:
>
> sessions work but not session = request.getSession(true);
>
> We got a new value each time it was called, if you look at the sessionID.
>
> We used session scope beans to hold data.
Have you tried:
<%
  HttpSession sess = request.getSession(); e.i. not
request.getSession(true)
  session.putValue("Test", "Test Value");
%>

from the JSP docs:
(javax.servlet.jsp
Class PageContext
java.lang.Object
  |
  +--javax.servlet.jsp.PageContext

)
getSession
public abstract HttpSession getSession()
Returns:
the HttpSession for this PageContext or null

As I understood from the docs, JSP always creates a session object.

Hope this helps

Sven


--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

===
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: Weblogic Problem

2000-06-28 Thread Sneha Sharma

Sneha Sharma@CONTEXT
06/28/2000 12:59 PM

It does:

E.g. weblogic.httpd.documentRoot=Z:\\www\\htdocs

Sneha






Mark Annese <[EMAIL PROTECTED]> on 06/28/2000 04:21:10 PM

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



 To:  [EMAIL PROTECTED]

 cc:  (bcc: Sneha Sharma/Context)



 Subject: Re: Weblogic Problem









I tried editing the properties file the way that BEA spec'ed out,but it did
not seem to work correctly?

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of P.J. Tenn
Sent: Wednesday, June 28, 2000 2:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Weblogic Problem


You will also need to configure your Weblogic.properties file.

-Original Message-
From: Mark Annese [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 11:31 AM
To: [EMAIL PROTECTED]
Subject: Weblogic Problem


Has anyone encountered the problem where Weblogic is not recognizing .JSP
files and throws an error?

Thanks

Mark

===
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: Weblogic Problem

2000-06-28 Thread Mark Annese

I tried editing the properties file the way that BEA spec'ed out,but it did
not seem to work correctly?

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of P.J. Tenn
Sent: Wednesday, June 28, 2000 2:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Weblogic Problem


You will also need to configure your Weblogic.properties file.

-Original Message-
From: Mark Annese [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 11:31 AM
To: [EMAIL PROTECTED]
Subject: Weblogic Problem


Has anyone encountered the problem where Weblogic is not recognizing .JSP
files and throws an error?

Thanks

Mark

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



Weblogic -JSP response time problem

2000-06-28 Thread Soni, Anuraj

We are using BEA weblogic 5.1 and JSP. After I run weblogic & call few
initialize routines to load some data using our own connection pool I have
noticed that that whenever I send a request thru' the browser I see the
following line on the console then there is no response for about 20-45
seconds and then the first statement in the JSP is executed.

Fri Jun 23 14:58:25 EDT 2000:  Registering socket:
'weblogic.socket.MuxableSocketHTTP@bfedd94e - idle timeout: '60', socket
timeout: '5000', fd: '23'

Can somebody just give me some pointers as to the possible problems. I know
the problem description is incomplete. I am exploring the following areas

1. Since we are pre-loading lot of data (about 5-10 M)for performance
reasons so probably web logic is running into some sort of memory
limitations. I have tried configuring the startWebLogic.sh file and modified
the call to java to explicitly set the max heap size to 256M but this has no
effect.

Is there any thing else that needs to be configured??

2. Tried playing with http tunneling but this does not seem to be the case
either

3. We are not using any oracle connection pool so it does not look like a
database issue.

Any help will be greatly appreciated.

Thanks
Anu Soni

===
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: response.redirect

2000-06-28 Thread Craig McClanahan

John Doe wrote:

> Can anyone please refer me to some concrete documentation on this.  I would
> really like to know if this is true:  is there another thread created which
> does the redirection code, while the current thread continues executing the
> code on the current page?
>

Check the HTTP spec (RFC 2616, is the current one, if I remember right) and the
Servlet API spec (http://java.sun.com/products/servlet/download.html) for the
details.

Basically, calling response.sendRedirect("xyz") sets the HTTP response status to
301 or 302 (I don't remember which), and adds a header that includes the URL to
the new message.  This response, when sent back to the browser, will cause it to
automatically issue a *new* request to the new URL.

Note, however, that the sendRedirect() method is a normal Java method that
ultimately returns to its caller -- there is no thread magic going on here.  You
should include a "return" statement after calling this method in your own code.
 The same rule applies when you use RequestDispatcher.forward() -- you need to
include a "return" statement afterwards.  The only case where you don't is when
using , which (in effect) generates the return for you.

>
> thank you
> rostom
>

Craig McClanahan

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

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



Re: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Rick Jesse

Cookies totally work in IE5. I've doing pretty much exactly what your code
fragment does in Ie5 using Weblogic 5.1 and it works fine. The only
difference is that I've been using the method HttpSession.setAttribute()
instead of the depreciated HttpSession.setValue() that you are using. Just
make sure you have cookies turned on in Ie5.  Check that they're turned on
under Tools->Internet Options->Security.

-Rick


- Original Message -
From: "Chris Ernenwein" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 2:45 PM
Subject: Re: Sessions/Cookies do not work in IE5!!


> you are right.  We could not get it to work with IE either.
>
> Chris E
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
> Sent: Wednesday, June 28, 2000 12:39 PM
> To: [EMAIL PROTECTED]
> Subject: Sessions/Cookies do not work in IE5!!
>
>
> Hello all,
>
> I am at my wits end...  I just got off the phone with iPlanet...  they
> are now telling me that i have to call their Professional Services
> department... because support can not help me.. I AM LOSING MY MIND!
>
> I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.
>
> I am trying to simply get Sessions/Cookies to work in Internet Explorer
> 5.  I am setting a session in a JSP file:
>
> <%
> session = request.getSession(true);
> session.putValue("Test", "Test Value");
> %>
>
> I have done this hundreds of times in the past.
>
> All works fine with a Netscape browser... but the session will not set
> in IE...
>
> I have tried everything, including:
>
> 1) Checking date/time on my system and the server.
> 2) Testing has been done on 10 different desktops.. same results.
> 2) Wrote a test servlet instead of a JSP page... did not work either...
> (i know.. i know.. but it was worth i try!!)
> 3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
> FINE!!! In both browsers.
> 4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
> DID NOT WORK in IE, but works in Netscape
>
> Am i going crazy?  I can not believe this is isolated to me and my
> servers...  it must be something simple
>
> Any help/advice would be so much appreciated...
>
> Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
> myself with!!  ;-)
>
> Cj
> --
> Corey A. Johnson
> Creative Network Innovations, Inc.
> 1-800-264-5547 ** 1-407-259-1984
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Re: JSP/JDBC-bean - Geert

2000-06-28 Thread Geert Van Damme

nono, not at all. You understood this wrong.
I'm not using EJB's myself, but with EJB's there's a very detailed outline
on how you're supposed to create them and what methods are needed.
If you use simple classes/beans to do the db work, there isn't any guide.
So everyone has to re-invent what's the best way to code these. And I've
seen quite some bad solutions.

I used mainly 2 approaches.
* the first one is a generic wrapper class around a SQL statement. The
details (select statement, column list, data types, whether it's updateable
or not, connection name...) are stored in a configuration file.
This allows me to do easy reporting and direct updating/inserting in the
database. The data are cached in memory so that I can close the connection
after retrieving the data.
This is more or less like a CachedRowSet.

* On other occasions I create beans that map the specific business objects.
But especially here it's not clear how we 're supposed to do this.
I mostly create:
- a constructor without params (required for beans) and that allows me to
insert new objects in the db.
- a constructor that takes the primary key
- sometimes some other lookup constructors, like with a name.
- a load method
- a save method (that inserts or saves depending on whether the load
function was already called)
- sometimes a delete method (but I don't delete often from a database)
- get and set methods for the main data fields
- a generic get and set method for other data fields like
String getValue(String field) and
void setValue(String field, String value)
- Static lookup methods that return an instance, an array of instances or an
array of keys.

I would like to put this way of working in some sort of light framework with
interfaces, utility classes and parts of the code I keep rewriting in all my
classes.
I really need to do some good refactoring here.
Are there any suggestions? remarks on my outline above, comments,
alternatives

Geert 'Darling' Van Damme







> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kishore Raghavan
> Sent: woensdag 28 juni 2000 20:51
> To: [EMAIL PROTECTED]
> Subject: Re: JSP/JDBC-bean - Geert
>
>
> Geert,
>
> I did not understand what you meant by this...
>
> [Geert Wrtoe...
> > As you see, there are quite some problems left ;-)
> > but the most important point is: How are we suppose to program
> things like
> > this?
> > That is, if you're not using EJB's, but simple beans to store
> the database
> > information.
> ...]
>
> Did you mean, we cannot write database applications without using EJBs ?
>
> Why do you feel EJBs are more scaleable ?
>
> Please clarify...
>
> Thanks
> Kishore Raghavan
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Pedro Meza
> Sent: Tuesday, June 27, 2000 7:22 AM
> To: [EMAIL PROTECTED]
> Subject: JSP/JDBC-bean
>
>
> Geert,
>
> I believe that you made some great points.  I am just beginning to learn
> JSP -
> JDBC/JavaBeans.  You are right in stating that I did ont close
> the resultset
> and
> statement.  I see those  errors and others.  I have not found very much on
> the
> internet on JDBC/JavaBean coding so I tried something and appreciate the
> feedback.
>
> The questions I have to your comments are:
>
> How does one do connection pooling and caching ???
>
> When displaying the results, why would vectors be useful ???  I
> can sort in
> my
> query and do not need to reference the data but only to display it.
>
> I am not using EJB because my company does not support them ???   What are
> there
> advantages ??? I understand entity beans are too slow to use and resource
> intensive.
>
> Thanks,
>
> Pedro
>
>
> Geert Van Damme wrote:
>
> > Some remarks:
> >
> > Your class might work well for you, but to be used as a kind of
> reference
> > for other users, I see quite a few issues:
> > - Your object is very limited in that you always retrieve all
> records. You
> > don't provide any search capabilities or anything.
> > - You don't provide insert/update capabilities
> > - You're not using connection pooling and no caching.
> > - You have duplicated code: 1st to get the first record and then to get
> the
> > other ones. Are you sure this is working I think you need to call
> > rs.next once in order to fetch the first row.
> > - You only keep the results of the last row in you instance
> variables. Why
> > aren't you using arrays or vectors?
> > - You keep the Resultset as an instance variable in your bean
> > - you're not closing the resultset.
> > - you're not closing the statement.
> > - worse of all: you're not closing the connection.
> > - You're catching the SQLExceoption in 2 places, and you're not looking
> for
> > nextException.
> > - you're not closing the connection in case of exception
> > - you're setting autocommit to false, but you never do a commit or a

Re: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Corey A. Johnson

Hello Rick,

I have checked all of that... ten times over... if you read my post...
it mentions that have moved the JSP file to an Apache/Linux install and
it works fine with all browsers.

Only on iPlanet does it have a problem with IE5.

Thanks for the info.

Cj

Rick Jesse wrote:
>
> Cookies totally work in IE5. I've doing pretty much exactly what your code
> fragment does in Ie5 using Weblogic 5.1 and it works fine. The only
> difference is that I've been using the method HttpSession.setAttribute()
> instead of the depreciated HttpSession.setValue() that you are using. Just
> make sure you have cookies turned on in Ie5.  Check that they're turned on
> under Tools->Internet Options->Security.
>
> -Rick
>
> - Original Message -
> From: "Chris Ernenwein" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 28, 2000 2:45 PM
> Subject: Re: Sessions/Cookies do not work in IE5!!
>
> > you are right.  We could not get it to work with IE either.
> >
> > Chris E
> >
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
> > Sent: Wednesday, June 28, 2000 12:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: Sessions/Cookies do not work in IE5!!
> >
> >
> > Hello all,
> >
> > I am at my wits end...  I just got off the phone with iPlanet...  they
> > are now telling me that i have to call their Professional Services
> > department... because support can not help me.. I AM LOSING MY MIND!
> >
> > I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.
> >
> > I am trying to simply get Sessions/Cookies to work in Internet Explorer
> > 5.  I am setting a session in a JSP file:
> >
> > <%
> > session = request.getSession(true);
> > session.putValue("Test", "Test Value");
> > %>
> >
> > I have done this hundreds of times in the past.
> >
> > All works fine with a Netscape browser... but the session will not set
> > in IE...
> >
> > I have tried everything, including:
> >
> > 1) Checking date/time on my system and the server.
> > 2) Testing has been done on 10 different desktops.. same results.
> > 2) Wrote a test servlet instead of a JSP page... did not work either...
> > (i know.. i know.. but it was worth i try!!)
> > 3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
> > FINE!!! In both browsers.
> > 4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
> > DID NOT WORK in IE, but works in Netscape
> >
> > Am i going crazy?  I can not believe this is isolated to me and my
> > servers...  it must be something simple
> >
> > Any help/advice would be so much appreciated...
> >
> > Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
> > myself with!!  ;-)
> >
> > Cj
> > --
> > Corey A. Johnson
> > Creative Network Innovations, Inc.
> > 1-800-264-5547 ** 1-407-259-1984
> >
> >
> ===
> > 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

--
Corey A. Johnson
President/Director of Technology
Creative Network Innovations, Inc.
1-800-264-5547 ** 1-407-259-1984

===
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: Weblogic Problem

2000-06-28 Thread Jaffa, Dan

You to need to uncomment out the following lines from the
Weblogic.properties file.
Of course change the compileCommand to point to your javac.  The working
Directory is where weblogic puts
the complied jsp pages.

Daniel Jaffa

[EMAIL PROTECTED]




weblogic.httpd.register.*.jsp=\
   weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=\
   pageCheckSeconds=1,\
   compileCommand=c:/jdk1.2.2/bin/javac.exe,\
   workingDir=e:/weblogic51/myserver/classfiles,\
   verbose=true

-Original Message-
From: P.J. Tenn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 3:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Weblogic Problem


You will also need to configure your Weblogic.properties file.

-Original Message-
From: Mark Annese [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 11:31 AM
To: [EMAIL PROTECTED]
Subject: Weblogic Problem


Has anyone encountered the problem where Weblogic is not recognizing .JSP
files and throws an error?

Thanks

Mark

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



Error..ORB implementation com.sybase.CORBA.ORB

2000-06-28 Thread Daryani Santosh

Hi All,
 I am using JRun3.0 , Personal Web Server4.0 and JDK 1.2.2.
 While calling a bean method from my JSP I get the following error.The bean is
trying to connect to a component on a Jaguar CTS 3.5 server.

can't instantiate default ORB implementation com.sybase.CORBA.ORB
org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
com.sybase.CORBA.ORB
minor code: 0  completed: No
at org.omg.CORBA.ORB.create_impl(ORB.java:305)


The same code works , when I tear it from a bean and put it into a stand alone
app.
Its not a path problem . Any clues ? Suggestions ? Your help is appreciated.

Thanks
Santosh

===
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: Weblogic Problem

2000-06-28 Thread George Ludwig

Mutahar Qayum wrote:

> You have to go in Your web browser and enter mime.type as text/jsp for jsp.
> And you also need to add jsp related lines in obj.conf

Not exactly true. The MIME type in the browser has nothing to do with wether or not
the jsp page will execute. By the time the browser actually gets any info back from
a JSP url, it is not a JSP page, but an html page.

The only thing you need to do in uncomment the 2 JSP related lines in the
weblogic.properties file.

George

===
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: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Corey A. Johnson

That is crazy!  So you gave up?  This is for a huge Fortune 100 client
of mine...  I am going to raise all kinds of hell if this is not
fixable.  Do you want me to relay anything i find out?

Cj

Chris Ernenwein wrote:
>
> you are right.  We could not get it to work with IE either.
>
> Chris E
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
> Sent: Wednesday, June 28, 2000 12:39 PM
> To: [EMAIL PROTECTED]
> Subject: Sessions/Cookies do not work in IE5!!
>
> Hello all,
>
> I am at my wits end...  I just got off the phone with iPlanet...  they
> are now telling me that i have to call their Professional Services
> department... because support can not help me.. I AM LOSING MY MIND!
>
> I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.
>
> I am trying to simply get Sessions/Cookies to work in Internet Explorer
> 5.  I am setting a session in a JSP file:
>
> <%
> session = request.getSession(true);
> session.putValue("Test", "Test Value");
> %>
>
> I have done this hundreds of times in the past.
>
> All works fine with a Netscape browser... but the session will not set
> in IE...
>
> I have tried everything, including:
>
> 1) Checking date/time on my system and the server.
> 2) Testing has been done on 10 different desktops.. same results.
> 2) Wrote a test servlet instead of a JSP page... did not work either...
> (i know.. i know.. but it was worth i try!!)
> 3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
> FINE!!! In both browsers.
> 4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
> DID NOT WORK in IE, but works in Netscape
>
> Am i going crazy?  I can not believe this is isolated to me and my
> servers...  it must be something simple
>
> Any help/advice would be so much appreciated...
>
> Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
> myself with!!  ;-)
>
> Cj
> --
> Corey A. Johnson
> Creative Network Innovations, Inc.
> 1-800-264-5547 ** 1-407-259-1984
>
> ===
> 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

--
Corey A. Johnson
President/Director of Technology
Creative Network Innovations, Inc.
1-800-264-5547 ** 1-407-259-1984

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



bug with array casting within a JSP process

2000-06-28 Thread George Ludwig

I have a javabean that's called from a JSP page. The bean compiles fine, but at
runtime JSP fails with no real explanation. The method code is something like

Vector myVec ;

MyCustomObject mco = new MyCustomObject() ;

myVec.add(mco) ;

Object[] o = myVec.toArray() ;

return (MyCustomObject)o ;

I'm pretty sure I've done this before in other cases, but in JSP it just fails.
BTW, it fails in both the JSWDK as well as WebLogic (both under Linux 6.1).

Obviously, I worked around it be just returning the array without casting it, then
casting each array element as I used it. But that's not clean and it pisses me off.

Is this a known bug? Where can I report it if it is?

Cheers,

George

===
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: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Chris Ernenwein

sessions work but not session = request.getSession(true);

We got a new value each time it was called, if you look at the sessionID.

We used session scope beans to hold data.

Chris E


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
Sent: Wednesday, June 28, 2000 1:05 PM
To: [EMAIL PROTECTED]
Subject: Re: Sessions/Cookies do not work in IE5!!


That is crazy!  So you gave up?  This is for a huge Fortune 100 client
of mine...  I am going to raise all kinds of hell if this is not
fixable.  Do you want me to relay anything i find out?

Cj

Chris Ernenwein wrote:
>
> you are right.  We could not get it to work with IE either.
>
> Chris E
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
> Sent: Wednesday, June 28, 2000 12:39 PM
> To: [EMAIL PROTECTED]
> Subject: Sessions/Cookies do not work in IE5!!
>
> Hello all,
>
> I am at my wits end...  I just got off the phone with iPlanet...  they
> are now telling me that i have to call their Professional Services
> department... because support can not help me.. I AM LOSING MY MIND!
>
> I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.
>
> I am trying to simply get Sessions/Cookies to work in Internet Explorer
> 5.  I am setting a session in a JSP file:
>
> <%
> session = request.getSession(true);
> session.putValue("Test", "Test Value");
> %>
>
> I have done this hundreds of times in the past.
>
> All works fine with a Netscape browser... but the session will not set
> in IE...
>
> I have tried everything, including:
>
> 1) Checking date/time on my system and the server.
> 2) Testing has been done on 10 different desktops.. same results.
> 2) Wrote a test servlet instead of a JSP page... did not work either...
> (i know.. i know.. but it was worth i try!!)
> 3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
> FINE!!! In both browsers.
> 4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
> DID NOT WORK in IE, but works in Netscape
>
> Am i going crazy?  I can not believe this is isolated to me and my
> servers...  it must be something simple
>
> Any help/advice would be so much appreciated...
>
> Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
> myself with!!  ;-)
>
> Cj
> --
> Corey A. Johnson
> Creative Network Innovations, Inc.
> 1-800-264-5547 ** 1-407-259-1984
>
>
===
> 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

--
Corey A. Johnson
President/Director of Technology
Creative Network Innovations, Inc.
1-800-264-5547 ** 1-407-259-1984

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



Problem in opening a jsp file using Java Webserver and jswdk

2000-06-28 Thread syamala burugula

Hi,

  I am trying my first jsp program(which outputs hello world through the
out.println statement) using java webserver and jswdk.I have set the
classpath in the autoexec.bat as below:
set
CLASSPATH=.;c:\jswdk-1.0.1\lib\servlet.jar;c:\jswdk-1.0.1\lib\jspengine.jar;C:\JDK1.2.2\lib\tools.jar
set JAVA_HOME = "C:\JDK1.2.2"
I started my java webserver and invoked the startserver.bat file in the
jswdk installation directory.When i try to open the jsp file in the browser
by http://localhost:8080/first.jsp i am getting an error as file not
found(error 404). I placed my jsp file in the servlets directory of java
webserver installation directory.
Can someone tell me what exactly is the way to configure the java web server
with jswdk.I think there's something wrong in my configuration.
I am also getting an error while starting the server with jswdk as
environment out of space.I tried changing the size to the maximum but no
use.
Please help me
TIS,
Syamala.

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



Re: Weblogic Problem

2000-06-28 Thread P.J. Tenn

You will also need to configure your Weblogic.properties file.

-Original Message-
From: Mark Annese [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 11:31 AM
To: [EMAIL PROTECTED]
Subject: Weblogic Problem


Has anyone encountered the problem where Weblogic is not recognizing .JSP
files and throws an error?

Thanks

Mark

===
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: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Brad Miley

I had the same problem

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



Tomcat servlet configuration question

2000-06-28 Thread Laiwu Luo

I have a small application implemented in servlets running on Tomcat
container. But to access servlets, users
have to type the URLs  like
"http:servlet/". I really like
to change it so that users only need to enter URLs like
"http:".

I wonder whether I can ahieve this by simply editing something in the
configuration files like web.xml?

Thanks,

-- Laiwu Luo

===
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: Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Chris Ernenwein

you are right.  We could not get it to work with IE either.

Chris E

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Corey A. Johnson
Sent: Wednesday, June 28, 2000 12:39 PM
To: [EMAIL PROTECTED]
Subject: Sessions/Cookies do not work in IE5!!


Hello all,

I am at my wits end...  I just got off the phone with iPlanet...  they
are now telling me that i have to call their Professional Services
department... because support can not help me.. I AM LOSING MY MIND!

I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.

I am trying to simply get Sessions/Cookies to work in Internet Explorer
5.  I am setting a session in a JSP file:

<%
session = request.getSession(true);
session.putValue("Test", "Test Value");
%>

I have done this hundreds of times in the past.

All works fine with a Netscape browser... but the session will not set
in IE...

I have tried everything, including:

1) Checking date/time on my system and the server.
2) Testing has been done on 10 different desktops.. same results.
2) Wrote a test servlet instead of a JSP page... did not work either...
(i know.. i know.. but it was worth i try!!)
3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
FINE!!! In both browsers.
4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
DID NOT WORK in IE, but works in Netscape

Am i going crazy?  I can not believe this is isolated to me and my
servers...  it must be something simple

Any help/advice would be so much appreciated...

Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
myself with!!  ;-)

Cj
--
Corey A. Johnson
Creative Network Innovations, Inc.
1-800-264-5547 ** 1-407-259-1984

===
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/JDBC-bean - Geert

2000-06-28 Thread Kishore Raghavan

Geert,

I did not understand what you meant by this...

[Geert Wrtoe...
> As you see, there are quite some problems left ;-)
> but the most important point is: How are we suppose to program things like
> this?
> That is, if you're not using EJB's, but simple beans to store the database
> information.
...]

Did you mean, we cannot write database applications without using EJBs ?

Why do you feel EJBs are more scaleable ?

Please clarify...

Thanks
Kishore Raghavan

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Pedro Meza
Sent: Tuesday, June 27, 2000 7:22 AM
To: [EMAIL PROTECTED]
Subject: JSP/JDBC-bean


Geert,

I believe that you made some great points.  I am just beginning to learn
JSP -
JDBC/JavaBeans.  You are right in stating that I did ont close the resultset
and
statement.  I see those  errors and others.  I have not found very much on
the
internet on JDBC/JavaBean coding so I tried something and appreciate the
feedback.

The questions I have to your comments are:

How does one do connection pooling and caching ???

When displaying the results, why would vectors be useful ???  I can sort in
my
query and do not need to reference the data but only to display it.

I am not using EJB because my company does not support them ???   What are
there
advantages ??? I understand entity beans are too slow to use and resource
intensive.

Thanks,

Pedro


Geert Van Damme wrote:

> Some remarks:
>
> Your class might work well for you, but to be used as a kind of reference
> for other users, I see quite a few issues:
> - Your object is very limited in that you always retrieve all records. You
> don't provide any search capabilities or anything.
> - You don't provide insert/update capabilities
> - You're not using connection pooling and no caching.
> - You have duplicated code: 1st to get the first record and then to get
the
> other ones. Are you sure this is working I think you need to call
> rs.next once in order to fetch the first row.
> - You only keep the results of the last row in you instance variables. Why
> aren't you using arrays or vectors?
> - You keep the Resultset as an instance variable in your bean
> - you're not closing the resultset.
> - you're not closing the statement.
> - worse of all: you're not closing the connection.
> - You're catching the SQLExceoption in 2 places, and you're not looking
for
> nextException.
> - you're not closing the connection in case of exception
> - you're setting autocommit to false, but you never do a commit or a
> rollback.
>
> As you see, there are quite some problems left ;-)
> but the most important point is: How are we suppose to program things like
> this?
> That is, if you're not using EJB's, but simple beans to store the database
> information.
> I have a lot of things to tell about this, too much to put in this single
> email.
> Let's discuss this in some more detail.
>
> Geert 'Darling' Van Damme
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Pedro Meza
> > Sent: woensdag 21 juni 2000 21:16
> > To: [EMAIL PROTECTED]
> > Subject: JSP - JDBC/Javabean solution
> >
> >
> > Ok folks I just created a solution that queries an Access
> > Database.   It is a
> > JSP file that uses Javabean methods to query the database and get
> > values.  I would
> > like feedback on improving the design or it could be used as a
> > reference for an
> > aspiring JSP user.
> >
> > Note: I used the jdbc-odbc bridge.  If one is planning on using
> > JDBC it is best to
> > use another driver.
> >
> > The table is a Document Type Table with a TYPE_ID, DOC_TYPE,
> > DOC_DESCRIPTION.
> >
> > Pedro
> >
> > === JSP FILE ==
> > 
> > 
> > 
> > <%  foo.getRecords(); %>
> > Doc Type Table
> > 
> > 
> > Delete > bgcolor="navy">Type ID > bgcolor="navy">DOC TYPE > bgcolor="navy">DOC
> > DESCRIPTION
> > <% while (foo.nextRecord() == true) { %>
> >> value="<%=foo.getType_ID()%>">
> >> value="Y">
> >   <%= foo.getType_ID() %>
> >   <%= foo.getDoc_Type() %>
> >   <%= foo.getDoc_Desc() %>
> > <%}%>
> > 
> > 
> >  
> >
> > 
> > 
> > 
> > 
> >
> > === JavaBean File
> > =
> > package checkbox;
> >
> > import java.io.*;
> > import java.sql.*;
> > import sun.jdbc.odbc.*;
> >
> >
> > public class Doc_Types {
> >  int type_id;
> >  String doc_type;
> >  String doc_desc;
> >  ResultSet rs;
> >
> >  // Get Database Records
> >  public void getRecords() {
> >  String url = "jdbc:odbc:pit";
> >  try {
> > Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
> > Driver driver = new sun.jdbc.odbc.JdbcOdbcDriver();
> > } catch(Exception ee) {
> >   System.out.println(ee.getMessage());
> > }
> > 

Re: Oracle Stored Procedure from JSP

2000-06-28 Thread Mark Hills

I believe this has actually been on the list several times over the last few
days. Assuming you have a PL/SQL function that returns a REF CURSOR type,
you can do something like this:

CallableStatement cs = con.prepareCall("{? = call
package_name.function_name}");
cs.registerOutParameter(1,OracleTypes.CURSOR);
cs.execute();

ResultSet rs = (ResultSet)cs.getObject(1);

Then, just access it like any other ResultSet. If you aren't using a
package, just drop out the "package_name." part above. Also, to get the
OracleTypes class, you should import the oracle.jdbc.driver package like:

import oracle.jdbc.driver.*;

If all you are going to use is OracleTypes, you could obviously import this
only instead of everything.

Mark

-Original Message-
From: Mutahar Qayum [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 12:57 PM
To: [EMAIL PROTECTED]
Subject: Oracle Stored Procedure from JSP


How can i retreive resultset from stored procedures from JSP , iam using
JDBC.

thanks a million.

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



Sessions/Cookies do not work in IE5!!!!!!

2000-06-28 Thread Corey A. Johnson

Hello all,

I am at my wits end...  I just got off the phone with iPlanet...  they
are now telling me that i have to call their Professional Services
department... because support can not help me.. I AM LOSING MY MIND!

I am using a Solaris 7 SPARC install of iPlanet Web Server 4.1 SP1.

I am trying to simply get Sessions/Cookies to work in Internet Explorer
5.  I am setting a session in a JSP file:

<%
session = request.getSession(true);
session.putValue("Test", "Test Value");
%>

I have done this hundreds of times in the past.

All works fine with a Netscape browser... but the session will not set
in IE...

I have tried everything, including:

1) Checking date/time on my system and the server.
2) Testing has been done on 10 different desktops.. same results.
2) Wrote a test servlet instead of a JSP page... did not work either...
(i know.. i know.. but it was worth i try!!)
3) I tried the EXACT same thing on my Apache/Linux system.. WORKS
FINE!!! In both browsers.
4) Tried it on one of our SGI boxes running iPlanet Web Server 4.0..
DID NOT WORK in IE, but works in Netscape

Am i going crazy?  I can not believe this is isolated to me and my
servers...  it must be something simple

Any help/advice would be so much appreciated...

Thanks everyone..  i am going to go shopping for a gun now!!  To shoot
myself with!!  ;-)

Cj
--
Corey A. Johnson
Creative Network Innovations, Inc.
1-800-264-5547 ** 1-407-259-1984

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



off topic - maximum open cursors exceeded

2000-06-28 Thread anderson

Anyone knows about this error in Oracle ? This error is about the number
of Recordset that I use in my page ?

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



Re: response.redirect

2000-06-28 Thread Jim Preston

Ok, am I missing something, or is this just a case of lazy typing? As far as
I know, there is no such thing as a response.redirect method. There is a
response.sendRedirect method. If that's the method that you're talking about
here, then this question about whether or not it creates another thread is a
non-sequiter and shows a lack of understanding of exactly what's going on.
The sendRedirect method does just that: it SENDS a redirect directive to the
browser and, of course, the rest of the JSP is executed. But there's no
second thread on the server that "does the redirection code"; the actual
redirection is done by the browser. As Uwe Hanisch already noted, if it's
important to not execute the rest of the JSP/servlet, just put a return
statement after the sendRedirect call (you might want to put a call to
out.flush inbetween, just for completeness).

--Jim Preston


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of John Doe
Sent: Wednesday, June 28, 2000 9:36 AM
To: [EMAIL PROTECTED]
Subject: Re: response.redirect


Can anyone please refer me to some concrete documentation on this.  I would
really like to know if this is true:  is there another thread created which
does the redirection code, while the current thread continues executing the
code on the current page?

thank you
rostom

--- "Mauro Gagni (EMS)" <[EMAIL PROTECTED]> wrote:
> Hi,
>  I had the same problem and that is the way it work, it compute the code
> until the end of the page.
> I noticed that it actually creates a new thread for the redirection, while
> the old one keeps executing until it eventually dies at the end of the
page.
>
> hope it did help,
> mauro
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of John Doe
> > Sent: 28 June 2000 02:40
> > To: [EMAIL PROTECTED]
> > Subject: response.redirect
> >
> >
> > Hello,
> > Can someone give a detailed explanation of how
> > response.redirect() works.  I
> > looked at the API and its not very detailed.
> >
> > The reason for this is that it seems that if I have html or java
> > code AFTER a
> > redirect on a JSP page, that code still gets executed.  This is not the
> > behavior i want.  With a forward I know that all execution stops
> > and a forward
> > takes place.  Is this not the case with a redirect??
> >
> > thanks in advance.
> >
> >
> > __
> > Do You Yahoo!?
> > Get Yahoo! Mail - Free email you can access from anywhere!
> > http://mail.yahoo.com/
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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

===
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: Weblogic Problem

2000-06-28 Thread Mutahar Qayum

You have to go in Your web browser and enter mime.type as text/jsp for jsp.
And you also need to add jsp related lines in obj.conf

-Original Message-
From: Mark Annese [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 9:31 AM
To: [EMAIL PROTECTED]
Subject: Weblogic Problem


Has anyone encountered the problem where Weblogic is not recognizing .JSP
files and throws an error?

Thanks

Mark

===
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: Oracle Stored Procedure from JSP

2000-06-28 Thread Ron Chan

Hi,

Sun has a book on Java JDBC/ODBC that is very good.
take a look.

ron


--- Mutahar Qayum <[EMAIL PROTECTED]> wrote:
> How can i retreive resultset from stored procedures
> from JSP , iam using
> JDBC.
>
> thanks a million.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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



Re: response.redirect

2000-06-28 Thread Jim Bailey

Here is what is happening.

response.sendRedirect() is setting an error header, I don't remember the
error number, maybe 203? The header is the a temporary URL redirect message
that contains the URL to redirect to. Once the header is written out to the
browser, the redirect takes place. Until the response is written out to the
client, the redirect is just part of the uncommitted response header.

The real issue here is to ask, "when is the header written out to the
client?" The answer is the same as any other JSP, when the page is flushed.
So, if you continue to execute your jsp after returning from the
response.sendRedirect() method, then the execution of the servlet will
continue.

The easiest way to make sure your response is commited to the client is to
do a return. This will guarantee a flush of the current response buffer.

So, your code should look like this with a return after the sendRedirect:

<%
  ...

  if ( flag )
  {
response.sendRedirect( "http://somedomain.com/someurl.jsp?q=somequery"
);
return;
  }

  ...
%>

-Original Message-
From: John Doe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 12:36 PM
To: [EMAIL PROTECTED]
Subject: Re: response.redirect


Can anyone please refer me to some concrete documentation on this.  I would
really like to know if this is true:  is there another thread created which
does the redirection code, while the current thread continues executing the
code on the current page?

thank you
rostom

--- "Mauro Gagni (EMS)" <[EMAIL PROTECTED]> wrote:
> Hi,
>  I had the same problem and that is the way it work, it compute the code
> until the end of the page.
> I noticed that it actually creates a new thread for the redirection, while
> the old one keeps executing until it eventually dies at the end of the
page.
>
> hope it did help,
> mauro
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of John Doe
> > Sent: 28 June 2000 02:40
> > To: [EMAIL PROTECTED]
> > Subject: response.redirect
> >
> >
> > Hello,
> > Can someone give a detailed explanation of how
> > response.redirect() works.  I
> > looked at the API and its not very detailed.
> >
> > The reason for this is that it seems that if I have html or java
> > code AFTER a
> > redirect on a JSP page, that code still gets executed.  This is not the
> > behavior i want.  With a forward I know that all execution stops
> > and a forward
> > takes place.  Is this not the case with a redirect??
> >
> > 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



Re: DB Conn

2000-06-28 Thread Mutahar Qayum

thanks a lot pranav. Now i need to use oracle stored procedure that can
return resultset. How can i access the rows within it??

regards
Mutahar

-Original Message-
From: pranav kumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 27, 2000 10:28 PM
To: [EMAIL PROTECTED]
Subject: Re: DB Conn


HI,
  For this u have to import the java.sql.* API.
 Then first use the Class.forName() method for installing your driver
class file, then intialize a Connection object using
DrvierManager.getConnection() method. After this u can apply the commands of
JDBC API for getting the data from database.
  Now u can also do one thing that please make a Class for the DB
Connection and then import this class in your JSP page where you want.
I hope that it'll helpful for you.
PRanav
- Original Message -
From: Mutahar Qayum <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 27, 2000 10:15 PM
Subject: DB Conn


> What are the real steps in Making DB connection.
> And can i make some include file so that i can use it in many other pages?
>
> thnx
>
>
===
> 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



Oracle Stored Procedure from JSP

2000-06-28 Thread Mutahar Qayum

How can i retreive resultset from stored procedures from JSP , iam using
JDBC.

thanks a million.

===
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: response.redirect

2000-06-28 Thread Mauro Gagni (EMS)

that what I have seen happening in my debugger... other than that I cannot
say

mauro

> -Original Message-
> From: John Doe [mailto:[EMAIL PROTECTED]]
> Sent: 28 June 2000 17:36
> To: Mauro Gagni (EMS); JSP ML; [EMAIL PROTECTED]
> Subject: RE: response.redirect
>
>
> Can anyone please refer me to some concrete documentation on
> this.  I would
> really like to know if this is true:  is there another thread
> created which
> does the redirection code, while the current thread continues
> executing the
> code on the current page?
>
> thank you
> rostom
>
> --- "Mauro Gagni (EMS)" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >  I had the same problem and that is the way it work, it compute the code
> > until the end of the page.
> > I noticed that it actually creates a new thread for the
> redirection, while
> > the old one keeps executing until it eventually dies at the end
> of the page.
> >
> > hope it did help,
> > mauro
> >
> > > -Original Message-
> > > From: A mailing list about Java Server Pages specification
> and reference
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of John Doe
> > > Sent: 28 June 2000 02:40
> > > To: [EMAIL PROTECTED]
> > > Subject: response.redirect
> > >
> > >
> > > Hello,
> > > Can someone give a detailed explanation of how
> > > response.redirect() works.  I
> > > looked at the API and its not very detailed.
> > >
> > > The reason for this is that it seems that if I have html or java
> > > code AFTER a
> > > redirect on a JSP page, that code still gets executed.  This
> is not the
> > > behavior i want.  With a forward I know that all execution stops
> > > and a forward
> > > takes place.  Is this not the case with a redirect??
> > >
> > > thanks in advance.
> > >
> > >
> > > __
> > > Do You Yahoo!?
> > > Get Yahoo! Mail - Free email you can access from anywhere!
> > > http://mail.yahoo.com/
> > >
> > > ==
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
>
>
> __
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>

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

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



Re: OracleCallableStatements

2000-06-28 Thread Mark Hills

Claire:

I would take a look at the syntax for using a standard CallableStatement.
I'm not sure if OracleCallableStatement has much that isn't accessible if
you just treat it like a normal CallableStatement -- the only thing I've hit
is a need to cast to an OracleCallableStatement to set a batch size if I'm
using batch updates.

Some general resources from Oracle on using CallableStatements with PL/SQL
include:

http://technet.oracle.com/sample_code/index.htm (code samples)
http://technet.oracle.com/tech/java/sqlj_jdbc/index2.htm?Code&files/basic/ba
sic.htm (more overview information, like strategic direction)

You just need to register for an Oracle Technology Network (OTN) id to get
access to this stuff.

Mark

-Original Message-
From: Claire Ryan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 26, 2000 12:55 PM
To: [EMAIL PROTECTED]
Subject: OracleCallableStatements


Hello All,
Have any of you worked with OracleCallableStatements, and give me an idea as
to the general syntax of one.
Thanks in advance,
Claire

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



Re: To List Master

2000-06-28 Thread Hines, Bill

I think what we do here is to just all send them a reply to their email
address to please remember to exclude the list address from their out of
office reply or else sign off the list while they're away. I think they'll
get the message! Just PLEASE don't send these responses to the list! The out
of office replies usually come from their personal mail account and not the
list, but check first.

-Original Message-
From: Shane Duan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 11:48 AM
To: [EMAIL PROTECTED]
Subject: To List Master


Ok, this is annoying.  I sent out one message and got five Out of Office
Auto Reply.  Can someone do something about it?

Maybe send them a mail and disable them from the list.

Shane Duan
Lead Software Developer
[EMAIL PROTECTED]

EquipmentAuction.com
3315 West 12th Street
Houston, TX  77008
P 713 283 6400
This communication may contain confidential information intended only
for the person to whom it is addressed. Any use, dissemination,
forwarding, printing, or copying of this e-mail without consent of the
originator is strictly prohibited.  If you have received this e-mail in
error, please immediately notify Shane Duan by telephone at (713)
283-6400.

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



How to request var throw forms

2000-06-28 Thread Eduardo Salvador Godoy Vega

Hi,
Here is my problem ...
I have a jsp-form (say form1.jsp), when I do Post to submit.jsp
I receive it into a jsp file (submit.jsp), where if one request value is 1,
I put another form where action is submit.jsp again ... but when i try to
access any value from form1.jsp I can't ...

FORM1.JSP



...

<%
else
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: response.redirect

2000-06-28 Thread John Doe

Can anyone please refer me to some concrete documentation on this.  I would
really like to know if this is true:  is there another thread created which
does the redirection code, while the current thread continues executing the
code on the current page?

thank you
rostom

--- "Mauro Gagni (EMS)" <[EMAIL PROTECTED]> wrote:
> Hi,
>  I had the same problem and that is the way it work, it compute the code
> until the end of the page.
> I noticed that it actually creates a new thread for the redirection, while
> the old one keeps executing until it eventually dies at the end of the page.
>
> hope it did help,
> mauro
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of John Doe
> > Sent: 28 June 2000 02:40
> > To: [EMAIL PROTECTED]
> > Subject: response.redirect
> >
> >
> > Hello,
> > Can someone give a detailed explanation of how
> > response.redirect() works.  I
> > looked at the API and its not very detailed.
> >
> > The reason for this is that it seems that if I have html or java
> > code AFTER a
> > redirect on a JSP page, that code still gets executed.  This is not the
> > behavior i want.  With a forward I know that all execution stops
> > and a forward
> > takes place.  Is this not the case with a redirect??
> >
> > thanks in advance.
> >
> >
> > __
> > Do You Yahoo!?
> > Get Yahoo! Mail - Free email you can access from anywhere!
> > http://mail.yahoo.com/
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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



Re: Session maintaining

2000-06-28 Thread LISTS

Is it better to use HttpSession or HTML rewriting on high traffic pages?
Dont multiple simultaneous sessions require a lot of server memory? I am
just wondering what would you suggest as the best option for sessions any of
the above or together with storing info in the database and than looking it
up by session ID. Thank you for your time.

Sincerely,
Oleg

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of R.B. Gurung
Sent: Friday, May 28, 1999 4:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Session maintaining


Hi,
You can do so by

HttpSession  session = request.getSession(true) - ( true to create a session
if not already there)
HttpSession  session = request.getSession() - get the existing session
 after this use
  session.setAttribute("one","value") ;

to set value of  object "one" which can be obtained in the other pages /
within the page by

value_returned =  session.getAttribute("one");

it works fine.


gurung




- Original Message -
From: N Hari Babu <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 1:12 PM
Subject: Session maintaining


> Hi All,
> Using JSP how can i do session maintaing. Pls. help me.
>
> rgds,
> Hari.
>
>
===
> 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: HTTP Header in HTML

2000-06-28 Thread Ricky Sheaves

If you are using IE5, then by default, plain text is displayed as HTML
(this would result in the headers being printed to the page followed
by the actual HTML payload.) My guess is that the content-type for the
response is not set correctly.



>> Original Message <<

On 6/28/00, 9:02:05 AM, anderson <[EMAIL PROTECTED]> wrote
regarding HTTP Header in HTML:


> Hi,

> I'm having a strange problem, the source of HTTP header is
appearing
> in my html generated by JSP . What's the problem ?

> 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 List Master

2000-06-28 Thread Shane Duan

Ok, this is annoying.  I sent out one message and got five Out of Office
Auto Reply.  Can someone do something about it?

Maybe send them a mail and disable them from the list.

Shane Duan
Lead Software Developer
[EMAIL PROTECTED]

EquipmentAuction.com
3315 West 12th Street
Houston, TX  77008
P 713 283 6400
This communication may contain confidential information intended only
for the person to whom it is addressed. Any use, dissemination,
forwarding, printing, or copying of this e-mail without consent of the
originator is strictly prohibited.  If you have received this e-mail in
error, please immediately notify Shane Duan by telephone at (713)
283-6400.

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



Weblogic Problem

2000-06-28 Thread Mark Annese

Has anyone encountered the problem where Weblogic is not recognizing .JSP
files and throws an error?

Thanks

Mark

===
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: Back Button of Browser

2000-06-28 Thread Shane Duan

There is a very simple way to do it by using Java script.

whatever you want here 

I am using it for our website:
http://equipmentauction.in2.net/rel_100listing.cfm

Shane Duan
Lead Software Developer
[EMAIL PROTECTED]

EquipmentAuction.com
3315 West 12th Street
Houston, TX  77008
P 713 283 6400
This communication may contain confidential information intended only
for the person to whom it is addressed. Any use, dissemination,
forwarding, printing, or copying of this e-mail without consent of the
originator is strictly prohibited.  If you have received this e-mail in
error, please immediately notify Shane Duan by telephone at (713)
283-6400.

 -Original Message-
From:   Shashwati Panigrahi [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, June 28, 2000 2:46 AM
To: [EMAIL PROTECTED]
Subject:Back Button of Browser

Hi All,
I have a button on a page which I want to have the functionality
like the Back button on the Browsers
Does anyone have the code to be written on the click of this button
which will take it to the previous page ?
Thanks in Advance,
Shashwati


===
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: Strange Bug

2000-06-28 Thread Thomas Preston

Hi,

Jsp uses buffer.  When you start to send html back to client from server
side, it doesn't just start sending it immediately.  Instead it buffers the
output.  WHen the buffer is full, the buffer has to be flushed back to the
client.  When this happens, the http head is sent along with the buffered
body.  At this point the buffer is said to be committed (see any servlet
book on this issue or servlet spec).  Once the buffer has been committed,
the head has been sent back to the client, so any transaction that needs to
modify the head (like sendRedirect) will fail.  In WL implementation of jsp,
if you keepgenerated and view the .java file that is generated by the
server, you will see a try block around the re-direction operation that
occurs when page wants to go to an error page.  If re-direction is not
possible because the head has been committed, you will get some type of
error (like possibly illegalStateException) on the server console and the
page will not be forwarded to the error page.

>From: jonny doe <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Strange Bug
>Date: Wed, 28 Jun 2000 07:41:30 -0700
>
>Hey Thomas,
>
>What do you mean by the buffer being 'committed'? I
>came across this error to.
>
>--- Thomas Preston <[EMAIL PROTECTED]> wrote:
> > Are you redirecting to an errorpage on error?  If
> > so, redirecting to error
> > page can't be done if the buffer has been
> > "committed".  If this is the
> > problem, then you are getting an exception on the
> > page somewhere...
> >
> >
> > >From: "Sachin S. Khanna" <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages
> > specification and
> > > reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Strange Bug
> > >Date: Wed, 28 Jun 2000 16:01:15 +0530
> > >
> > >I have a simple jsp which uses a bean to send an
> > email. The code is working
> > >fine on one server but throwing the following error
> > on the other:
> > >java.lang.IllegalStateException: Response has
> > already been committed
> > >What could be the reason for this kind of strange
> > behaviour.
> > >Have a nice day.
> > >With regards,
> > >Sachin S. Khanna.
> > >www.emailanorder.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
> >
> >
>
> > 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
>
>
>__
>Do You Yahoo!?
>Get Yahoo! Mail - Free email you can access from anywhere!
>http://mail.yahoo.com/
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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



Re: Strange Bug

2000-06-28 Thread jonny doe

Hey Thomas,

What do you mean by the buffer being 'committed'? I
came across this error to.

--- Thomas Preston <[EMAIL PROTECTED]> wrote:
> Are you redirecting to an errorpage on error?  If
> so, redirecting to error
> page can't be done if the buffer has been
> "committed".  If this is the
> problem, then you are getting an exception on the
> page somewhere...
>
>
> >From: "Sachin S. Khanna" <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages
> specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Strange Bug
> >Date: Wed, 28 Jun 2000 16:01:15 +0530
> >
> >I have a simple jsp which uses a bean to send an
> email. The code is working
> >fine on one server but throwing the following error
> on the other:
> >java.lang.IllegalStateException: Response has
> already been committed
> >What could be the reason for this kind of strange
> behaviour.
> >Have a nice day.
> >With regards,
> >Sachin S. Khanna.
> >www.emailanorder.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
>
>

> 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


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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



HTTP Header in HTML

2000-06-28 Thread anderson

Hi,

I'm having a strange problem, the source of HTTP header is appearing
in my html generated by JSP . What's the problem ?

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



Re: JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException

2000-06-28 Thread Lisa Lewis

I was running build 153 and not the latest build 157 on this development
machine.  I feel really stupid because I knew that there was a bug with
older builds and I thought that I was running build 157! :-(

Lisa

>Upon further testing, I have come to realize that if I delete some
>comment lines from my JSP page, the ArrayIndexOutOfBoundsException
>no longer occurs and the page compiles properly. ( I failed to mention
>in my previous post that the JSP page failed to compile.)  Is there some
>sort of file length limitation of JSP pages that I am reaching.
>Please advise!

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

2000-06-28 Thread Uwe Hanisch

anderson wrote:
> Hi,
> How can I do a connection pool ? I'm using a simple
> oracle connection when the session starts.

How about using a search mashine?

For instance a search with altavista
( +Java +JDBC +Connection +Pool +Class )
results among others:

  http://webdevelopersjournal.com/columns/connection_pool.html

with a source example DBConnectionManager.java

Regards
Uwe

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



No Subject

2000-06-28 Thread Rob van Oostrum

 I'm trying to call a JSP from a Servlet in such a way that I can catch the
resulting stream for further processing. The code looks like this:

URL tempURL = new URL( jspURL );
URLConnection connection = tempURL.openConnection();
connection.setDoInput( true );
InputStream xmlStream = connection.getInputStream();

It crashes on the last call (java.io.FileNotFoundException). The URL works
if I just type it in manually, but the result from the JSP is an error
saying that the GET methof is not supported by the URL.


any suggestions?

Rob

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

2000-06-28 Thread anderson

Hi,

How can I do a connection pool ? I'm using a simple oracle connection when the
session starts.

thanks
anderson

"Aggarwal, Pawan" wrote:

> There is a problem faced while using the connection pool class in Oracle..
> I dont know how to tacke it..
>
> What i have is a pool of 50 connection...
> The moment the server is started and the first user logins then the 50
> connections are acquired..
>
> Now the time out for oracle session is 15 minutes and web server session
> time out is 30 min..
>
> If a user connects and then leave the screen for more than 15 mins then the
> oracle kills session
> and the number of connection from pool decrease from 50 to 49
> Even if i open a new browser window and try to login then i get exceptions
> that connection time out
> which means i am not getting any of the 49 connections??
> I restart the web server problem is solved
>
> What i am confused about is whether if there is no other user for at least
> lets say 2 hours
> then will all the connections (49) also die out as time out for session for
> oracle is 15 mins
> Then what is the use of connection pool...
> is there any difference between session and connection ??
> There must be some way out?
> Does increasing the web server session time out > oracle session time out
> will help??
>
> Please advice\
>
> ===
> 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: Error with Stored Procedure

2000-06-28 Thread Mahesh Kuklani

Hi Claire,
   you are passing only one parameter to the procedure it should be 2
parameters one in and one out so two (?,?) this will solve one of the
problems. Secondly it the out parameter is a cursor you have to define as
java.sql.Types.CURSOR.

Mahesh.

-Original Message-
From: Claire Ryan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 10:07 AM
To: [EMAIL PROTECTED]
Subject: Error with Stored Procedure


Hello All,
I am calling the following stored procedure:

PROCEDURE PRC_NIALLS_TEST
(p_order_id INtoys_web.toys_order.order_id%TYPE,
p_order_pay_method OUT   toys_web.toys_order.order_pay_method%TYPE)

IS
v_order_pay_method  VARCHAR2(25);
BEGIN
SELECT order_pay_method
  INTO v_order_pay_method
   FROM Toys_Order
WHERE order_id = p_order_id;

  p_order_pay_method:=v_order_pay_method;
END;


with this java code:

CallableStatement cs=con.prepareCall("{call
TOYS_WEB.PKG_TOYS.PRC_NIALLS_TEST(?)}");
cs.setInt(1,101);
cs.registerOutParameter(2,java.sql.Types.VARCHAR);
ResultSet rs = cs.executeQuery();
while(rs.next())
{
String temp = rs.getString(1);
out.println("temp "+temp);
}

But I keep getting the following error message, I think that it has
something to do with the ResultSet:ORA-01006: bind variable does not exist
Cause: A program issued a BIND call for a variable not listed in the
associated SQL statement. Only those variables prefixed by either a colon
(:) or ampersand (&) in the SQL statement may be referenced in a BIND call,
OBIND or OBINDN. This error may also be caused by a mismatch between a
Precompiler program and the related library, SQLLIB.

Can anyone please help me at all??
Thanks in advance,
Claire



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



Re: JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException

2000-06-28 Thread Lisa Lewis

Upon further testing, I have come to realize that if I delete some
comment lines from my JSP page, the ArrayIndexOutOfBoundsException
no longer occurs and the page compiles properly. ( I failed to mention
in my previous post that the JSP page failed to compile.)  Is there some
sort of file length limitation of JSP pages that I am reaching.
Please advise!

>Problem:  JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException
>Environment: We are using java version "1.2.2" and  Solaris VM (solaris_JDK_1.2.2_05a)
>  and Jrun 2.3.3 and Netscape iPanet 4.0 Webserver.  We are running Solaris 2.7 on a 
>Ultra-2 with 512M of memory.
>
>What is strange is this code worked yesterday and we have not made any
>changes to the code and it is not working today. We are suddently getting a 
>java.lang.ArrayIndexOutOfBoundsException.  We don't know why we
>tried several things but in vain, if any one could help we would
>appreciate it. We already tried rebooting our machine and restarting our servers just 
>in case it was related to problems in memory.
>
>
>Here is a snippet from our JSP file that is causing the error:
>
>   ArrayList selectedPatientList = null;
>  selectedPatientList = (ArrayList)request.getAttribute("selectedpatientlist");
>
>  PatientRow patient = (PatientRow) selectedPatientList.get(1);
>
>(note: what is very strange about this is the selectedPatientList.size() shows the 
>correct size!)
>
>  The code snippet in our Controller Servlet where the requestDispatcher forwards the 
>request to the JSP page:
>
>ArrayList selectedPatientList = new ArrayList();
>session.putValue("MARSGUI.selectedPatientList",selectedPatientList);
>
>while (tknzr.hasMoreTokens())
>{
>  patientKey = tknzr.nextToken();
>  if (patientKey.startsWith(",")) patientKey =patientKey.substring(1);
>
>  patientRow = (PatientRow) patientList.get( patientKey );
>  if (patientRow == null)
>  {
>throw new Exception("Patient " + patientKey + " could not befound.");
>  }
>
>  patientRow.select();  // Mark the PatientRow selected
>  selectedPatientList.add( patientRow );
>}
>
>
>
> RequestDispatcher requestDispatcher =
> getServletContext().getRequestDispatcher("/ReportsFrameSet.jsp");
> if (selectedPatientList != null)
> {
>   req.setAttribute("selectedpatientlist", selectedPatientList );
>}
>
>requestDispatcher.forward(req, res);
>
>
>
>-
>We are getting this error
>
>java.lang.ArrayIndexOutOfBoundsException at
>java.lang.String.getChars(Compiled Code)at
>com.jclark.xsl.sax.ResultBase.characters(Compiled Code) at
>com.jclark.xsl.tr.ValueOfAction.invoke(Compiled Code)   at
>com.jclark.xsl.tr.AppendAction.invoke(Compiled Code)at
>com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.processSafe(Compiled Code)
>at com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.process(Compiled Code)
>at com.jclark.xsl.tr.ProcessAction.invoke(Compiled Code)at
>com.jclark.xsl.tr.AppendAction.invoke(Compiled Code)at
>com.jclark.xsl.tr.IfAction.invoke(Compiled Code)at
>com.jclark.xsl.tr.AppendAction.invoke(Compiled Code)at
>com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.processSafe(Compiled Code)
>at com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.process(Compiled Code)
>at com.jclark.xsl.tr.ProcessAction.invoke(Compiled Code)at
>com.jclark.xsl.tr.AppendAction.invoke(Compiled Code)at
>com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.processSafe(Compiled Code)
>at com.jclark.xsl.tr.SheetImpl.process(SheetImpl.java)  at
>com.jclark.xsl.sax.XSLProcessorImpl.parse(XSLProcessorImpl.java)at
>com.livesoftware.xml.XT.process(XT.java:66) at
>com.livesoftware.jsp.JSPCompiler.createServlet(JSPCompiler.java:111)at
>com.livesoftware.jsp.JSPServlet.service(Compiled Code)  at
>javax.servlet.http.HttpServlet.service(Compiled Code)   at
>com.livesoftware.jrun.JRun.runServlet(Compiled Code)at
>com.livesoftware.jrun.JRunServletContext$JRunRequestDispatcher.forward(JRunServletContext.java:355)
>at GuiControllerServlet.doPost(Compiled Code)   at
>javax.servlet.http.HttpServlet.service(Compiled Code)   at
>javax.servlet.http.HttpServlet.service(Compiled Code)   at
>com.livesoftware.jrun.JRun.runServlet(Compiled Code)at
>com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java:116)
>at com.livesoftware.jrun.JRunGeneric.handleProxyConnection(Compiled Code)
>at
>com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(Compiled
>Code)   at com.livesoftware.jrun.service.ThreadConfigHandler.run(Compiled
>Code)
>
>( What are these jclark.xsl and jclark.xsl.sax classes?
>
>Thanks very much
>Lisa
>
> ==
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be fo

Re: WebServer Source Code

2000-06-28 Thread Uwe Hanisch

Ritesh_Srivastava wrote:
> where is this decompiler available.

http://www.geocities.com/SiliconValley/Bridge/8617/jad.html

===
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 with Stored Procedure

2000-06-28 Thread Claire Ryan

Hello All,
I am calling the following stored procedure:

PROCEDURE PRC_NIALLS_TEST
(p_order_id INtoys_web.toys_order.order_id%TYPE,
p_order_pay_method OUT   toys_web.toys_order.order_pay_method%TYPE)

IS
v_order_pay_method  VARCHAR2(25);
BEGIN
SELECT order_pay_method
  INTO v_order_pay_method
   FROM Toys_Order
WHERE order_id = p_order_id;

  p_order_pay_method:=v_order_pay_method;
END;


with this java code:

CallableStatement cs=con.prepareCall("{call
TOYS_WEB.PKG_TOYS.PRC_NIALLS_TEST(?)}");
cs.setInt(1,101);
cs.registerOutParameter(2,java.sql.Types.VARCHAR);
ResultSet rs = cs.executeQuery();
while(rs.next())
{
String temp = rs.getString(1);
out.println("temp "+temp);
}

But I keep getting the following error message, I think that it has
something to do with the ResultSet:ORA-01006: bind variable does not exist
Cause: A program issued a BIND call for a variable not listed in the
associated SQL statement. Only those variables prefixed by either a colon
(:) or ampersand (&) in the SQL statement may be referenced in a BIND call,
OBIND or OBINDN. This error may also be caused by a mismatch between a
Precompiler program and the related library, SQLLIB.

Can anyone please help me at all??
Thanks in advance,
Claire



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



No Subject

2000-06-28 Thread Gunaseelan Nagarajan

Hi Ajith,

you can try hidden fields with post method.

regards
Nagarajan

--- AJITH UGIPRASAD <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I need to know how to communicate between 2 JSPs
> when the data is large. I
> dont want to use Cookies  or Querystring.
>
> Thanks
>
> Ajith
>
>


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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



Re: WebServer Source Code

2000-06-28 Thread Cogley, Jonathan

A search on any popular search engine would not go amiss! :)
http://www.geocities.com/SiliconValley/Bridge/8617/jad.html



-Original Message-
From: Ritesh_Srivastava [mailto:[EMAIL PROTECTED]]
Sent: 28 June, 2000 8:56 AM
To: [EMAIL PROTECTED]
Subject: Re: WebServer Source Code


where is this decompiler available.

> --
> From: Prabhakar Vardhan Ojha[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list about Java Server Pages specification and
> reference
> Sent: Saturday, January 02, 1999 2:56 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: WebServer Source Code
>
> use decompiler  "jad".
>
> You can download it for free.
>
> Regards,
> prabhakar
>
> - Original Message -
> From: Khem Chand Sachdeva <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 28, 2000 2:39 PM
> Subject: Re: WebServer Source Code
>
>
> > use any decompiler
> > - Original Message -
> > From: V.Vasant <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 28, 2000 3:05 PM
> > Subject: WebServer Source Code
> >
> >
> > > hi,
> > > I would like to have a look at the source of the JavaWebServer
> > > Can someone tell me where I can find these. I have got the
> jswdk-1.0.1,
> > > but I am unable to find it's source . All I see is only .class files.
> > > Can someone please help me?
> > >
> > > -V.Vasant
> > >
> > >
> >
> ==
> =
> > > 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: JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException

2000-06-28 Thread Richard Cammarano

You may have this problem if you do not have the 157 patch installed
for JRun 2.3.3. You can download it from the allaire site - by the way,
I believe this problem is discussed in the allaire knowledge base.

-Original Message-
From: naveen
Sent: Wednesday, June 28, 2000 8:18 AM
To: JSP-INTEREST
Subject: Re: JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException


Just stop and start the instance of the iplanet you are running. Dont
know
the cause. The JSP page may not have any error. Still some times
i-planet
when used with jdk option (instead of jre option , which can only be
used if
we not compiling JSP pages) the i-planet gives this error.

- Original Message -
From: "Lisa Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 7:48 PM
Subject: JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException


> Problem:  JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException
> Environment: We are using java version "1.2.2" and  Solaris VM
(solaris_JDK_1.2.2_05a)
>   and Jrun 2.3.3 and Netscape iPanet 4.0 Webserver.  We are running
Solaris 2.7 on a Ultra-2 with 512M of memory.
>
> What is strange is this code worked yesterday and we have not made any
> changes to the code and it is not working today. We are suddently
getting
a java.lang.ArrayIndexOutOfBoundsException.  We don't know why we
> tried several things but in vain, if any one could help we would
> appreciate it. We already tried rebooting our machine and restarting
our
servers just in case it was related to problems in memory.
>
>
> Here is a snippet from our JSP file that is causing the error:
>
>ArrayList selectedPatientList = null;
>   selectedPatientList =
(ArrayList)request.getAttribute("selectedpatientlist");
>
>   PatientRow patient = (PatientRow) selectedPatientList.get(1);
>
> (note: what is very strange about this is the
selectedPatientList.size()
shows the correct size!)
>
>   The code snippet in our Controller Servlet where the
requestDispatcher
forwards the request to the JSP page:
>
> ArrayList selectedPatientList = new ArrayList();
>
session.putValue("MARSGUI.selectedPatientList",selectedPatientList);
>
> while (tknzr.hasMoreTokens())
> {
>   patientKey = tknzr.nextToken();
>   if (patientKey.startsWith(",")) patientKey
=patientKey.substring(1);
>
>   patientRow = (PatientRow) patientList.get( patientKey );
>   if (patientRow == null)
>   {
> throw new Exception("Patient " + patientKey + " could not
befound.");
>   }
>
>   patientRow.select();  // Mark the PatientRow selected
>   selectedPatientList.add( patientRow );
> }
>
>
>
>  RequestDispatcher requestDispatcher =
>  getServletContext().getRequestDispatcher("/ReportsFrameSet.jsp");
>  if (selectedPatientList != null)
>  {
>req.setAttribute("selectedpatientlist", selectedPatientList );
> }
>
> requestDispatcher.forward(req, res);
>
>
>
>

--
---
> We are getting this error
>
> java.lang.ArrayIndexOutOfBoundsException at
> java.lang.String.getChars(Compiled Code)at
> com.jclark.xsl.sax.ResultBase.characters(Compiled Code) at
> com.jclark.xsl.tr.ValueOfAction.invoke(Compiled Code)   at
> com.jclark.xsl.tr.AppendAction.invoke(Compiled Code)at
> com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.processSafe(Compiled
Code)
> at com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.process(Compiled
Code)
> at com.jclark.xsl.tr.ProcessAction.invoke(Compiled Code)at
> com.jclark.xsl.tr.AppendAction.invoke(Compiled Code)at
> com.jclark.xsl.tr.IfAction.invoke(Compiled Code)at
> com.jclark.xsl.tr.AppendAction.invoke(Compiled Code)at
> com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.processSafe(Compiled
Code)
> at com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.process(Compiled
Code)
> at com.jclark.xsl.tr.ProcessAction.invoke(Compiled Code)at
> com.jclark.xsl.tr.AppendAction.invoke(Compiled Code)at
> com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.processSafe(Compiled
Code)
> at com.jclark.xsl.tr.SheetImpl.process(SheetImpl.java)  at
> com.jclark.xsl.sax.XSLProcessorImpl.parse(XSLProcessorImpl.java)
  at
> com.livesoftware.xml.XT.process(XT.java:66) at
> com.livesoftware.jsp.JSPCompiler.createServlet(JSPCompiler.java:111)
  at
> com.livesoftware.jsp.JSPServlet.service(Compiled Code)  at
> javax.servlet.http.HttpServlet.service(Compiled Code)   at
> com.livesoftware.jrun.JRun.runServlet(Compiled Code)at
>
com.livesoftware.jrun.JRunServletContext$JRunRequestDispatcher.forward(J
RunS
ervletContext.java:355)
> at GuiControllerServlet.doPost(Compiled Code)   at
> javax.servlet.http.HttpServlet.service(Compiled Code)   at
> javax.servlet.http.HttpServlet.service(Compiled Code)   at
> com.livesoftware.jrun.JRun.runServlet(Compiled Code)at
>
com.livesoftware.jrun.JRunGeneric.handleConnection(

Re: JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException

2000-06-28 Thread Matthews,Paul

> What is strange is this code worked yesterday and we have not made any
> changes to the code and it is not working today
That has got to be my favourite developer quote of all time!

>   if (patientKey.startsWith(",")) patientKey
> =patientKey.substring(1);
Any chance that tknzr could end in a ',' (last entry blank)? Then the
substring will throw an IndexOutOfBoundsException at this line

Paul.

===
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: WebServer Source Code

2000-06-28 Thread Ritesh_Srivastava

where is this decompiler available.

> --
> From: Prabhakar Vardhan Ojha[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list about Java Server Pages specification and
> reference
> Sent: Saturday, January 02, 1999 2:56 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: WebServer Source Code
>
> use decompiler  "jad".
>
> You can download it for free.
>
> Regards,
> prabhakar
>
> - Original Message -
> From: Khem Chand Sachdeva <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 28, 2000 2:39 PM
> Subject: Re: WebServer Source Code
>
>
> > use any decompiler
> > - Original Message -
> > From: V.Vasant <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 28, 2000 3:05 PM
> > Subject: WebServer Source Code
> >
> >
> > > hi,
> > > I would like to have a look at the source of the JavaWebServer
> > > Can someone tell me where I can find these. I have got the
> jswdk-1.0.1,
> > > but I am unable to find it's source . All I see is only .class files.
> > > Can someone please help me?
> > >
> > > -V.Vasant
> > >
> > >
> >
> ==
> =
> > > 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: Strange Bug

2000-06-28 Thread Thomas Preston

Are you redirecting to an errorpage on error?  If so, redirecting to error
page can't be done if the buffer has been "committed".  If this is the
problem, then you are getting an exception on the page somewhere...


>From: "Sachin S. Khanna" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Strange Bug
>Date: Wed, 28 Jun 2000 16:01:15 +0530
>
>I have a simple jsp which uses a bean to send an email. The code is working
>fine on one server but throwing the following error on the other:
>java.lang.IllegalStateException: Response has already been committed
>What could be the reason for this kind of strange behaviour.
>Have a nice day.
>With regards,
>Sachin S. Khanna.
>www.emailanorder.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


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



Re: Strange Bug

2000-06-28 Thread Sachin S. Khanna

Thanks for the prompt replies, given below is the jsp file:
Sendmail.jsp

<%@ page import = "MailSend" %>

<%!
MailSend ec;
%>

 Sendmail 

 Trying to send a test Email 
<%
  ec = new MailSend();
  boolean b = ec.sendConfirmation();
  if(!b){
%>
There was some error in sending you a test email.
<%
}else{
%>
We have been successfully able to send you an email!
<%
}
%>

--
The code for the bean MailSend.java is given below :
===
import javax.mail.internet.*;
import javax.mail.*;
import java.util.*;
import javax.activation.*;

public class MailSend {

 public MailSend(){
 }

 public boolean sendConfirmation(){
  try{
   InternetAddress OwnerEMailAddress = new
InternetAddress("[EMAIL PROTECTED]","Sachin India");
   InternetAddress Emailto = new
InternetAddress("[EMAIL PROTECTED]","Sachin India");
   String OwnerServer= "mail.dans-home.com";
   Properties OwnerMailProperty = new Properties();
   OwnerMailProperty.put("mail.transport.protocol", "smtp");
   OwnerMailProperty.put("mail.smtp.host", OwnerServer);
   Session OwnerSession = Session.getDefaultInstance(OwnerMailProperty,
null);
   Message msg = new MimeMessage(OwnerSession);
   msg.setFrom(OwnerEMailAddress);
   msg.setSubject("Not Working");
   msg.addRecipient(Message.RecipientType.TO, Emailto);
 /*following line is throwing the error*/
   msg.setContent("Was not working from dans-home", "text/plain");

   Transport sendSMTP = OwnerSession.getTransport("smtp");
 /*following line is throwing the error*/
   sendSMTP.send(msg);
   sendSMTP.close();
  }catch(Exception e){
 System.out.println("Error is : " + e);
 return false;
  }
   return true;
 }
 public static void main(String args[]){
  MailSend sac = new MailSend();
  boolean b = sac.sendConfirmation();
  if(b)
   System.out.println("Success");
  else
   System.out.println("It did not work ");
 }

}

Looking forward to hearing from you guys :-).
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com
- Original Message -
From: Paul Holser <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 6:12 PM
Subject: Re: Strange Bug


> the only thing i can think of is that somehow both getWriter() and
> getOutputStream() have been called on the response object in the process
> of executing the JSP and bean code.  are you using different servlet
> engines (and thus possibly different page compile servlets) on the
> different servers?  can you post your page?
>
> --p
>
> --
> // Paul Holser, Infrastructure Specialist
> // Phone: 972.726.4560/1.800.OBJECT1 x4560
> // E-mail: [EMAIL PROTECTED]
> // ---
> // ObjectSpace, Inc.
> // The Leader in Business-to-Business Solutions
> // http://www.objectspace.com
>
> > -Original Message-
> > From: Sachin S. Khanna [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 28, 2000 5:31 AM
> > To: [EMAIL PROTECTED]
> > Subject: Strange Bug
> >
> >
> > I have a simple jsp which uses a bean to send an email. The
> > code is working
> > fine on one server but throwing the following error on the other:
> > java.lang.IllegalStateException: Response has already been committed
> > What could be the reason for this kind of strange behaviour.
> > Have a nice day.
> > With regards,
> > Sachin S. Khanna.
> > www.emailanorder.com
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



Re: WebServer Source Code

2000-06-28 Thread Prabhakar Vardhan Ojha

use decompiler  "jad".

You can download it for free.

Regards,
prabhakar

- Original Message -
From: Khem Chand Sachdeva <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 2:39 PM
Subject: Re: WebServer Source Code


> use any decompiler
> - Original Message -
> From: V.Vasant <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 28, 2000 3:05 PM
> Subject: WebServer Source Code
>
>
> > hi,
> > I would like to have a look at the source of the JavaWebServer
> > Can someone tell me where I can find these. I have got the jswdk-1.0.1,
> > but I am unable to find it's source . All I see is only .class files.
> > Can someone please help me?
> >
> > -V.Vasant
> >
> >
>
===
> > 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



  1   2   >