Re: iplanet -jsp problem urgent, please help!!!!

2001-04-24 Thread Sachin S. Khanna

Its always better if you post the code alongwith the explanation of the
problem to the list for a quicker and a better answer to your query.
I assume you will agree that to guess the your code from the explanation of
your problem and then finding a solution for it is not going to be very easy
for this list.
Just an opinion :-).
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
- Original Message -
From: charu gupta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 24, 2001 7:48 AM
Subject: iplanet -jsp problem urgent, please help


 Hi ,
 I am using jsp, oracle 8 on win nt platform with
 iplanet as the web server.
 The application is a simple login page which verifies
 a user account that is the user name and the password.

 till sometime back everything was working fine, then
 suddendly the application started bombing. Page
 cannot be displayed message shows up whenever the
 user enters the username and password and hits enter.
 on hitting enter the information is checked from the
 database.
 Since in my code I was not closing the connection so I
 thot the web server must have exhausted all the d/b
 connections so i shut down and strated the server
 again but the problem is still there.

 please help!


 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/


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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: new to java desperately need help

2001-04-24 Thread Sachin S. Khanna

Well just type the following line
java Countdown 3
You should see the following output :
3 2 1
Assuming you have compiled the source file (Countdown.java) to a class file
(Countdown.class) using the javac compiler :-).
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
- Original Message -
From: Marshall, Katyann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 9:38 PM
Subject: new to java desperately need help


 I'm trying some simple java code I'm getting directly from a book, the
code
 looks as follows, it's running fine how do I see the output, a co worker
 told me that I'm using inner class in the code but I'm not too sure what
he
 meant, can some on look at this code and tell me what I'm missing to see
the
 output.
 here is the code

  class Countdown {

   public static void main(String args[]) {
   int i = Integer.valueOf(args[0]).intValue();
   for(int j= i; j0; j--)
   System.out.print(j +  );
   System.out.print(\u0007);
   }
 }


 thanks
 Katyann



 -Original Message-
 From: Sainz de Murieta [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 11:34 AM
 To: [EMAIL PROTECTED]
 Subject:


 A tomcat specific question:

 Im using Tomcat 3.2 on Windows 2000. It's working fine when I start and
stop
 it
 manually (I mean, executing the scripts in /bin). But it doesn't work if I
 install it as a service. All my paths on the wrapper.properties seem to be
 ok.
 I install it as server; just after starting it, it stops again writing the
 file
 jvm.stderr with the following content:
 
 java.lang.NoClassDefFoundError: de
 Exception in thread main
 

 Does anybody know what my problem could be?

 Cheers,
 Iñaki.

 -
 This message was sent using Endymion MailMan.
 http://www.endymion.com/products/mailman/


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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: cookie problems

2001-04-24 Thread Sachin S. Khanna

The piece of code that you have supplied to the list is working fine.
Maybe the error is being generated due to some other lines of code.
A post of the entire jsp file to the list would surely get you a solution
from this list :-).
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
- Original Message -
From: Charles Luo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 4:17 PM
Subject: cookie problems


 Dear mailinglist,

 Currently, I am trying to use cookies to store data about site visitors'
 actions.

 the logic is that

 Cookie[] cookies=request.getCookies();

 if (cookies==null || cookies.length==0)  {
   aCookie=new Cookie(key,0);
   aCookie.setMaxAge(60*10);  // expires after 10 minute
   response.addCookie(aCookie);
 }

 ... do somthing here ( modifying the value of key: for example 0 - 1)

 and then

 for (int i=0; icookies.length; i++){
 if (cookies[i].getName().equals(key)){
   cookies[i].setValue(1);
   cookies[i].setMaxAge(60*30);  // expires after 30 minute
   response.addCookie(cookies[i]);
 }

 

 When I first run this jsp, it works fine and on the second time, I got
some
 exceptions thrown

 Mon Apr 23 11:40:34 BST 2001:E WebAppServletContext-General exception
 raised on '/polling/bepoll.jsp'
 java.lang.NullPointerException
 at jsp_servlet._polling._bepoll._jspService(_bepoll.java:230)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
 :123)
 at

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
 l.java:761)
 at

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
 l.java:708)
 at

weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
 Manager.java:252)
 at

weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
 at
 weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)



 Has any one got this kind of response before? Any comments will be
 appreciated.

 Cheers,
 Charles
 -Original Message-
 From: Sachin S. Khanna [mailto:[EMAIL PROTECTED]]
 Sent: 23 April 2001 07:54
 To: [EMAIL PROTECTED]
 Subject: Re: jsp:getProperty vs %= bean.getXxx %


 The following extract from the jsp1.2 specification clarifies the
behaviour
 witnessed by you ::

 The value of the name attribute in jsp:setProperty and jsp:getProperty
will
 refer to an object that is obtained from the pageContext object through
its
 findAttribute() method.

 The object named by the name must have been introduced to the JSP
 processor using either the jsp:useBean action or a custom action with an
 associated VariableInfo entry for this name.

 Note: a consequence of the previous paragraph is that objects that are
 stored in, say, the session by a front component are not automatically
 visible to jsp:setProperty and jsp:getProperty actions in that page unless
a
 jsp:useBean action, or some other action, makes them visible. 

 Based on the above if you add the following line of code to your jsp
 it should generate the output you are looking for :
 pageContext.setAttribute(invoice,invoice);

 This line of code should come inside the for loop of your jsp and after
the
 following line of code :
 invoice = invoices[i];

 Assume this helps :-).
 Have a nice day.
 With regards,
 Sachin S. Khanna
 http://www.emailanorder.com
 - Original Message -
 From: Gerry Scheetz [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, April 22, 2001 4:50 AM
 Subject: jsp:getProperty vs %= bean.getXxx %


  I have a JSP file that is
 
  %@ page import=ChildCare.InvoiceBean
 contentType=text/html;charset=ISO-8859-1 %
  jsp:useBean  id=invoice class=ChildCare.InvoiceBean /
  % InvoiceBean[] invoices =
 (InvoiceBean[])session.getAttribute(invoices); %
 
  %
  for (int i=0; i invoices.length; i++) {
 invoice = invoices[i];
  %
 
  jsp:getProperty name=invoice property=invoiceNumber /
  BR
  %= invoice.getInvoiceNumber() %
  P
 
  %
  }
  %
 
  /BODY
  /HTML
 
  My bean code is
 
  package ChildCare;
 
  public class InvoiceBean implements Serializable{
int invoiceNumber;
 
/**
 * Constructor
 */
public InvoiceBean() {
}
 
public int getInvoiceNumber() {
  return invoiceNumber;
}
 
public void setInvoiceNumber(int newInvoiceNumber) {
  invoiceNumber = newInvoiceNumber;
}
  }
 
I get a 0 returned from jsp:getProperty name=invoice
 property=invoiceNumber /
and I get the invoice number from %= invoice.getInvoiceNumber() %
 
  I am using Tomcat as my servlet container and JSP engine, apache is my
web
 server.
 
  Any idea on why I do not get the invoice number using the getProperty
 command?
 
  Side note, why do I have to 

Re: new to java desperately need help

2001-04-24 Thread manoj nahar

well u can unsubscribe from the list by sending mail

To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.

and then subscribe again to the list u want from the URL in this mail for
mailing list

manoj nahar
At 09:37 23.04.01 -0700, you wrote:
HOW CAN I CHANGE MY EMAIL ADDRESS FOR THIS LIST?


THANKS,

ANDREW

-Original Message-
From: manoj nahar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 9:17 AM
To: [EMAIL PROTECTED]
Subject: Re: new to java desperately need help


hi Katyann,

It is good that u are learning java and trying things.

but this is a JSP mailing list post such queries on java general mailing
list. as this would save lot of time of JSP developers.

u can get the list of all java mailing list at this address

http://www.ibiblio.org/javafaq/mailinglists.html

thanks

manoj nahar

At 12:08 23.04.01 -0400, you wrote:
 I'm trying some simple java code I'm getting directly from a book, the code
 looks as follows, it's running fine how do I see the output, a co worker
 told me that I'm using inner class in the code but I'm not too sure what he
 meant, can some on look at this code and tell me what I'm missing to see
the
 output.
 here is the code
 
   class Countdown {
 
public static void main(String args[]) {
int i = Integer.valueOf(args[0]).intValue();
for(int j= i; j0; j--)
System.out.print(j +  );
System.out.print(\u0007);
}
 }
 
 
 thanks
 Katyann
 
 
 
 -Original Message-
 From: Sainz de Murieta [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 11:34 AM
 To: [EMAIL PROTECTED]
 Subject:
 
 
 A tomcat specific question:
 
 Im using Tomcat 3.2 on Windows 2000. It's working fine when I start and
stop
 it
 manually (I mean, executing the scripts in /bin). But it doesn't work if I
 install it as a service. All my paths on the wrapper.properties seem to be
 ok.
 I install it as server; just after starting it, it stops again writing the
 file
 jvm.stderr with the following content:
 
 java.lang.NoClassDefFoundError: de
 Exception in thread main
 
 
 Does anybody know what my problem could be?
 
 Cheers,
 Iñaki.
 
 -
 This message was sent using Endymion MailMan.
 http://www.endymion.com/products/mailman/
 
 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: new to java desperately need help

2001-04-24 Thread Hamid

Hi,
I have checked it by executing it. Now it is executing fine after doing
folwing updation.
There must be one class public in ur file. so just write ur class as public
as:

public class Countdown {
...
...

It will work fine.

Hamid Hassan
Software engineer
visualsoft-inc.com

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Hari Nair
Sent: Monday, April 23, 2001 9:42 PM
To: [EMAIL PROTECTED]
Subject: Re: new to java desperately need help


Your second output statement should be using System.out.println instead of
just print..

hope this will work..

hari

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Marshall, Katyann
Sent: Monday, April 23, 2001 12:09 PM
To: [EMAIL PROTECTED]
Subject: new to java desperately need help


I'm trying some simple java code I'm getting directly from a book, the code
looks as follows, it's running fine how do I see the output, a co worker
told me that I'm using inner class in the code but I'm not too sure what he
meant, can some on look at this code and tell me what I'm missing to see the
output.
here is the code

 class Countdown {

  public static void main(String args[]) {
  int i = Integer.valueOf(args[0]).intValue();
  for(int j= i; j0; j--)
  System.out.print(j +  );
  System.out.print(\u0007);
  }
}


thanks
Katyann



-Original Message-
From: Sainz de Murieta [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 11:34 AM
To: [EMAIL PROTECTED]
Subject:


A tomcat specific question:

Im using Tomcat 3.2 on Windows 2000. It's working fine when I start and stop
it
manually (I mean, executing the scripts in /bin). But it doesn't work if I
install it as a service. All my paths on the wrapper.properties seem to be
ok.
I install it as server; just after starting it, it stops again writing the
file
jvm.stderr with the following content:

java.lang.NoClassDefFoundError: de
Exception in thread main


Does anybody know what my problem could be?

Cheers,
Iñaki.

-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

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



Textarea wrap newlines to BR

2001-04-24 Thread Gavin Meehan

Hi
I have a class called Filter that substitutes newline characters with the
html BR tag so data entered on the form will be diplayed properly.
This works fine if the enter key is hit in the textarea the substitution is
made. My problem is when someone continues typeing and the text goes on to
the newline automatically. I thought that when the WRAP attribute on the tag
was set to PHYSICAL that a new line character is automatically added. Can
anyone tell me if this is the case and if so what might i be doing wrong.

Thanks
Gav

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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

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



urgent

2001-04-24 Thread sandarbh

Hi all,

Can anyone give me a clue to this error which raised when 13469 records were
inserted through a program in java.



java.sql.SQLException: ORA-01631: max # extents (121) reached in table
CAS_USER.
MODULE_LOG

at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:181)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:631)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1225)
at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:661
)
at
oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:780)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement
.java:822)
at
oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:116
4)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1210)
at
oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java
:1227)
at ConnectionManager.insertRecords(ConnectionManager.java:25)
at DbHandlerFeeder.updatedata(DbHandlerFeeder.java:239)
at DbHandlerFeeder.sendToDatabase(DbHandlerFeeder.java:391)
at
LogHandlerCaller.feederdetaillogmanipulation(LogHandlerCaller.java:11
7)
at LogHandlerMain.pathForFeeder(LogHandlerMain.java:122)
at LogHandlerMain.main(LogHandlerMain.java:164)
The time is :2317

**

Regards,

Sandarbh

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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

2001-04-24 Thread Mayuresh Kadu

perhaps u could try putting all the JAR's found in the %tomcat_home%\lib
into ur CLASSPATH. Maybe that could help. I am running Win2k + Tomcat 3.2
too --- it runs absolutely fine :)


Mayuresh

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Sainz de Murieta
Sent: Monday, April 23, 2001 21:04
To: [EMAIL PROTECTED]
Subject:


A tomcat specific question:

Im using Tomcat 3.2 on Windows 2000. It's working fine when I start and stop
it
manually (I mean, executing the scripts in /bin). But it doesn't work if I
install it as a service. All my paths on the wrapper.properties seem to be
ok.
I install it as server; just after starting it, it stops again writing the
file
jvm.stderr with the following content:

java.lang.NoClassDefFoundError: de
Exception in thread main


Does anybody know what my problem could be?

Cheers,
Iñaki.

-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

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



What's going on with web.xml ?!

2001-04-24 Thread chris brown

This follows on from my questions from yesterday... still not solved... :-(

From a fresh Tomcat install -- which worked, including the addition of a
simple hello world type context of my own -- I then tried to add my own
custom web.xml file.  As soon as I put this into my context's WEB-INF
folder, with no changes to the default version of web.xml, I got the
following messages in the logs :

[stdout]:
Starting tomcat. Check logs/tomcat.log for error messages
cannot load servlet name: jsp
cannot load servlet name: default

[stderr]:
2001-04-23 03:20:05 - ContextManager: Adding context Ctx(  )
2001-04-23 03:20:05 - Ctx(  ): Removing duplicate servlet jsp
jsp(org.apache.jasper.runtime.JspServlet/null)
2001-04-23 03:20:05 - Ctx(  ): Removing duplicate *.jsp -
jsp(org.apache.jasper.servlet.JspServlet/null)
2001-04-23 03:20:05 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007
2001-04-23 03:20:05 - PoolTcpConnector: Starting Ajp13ConnectionHandler on
8009

I assumed that placing web.xml in a WEB-INF folder with Tomcat allowed the
developer to override default settings.  However, it seems that instead of
overriding settings, this cancels them out!!!  So, I tried removing the
default webapps in the webapps folder (admin, test, root, example), and
removed tomcat/conf/web.xml (the default), as well as my own one.

To my surprise, this actually still compiled my JSP pages!  Despite there
being no definition anywhere of a servlet to handle JSP requests!  (It's
worth noting here that I'm accessing Tomcat via its built-in HTTP connector,
not Apache or whatever).

So I decided then to put a copy of the default web.xml file within the
WEB-INF folder of my context (without restoring the default in tomcat/conf).
And another surprise: compilation failed with the exact same messages as
above in STDOUT and STDERR, complaining that these servlets were already
defined and would therefore now be removed as they were supposedly declared
twice...

Help!  How does this work?  What am I missing?  How can I define a full
web.xml file for my context without these problems?  I may for example
wish in some contexts to use the Jikes compiler instead of Javac, which
requires overriding the jsp servlet (and this is what I'm stuck on).

Many thanks for help,
Chris Brown

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

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



sign off JSP-interest

2001-04-24 Thread Kiran, venkata

sign off JSP-INTEREST

 -Original Message-
 From: webwiz [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, March 30, 2001 4:48 PM
 To:   [EMAIL PROTECTED]
 Subject:  sign off JSP-interest

 Please sign off ourself from JSP - interest.

 For webwiz software (I) pvt ltd

 A.M. Sivanadian
 Director.
 Rodrigo Costa wrote:

  To unsubscribe yourself from the list: mailto [EMAIL PROTECTED] with
  body: signoff JSP-INTEREST.
 
  Good luck Jane.
 
  -Original Message-
  From: Jane Wang [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 29, 2001 10:50
  To: [EMAIL PROTECTED]
  Subject: unsubscribe me pls
 
  __
  Do You Yahoo!?
  Get email at your own domain with Yahoo! Mail.
  http://personal.mail.yahoo.com/?.refer=text
 
  
  ===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.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.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
WARNING: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee.  Access to this message
by anyone else is unauthorised.  If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error. Thank you.- HCL Perot Systems

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Textarea wrap newlines to BR

2001-04-24 Thread Lee Turner

I have just had a look in Dreamweaver and setting the wrap tag to VIRTUAL
seems to work better.  wrap=VIRTUAL

Hope this helps
Lee

_

Lee Turner
Systems Developer
Information Technology Leeds
_

Watt Gilchrist Ltd
Ring Road, West Park
Leeds, LS16 6RA
Tel: 0113 288 3200
Fax: 0113 275 1690
http://www.wattgilchrist.co.uk
_


 -Original Message-
 From: Gavin Meehan [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 10:04 AM
 To:   [EMAIL PROTECTED]
 Subject:  Textarea wrap newlines to BR

 Hi
 I have a class called Filter that substitutes newline characters with the
 html BR tag so data entered on the form will be diplayed properly.
 This works fine if the enter key is hit in the textarea the substitution
 is
 made. My problem is when someone continues typeing and the text goes on to
 the newline automatically. I thought that when the WRAP attribute on the
 tag
 was set to PHYSICAL that a new line character is automatically added. Can
 anyone tell me if this is the case and if so what might i be doing wrong.

 Thanks
 Gav

 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

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



Antwort: Textarea wrap newlines to BR

2001-04-24 Thread Steffen Morawietz

hi gavin.

try textarea name=[somename] cols=x rows=y wrap=physical.

wrap=physical definitely inserts new-line-characters when you post the
form. otherwise the browser might default to wrap=virtual or wrap=off...

greetings

steffen



Gavin Meehan
gavin_meehan@HOTAn: [EMAIL PROTECTED]
MAIL.COMKopie:
Gesendet von: A  Thema:  Textarea wrap newlines to BR
mailing list
about Java Server
Pages
specification and
reference
JSP-INTEREST@jav
a.sun.com


24.04.2001 11:04
Bitte antworten
an A mailing list
about Java Server
Pages
specification and
reference






Hi
I have a class called Filter that substitutes newline characters with the
html BR tag so data entered on the form will be diplayed properly.
This works fine if the enter key is hit in the textarea the substitution is
made. My problem is when someone continues typeing and the text goes on to
the newline automatically. I thought that when the WRAP attribute on the
tag
was set to PHYSICAL that a new line character is automatically added. Can
anyone tell me if this is the case and if so what might i be doing wrong.

Thanks
Gav

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: urgent

2001-04-24 Thread Paul McGlynn

Looking at the top-level error, it looks like one of two things has
happened. Your table has reached its maximum size within your schema
(limited by the number of max extents for that table - a unit of Oracle
storage, 2k default I think), or your schema itself has reached its maximum
size for its tablespace.

If you can add data to other tables in the same schema it probably means
that your table has grown outwith its own limits, if you can't it probably
means you've ran out of space for your whole schema.

Either way, get your DBA to look at it but you'll probably have to add
another datafile to the tablespace for your schema.

Paul.



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of sandarbh
Sent: Tuesday, April 24, 2001 10:02 AM
To: [EMAIL PROTECTED]
Subject: urgent

Hi all,

Can anyone give me a clue to this error which raised when 13469 records were
inserted through a program in java.



java.sql.SQLException: ORA-01631: max # extents (121) reached in table
CAS_USER.
MODULE_LOG

at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:181)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:631)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1225)
at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:661
)
at
oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:780)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement
.java:822)
at
oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:116
4)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1210)
at
oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java
:1227)
at ConnectionManager.insertRecords(ConnectionManager.java:25)
at DbHandlerFeeder.updatedata(DbHandlerFeeder.java:239)
at DbHandlerFeeder.sendToDatabase(DbHandlerFeeder.java:391)
at
LogHandlerCaller.feederdetaillogmanipulation(LogHandlerCaller.java:11
7)
at LogHandlerMain.pathForFeeder(LogHandlerMain.java:122)
at LogHandlerMain.main(LogHandlerMain.java:164)
The time is :2317

**

Regards,

Sandarbh

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

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


__
Graham Technology plc,
Registered in Scotland No: 143434
Registered Office, Torr Hall, Torr Road, Bridge of Weir, PA11 3RU, UK
Telephone: +44 (0) 1418914000
Fax:   +44 (0) 1418822114
Website:   http://www.gtnet.com/
__

This email (and any attachment) is private and confidential.  If you were
not meant to receive it, please delete it and tell us by phone or email.
Although we scan all email and attachments we do not accept responsibility
for viruses.

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: program the addresss bar

2001-04-24 Thread Geert Van Damme

Use a Frameset in your index page and do all your navigation in a single
frame.
But most important: Why would you like to do something like that
One of the disadvantages is e.g. that you cannot easily send a user an URL
of a specific page by email. I can think of others...

Geert Van Damme

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Manish
 Sent: dinsdag 24 april 2001 11:32
 To: [EMAIL PROTECTED]
 Subject: program the addresss bar


 hi
 i want the value in the address bar of my browser to be constant
 thruout my
 application.
 eg www.abc.com
 i might go to any page but the value displayed in the address bar
 shd remain
 constant.
 is there anyway to do this in JSP or JavaScript.
 pls send me the script or the url frm where i can get such a script
 thanx
 manish

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Lee Turner
 Sent: Tuesday, April 24, 2001 2:46 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Textarea wrap newlines to BR


 I have just had a look in Dreamweaver and setting the wrap tag to VIRTUAL
 seems to work better.  wrap=VIRTUAL

 Hope this helps
 Lee

 _

 Lee Turner
 Systems Developer
 Information Technology Leeds
 _

 Watt Gilchrist Ltd
 Ring Road, West Park
 Leeds, LS16 6RA
 Tel: 0113 288 3200
 Fax: 0113 275 1690
 http://www.wattgilchrist.co.uk
 _


  -Original Message-
  From: Gavin Meehan [SMTP:[EMAIL PROTECTED]]
  Sent: Tuesday, April 24, 2001 10:04 AM
  To:   [EMAIL PROTECTED]
  Subject:  Textarea wrap newlines to BR
 
  Hi
  I have a class called Filter that substitutes newline
 characters with the
  html BR tag so data entered on the form will be diplayed properly.
  This works fine if the enter key is hit in the textarea the substitution
  is
  made. My problem is when someone continues typeing and the text
 goes on to
  the newline automatically. I thought that when the WRAP attribute on the
  tag
  was set to PHYSICAL that a new line character is automatically
 added. Can
  anyone tell me if this is the case and if so what might i be
 doing wrong.
 
  Thanks
  Gav
 
 
 _
  Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: program the addresss bar

2001-04-24 Thread Gavin Meehan

Hi
If your form action is set to post then the query string will not be
appended to the url. so you will just see www.yoursite.com not
www.yoursite.com?name=harryage=23.

Damien


From: Manish [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
 reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: program the addresss bar
Date: Tue, 24 Apr 2001 15:02:08 +0530

hi
i want the value in the address bar of my browser to be constant thruout my
application.
eg www.abc.com
i might go to any page but the value displayed in the address bar shd
remain
constant.
is there anyway to do this in JSP or JavaScript.
pls send me the script or the url frm where i can get such a script
thanx
manish

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Lee Turner
Sent: Tuesday, April 24, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Textarea wrap newlines to BR


I have just had a look in Dreamweaver and setting the wrap tag to VIRTUAL
seems to work better.  wrap=VIRTUAL

Hope this helps
Lee

_

Lee Turner
Systems Developer
Information Technology Leeds
_

Watt Gilchrist Ltd
Ring Road, West Park
Leeds, LS16 6RA
Tel: 0113 288 3200
Fax: 0113 275 1690
http://www.wattgilchrist.co.uk
_


  -Original Message-
  From: Gavin Meehan [SMTP:[EMAIL PROTECTED]]
  Sent: Tuesday, April 24, 2001 10:04 AM
  To:   [EMAIL PROTECTED]
  Subject:  Textarea wrap newlines to BR
 
  Hi
  I have a class called Filter that substitutes newline characters with
the
  html BR tag so data entered on the form will be diplayed properly.
  This works fine if the enter key is hit in the textarea the substitution
  is
  made. My problem is when someone continues typeing and the text goes on
to
  the newline automatically. I thought that when the WRAP attribute on the
  tag
  was set to PHYSICAL that a new line character is automatically added.
Can
  anyone tell me if this is the case and if so what might i be doing
wrong.
 
  Thanks
  Gav
 
 
_
  Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
 
 
==
  =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: program the addresss bar

2001-04-24 Thread Manish

my form method is post but if i am passing some parameters with a link then
the parameters are visible

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Gavin Meehan
Sent: Tuesday, April 24, 2001 3:38 PM
To: [EMAIL PROTECTED]
Subject: Re: program the addresss bar


Hi
If your form action is set to post then the query string will not be
appended to the url. so you will just see www.yoursite.com not
www.yoursite.com?name=harryage=23.

Damien


From: Manish [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
 reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: program the addresss bar
Date: Tue, 24 Apr 2001 15:02:08 +0530

hi
i want the value in the address bar of my browser to be constant thruout my
application.
eg www.abc.com
i might go to any page but the value displayed in the address bar shd
remain
constant.
is there anyway to do this in JSP or JavaScript.
pls send me the script or the url frm where i can get such a script
thanx
manish

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Lee Turner
Sent: Tuesday, April 24, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Textarea wrap newlines to BR


I have just had a look in Dreamweaver and setting the wrap tag to VIRTUAL
seems to work better.  wrap=VIRTUAL

Hope this helps
Lee

_

Lee Turner
Systems Developer
Information Technology Leeds
_

Watt Gilchrist Ltd
Ring Road, West Park
Leeds, LS16 6RA
Tel: 0113 288 3200
Fax: 0113 275 1690
http://www.wattgilchrist.co.uk
_


  -Original Message-
  From: Gavin Meehan [SMTP:[EMAIL PROTECTED]]
  Sent: Tuesday, April 24, 2001 10:04 AM
  To:   [EMAIL PROTECTED]
  Subject:  Textarea wrap newlines to BR
 
  Hi
  I have a class called Filter that substitutes newline characters with
the
  html BR tag so data entered on the form will be diplayed properly.
  This works fine if the enter key is hit in the textarea the substitution
  is
  made. My problem is when someone continues typeing and the text goes on
to
  the newline automatically. I thought that when the WRAP attribute on the
  tag
  was set to PHYSICAL that a new line character is automatically added.
Can
  anyone tell me if this is the case and if so what might i be doing
wrong.
 
  Thanks
  Gav
 
 
_
  Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
 
 
==
  =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on 

Re: program the addresss bar

2001-04-24 Thread Eduardo Miguel Oliveira

You can use a page with multiple frames and make the navigation inside the
same frame. I never used that because it's not very simple, but I've seen it
and it works! You go from one page to the other and the URL is always the
same!

 -Original Message-
 From: A mailing list about Java Server Pages specification
 and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Manish
 Sent: terça-feira, 24 de Abril de 2001 11:57
 To: [EMAIL PROTECTED]
 Subject: Re: program the addresss bar


 my form method is post but if i am passing some parameters
 with a link then
 the parameters are visible

 -Original Message-
 From: A mailing list about Java Server Pages specification
 and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Gavin Meehan
 Sent: Tuesday, April 24, 2001 3:38 PM
 To: [EMAIL PROTECTED]
 Subject: Re: program the addresss bar


 Hi
 If your form action is set to post then the query string will not be
 appended to the url. so you will just see www.yoursite.com not
 www.yoursite.com?name=harryage=23.

 Damien


 From: Manish [EMAIL PROTECTED]
 Reply-To: A mailing list about Java Server Pages specification and
  reference [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: program the addresss bar
 Date: Tue, 24 Apr 2001 15:02:08 +0530
 
 hi
 i want the value in the address bar of my browser to be
 constant thruout my
 application.
 eg www.abc.com
 i might go to any page but the value displayed in the address bar shd
 remain
 constant.
 is there anyway to do this in JSP or JavaScript.
 pls send me the script or the url frm where i can get such a script
 thanx
 manish
 
 -Original Message-
 From: A mailing list about Java Server Pages specification
 and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Lee Turner
 Sent: Tuesday, April 24, 2001 2:46 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Textarea wrap newlines to BR
 
 
 I have just had a look in Dreamweaver and setting the wrap
 tag to VIRTUAL
 seems to work better.  wrap=VIRTUAL
 
 Hope this helps
 Lee
 
 _
 
 Lee Turner
 Systems Developer
 Information Technology Leeds
 _
 
 Watt Gilchrist Ltd
 Ring Road, West Park
 Leeds, LS16 6RA
 Tel: 0113 288 3200
 Fax: 0113 275 1690
 http://www.wattgilchrist.co.uk
 _
 
 
   -Original Message-
   From: Gavin Meehan [SMTP:[EMAIL PROTECTED]]
   Sent: Tuesday, April 24, 2001 10:04 AM
   To:   [EMAIL PROTECTED]
   Subject:  Textarea wrap newlines to BR
  
   Hi
   I have a class called Filter that substitutes newline
 characters with
 the
   html BR tag so data entered on the form will be
 diplayed properly.
   This works fine if the enter key is hit in the textarea
 the substitution
   is
   made. My problem is when someone continues typeing and
 the text goes on
 to
   the newline automatically. I thought that when the WRAP
 attribute on the
   tag
   was set to PHYSICAL that a new line character is
 automatically added.
 Can
   anyone tell me if this is the case and if so what might i be doing
 wrong.
  
   Thanks
   Gav
  
  
 _

   Get Your Private, Free E-mail from MSN Hotmail at
 http://www.hotmail.com.
  
  
 =
=
   =
   To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
   JSP-INTEREST.
   For digest: mailto [EMAIL PROTECTED] with body: set
 JSP-INTEREST
   DIGEST.
   Some relevant FAQs on JSP/Servlets can be found at:
  
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.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.

 ==
 =

Re: jar ??

2001-04-24 Thread M Sankar

try

jar cvf jarname classname1 classname2..

Shahaji Kadam. wrote:

 hi,

 i am working on gr8 Unix system. Before this i was working on very simple Win
 NT.

 i am strugling with jar command and at the end i could place only one bean
 (class file) in it.

 but i want to put multiple files in a jar file.

 Pls Tell Me !!

 cheers,
 SDK

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Java Beans!!

2001-04-24 Thread M Sankar

You have to point ur class path in ur webserver to the directory where bean class
files are present..


Shahaji Kadam. wrote:

 Hi,

 I am calling a Java Bean from a JSP file.

 Both the .jsp file and Java Bean (.class file) is in the same directory ex.
 ../jsp/

 when i call .jsp page i get an error that bean could not be found. It seems
 that it is not able to locate the Bean.

 how can i import the bean in JSP page?

 is it required to register the ../jsp/ path to make the beans inside it
 avaiable to JSP pages ?

 any hints ???

 thanks

 Shahaji.Kadam

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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 while displaying pages in Iframe

2001-04-24 Thread SSMTech

Hello friends,

I have a Customermain.jsp  page which is server generated. In this page
there are four iframes.src parameters referencing to four different
pagesnamely :
1 MainInfo.jsp
2 Addresses.jsp
3 Contacts.jsp
4 MiscInfo.jsp
These pages are also generated dynamically.
After deploying on the j2ee server, the first time Customermain page
displays the above pages correctly in their corresponding positions.But on
refreshing the CustomerMain page or calling it again for another customer,it
gives erratic result. For eg : It shows address page at Contactpage location
or Contact page in another location or the same page in all four locations.

Please respond  as soon as possible,

SSMTech

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

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



Upload Componenet

2001-04-24 Thread Prakasan OK

hi everybody,
 Does any one know about any uploading component in JSP?

Thanks inAdvance,
Prakasan

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: urgent

2001-04-24 Thread sandarbh

Thanks to you Gavin and Paul

Ragards
Sandarbh

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: urgent

2001-04-24 Thread Gregory Dobkins

You have an Oracle error.  The max extents for table CAS_USER.MODULE_LOG have
been reached.  If the table name is an accurate indication of the use of the
table, it may only be used for logging and the solution is to remove unnecessary
rows.   I have found that it is best to install the on-line documentation for
Oracle and use the search facility to locate Oracle errors ie. ORA-01631.   It
has helped me to get a handle on Oracle problems.





sandarbh [EMAIL PROTECTED] on 04/24/2001 05:02:24 AM

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

To:   [EMAIL PROTECTED]
cc:(bcc: Gregory Dobkins/BCSD/ISHSG/DIVADMIN/DOH)
Subject:  urgent



Hi all,

Can anyone give me a clue to this error which raised when 13469 records were
inserted through a program in java.



java.sql.SQLException: ORA-01631: max # extents (121) reached in table
CAS_USER.
MODULE_LOG

at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:181)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:631)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1225)
at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:661
)
at
oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:780)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement
.java:822)
at
oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:116
4)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1210)
at
oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java
:1227)
at ConnectionManager.insertRecords(ConnectionManager.java:25)
at DbHandlerFeeder.updatedata(DbHandlerFeeder.java:239)
at DbHandlerFeeder.sendToDatabase(DbHandlerFeeder.java:391)
at
LogHandlerCaller.feederdetaillogmanipulation(LogHandlerCaller.java:11
7)
at LogHandlerMain.pathForFeeder(LogHandlerMain.java:122)
at LogHandlerMain.main(LogHandlerMain.java:164)
The time is :2317

**

Regards,

Sandarbh

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Upload Componenet

2001-04-24 Thread erik morton

Please expand on what you mean by component - loading a class over the network?
uploading a file from the client? calling a method on a remote object?

Prakasan OK wrote:

 hi everybody,
  Does any one know about any uploading component in JSP?

 Thanks inAdvance,
 Prakasan

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

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

--
Erik I Morton
Software Developer
--
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Upload Componenet

2001-04-24 Thread Kapil

Go to site http://www.jspsmart.com
and download jspsmartUpload component

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Prakasan OK
Sent: Tuesday, April 24, 2001 5:24 PM
To: [EMAIL PROTECTED]
Subject: Upload Componenet

hi everybody,
 Does any one know about any uploading component in JSP?

Thanks inAdvance,
Prakasan

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

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



url hiding

2001-04-24 Thread Kapil

The problem is that I want url as a constant.I have two options either use
frames or use method post
It will work on submit but on link I have some parameters and I am not
submitting a form and I do not want to use frame,
How can I hide variables
Any code in jsp for url hiding
Thanks in advance
kapil

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Upload Componenet

2001-04-24 Thread Prakasan OK

i want to upload  a file from client




erik morton [EMAIL PROTECTED]@java.sun.com on 04/24/2001
06:13:10 PM

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

Sent by:  A mailing list about Java Server Pages specification and
  reference [EMAIL PROTECTED]


To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Upload Componenet


Please expand on what you mean by component - loading a class over
the network?
uploading a file from the client? calling a method on a remote object?

Prakasan OK wrote:

 hi everybody,
  Does any one know about any uploading component in JSP?

 Thanks inAdvance,
 Prakasan


===

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

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

--
Erik I Morton
Software Developer
--
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

===

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Upload Componenet

2001-04-24 Thread erik morton

If you want to upload a file I would encourage you to use Jason Hunter's
MultipartRequest class. You can find it at http://www.servlets.com. He's well
respected in the industry and his packages are open.

Prakasan OK wrote:

 hi everybody,
  Does any one know about any uploading component in JSP?

 Thanks inAdvance,
 Prakasan

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

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

--
Erik I Morton
Software Developer
--
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Upload Componenet

2001-04-24 Thread erik morton

http://www.servlets.com/cos/
This guy wrote Oreilly's book on Servlets. Though I would point out that Multipart
request is a class and not a CustomTag. It's still trivial to use though I have
never used it in a JSP - I can't see why it would not work.

Prakasan OK wrote:

 i want to upload  a file from client

 erik morton [EMAIL PROTECTED]@java.sun.com on 04/24/2001
 06:13:10 PM

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

 Sent by:  A mailing list about Java Server Pages specification and
   reference [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:
 Subject:  Re: Upload Componenet

 Please expand on what you mean by component - loading a class over
 the network?
 uploading a file from the client? calling a method on a remote object?

 Prakasan OK wrote:

  hi everybody,
   Does any one know about any uploading component in JSP?
 
  Thanks inAdvance,
  Prakasan
 
 
 ===

  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set
 JSP-INTEREST DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

 --
 Erik I Morton
 Software Developer
 --
 CommerceHub
 http://www.commercehub.com
 518-886-0704
 21 Corporate Drive
 Clifton Park, NY 12065

 ===

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

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

--
Erik I Morton
Software Developer
--
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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 get the Session value and use it for DB access?

2001-04-24 Thread Roland Dong

Please help with the following problem.
(I am using Orion 4.7)

I am trying to use the value of the session variable for database
accesses( I am not concerned about security).

First, I tried to get the session value back in  b.jsp  by:
String pwd =(String)session.getAttribute(Login.Password);

and then use pwd to query oracle DB by:
rs = stmt.executeQuery(SELECT * FROM customers WHERE password
='+this.pwd+');


I got this error message:

Syntax error in source/jsp/db_proj/BillingDB/jsp_servlet/myAcct.jsp.java:92:
No variable pwd defined in class
/jsp/db_proj/BillingDB/jsp_servlet/myAcct.jsp. (JSP page line 122)
   rs = stmt.executeQuery(SELECT * FROM customers WHERE CUSTID
='+this.pwd+');

^
1 error

My questions are:

1. How do I define pwd. Why can't String pwd
=(String)session.getAttribute(Login.Password); define pwd? I tried to put
it into %! % then I got another
error message saying variable session is undefined...

2. Since password is a number type, how do I change pwd into an number type?

3. What is the solution?

Thanks in advance.

Roland

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

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



after uploading file from client to server...

2001-04-24 Thread Jim Snyder

Hello Everyone

I'm using the solution here
(http://www.onjava.com/pub/a/onjava/2001/04/05/upload.html) to do my
file uploading from client to server. Basically it states for the form
containing the file component, the action should be to send it to
FileUpload.jsp which does the following:

jsp:useBean id=myid scope=session class=my.path.to.class.Class /

%
myid.uploadClientFile(request);
%

When the uploadClientFile method completes I need to automattically go
back to the previous jsp page. In short this is for a wizard. So really
going back to the previous jsp page is really refreshing the orginal
jsp page who had a form on it go to FileUpload.jsp.

--
Jim Snyder
[EMAIL PROTECTED]

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: after uploading file from client to server...

2001-04-24 Thread erik morton

user something like:

jsp:forward page=%= request.getHeader(referer) %/
This will use the ServletContext.RequestDispatcher object so that the current
request is passed to the previous page.

or use
response.sendRedirect(request.getHeader(referer));
This will send an HTTP 303 (I think) back to the client which will make another
request to the previous page - ie this will result in new request and response
objects.

I forgot the tag that is used.
Anyway, if you are using load balancing you may want to parse the url as necessary.

Jim Snyder wrote:

 Hello Everyone

 I'm using the solution here
 (http://www.onjava.com/pub/a/onjava/2001/04/05/upload.html) to do my
 file uploading from client to server. Basically it states for the form
 containing the file component, the action should be to send it to
 FileUpload.jsp which does the following:

 jsp:useBean id=myid scope=session class=my.path.to.class.Class /

 %
 myid.uploadClientFile(request);
 %

 When the uploadClientFile method completes I need to automattically go
 back to the previous jsp page. In short this is for a wizard. So really
 going back to the previous jsp page is really refreshing the orginal
 jsp page who had a form on it go to FileUpload.jsp.

 --
 Jim Snyder
 [EMAIL PROTECTED]

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

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

--
Erik I Morton
Software Developer
--
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: What's going on with web.xml ?!

2001-04-24 Thread Michael Sweeney

Chris,
I'm not sure I understand what you are doing exactly. You've mentioned that
you put a copy of the default web.xml file in your application directory,
but you have mentioned that you edited the file to reflect your
application, so I'm beginning to guess that you haven't done that. If you
haven't already done this, read Chapter 13 of the Servlet specification
(http://java.sun.com/products/servlet ) to get an idea of what the
different elements are used for. I'm by no means an expert on this, but the
web.xml file is the deployment descriptor of a web application - if you
put one in your application's directory structure, you need to edit it to
provide the information that's specific to your application. The default
web.xml file isn't going to help you in your application deployment because
it has information specific to the servlet container itself. You might take
something like the web.xml file from the examples directory and edit it to
represent your specific web app. If the web.xml file doesn't describe the
specific application, it doesn't really have any point to being there. Hope
this helps.

Michael


At 11:02 AM 4/24/01 +0200, you wrote:
This follows on from my questions from yesterday... still not solved... :-(

 From a fresh Tomcat install -- which worked, including the addition of a
simple hello world type context of my own -- I then tried to add my own
custom web.xml file.  As soon as I put this into my context's WEB-INF
folder, with no changes to the default version of web.xml, I got the
following messages in the logs :

[stdout]:
Starting tomcat. Check logs/tomcat.log for error messages
cannot load servlet name: jsp
cannot load servlet name: default

[stderr]:
2001-04-23 03:20:05 - ContextManager: Adding context Ctx(  )
2001-04-23 03:20:05 - Ctx(  ): Removing duplicate servlet jsp
jsp(org.apache.jasper.runtime.JspServlet/null)
2001-04-23 03:20:05 - Ctx(  ): Removing duplicate *.jsp -
jsp(org.apache.jasper.servlet.JspServlet/null)
2001-04-23 03:20:05 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007
2001-04-23 03:20:05 - PoolTcpConnector: Starting Ajp13ConnectionHandler on
8009

I assumed that placing web.xml in a WEB-INF folder with Tomcat allowed the
developer to override default settings.  However, it seems that instead of
overriding settings, this cancels them out!!!  So, I tried removing the
default webapps in the webapps folder (admin, test, root, example), and
removed tomcat/conf/web.xml (the default), as well as my own one.

To my surprise, this actually still compiled my JSP pages!  Despite there
being no definition anywhere of a servlet to handle JSP requests!  (It's
worth noting here that I'm accessing Tomcat via its built-in HTTP connector,
not Apache or whatever).

So I decided then to put a copy of the default web.xml file within the
WEB-INF folder of my context (without restoring the default in tomcat/conf).
And another surprise: compilation failed with the exact same messages as
above in STDOUT and STDERR, complaining that these servlets were already
defined and would therefore now be removed as they were supposedly declared
twice...

Help!  How does this work?  What am I missing?  How can I define a full
web.xml file for my context without these problems?  I may for example
wish in some contexts to use the Jikes compiler instead of Javac, which
requires overriding the jsp servlet (and this is what I'm stuck on).

Many thanks for help,
Chris Brown

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Sending XML from Servlet to JSP

2001-04-24 Thread Ross Lambert

Ganesh,

 1. How to send XML String from Servlet to JSP?

session.putAttribute(XML, strXML);

 2. How to retreieve the XML sent by Servlet?

session.getAttribute(XML, strXML);

It's at least one way. :-)

== Ross ==

Ross W. Lambert, CTO
WebWolves, LLC
voice: (509) 886-2049
e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
web: www.webwolves.com http://www.webwolves.com

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

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



I am out of Country, Please don't send anymore mails.

2001-04-24 Thread HARI GOSANGI

Please remove my mail address from the database.
Thanks,
Hari Gosangi.

From: Ross Lambert <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Sending XML from Servlet to JSP
Date: Tue, 24 Apr 2001 08:06:56 -0700

Ganesh,

  1. How to send XML String from Servlet to JSP?

session.putAttribute("XML", strXML);

  2. How to retreieve the XML sent by Servlet?

session.getAttribute("XML", strXML);

It's at least one way. :-)

== Ross ==

Ross W. Lambert, CTO
WebWolves, LLC
voice: (509) 886-2049
e-mail: [EMAIL PROTECTED] 
web: www.webwolves.com 

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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 FREE download of MSN Explorer at http://explorer.msn.com

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: What's going on with web.xml ?!

2001-04-24 Thread chris brown

Sorry, here's some more information then...

I have read the servlet spec (2.2 and 2.3), and have looked at web.dtd as
well.  Normally, as you say, each web application should have a copy of
web.xml in its web-inf folder.  Tomcat additionally allows one super
web.xml in Tomcat's conf folder, to specify default values.  As I deploy
onto a variety of servlet containers, I try to use a clean, non-server
specific, approach to designing and implementing applications.  So I don't
want to rely on Tomcat's web.xml file (which is unlikely to exist, at
least in the same form, with other servlet containers).

Web.xml is supposed to define *all* servlets.  As JSP processing is itself
handled by a servlet, this too must be defined in web.xml (as is the case
with the default under Tomcat).  Furthermore, Tomcat's User Guide states
that there should be no problem overriding settings from the default web.xml
within a webapp's web.xml.  This is where I'm having the problem, as instead
of overriding properties, it's cancelling them out.

At this stage, it's mainly hypothetical testing that I'm doing.  I would
like to understand more the mechanism used by Tomcat however.  This is
practical when it comes to deploying on another servlet engine (whether it's
Weblogic, or another Tomcat with a different default web.xml, or
whatever), as I'd like to be able to create the mywebapp.war file without
having to merge the default web.xml with the individual webapp's web.xml.
The need for merging is to allow a complete and clean deployment descriptor.

Note that I'm not referring to the example webapp supplied with Tomcat,
I'm referring instead to the default web.xml as found in Tomcat's conf
folder.

I don't have any application-specific deployment information as yet, I'm
just trying to become familiar with the basics to avoid getting lost later
on.  The application contains one JSP, and one hello world HTML page.  The
JSP code is as follows:

%@ page language=java %
%! static int hits = 0; %
html
headtitleJSP Example/title/head
body
h1JSP Example/h1
pHit count: %= ++hits %/p
/body
/html

Really simple.  With no web.xml in the context, it displays fine.  However,
with a copy of the default web.xml (and its definition of the jsp and
invoker servlets), trying to access the JSP page results in a HTTP 404
Not Found message, created by Tomcat.  At startup, there are also the log
messages on stdout and stderr that I included in an earlier posting (see
below as well, in my original message).

I don't see why I can't have a web.xml file based on the default if Tomcat's
User Guide states that this allows harmless overriding of existing settings.
Even if I only add a few servlets and decide to use Jikes instead of Javac
for the JSP-compiling servlet for example, I'd still like to know if I can
work this way.

Thanks in advance to those who can reply!
-Chris

- Original Message -
From: Michael Sweeney [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 24, 2001 5:01 PM
Subject: Re: What's going on with web.xml ?!


 Chris,
 I'm not sure I understand what you are doing exactly. You've mentioned
that
 you put a copy of the default web.xml file in your application directory,
 but you have mentioned that you edited the file to reflect your
 application, so I'm beginning to guess that you haven't done that. If you
 haven't already done this, read Chapter 13 of the Servlet specification
 (http://java.sun.com/products/servlet ) to get an idea of what the
 different elements are used for. I'm by no means an expert on this, but
the
 web.xml file is the deployment descriptor of a web application - if you
 put one in your application's directory structure, you need to edit it to
 provide the information that's specific to your application. The default
 web.xml file isn't going to help you in your application deployment
because
 it has information specific to the servlet container itself. You might
take
 something like the web.xml file from the examples directory and edit it to
 represent your specific web app. If the web.xml file doesn't describe the
 specific application, it doesn't really have any point to being there.
Hope
 this helps.

 Michael


 At 11:02 AM 4/24/01 +0200, you wrote:
 This follows on from my questions from yesterday... still not solved...
:-(
 
  From a fresh Tomcat install -- which worked, including the addition of
a
 simple hello world type context of my own -- I then tried to add my own
 custom web.xml file.  As soon as I put this into my context's WEB-INF
 folder, with no changes to the default version of web.xml, I got the
 following messages in the logs :
 
 [stdout]:
 Starting tomcat. Check logs/tomcat.log for error messages
 cannot load servlet name: jsp
 cannot load servlet name: default
 
 [stderr]:
 2001-04-23 03:20:05 - ContextManager: Adding context Ctx(  )
 2001-04-23 03:20:05 - Ctx(  ): Removing duplicate servlet jsp
 jsp(org.apache.jasper.runtime.JspServlet/null)
 2001-04-23 03:20:05 - Ctx(  ): 

Developing an N-tier system

2001-04-24 Thread Aaron O'Hara

All,

I'm designing an N-tier application and would like some feedback, comments,
notes from the field.  I have tried to layer my design as follows:

JSP/HTML - presentation layer
Non-Gui JSP - workflow layer
Scope Beans (page, request, session, application) - business logic
Psuedo Entity Beans - persistence layer
DB API - database services

In the presentation layer, I either present information to the user or
receive form information.  All the form submissions go to the workflow layer
which calls the necessary business logic beans to determine what should
happen next.  The business logic beans retreive or save data using the
psuedo entity beans.  (I say psuedo because this in not a EJB entity bean,
but an object that maps to a corresponding table in a database).  All the
entity beans perform their database operations via a singleton class, the DB
API.

I'm looking for a critique or comments from people about the design I've
adopted and implemented.

Aaron

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Developing an N-tier system

2001-04-24 Thread Sadanand Mn

For the workflow layer , better go for servlets instead of jsps.

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Developing an N-tier system

2001-04-24 Thread erik morton

In the words of Dr Evil - Pretty standard really. That's not meant to be an
insult either. Many people are using that same architecture now; if implemented
correctly it presents a very nice implementation of MVC. I will direct my words of
caution to your work with the persistence layer. Spend some time here doing very
careful analysis. Read as much as you can about mapping objects to relational
databases (I am assuming you are using a relational database). I recommend
(http://www-106.ibm.com/developerworks/library/mapping-to-rdb/) or anything by
Scott Ambler.

Good luck.

Aaron O'Hara wrote:

 All,

 I'm designing an N-tier application and would like some feedback, comments,
 notes from the field.  I have tried to layer my design as follows:

 JSP/HTML - presentation layer
 Non-Gui JSP - workflow layer
 Scope Beans (page, request, session, application) - business logic
 Psuedo Entity Beans - persistence layer
 DB API - database services

 In the presentation layer, I either present information to the user or
 receive form information.  All the form submissions go to the workflow layer
 which calls the necessary business logic beans to determine what should
 happen next.  The business logic beans retreive or save data using the
 psuedo entity beans.  (I say psuedo because this in not a EJB entity bean,
 but an object that maps to a corresponding table in a database).  All the
 entity beans perform their database operations via a singleton class, the DB
 API.

 I'm looking for a critique or comments from people about the design I've
 adopted and implemented.

 Aaron

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

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

--
Erik I Morton
Software Developer
--
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Sending XML from Servlet to JSP

2001-04-24 Thread horwat

You could use the servlet to instantiate a bean. The bean is then placed
into the request, and the call is then forwarded to the jsp page. In the jsp
page you can then retrieve the bean and transform the xml. There is an
opensource stylesheet tag that performs the transformation already available
from jakarta taglibs, http://www.jakarta.apache.org.

Justy


- Original Message -

 Ganesh,

  1. How to send XML String from Servlet to JSP?

 session.putAttribute(XML, strXML);

  2. How to retreieve the XML sent by Servlet?

 session.getAttribute(XML, strXML);

 It's at least one way. :-)

 == Ross ==

 Ross W. Lambert, CTO
 WebWolves, LLC
 voice: (509) 886-2049
 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 web: www.webwolves.com http://www.webwolves.com


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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Developing an N-tier system

2001-04-24 Thread Jeff Hayes

Aaron,

While you certainly could use JSPs to develop your workflow layer, this is
traditionally done with servlets.  While it's probably somewhat easier to
develop a JSP solution, the strengths of the servlet approach are that
you're developing closer to the true object model (not really the case
with JSP), the ability to have real instance variables across multiple
invocations, and basically cleaner and possibly faster code, since JSP first
gets compiled into servlet classes with a lot of additional generated code.
JSPs weren't really meant to do this kind of work, and except for the
simplest situations, I've always come down on the servlet side.  I'd be
interested to hear what others on this group have to say about this.

-Jeff

-Original Message-
From: Aaron O'Hara [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 1:10 PM
To: [EMAIL PROTECTED]
Subject: Developing an N-tier system


All,

I'm designing an N-tier application and would like some feedback, comments,
notes from the field.  I have tried to layer my design as follows:

JSP/HTML - presentation layer
Non-Gui JSP - workflow layer
Scope Beans (page, request, session, application) - business logic
Psuedo Entity Beans - persistence layer
DB API - database services

In the presentation layer, I either present information to the user or
receive form information.  All the form submissions go to the workflow layer
which calls the necessary business logic beans to determine what should
happen next.  The business logic beans retreive or save data using the
psuedo entity beans.  (I say psuedo because this in not a EJB entity bean,
but an object that maps to a corresponding table in a database).  All the
entity beans perform their database operations via a singleton class, the DB
API.

I'm looking for a critique or comments from people about the design I've
adopted and implemented.

Aaron

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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 can I pass the value of a session to an interface

2001-04-24 Thread drew w

I have a interface that I want to use to format messages.

For example if there is an error:
I will assign it to a session, redirect to display. On this page, I call the
formatting function from the interface to show the contents of the session
in RED.

In my interface I write:

import javax.http.servlet.HttpServletRequest;
public interface CommonFunctions{
  String Session = (String) session.getAttribute(STATUS);

  public void ShowStatus(String Session){
   if (Session != null){
   out.println(font color=red+Session+/font);
   }
  }
}

How can I pass the value of the session to the ShowStatus function?



Thanks,
Andrew

_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

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



Re: How can I pass the value of a session to an interface

2001-04-24 Thread Shawn Zhu

If String Session is a member variable of the class.
declare your function as
... showStatus() {
if(this.Session!=null) {
...
}
...
}
 -Original Message-
 From: drew w [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 11:35 AM
 To: [EMAIL PROTECTED]
 Subject: How can I pass the value of a session to an interface


 I have a interface that I want to use to format messages.

 For example if there is an error:
 I will assign it to a session, redirect to display. On this
 page, I call the
 formatting function from the interface to show the contents
 of the session
 in RED.

 In my interface I write:

 import javax.http.servlet.HttpServletRequest;
 public interface CommonFunctions{
   String Session = (String) session.getAttribute(STATUS);

   public void ShowStatus(String Session){
if (Session != null){
out.println(font color=red+Session+/font);
}
   }
 }

 How can I pass the value of the session to the ShowStatus function?



 Thanks,
 Andrew

 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

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



Jar doesn't behave correctly

2001-04-24 Thread Shawn Zhu

Hi,
  when I do jar xvf0 some.jar a.class to update a.class in some.jar file.
I wanted to keep the jar file uncompressed, however, jar will always
compress
the rest of the jar file but stores a.class only.
  Is it possible with jar to update a jar file and not change it's
compression
method?  That is, the some.jar file was originally stored with no
compression, I
just want to update one of the class files in the jar file and leave the
content
as it was.

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Developing an N-tier system

2001-04-24 Thread erik morton

The biggest advantage that I can see for using JSPs instead of Servlets for the
workflow layer is Rapid App Development - that's it. As a previous reader pointed
out, Servlets are true objects where JSPs are really just a temporary concept that
are translated into actual servlets at deploy/runtime. On the other hand, if you
place ALL of your business logic inside beans than I see little need for servlets.
But you must put ALL of the logic in the beans - I don't want to see a single IF
statement in those JSP pages and don't even think about accessing the database :-).
I said it before and I will say it again: spend time working on your persistence
model. The truly robust systems that I have seen have persistence models where you
can change the data model all you want and you never recompile your code. As a rule
of thumb, we never embed SQL in the middle tier.

You can call me Captain Obvious if you want.

some links:
http://www.ambysoft.com/
http://www.castor.org/


Aaron O'Hara wrote:

 All,

 I'm designing an N-tier application and would like some feedback, comments,
 notes from the field.  I have tried to layer my design as follows:

 JSP/HTML - presentation layer
 Non-Gui JSP - workflow layer
 Scope Beans (page, request, session, application) - business logic
 Psuedo Entity Beans - persistence layer
 DB API - database services

 In the presentation layer, I either present information to the user or
 receive form information.  All the form submissions go to the workflow layer
 which calls the necessary business logic beans to determine what should
 happen next.  The business logic beans retreive or save data using the
 psuedo entity beans.  (I say psuedo because this in not a EJB entity bean,
 but an object that maps to a corresponding table in a database).  All the
 entity beans perform their database operations via a singleton class, the DB
 API.

 I'm looking for a critique or comments from people about the design I've
 adopted and implemented.

 Aaron

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

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

--
Erik I Morton
Software Developer
--
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: url hiding

2001-04-24 Thread M. Simms

3rd Option:
Ever consider storing the value in a cookie that is live for the entire
session ?
It's there for every page and never shows-up in the browser URL area.
Also, it's accessible by both Javascript and JSP scriptlet code.

4th Option:
Store the values as properties in session level JavaBeans...
but Javascript integration is not as easy.

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Kapil
 Sent: Tuesday, April 24, 2001 8:58 AM
 To: [EMAIL PROTECTED]
 Subject: url hiding


 The problem is that I want url as a constant.I have two options either use
 frames or use method post
 It will work on submit but on link I have some parameters and I am not
 submitting a form and I do not want to use frame,
 How can I hide variables
 Any code in jsp for url hiding
 Thanks in advance
 kapil

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

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



jdbc inserting row ----java.lang.ArrayIndexOutOfBoundsException ---with resultset (TYPE_SCROLL_SENSITIVE CONCUR_UPDATABLE)

2001-04-24 Thread Niraj Soni

here is my bean code i want that when user user submit the form all data
should be inserted and the id which is autonumber wiil be displayed to user.

my database is like this

id ---autoincriment
name-text
age number
date -date/time

all going right
but when the save method is called the exception ArryOutOfBoundException is
generated why ???
please help

my bean is like this

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;

public class Bean1 extends JFrame {
Connection con;
Statement stat;
ResultSet rs;
String Name;
int age;
java.sql.Date date;

public Bean1() {
try {
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver) ;
con = DriverManager.getConnection(jdbc:odbc:data,,) ;
stat =
con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATAB
LE) ;

rs = stat.executeQuery(select * from data);
rs.beforeFirst() ;
}
catch(Exception e) {
e.printStackTrace();
}
}
public new(){
  this.rs.moveToInsertRow();
}
public save(){
rs.updateString(Name,this.Name ) ;
rs.updateInt(Age,age ) ;
rs.updateString(Date,date) ;
this.rs.insertRow() ;
}

}



the exception is

java.lang.ArrayIndexOutOfBoundsException
 at sun.jdbc.odbc.JdbcOdbcResultSet.bindCol(JdbcOdbcResultSet.java:4485)
 at sun.jdbc.odbc.JdbcOdbcResultSet.insertRow(JdbcOdbcResultSet.java:3941)

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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/when/why does JSP add jsessionid to canned query hyper-links??

2001-04-24 Thread Keith Kwiatek

Hello,

I have a jsp application running on a www.orionserver.com platform.

How/when/why does JSP (or is it orion) add the jsessionid to my canned query
link?

I am not familiar with the ; seperating the http variables STATUS and
jsessionid --what is with this ?

1)
https://test.box.com:8081/tickets/queue.jsp?STATUS=OPEN;jsessionid=OuWU9Yvxn
oRMR8wASMCfmARJcbPEKQ7JINMxpwhBM4

Please post and/or email me at [EMAIL PROTECTED]

Thanks!
Keith

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Developing an N-tier system

2001-04-24 Thread Aaron O'Hara

What major considerations are there in choosing a solution to implement
object to rdb mapping?

Aaron

-Original Message-
From: erik morton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 12:21 PM
To: [EMAIL PROTECTED]
Subject: Re: Developing an N-tier system


The biggest advantage that I can see for using JSPs instead of Servlets for
the
workflow layer is Rapid App Development - that's it. As a previous reader
pointed
out, Servlets are true objects where JSPs are really just a temporary
concept that
are translated into actual servlets at deploy/runtime. On the other hand, if
you
place ALL of your business logic inside beans than I see little need for
servlets.
But you must put ALL of the logic in the beans - I don't want to see a
single IF
statement in those JSP pages and don't even think about accessing the
database :-).
I said it before and I will say it again: spend time working on your
persistence
model. The truly robust systems that I have seen have persistence models
where you
can change the data model all you want and you never recompile your code. As
a rule
of thumb, we never embed SQL in the middle tier.

You can call me Captain Obvious if you want.

some links:
http://www.ambysoft.com/
http://www.castor.org/


Aaron O'Hara wrote:

 All,

 I'm designing an N-tier application and would like some feedback,
comments,
 notes from the field.  I have tried to layer my design as follows:

 JSP/HTML - presentation layer
 Non-Gui JSP - workflow layer
 Scope Beans (page, request, session, application) - business logic
 Psuedo Entity Beans - persistence layer
 DB API - database services

 In the presentation layer, I either present information to the user or
 receive form information.  All the form submissions go to the workflow
layer
 which calls the necessary business logic beans to determine what should
 happen next.  The business logic beans retreive or save data using the
 psuedo entity beans.  (I say psuedo because this in not a EJB entity bean,
 but an object that maps to a corresponding table in a database).  All the
 entity beans perform their database operations via a singleton class, the
DB
 API.

 I'm looking for a critique or comments from people about the design I've
 adopted and implemented.

 Aaron


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

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

--
Erik I Morton
Software Developer
--
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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 -- cascade delete in sql ---help

2001-04-24 Thread Niraj Soni

hi all

sorry for off topic question

i have three table

table1
---
parent_id
parent_name


table2
-
child_id
child-name
parent_id (referene table1.parent_id)


table3

clild_child_id
child_child_name
child_id (reference table2.child_id)


now i want to update table1
when table1 update all related records from table2 and table3 should be
deleted
and new records would be enterd

but when i call
execute method of prepared statement it gives sql exception
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]DELETE
statement conflicted with COLUMN REFERENCE constraint 'FK_table1_table2'

my query is delete from table1 where parent_id=001


have any one idea how to do cascade delete

i am using MSSQL7.0 on WIN NT

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

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



help please!

2001-04-24 Thread Yan Zhu

hey all,
I can't figure this out.
I am using iPlanet web server 6.0.
I loaded a applet in a jsp page, now, how do I call a public method
of the applet in a javascript function?
I know it can be done in a html page, but I can't seem to do the
same thing within a jsp page.

thanks

yan

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

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



Displaying data in N-Tier systems

2001-04-24 Thread Aaron O'Hara

All,

When it comes to presenting data in the presentation layer, what are the
best practices?  Common operations like populating a select list and a
table are frequent in form-heavy applications and I'm wondering what the
best ways are?

Usually the source of a select list or table is a query result which I then
map to an ArrayList.  From there, I use a tag extension to iterate through
the ArrayList.  Is this optimal?  What other methods have been used to
success?

Aaron O'Hara

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: jdbc inserting row ----java.lang.ArrayIndexOutOfBoundsException ---with resultset (TYPE_SCROLL_SENSITIVE CONCUR_UPDATABLE)

2001-04-24 Thread Robert Nicholson

You'll probably find that the JdbcOdbcDriver isn't going to be
JDBC 2.0 compliant in that it more than likely won't support scrollable
cursors. I suggest you stay far away from this driver.

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Niraj Soni
 Sent: Thursday, April 19, 2001 4:49 AM
 To: [EMAIL PROTECTED]
 Subject: jdbc inserting row java.lang.ArrayIndexOutOfBoundsException
 ---with resultset (TYPE_SCROLL_SENSITIVE  CONCUR_UPDATABLE)


 here is my bean code i want that when user user submit the form all data
 should be inserted and the id which is autonumber wiil be
 displayed to user.

 my database is like this

 id ---autoincriment
 name-text
 age number
 date -date/time

 all going right
 but when the save method is called the exception
 ArryOutOfBoundException is
 generated why ???
 please help

 my bean is like this

 import java.awt.*;
 import java.awt.event.*;
 import javax.swing.*;
 import java.sql.*;

 public class Bean1 extends JFrame {
 Connection con;
 Statement stat;
 ResultSet rs;
 String Name;
 int age;
 java.sql.Date date;

 public Bean1() {
 try {
 Class.forName(sun.jdbc.odbc.JdbcOdbcDriver) ;
 con = DriverManager.getConnection(jdbc:odbc:data,,) ;
 stat =
 con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONC
UR_UPDATAB
 LE) ;

 rs = stat.executeQuery(select * from data);
 rs.beforeFirst() ;
 }
 catch(Exception e) {
 e.printStackTrace();
 }
 }
 public new(){
   this.rs.moveToInsertRow();
 }
 public save(){
 rs.updateString(Name,this.Name ) ;
 rs.updateInt(Age,age ) ;
 rs.updateString(Date,date) ;
 this.rs.insertRow() ;
 }

 }



 the exception is

 java.lang.ArrayIndexOutOfBoundsException
  at sun.jdbc.odbc.JdbcOdbcResultSet.bindCol(JdbcOdbcResultSet.java:4485)
  at sun.jdbc.odbc.JdbcOdbcResultSet.insertRow(JdbcOdbcResultSet.java:3941)

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Developing an N-tier system

2001-04-24 Thread Tinou Bao

i would appreciate comments on this question too. my two cents:

* how complex is your data and object models - e.g., if you object model
uses inheritance your o/r tool should support this to map nice to db.
* how much can you afford - app servers supporting ejb are expensive, as are
some o/r tools...are you willing to go with open source, e.g., castor
* skill set/timeframe - developers need to learn o/r tool
* how robust a solution do yo need? do you need to support distributed
transaction (two phase commit)

those are what i can think of top of my head.

tinou

- Original Message -
From: Aaron O'Hara [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 24, 2001 3:32 PM
Subject: Re: [JSP-INTEREST] Developing an N-tier system


 What major considerations are there in choosing a solution to implement
 object to rdb mapping?

 Aaron

 -Original Message-
 From: erik morton [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 12:21 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Developing an N-tier system


 The biggest advantage that I can see for using JSPs instead of Servlets
for
 the
 workflow layer is Rapid App Development - that's it. As a previous
reader
 pointed
 out, Servlets are true objects where JSPs are really just a temporary
 concept that
 are translated into actual servlets at deploy/runtime. On the other hand,
if
 you
 place ALL of your business logic inside beans than I see little need for
 servlets.
 But you must put ALL of the logic in the beans - I don't want to see a
 single IF
 statement in those JSP pages and don't even think about accessing the
 database :-).
 I said it before and I will say it again: spend time working on your
 persistence
 model. The truly robust systems that I have seen have persistence models
 where you
 can change the data model all you want and you never recompile your code.
As
 a rule
 of thumb, we never embed SQL in the middle tier.

 You can call me Captain Obvious if you want.

 some links:
 http://www.ambysoft.com/
 http://www.castor.org/


 Aaron O'Hara wrote:

  All,
 
  I'm designing an N-tier application and would like some feedback,
 comments,
  notes from the field.  I have tried to layer my design as follows:
 
  JSP/HTML - presentation layer
  Non-Gui JSP - workflow layer
  Scope Beans (page, request, session, application) - business logic
  Psuedo Entity Beans - persistence layer
  DB API - database services
 
  In the presentation layer, I either present information to the user or
  receive form information.  All the form submissions go to the workflow
 layer
  which calls the necessary business logic beans to determine what should
  happen next.  The business logic beans retreive or save data using the
  psuedo entity beans.  (I say psuedo because this in not a EJB entity
bean,
  but an object that maps to a corresponding table in a database).  All
the
  entity beans perform their database operations via a singleton class,
the
 DB
  API.
 
  I'm looking for a critique or comments from people about the design I've
  adopted and implemented.
 
  Aaron
 
 

===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

 --
 Erik I Morton
 Software Developer
 --
 CommerceHub
 http://www.commercehub.com
 518-886-0704
 21 Corporate Drive
 Clifton Park, NY 12065


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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 

Re: Developing an N-tier system

2001-04-24 Thread erik morton

This is not a web development question any longer! Now you are talking about
serious OOP issues that many web developers have never had to deal with. My best
advice to you is to read the papers on the links that I sent you. We grapple with
this issue everyday and it never gets any easier. Our solution has been to combine
Ambler's methods with classic GOF design patterns. And don't underestimate the
importance of XML.

Try out the following: http://www.cetus-links.org/.

Aaron O'Hara wrote:

 What major considerations are there in choosing a solution to implement
 object to rdb mapping?

 Aaron

 -Original Message-
 From: erik morton [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 12:21 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Developing an N-tier system

 The biggest advantage that I can see for using JSPs instead of Servlets for
 the
 workflow layer is Rapid App Development - that's it. As a previous reader
 pointed
 out, Servlets are true objects where JSPs are really just a temporary
 concept that
 are translated into actual servlets at deploy/runtime. On the other hand, if
 you
 place ALL of your business logic inside beans than I see little need for
 servlets.
 But you must put ALL of the logic in the beans - I don't want to see a
 single IF
 statement in those JSP pages and don't even think about accessing the
 database :-).
 I said it before and I will say it again: spend time working on your
 persistence
 model. The truly robust systems that I have seen have persistence models
 where you
 can change the data model all you want and you never recompile your code. As
 a rule
 of thumb, we never embed SQL in the middle tier.

 You can call me Captain Obvious if you want.

 some links:
 http://www.ambysoft.com/
 http://www.castor.org/

 Aaron O'Hara wrote:

  All,
 
  I'm designing an N-tier application and would like some feedback,
 comments,
  notes from the field.  I have tried to layer my design as follows:
 
  JSP/HTML - presentation layer
  Non-Gui JSP - workflow layer
  Scope Beans (page, request, session, application) - business logic
  Psuedo Entity Beans - persistence layer
  DB API - database services
 
  In the presentation layer, I either present information to the user or
  receive form information.  All the form submissions go to the workflow
 layer
  which calls the necessary business logic beans to determine what should
  happen next.  The business logic beans retreive or save data using the
  psuedo entity beans.  (I say psuedo because this in not a EJB entity bean,
  but an object that maps to a corresponding table in a database).  All the
  entity beans perform their database operations via a singleton class, the
 DB
  API.
 
  I'm looking for a critique or comments from people about the design I've
  adopted and implemented.
 
  Aaron
 
 
 ===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

 --
 Erik I Morton
 Software Developer
 --
 CommerceHub
 http://www.commercehub.com
 518-886-0704
 21 Corporate Drive
 Clifton Park, NY 12065

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

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

--
Erik I Morton
Software Developer
--
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 

Re: Displaying data in N-Tier systems

2001-04-24 Thread Geert Van Damme

The best solution IMHO is to mimic/steal the way Swing does it.

Instead of using an ArrayList, create objects that implement the swing
ListModel or TableModel interfaces.
That way, it's also very easy to create nice debugging/admin apps with the
same components (remember, reuse is what it's all about). And then you
create your JSP helper classes (might be beans, might be tag library) to
convert create the 'Views' for your models.
It's not that difficult to create a class that uses the swing.TableModel to
render an HTML representation for it. Same for lists. Create HTML components
to convert the ListModel data to comboboxes, UL, ...

Since we're on the subject, you might take it one step further and create a
jdbc RowSet implementation that also implements the swing TableModel
interface. This could be really the summum for web development. And we're
talking about completely generic components here.

I'll be doing some of these things as well. I'll try to keep you updated.

Good luck,

Geert

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron O'Hara
 Sent: dinsdag 24 april 2001 21:42
 To: [EMAIL PROTECTED]
 Subject: Displaying data in N-Tier systems


 All,

 When it comes to presenting data in the presentation layer, what are the
 best practices?  Common operations like populating a select list and a
 table are frequent in form-heavy applications and I'm wondering what the
 best ways are?

 Usually the source of a select list or table is a query result
 which I then
 map to an ArrayList.  From there, I use a tag extension to iterate through
 the ArrayList.  Is this optimal?  What other methods have been used to
 success?

 Aaron O'Hara

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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 -- cascade delete in sql ---help

2001-04-24 Thread Robert Nicholson

When doing cascading deletes  you have to order thing outside-in. ie. the
child entities have to go before their parents otherwise you'll be violating
integrity constraints in the children when you remove the parent.

I assume that's what's happening here.

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Niraj Soni
 Sent: Monday, April 23, 2001 7:47 AM
 To: [EMAIL PROTECTED]
 Subject: off topic -- cascade delete in sql ---help


 hi all

 sorry for off topic question

 i have three table

 table1
 ---
 parent_id
 parent_name


 table2
 -
 child_id
 child-name
 parent_id (referene table1.parent_id)


 table3
 
 clild_child_id
 child_child_name
 child_id (reference table2.child_id)


 now i want to update table1
 when table1 update all related records from table2 and table3 should be
 deleted
 and new records would be enterd

 but when i call
 execute method of prepared statement it gives sql exception
 java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL
 Server]DELETE
 statement conflicted with COLUMN REFERENCE constraint 'FK_table1_table2'

 my query is delete from table1 where parent_id=001


 have any one idea how to do cascade delete

 i am using MSSQL7.0 on WIN NT

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Developing an N-tier system

2001-04-24 Thread Aaron O'Hara

erik,

What are the major drawbacks to implementing Ambler's methods w/GOF patterns
(besides time of development and skillset)?

Aaron

-Original Message-
From: erik morton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Developing an N-tier system


This is not a web development question any longer! Now you are talking about
serious OOP issues that many web developers have never had to deal with. My
best
advice to you is to read the papers on the links that I sent you. We grapple
with
this issue everyday and it never gets any easier. Our solution has been to
combine
Ambler's methods with classic GOF design patterns. And don't underestimate
the
importance of XML.

Try out the following: http://www.cetus-links.org/.

Aaron O'Hara wrote:

 What major considerations are there in choosing a solution to implement
 object to rdb mapping?

 Aaron

 -Original Message-
 From: erik morton [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 12:21 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Developing an N-tier system

 The biggest advantage that I can see for using JSPs instead of Servlets
for
 the
 workflow layer is Rapid App Development - that's it. As a previous
reader
 pointed
 out, Servlets are true objects where JSPs are really just a temporary
 concept that
 are translated into actual servlets at deploy/runtime. On the other hand,
if
 you
 place ALL of your business logic inside beans than I see little need for
 servlets.
 But you must put ALL of the logic in the beans - I don't want to see a
 single IF
 statement in those JSP pages and don't even think about accessing the
 database :-).
 I said it before and I will say it again: spend time working on your
 persistence
 model. The truly robust systems that I have seen have persistence models
 where you
 can change the data model all you want and you never recompile your code.
As
 a rule
 of thumb, we never embed SQL in the middle tier.

 You can call me Captain Obvious if you want.

 some links:
 http://www.ambysoft.com/
 http://www.castor.org/

 Aaron O'Hara wrote:

  All,
 
  I'm designing an N-tier application and would like some feedback,
 comments,
  notes from the field.  I have tried to layer my design as follows:
 
  JSP/HTML - presentation layer
  Non-Gui JSP - workflow layer
  Scope Beans (page, request, session, application) - business logic
  Psuedo Entity Beans - persistence layer
  DB API - database services
 
  In the presentation layer, I either present information to the user or
  receive form information.  All the form submissions go to the workflow
 layer
  which calls the necessary business logic beans to determine what should
  happen next.  The business logic beans retreive or save data using the
  psuedo entity beans.  (I say psuedo because this in not a EJB entity
bean,
  but an object that maps to a corresponding table in a database).  All
the
  entity beans perform their database operations via a singleton class,
the
 DB
  API.
 
  I'm looking for a critique or comments from people about the design I've
  adopted and implemented.
 
  Aaron
 
 

===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

 --
 Erik I Morton
 Software Developer
 --
 CommerceHub
 http://www.commercehub.com
 518-886-0704
 21 Corporate Drive
 Clifton Park, NY 12065


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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

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

--
Erik I Morton
Software Developer
--
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

===
To 

JHacker

2001-04-24 Thread I 092

Good link .. A Must read for developers...

http://www.livin4.com/jhacker/jh1.htm



__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: jdbc inserting row ----java.lang.ArrayIndexOutOfBoundsException ---with resultset (TYPE_SCROLL_SENSITIVE CONCUR_UPDATABLE)

2001-04-24 Thread M. Simms

Agreedit's horribleand will drive you crazy with all of the thrown
exceptions ..
Get the improved version from JDataConnect it's great !

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Nicholson
 Sent: Tuesday, April 24, 2001 4:07 PM
 To: [EMAIL PROTECTED]
 Subject: Re: jdbc inserting row
 java.lang.ArrayIndexOutOfBoundsException ---with resultset
 (TYPE_SCROLL_SENSITIVE  CONCUR_UPDATABLE)


 You'll probably find that the JdbcOdbcDriver isn't going to be
 JDBC 2.0 compliant in that it more than likely won't support scrollable
 cursors. I suggest you stay far away from this driver.

  -Original Message-
  From: A mailing list about Java Server Pages specification and reference
  [mailto:[EMAIL PROTECTED]]On Behalf Of Niraj Soni
  Sent: Thursday, April 19, 2001 4:49 AM
  To: [EMAIL PROTECTED]
  Subject: jdbc inserting row java.lang.ArrayIndexOutOfBoundsException
  ---with resultset (TYPE_SCROLL_SENSITIVE  CONCUR_UPDATABLE)
 
 
  here is my bean code i want that when user user submit the form all data
  should be inserted and the id which is autonumber wiil be
  displayed to user.
 
  my database is like this
 
  id ---autoincriment
  name-text
  age number
  date -date/time
 
  all going right
  but when the save method is called the exception
  ArryOutOfBoundException is
  generated why ???
  please help
 
  my bean is like this
 
  import java.awt.*;
  import java.awt.event.*;
  import javax.swing.*;
  import java.sql.*;
 
  public class Bean1 extends JFrame {
  Connection con;
  Statement stat;
  ResultSet rs;
  String Name;
  int age;
  java.sql.Date date;
 
  public Bean1() {
  try {
  Class.forName(sun.jdbc.odbc.JdbcOdbcDriver) ;
  con = DriverManager.getConnection(jdbc:odbc:data,,) ;
  stat =
  con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONC
 UR_UPDATAB
  LE) ;
 
  rs = stat.executeQuery(select * from data);
  rs.beforeFirst() ;
  }
  catch(Exception e) {
  e.printStackTrace();
  }
  }
  public new(){
this.rs.moveToInsertRow();
  }
  public save(){
  rs.updateString(Name,this.Name ) ;
  rs.updateInt(Age,age ) ;
  rs.updateString(Date,date) ;
  this.rs.insertRow() ;
  }
 
  }
 
 
 
  the exception is
 
  java.lang.ArrayIndexOutOfBoundsException
   at sun.jdbc.odbc.JdbcOdbcResultSet.bindCol(JdbcOdbcResultSet.java:4485)
   at
 sun.jdbc.odbc.JdbcOdbcResultSet.insertRow(JdbcOdbcResultSet.java:3941)
 
  ==
  =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set
  JSP-INTEREST DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set
 JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Developing an N-tier system

2001-04-24 Thread erik morton

Those are the two biggest drawbacks (IMHO) !
What those methods give you is as close to 100% separation between the business
logic tier and the data tier as I have ever seen. When your business logic objects
(say session beans or in your case javabeans) operate on your entities they will
have no knowledge at all about what persistence model those entities use - XML,
flat file, RDBMS, ect  You don't need an Ambler style layer for the former -
you can achieve it with your plans as they stand now. But the biggest benefit in my
opinion is that your DBA can change the schema all she likes. Her only additional
responsibility is to keep XML configuration files current - the persistence layer
should take care of the rest.

It takes time, but in my opinion it is worth it.

Money is not a drawback however, Castor is open source and free (I'm not a lawyer
but that is the best of my knowledge on the license).

Aaron O'Hara wrote:

 erik,

 What are the major drawbacks to implementing Ambler's methods w/GOF patterns
 (besides time of development and skillset)?

 Aaron

 -Original Message-
 From: erik morton [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 1:15 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Developing an N-tier system

 This is not a web development question any longer! Now you are talking about
 serious OOP issues that many web developers have never had to deal with. My
 best
 advice to you is to read the papers on the links that I sent you. We grapple
 with
 this issue everyday and it never gets any easier. Our solution has been to
 combine
 Ambler's methods with classic GOF design patterns. And don't underestimate
 the
 importance of XML.

 Try out the following: http://www.cetus-links.org/.

 Aaron O'Hara wrote:

  What major considerations are there in choosing a solution to implement
  object to rdb mapping?
 
  Aaron
 
  -Original Message-
  From: erik morton [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, April 24, 2001 12:21 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Developing an N-tier system
 
  The biggest advantage that I can see for using JSPs instead of Servlets
 for
  the
  workflow layer is Rapid App Development - that's it. As a previous
 reader
  pointed
  out, Servlets are true objects where JSPs are really just a temporary
  concept that
  are translated into actual servlets at deploy/runtime. On the other hand,
 if
  you
  place ALL of your business logic inside beans than I see little need for
  servlets.
  But you must put ALL of the logic in the beans - I don't want to see a
  single IF
  statement in those JSP pages and don't even think about accessing the
  database :-).
  I said it before and I will say it again: spend time working on your
  persistence
  model. The truly robust systems that I have seen have persistence models
  where you
  can change the data model all you want and you never recompile your code.
 As
  a rule
  of thumb, we never embed SQL in the middle tier.
 
  You can call me Captain Obvious if you want.
 
  some links:
  http://www.ambysoft.com/
  http://www.castor.org/
 
  Aaron O'Hara wrote:
 
   All,
  
   I'm designing an N-tier application and would like some feedback,
  comments,
   notes from the field.  I have tried to layer my design as follows:
  
   JSP/HTML - presentation layer
   Non-Gui JSP - workflow layer
   Scope Beans (page, request, session, application) - business logic
   Psuedo Entity Beans - persistence layer
   DB API - database services
  
   In the presentation layer, I either present information to the user or
   receive form information.  All the form submissions go to the workflow
  layer
   which calls the necessary business logic beans to determine what should
   happen next.  The business logic beans retreive or save data using the
   psuedo entity beans.  (I say psuedo because this in not a EJB entity
 bean,
   but an object that maps to a corresponding table in a database).  All
 the
   entity beans perform their database operations via a singleton class,
 the
  DB
   API.
  
   I'm looking for a critique or comments from people about the design I've
   adopted and implemented.
  
   Aaron
  
  
 
 ===
   To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
   For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
   Some relevant FAQs on JSP/Servlets can be found at:
  
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 
  --
  Erik I Morton
  Software Developer
  --
  CommerceHub
  http://www.commercehub.com
  518-886-0704
  21 Corporate Drive
  Clifton Park, NY 12065
 
 
 ===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  

package not found in import

2001-04-24 Thread drew w

When I try to compile my servlets, I get:

Package javax.io.IOException not found in import.
and...
Package javax.servlet.ServletException not found in import.

my code:

import javax.io.IOException;
import javax.servlet.ServletException;

public class HelloServlet extends GenericServlet{
public void service(ServletRequest request, ServletResponse response)
throws ServletException, IOException{
  response.setContentType(text/html);
  PrintWriter pw = response.getWriter();
  pw.println(hello);
  pw.close();
  }
}

thanks,
andrew
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Developing an N-tier system

2001-04-24 Thread Aaron O'Hara

erik,

I'm a seasoned DBA turned application developer and I'm having a hard time
letting go of SQL statements.  I've centralized all database calls in a
singleton DB API.

What is the major deciding factor that makes the push to o/r mapping
necessary?  Going to an o/r mapping seems labour/time intensive and at the
cost of db performance.  Any advice?

Aaron

-Original Message-
From: erik morton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Developing an N-tier system


This is not a web development question any longer! Now you are talking about
serious OOP issues that many web developers have never had to deal with. My
best
advice to you is to read the papers on the links that I sent you. We grapple
with
this issue everyday and it never gets any easier. Our solution has been to
combine
Ambler's methods with classic GOF design patterns. And don't underestimate
the
importance of XML.

Try out the following: http://www.cetus-links.org/.

Aaron O'Hara wrote:

 What major considerations are there in choosing a solution to implement
 object to rdb mapping?

 Aaron

 -Original Message-
 From: erik morton [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 12:21 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Developing an N-tier system

 The biggest advantage that I can see for using JSPs instead of Servlets
for
 the
 workflow layer is Rapid App Development - that's it. As a previous
reader
 pointed
 out, Servlets are true objects where JSPs are really just a temporary
 concept that
 are translated into actual servlets at deploy/runtime. On the other hand,
if
 you
 place ALL of your business logic inside beans than I see little need for
 servlets.
 But you must put ALL of the logic in the beans - I don't want to see a
 single IF
 statement in those JSP pages and don't even think about accessing the
 database :-).
 I said it before and I will say it again: spend time working on your
 persistence
 model. The truly robust systems that I have seen have persistence models
 where you
 can change the data model all you want and you never recompile your code.
As
 a rule
 of thumb, we never embed SQL in the middle tier.

 You can call me Captain Obvious if you want.

 some links:
 http://www.ambysoft.com/
 http://www.castor.org/

 Aaron O'Hara wrote:

  All,
 
  I'm designing an N-tier application and would like some feedback,
 comments,
  notes from the field.  I have tried to layer my design as follows:
 
  JSP/HTML - presentation layer
  Non-Gui JSP - workflow layer
  Scope Beans (page, request, session, application) - business logic
  Psuedo Entity Beans - persistence layer
  DB API - database services
 
  In the presentation layer, I either present information to the user or
  receive form information.  All the form submissions go to the workflow
 layer
  which calls the necessary business logic beans to determine what should
  happen next.  The business logic beans retreive or save data using the
  psuedo entity beans.  (I say psuedo because this in not a EJB entity
bean,
  but an object that maps to a corresponding table in a database).  All
the
  entity beans perform their database operations via a singleton class,
the
 DB
  API.
 
  I'm looking for a critique or comments from people about the design I've
  adopted and implemented.
 
  Aaron
 
 

===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

 --
 Erik I Morton
 Software Developer
 --
 CommerceHub
 http://www.commercehub.com
 518-886-0704
 21 Corporate Drive
 Clifton Park, NY 12065


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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

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

--
Erik 

Re: package not found in import

2001-04-24 Thread Richard Yee

Andrew,
Your first import is incorrect.  IOException is in java.io, not javax.io.
The 2nd error might be because you don't have servlet.jar in your classpath.

Regards,

Richard



-Original Message-
From: drew w [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 2:43 PM
To: [EMAIL PROTECTED]
Subject: package not found in import


When I try to compile my servlets, I get:

Package javax.io.IOException not found in import.
and...
Package javax.servlet.ServletException not found in import.

my code:

import javax.io.IOException;
import javax.servlet.ServletException;

public class HelloServlet extends GenericServlet{
public void service(ServletRequest request, ServletResponse response)
throws ServletException, IOException{
  response.setContentType(text/html);
  PrintWriter pw = response.getWriter();
  pw.println(hello);
  pw.close();
  }
}

thanks,
andrew
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: package not found in import

2001-04-24 Thread T.A. Flores

Not sure if your aware but there is a servlet specific list -in the
interim try changing your import to the following:

import javax.servlet.*;

or if you want to be very specific you may create imports like the
following:

import javax.servlet.http.HttpServlet;


- Original Message -
From: drew w [EMAIL PROTECTED]
Date: Tuesday, April 24, 2001 2:43 pm
Subject: package not found in import

 When I try to compile my servlets, I get:

 Package javax.io.IOException not found in import.
 and...
 Package javax.servlet.ServletException not found in import.

 my code:

 import javax.io.IOException;
 import javax.servlet.ServletException;

 public class HelloServlet extends GenericServlet{
 public void service(ServletRequest request, ServletResponse response)
 throws ServletException, IOException{
  response.setContentType(text/html);
  PrintWriter pw = response.getWriter();
  pw.println(hello);
  pw.close();
  }
 }

 thanks,
 andrew
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com



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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: package not found in import

2001-04-24 Thread drew w

Thank you.


From: Richard Yee [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
 reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: package not found in import
Date: Tue, 24 Apr 2001 15:24:16 -0700

Andrew,
Your first import is incorrect.  IOException is in java.io, not javax.io.
The 2nd error might be because you don't have servlet.jar in your
classpath.

Regards,

Richard



-Original Message-
From: drew w [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 2:43 PM
To: [EMAIL PROTECTED]
Subject: package not found in import


When I try to compile my servlets, I get:

Package javax.io.IOException not found in import.
and...
Package javax.servlet.ServletException not found in import.

my code:

import javax.io.IOException;
import javax.servlet.ServletException;

public class HelloServlet extends GenericServlet{
public void service(ServletRequest request, ServletResponse response)
throws ServletException, IOException{
   response.setContentType(text/html);
   PrintWriter pw = response.getWriter();
   pw.println(hello);
   pw.close();
   }
}

thanks,
andrew
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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 FREE download of MSN Explorer at http://explorer.msn.com

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

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



/examples/HelloServlet Page not found error

2001-04-24 Thread drew w

When I type localhost:8080/examples/HelloServlet I get:

Page not found error

When I type localhost:8080/examples/HelloServlet.class I get:

Download file pop-up box ...


Does anyone know what might be the problem?

Thanks,
Andrew
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: /examples/HelloServlet Page not found error

2001-04-24 Thread Robert Nicholson

What is HelloServlet? If it's a Servlet it will need a servlet mapping with
that class. Post your WEB-INF/web.xml file

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of drew w
 Sent: Tuesday, April 24, 2001 3:57 PM
 To: [EMAIL PROTECTED]
 Subject: /examples/HelloServlet Page not found error


 When I type localhost:8080/examples/HelloServlet I get:

 Page not found error

 When I type localhost:8080/examples/HelloServlet.class I get:

 Download file pop-up box ...


 Does anyone know what might be the problem?

 Thanks,
 Andrew
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: /examples/HelloServlet Page not found error

2001-04-24 Thread Ivan Kougaenko

make sure your server is properly configured to run servlets.. also, try
using the netscape browser - better error reporting


- Original Message -
From: drew w [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 24, 2001 3:57 PM
Subject: /examples/HelloServlet Page not found error


 When I type localhost:8080/examples/HelloServlet I get:

 Page not found error

 When I type localhost:8080/examples/HelloServlet.class I get:

 Download file pop-up box ...


 Does anyone know what might be the problem?

 Thanks,
 Andrew
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com


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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

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



multiple resultsets

2001-04-24 Thread Lenin Lopez

Hi ALL,
Does anybody know how to access multiple resultsets from a Java application
The 'rs.next' only loops thruogh  a single recordset.  However I need to
handle mulpiple resultsets comming fro a Store procedure

Please Help

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

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



can't run servlet

2001-04-24 Thread drew w

When I look at my server log I see:

HANDLER THEAD PROBLEM: java.io.IOException: Socket Closed
java.io.IOException: Socket Closed
  at java.net.PlainSocketImpl.getInputStream(Unknown Source)
  at java.net.Socket$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.Socket.getInputStream(Unknown Source)
  at com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:161)

thanks,
andrew
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

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



HelloServlet

2001-04-24 Thread drew w

I don't see web.xml in the Web-INF dir.
It is a servlet.
Here is a mappings.properties:


# $Id: mappings.properties,v 1.3 1999/04/05 21:20:02 duncan Exp $

# Map servlets to paths
# Properties beginning with a . are extension properties, all other
# properties are path properties

/snoop=snoop
.snp=snoop
.jsp=jsp
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

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



why are there two Web-INFs' one in examples and one in webpages?

2001-04-24 Thread drew w

Should I be updating them both?
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

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



even when I run examples I get HANDLER THREAD PROBLEM

2001-04-24 Thread drew w

When I download and install JSWDK, I get the HANDLER THREAD PROBLEM: Socket
Closed
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

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



Re: How can I pass the value of a session to an interface

2001-04-24 Thread Rishabh Agarwal

Andrew,

Have u tried compiling interface CommonFunctions?

Interfaces do not have implementation. Try having it as a class instead.

-Original Message-
From:   drew w [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, April 25, 2001 2:35 AM
To: [EMAIL PROTECTED]
Subject:How can I pass the value of a session to an
interface

I have a interface that I want to use to format messages.

For example if there is an error:
I will assign it to a session, redirect to display. On this
page, I call the
formatting function from the interface to show the contents
of the session
in RED.

In my interface I write:

import javax.http.servlet.HttpServletRequest;
public interface CommonFunctions{
  String Session = (String) session.getAttribute(STATUS);

  public void ShowStatus(String Session){
   if (Session != null){
   out.println(font color=red+Session+/font);
   }
  }
}

How can I pass the value of the session to the ShowStatus
function?



Thanks,
Andrew


_
Get your FREE download of MSN Explorer at
http://explorer.msn.com


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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: /examples/HelloServlet Page not found error

2001-04-24 Thread Santosh Ramakrishnan

Hello,

   This is a very common problem, that any startup guy faces. All
that you have to do, is first check, if the webserver classpath
servlet.jar file, is set properly. Mostly what happens with people who are
fairly new to servlets, is that they just unzip the whole webserver packing,
and get to typing their servlets.
Secondly, if you have another webserver running, like say Microsoft IIS, or
MS Personal Web Server, then also, you will face a problem, as the two may
at sometimes clash to feed pages to the browser.
To get good documentation on the type of webserver that you are running, all
that you have to do, is just type http://localhost:8080, on your browser.
Obviously, you will have to start it up first.
If you are a new comer to Servlets, then try using the servletrunner, that
comes with jsdk. This is a real goo peiec of software, all that you need
to do is all %java_home%\bin\servletrunner, and
%java_home%\lib\jsdk.jar, to you class path.
%java_home%, is the first jdk installation directory.

Regards,
Santosh

- Original Message -
From: drew w [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 25, 2001 4:27 AM
Subject: /examples/HelloServlet Page not found error


 When I type localhost:8080/examples/HelloServlet I get:

 Page not found error

 When I type localhost:8080/examples/HelloServlet.class I get:

 Download file pop-up box ...


 Does anyone know what might be the problem?

 Thanks,
 Andrew
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com


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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: multiple resultsets

2001-04-24 Thread Zeng, Feng_Hua (CAP,CEF)
Please refer to the following ( from JDK1.2.2 API ):

java.sql

Interface Statement
All Known Subinterfaces: CallableStatement, PreparedStatement

execute
public boolean execute(String sql) throws SQLException
 Executes a SQL statement that may return multiple results. Under some
(uncommon) situations a single SQL statement may return multiple result sets
and/or update counts. Normally you can ignore this unless you are (1)
executing a stored procedure that you know may return multiple results or
(2) you are dynamically executing an unknown SQL string. The methods
execute, getMoreResults, getResultSet, and getUpdateCount let you navigate
through multiple results. The execute method executes a SQL statement and
indicates the form of the first result. You can then use getResultSet or
getUpdateCount to retrieve the result, and getMoreResults to move to any
subsequent result(s).
Parameters:
 sql - any SQL statement
Returns:
 true if the next result is a ResultSet; false if it is an update count or
there are no more results
Throws:
 SQLException - if a database access error occurs
See Also:
 getResultSet(), getUpdateCount(), getMoreResults()

getResultSet
public ResultSet getResultSet() throws SQLException
 Returns the current result as a ResultSet object. This method should be
called only once per result.
Returns:
 the current result as a ResultSet; null if the result is an update count or
there are no more results
Throws:
 SQLException - if a database access error occurs
See Also:
 execute(java.lang.String)

getMoreResults
public boolean getMoreResults() throws SQLException
 Moves to a Statement's next result. It returns true if this result is a
ResultSet. This method also implicitly closes any current ResultSet obtained
with getResultSet. There are no more results when (!getMoreResults() 
(getUpdateCount() == -1)
Returns:
 true if the next result is a ResultSet; false if it is an update count or
there are no more results
Throws:
 SQLException - if a database access error occurs
See Also:
 execute(java.lang.String)

- Original Message -
From: "Lenin Lopez" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 25, 2001 8:54 AM
Subject: multiple resultsets


 Hi ALL,
 Does anybody know how to access multiple resultsets from a Java
application
 The 'rs.next' only loops thruogh  a single recordset.  However I need to
 handle mulpiple resultsets comming fro a Store procedure

 Please Help


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

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


Re: how do I view the end result

2001-04-24 Thread kuttappan

mark your class as public as:
public class Point3DExample {
and try again. This should work.

Rohit.
- Original Message -
From: Marshall, Katyann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, 23 April, 2001 8:28 PM
Subject: Re: how do I view the end result


 yes this is a simple class file, I know everything is correct on it
because
 I took it directly from a book, for practice purposes,

 this is the warning I'm getting

 [(C:\JBuilder35\jdk1.2.2\bin\javaw   -classpath C:\Documents and
 Settings\kmarshal\jbproject\untitled2\temp;
 com.borland.jbuilder.runtime.AppletTestbed 300 300 Point3DExample
 The applet Point3DExample does not have a public constructor
 Point3DExample()]


 this is my code


 class Point3D {
 double x;
 double y;
 double z;
 }

  class Point3DExample {
  public static void main(String args[]) {
 Point3D p = new Point3D();
 p.x =1.1;
 p.y =3.5;
 p.z = -2.8;
 System.out.println(p.x =  + p.x);
 System.out.println(p.y =  + p.y);
 System.out.println(p.z =  + p.z);
 }
 }

 can you help me to see the end results, I'm not to sure how to set up my
 class path,
 my number is 914-640-5294

 I'm realy desprate

 KT



 -Original Message-
 From: erik morton [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 10:17 AM
 To: [EMAIL PROTECTED]
 Subject: Re: how do I view the end result


 Is this a simple class or a JSP?
 If it's a class I would either run the project (Run - Run Project) or
just
 right
 click on the file in the source browser and choose the Run option.

 If it is a JSP the process is the same. Good Luck!

 Marshall, Katyann wrote:

  Hi All,
  I'm new to Java, I made a simple java file and it compile without
errors,
  how do I view the end results in JBuilder?
 
  thanks
 
  KT
 
 

===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

 --
 Erik I Morton
 Software Developer
 --
 CommerceHub
 http://www.commercehub.com
 518-886-0704
 21 Corporate Drive
 Clifton Park, NY 12065


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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.250 / Virus Database: 123 - Release Date: 19/04/2001

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

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



jar ??

2001-04-24 Thread Shahaji Kadam.

hi,

i am working on gr8 Unix system. Before this i was working on very simple Win
NT.

i am strugling with jar command and at the end i could place only one bean
(class file) in it.

but i want to put multiple files in a jar file.

Pls Tell Me !!

cheers,
SDK

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: urgent

2001-04-24 Thread Gavin Meehan

Hi

I think you need to increase the tablespace that is assigned to this user.
To view the different table spaces do a select over the USER_TS_QUOTAS table
(you will need DBA permissions), using an alter command you can and setting
MAX_BYTES and MAX_BLOCKS to 0 will allow any amount of space.

Damien


From: sandarbh [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
 reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: urgent
Date: Tue, 24 Apr 2001 10:02:24 +0100

Hi all,

Can anyone give me a clue to this error which raised when 13469 records
were
inserted through a program in java.



java.sql.SQLException: ORA-01631: max # extents (121) reached in table
CAS_USER.
MODULE_LOG

 at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:181)
 at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:631)
 at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1225)
 at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:661
)
 at
oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:780)
 at
oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement
.java:822)
 at
oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:116
4)
 at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1210)
 at
oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java
:1227)
 at ConnectionManager.insertRecords(ConnectionManager.java:25)
 at DbHandlerFeeder.updatedata(DbHandlerFeeder.java:239)
 at DbHandlerFeeder.sendToDatabase(DbHandlerFeeder.java:391)
 at
LogHandlerCaller.feederdetaillogmanipulation(LogHandlerCaller.java:11
7)
 at LogHandlerMain.pathForFeeder(LogHandlerMain.java:122)
 at LogHandlerMain.main(LogHandlerMain.java:164)
The time is :2317

**

Regards,

Sandarbh

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

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



program the addresss bar

2001-04-24 Thread Manish

hi
i want the value in the address bar of my browser to be constant thruout my
application.
eg www.abc.com
i might go to any page but the value displayed in the address bar shd remain
constant.
is there anyway to do this in JSP or JavaScript.
pls send me the script or the url frm where i can get such a script
thanx
manish

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Lee Turner
Sent: Tuesday, April 24, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Textarea wrap newlines to BR


I have just had a look in Dreamweaver and setting the wrap tag to VIRTUAL
seems to work better.  wrap=VIRTUAL

Hope this helps
Lee

_

Lee Turner
Systems Developer
Information Technology Leeds
_

Watt Gilchrist Ltd
Ring Road, West Park
Leeds, LS16 6RA
Tel: 0113 288 3200
Fax: 0113 275 1690
http://www.wattgilchrist.co.uk
_


 -Original Message-
 From: Gavin Meehan [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 10:04 AM
 To:   [EMAIL PROTECTED]
 Subject:  Textarea wrap newlines to BR

 Hi
 I have a class called Filter that substitutes newline characters with the
 html BR tag so data entered on the form will be diplayed properly.
 This works fine if the enter key is hit in the textarea the substitution
 is
 made. My problem is when someone continues typeing and the text goes on to
 the newline automatically. I thought that when the WRAP attribute on the
 tag
 was set to PHYSICAL that a new line character is automatically added. Can
 anyone tell me if this is the case and if so what might i be doing wrong.

 Thanks
 Gav

 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

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