XML and JAVA

2000-10-26 Thread Martin Nwalal

  Hello,
Can somebody tell me  where I acn find source code to generate xml code from
Java code
and java code to Xml

Thanks for help

Martin

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

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



JSP FAQ & Resource Information

2000-10-26 Thread Anil K. Vijendran

This is a weekly informative posting to the jsp-interest list.



Before asking questions of a general nature, please check out the
resources available online to see if your question already has an
answer. The best place to start is our web site:

http://java.sun.com/products/jsp

This contains pointers to the specification, and to the JavaServer Web
Development Kit (JSWDK).

Some FAQs that may help you

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

The archives of this list are available at:

http://archives.java.sun.com/archives/jsp-interest.html

JSWDK is the reference implementation for the latest JSP and Servlet
specs. You can download JSWDK at
http://java.sun.com/products/jsp/download.html. Please send
your feedback and bug reports on JSWDK to [EMAIL PROTECTED]



A few notes about the use of this list. We at Sun enjoy hosting this
list to give everyone a forum to discuss JSP, servlets and related
technology. There are a few things that we ask of you, the list
members:

Please don't engage in advertising. We like to hear when new
products are announced and a link for all the
information. What we don't like are lengthy press releases,
advertisements, and other material which falls under the
umbrella term "marketing". There is no problem in stating how
your product compares to another, but remember, this isn't run
by Sun to be an advertising forum -- but as a technical forum.

Please don't post attachments to the list. The use of VCards
and S/MIME is not really needed on a list like this and is
annoying to some whose readers don't support them. More
serious is the posting of .zip files and other larger
items. You might get flamed a little bit for S/MIME or posting
in HTML. You will be removed from the list for posting a .zip
or other archive file.

If you need technical support from a vendor, please contact
that vendor directly.



Now, back to regularly scheduled programming.

Anil Vijendran
for the JSP/JSWDK team

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

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



Free JSP Host Providers

2000-10-26 Thread Marcel van Kooy

Hi all,

Does anybody know a free host provider that hosts JSP?

Thanx.

Regards,
Marcel

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

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

2000-10-26 Thread Marek Rudnicki

Wrong mailing list!

- Original Message -
From: "Jitesh Gangwani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 5:00 AM
Subject: Re: Happy Diwali Greetings


> Hello EveryOne
>
> Hope this diwali will light up your dreams and show you the way to make
them
> true..
>
> Diwali is more than a religious celebration...
>
> It is the only time in the year when you can find every nook and corner
> lighted up.. So you should look out for all the new opportunities which
are
> shining there for you...
>
>
> Enjoy and put some sparkle in life of everyone around you...
>
> HAPP e-DIWALI...
>
>
> Your Friend
>
> Jitesh
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



Re: JSP and Reports

2000-10-26 Thread JSP Insider

I have built a reporting system in JSP.

Basically it is stored procedure driven. Then I have a series of Beans to
process the data.I have second series of beans responsible for the
formating. Then output the report in simple html format.

The nice thing with stored procedures driving the core, it makes it easy to
update and add reports to the system.

The problems with web reporting systems is data load. People seem to always
want  to take the old 1000 page reports and port them them to the web, or
have several million records where processing time wont work without also
building a special pre-processed reporting database.

Keep in mind web reports need to run quick and under 5 minutes.
It doesn't matter if the old report took a half hour on the old system. With
web report
people expect speed, and if they dont get it they get mad. Be forewarned...
Oh well so it goes.

Over time I am going to build my reporting feature in the jspkit found on
the www.jspinsider.com web site so you can check that out. Right now the kit
is very beta and is just a framework which we will expand to have more
reporting capability using beans and tag libraries.

Right now I am experiementing with outputing the report data in XML and then
using style sheets to do the special formating. In a few months I will have
a good handle if this is a good way to go.


Casey Kochmer
[EMAIL PROTECTED]

>From: Brian Nice <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: JSP and Reports
>Date: Tue, 24 Oct 2000 22:08:39 -0400
>
>What is the best way to generate complex reports from JSP? I was =
>thinking about selecting the information for the report out of the =
>database in XML format and then applying a style sheet to the XML data =
>to convert it into PDF format. Nice, but for complex reports the style =
>sheets becomes unbearable.
>
>Are there ways to interface with Crystal Reports or some other reporting =
>program so that the user can click on a link on a web page to have a =
>report generated and then displayed to the user. Also the user should be =
>able to print the report to their printer.
>
>What are the best ways to accomplish something like this?
>
>Thanks in advance
>Brian
>[EMAIL PROTECTED]
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

Share information about yourself, create your own public profile at
http://profiles.msn.com.

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

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



Re: Happy Diwali Greetings

2000-10-26 Thread Marek Rudnicki

Wrong mailing list!

- Original Message -
From: "Vincent Cayenne" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 7:57 AM
Subject: Re: Happy Diwali Greetings


> Coming from Trinidad where this festival is a Public Holiday and is
> celebrated by Hindus and enjoyed by all the other religious/cultural
> groupings, I thought the proper spelling was "Divali" so I looked it
> up:
>
> >Divali (pron. "Di-volly") is the 3,000-year-old Festival of Lights
> >in India. It is also known as Diwali or Deepavali. The name is
> >formed from two Sanskrit words that literally mean "row of lights."
> >
> >This day of grand celebrations varies based on the lunar calendar,
> >but occurs in late October or early November each year. During the
> >festivities people honor Lakshmi, the Hindu Goddess of Wealth, for
> >all she has brought to their lives and for what she will hopefully
> >bestow in the coming year.
> >
> >Millions of twinkling flames play a large role on this day. You
> >would find rows of little clay oil pots, called diyas, lining the
> >walkways and entrances to homes. By nightfall, oil lamps, candles
> >and luminarias illuminate cities and the countryside to mark the
> >most auspicious, spectacular and colorful of all of India's
> >festivals ...
>
> It's customary to give a "thali" (a sampler) of sweet treats during
> the Divali festival.
>
>
> At 4:30 PM +0200 2000/10/25, you (Veronique Dupierris) wrote:
>
> > hmm, I know, this sort of discution has nothing to do here but
> >i am very curious and i'd like to know what is Diwali !? :) Sorry, I'm
french,
> >so this should not happen her
> >
> >Thanks
> >and ... even if I don't know what it is Have a happy Diwali :o)
> >
> >
> >
> >
> >Venu Gopal a écrit :
> >
> >>  Same to you all guys out here ..
> >>
> >>  Venu
> >>
> >>  --- Ujwala Joglekar <[EMAIL PROTECTED]> wrote:
> >>  > Wishing you a very Happy Diwali too
> >>  >
> >>  > -Original Message-
> >>  > From:   Tripat Singh [SMTP:[EMAIL PROTECTED]]
> >>  > Sent:   Wednesday, October 25, 2000 6:35 AM
> >>  > To: [EMAIL PROTECTED]
> >>  > Subject:Happy Diwali Greetings
> >>  >
> >>  > Hey Everybody,
> >>  > Wish you'll all a very
> >>  > Happy  Diwali
> >>  >
> >>  > With best wishes,
> >>  >
> >>  >
> >>  > Tripat singh Kharbanda
> >>  >
> >  > >
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



Re: JSP & LDAP

2000-10-26 Thread Dan Tillin

You can use the Netscape SDK, but this ties you to the Netscape Directory
Server. If you are never going to change the directory server supplier, then
use the Netscape SDK. If you need to be more flexible, then you can use JNDI
to connect to an LDAP directory. See the JNDI pages on the Sun Java site:
http://java.sun.com/products/jndi/index.html

Cheers,

Dan

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

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

2000-10-26 Thread Antonio Jimenez

try http://www.webappcabaret.com

regards,
-Antonio

Marcel van Kooy wrote:
>
> Hi all,
>
> Does anybody know a free host provider that hosts JSP?
>
> Thanx.
>
> Regards,
> Marcel
>

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: I get "Out of environment space"

2000-10-26 Thread Hernandez, Rey

I am not saying that people shouldn't ask questions about setting up
servers, especially if they are having a difficult time with it.  What I am
saying is people should read the available documentation before asking the
list for help.  A lot of questions have been asked that could have been
answered by a quick scan through the readmes available with tomcat, or
WebLogic or whatever.  If someone has a seemingly unique problem with
setting up their own server, then the list should be asked.  If someone has
a problem and the question they ask is word for word in the readme, I don't
believe this should be on this list.

Maybe I am way off in my expectations for this list.  What do the list
moderators have to say?

Rey

-Original Message-
From: Sanjay Gomes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 2:01 AM
To: [EMAIL PROTECTED]
Subject: Re: I get "Out of environment space"


Sorry But I dont agree with this
The  server setting problem n all are related in a way since he or she is
setting up the server for running JSPs , and since everyone in this list
has tackled the problem at one time or the other they
are the best ones to give the proper solution.

Sanjay



-Original Message-
From: Hernandez, Rey [mailto:[EMAIL PROTECTED]]
Sent: 24 October 2000 20:27
To: [EMAIL PROTECTED]
Subject: Re: I get "Out of environment space"


Just as a tip, it was mentioned earlier, but I feel it should be mentioned
and STRESSED.  This list, I hope, is for us to resolve issues that we find
with JavaServer Pages after we have exhausted all other avenues of help.
For example, the tutorials on java.sun.com, the help files that come with
whatever server we all might be using, the readme files (as illustrated
below), and the plain old javadoc documents, worlds of info about everything
we need to use.

This list shouldn't be used to clarify syntactical problems, compile
problems when it is obvious there are syntactical or spelling errors, and
problems with the server we use, especially problems as simple as getting
the servers to work.

I don't mean to be rude or scolding, but I don't want my email to overflow
with simple messages that I end up deleting anyway.  This list is useful if
we use it correctly.

Please refer to documentation, tutorials, manuals and so on to fix problems
yourself.  Turn to the list when you are just plain baffled by a problem and
you need a new pair of eyes to look something over.  You will learn more, we
will learn from each other and everyone will be happier with the quality of
help that is on this list.

Thanks for reading, I'm sorry that I had to write all of this, but I felt it
was necessary.  Any spam regarding this email should be sent to me, don't
clutter up the list.

Thanks,
Rey

-Original Message-
From: David Koo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 11:57 AM
To: [EMAIL PROTECTED]
Subject: Re: I get "Out of environment space"


from the readme for the sun jswdk

Out of Environment Space error message
On Windows 95/98 systems, you may see an "Out of Environment Space" error
message when starting the server. This happens if Windows provides too small
a space for environment variables. To work around this limitation:
Close the DOS window (the error can corrupt its CLASSPATH variable).
Open a new DOS window.
Click on the MS-DOS icon at the top left of the window.
Select the Properties option.
Click on the Memory tab.
Adjust the "Initial Environment" drop-down box from "Auto" to "2816".
Click OK.
Start the server.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Raj Jain
Sent: Monday, October 23, 2000 5:41 PM
To: [EMAIL PROTECTED]
Subject: I get "Out of environment space"


I am not able to start tomcat on my win98. I have the following files:

C:\jdk1.2.2\
C:\tomcat\

I used:
C:\tomcat>set TOMCAT_HOME=c:\tomcat
C:\tomcat>set JAVA_HOME=c:\jdk1.2.2
C:\tomcat>set CLASSPATH=c:\jdk1.2.2\lib\tools.jar


When I startup:
C:\tomcat\bin>startup

I get:
Out of environment space
starting tomcat in a new window

Please advise.



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

Share information about yourself, create your own public profile at
http://profiles.msn.com.

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

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

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

JSP/JDBC Problems

2000-10-26 Thread Halterman, Jon

Hi,

I am relatively new to the Java and JSP and JDBC worlds.  I am attempting to
write a simple JSP to prove to myself that it is possible to connect a JSP
file to an Oracle database.

I have two java classes: TRSQLTest.java and TestMe.java.  TRSQLTest is
responsible for connecting to the database and has two methods.  getTables
returns a record set of the table names available to the user.  getTableDesc
returns a record set of the field/column names of a given table.  TestMe is
a command line version of what I would like to do (minimally) on the web.
It lists each table name and displays the column names associated with that
table. [source for both is below]

TestMe works fine.  My jsp file is as follows:

<%@ page info="Track Record Database SQL Test" %>
<%@ page import="TRSQLTest" %>




<% response.setDateHeader( "Expires", 0 ); %>








If I comment out the  tag, the page will at least load,
otherwise I get the following error:

Error: 500
Location: /TrackRecord/test.jsp
Fatal Error: missing resource: java.util.PropertyResourceBundle

I have tried a variety of things to rectify this problem.  Unfortunately
with my inexperience in the java world, I can't seem to figure it out.  I am
sure it is something simple.

Thanks in advance for your help,

Jonathan Halterman


* TRSQLTest.java
import java.sql.*;
import java.util.*;

public class TRSQLTest {
  private String username;
  private String password;
  private String dbURL;
  private Connection conn;

  public TRSQLTest() throws SQLException {
username="blahblahblah";
password="blahblahblah";
dbURL = "jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS =(COMMUNITY =
world)(PROTOCOL = TCP)(Host = prodtisrv11)(Port = 1521))(CONNECT_DATA = (SID
= orc1)))";
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection(dbURL, username, password);
  }

  public ResultSet getTables() throws SQLException {
Statement stmt = conn.createStatement();
return stmt.executeQuery("select table_name from user_tables");
  }

  public ResultSet getTableDesc(String tableName) throws SQLException {
Statement stmt = conn.createStatement();
return stmt.executeQuery("select column_name from user_tab_columns where
table_name = '" + tableName + "'");
  }
}


 TestMe.java
import TRSQLTest.*;
import java.sql.*;

class TestMe {
  public static void main (String args[]) throws SQLException {
TRSQLTest t = new TRSQLTest();
ResultSet rs = t.getTables();
while (rs.next()) {
  String tableName = rs.getString(1);
  System.out.println (tableName);
  ResultSet rss = t.getTableDesc(tableName);
  while (rss.next()) {
String fieldName = rss.getString(1);
System.out.println (" " + fieldName);
  }

}
  }
}

Jonathan Halterman
Track Record Webification Project
Compuware Corporation
(248) 737-7300 x18745

Do justly, Love mercy, Walk humbly  - Micah 6:8

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

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

2000-10-26 Thread Venkat Jonnalagadda

I see a very interesting set of mails circulating in the list and once in a while this 
is really healthy.

Happy Diwali to each and everyone!!

Venkat Jonnalagadda
-Original Message-
From:   cupid1 [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, October 25, 2000 8:52 AM
To: [EMAIL PROTECTED]
Subject:Re: Diwali

Here is one example:

import faith.quran.*;
import faith.bible.*;
import faith.ramine.*;

class diwali
{
public static void main(String args[])

switch(read)
{
case quran : System.out.println("happy eid");
case bible :  System.out.println("Marry Charismas");
case ramine: System.out.println("happy Diwali");
default:
System.out.println("Have a nice day!");
}
}

mian

-
Click here for Free Video!!
http://www.gohip.com/free_video/

- Original Message -
From: "Parker, Karl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 10:56 AM
Subject: Re: Diwali


> How do I use it ???
>
> import sun.light.diwali.* ??
>
> Karl D. Parker
> Core Technologies
> RetailDNA, LLC
> <> - A
> Walker Digital Company
>
> One Stamford Plaza
> Stamford, CT 06902
> 203-564-1458 | 203-564-1772 (fax) | 330-8051272 (cell)
> This message, together with any attachments, is intended only for the use
of
> the individual or entity to which it is addressed and may contain
> information that is legally privileged, confidential, and exempt from
> disclosure. If you are not the intended recipient, you are hereby notified
> that you have received this message in error; any review, dissemination,
> distribution, or copying of this message, or any attachment, is strictly
> prohibited. If you have received this message in error, please delete this
> message and any attachments from your computer and immediately notify the
> original sender at (203) 564-1432 or by return e-mail. Thank you
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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

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

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



Hiding code

2000-10-26 Thread Kate McNamara

A weird question, and it's probably not possible, but as a part of a project
I have to supply my JSPs to a third party.  I don't want to reveal my code -
is there any way that I can avoid this?

Cheers
Kate McNamara

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

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



storing session variable

2000-10-26 Thread maurice coyle

hi all,
does anyone know of a good way to store the session variable
(maybe as a cookie?) so that a user can close the session and then come
back later on and pick it up where they finished?

i'm not asking for code or anything, just the general idea.

i'd really appreciate any comments/ideas any of you have on this.

thanks very much.


--
Maurice Coyle,
Sun Microsystems Ireland
Phone: 8199751.

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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] Weblogic + Linux service pack problem

2000-10-26 Thread Sylvain Roche

Sorry for this off topic question


I'm evaluating weblogic for a possibly soon java server change. I currently
use JRun under Linux. Everything works fine with weblogic 5.1.0, but when I
add any service pack (I've tried from 4 to 6), I suddenly have an exception
thrown for each servlet in the server, and looping til the end of times,
when I use the administration console. Plus all the servlets which used to
work fine before applying the sp are no longer found.

There are apparently no change in the classpath, it's just about adding a
jar in the classpath. This has nothing to do with the application servlets,
as long as they are located in a completly different directory.
I've tried as much java sdk as I had, blackdown's, sun's, IBM's, with native
or green thread, with or without jit, ...) Everything is exactly set has
described in the doc.

I'd like to know if so has already encountered such problem, and share any
experience with users who use weblogic on linux in production or
developpment environnment.


Thanks a lot, and again sorry for the off topic
Sylvain

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

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

2000-10-26 Thread [EMAIL PROTECTED]

start in http://www.ibm.com/developer/xml/
or in the oracle's site

>   Hello,
> Can somebody tell me  where I acn find source code to generate xml
code from
> Java code
> and java code to Xml
>
> Thanks for help
>
> Martin
>
>

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

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

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



Re: Hiding code

2000-10-26 Thread Dave Daniels

You should be able to precompile the JSPs, then distribute just the
resulting class files.

- Original Message -
From: Kate McNamara <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 26, 2000 7:39 AM
Subject: Hiding code


> A weird question, and it's probably not possible, but as a part of a
project
> I have to supply my JSPs to a third party.  I don't want to reveal my
code -
> is there any way that I can avoid this?
>
> Cheers
> Kate McNamara
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Re: JSP/JDBC Problems

2000-10-26 Thread Javier Navarrete T.

Add :
   <%@ page language="java" import="java.sql.*, java.util.*" %>

- Original Message -
From: Halterman, Jon <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 12:15 PM
Subject: JSP/JDBC Problems


> Hi,
>
> I am relatively new to the Java and JSP and JDBC worlds.  I am attempting
to
> write a simple JSP to prove to myself that it is possible to connect a JSP
> file to an Oracle database.
>
> I have two java classes: TRSQLTest.java and TestMe.java.  TRSQLTest is
> responsible for connecting to the database and has two methods.  getTables
> returns a record set of the table names available to the user.
getTableDesc
> returns a record set of the field/column names of a given table.  TestMe
is
> a command line version of what I would like to do (minimally) on the web.
> It lists each table name and displays the column names associated with
that
> table. [source for both is below]
>
> TestMe works fine.  My jsp file is as follows:
>
> <%@ page info="Track Record Database SQL Test" %>
> <%@ page import="TRSQLTest" %>
>
> 
>
> 
> <% response.setDateHeader( "Expires", 0 ); %>
> 
>
> 
>
> 
>
> 
>
> If I comment out the  tag, the page will at least load,
> otherwise I get the following error:
>
> Error: 500
> Location: /TrackRecord/test.jsp
> Fatal Error: missing resource: java.util.PropertyResourceBundle
>
> I have tried a variety of things to rectify this problem.  Unfortunately
> with my inexperience in the java world, I can't seem to figure it out.  I
am
> sure it is something simple.
>
> Thanks in advance for your help,
>
> Jonathan Halterman
>
>
> * TRSQLTest.java
> import java.sql.*;
> import java.util.*;
>
> public class TRSQLTest {
>   private String username;
>   private String password;
>   private String dbURL;
>   private Connection conn;
>
>   public TRSQLTest() throws SQLException {
> username="blahblahblah";
> password="blahblahblah";
> dbURL = "jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS =(COMMUNITY =
> world)(PROTOCOL = TCP)(Host = prodtisrv11)(Port = 1521))(CONNECT_DATA =
(SID
> = orc1)))";
> DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
> conn = DriverManager.getConnection(dbURL, username, password);
>   }
>
>   public ResultSet getTables() throws SQLException {
> Statement stmt = conn.createStatement();
> return stmt.executeQuery("select table_name from user_tables");
>   }
>
>   public ResultSet getTableDesc(String tableName) throws SQLException {
> Statement stmt = conn.createStatement();
> return stmt.executeQuery("select column_name from user_tab_columns
where
> table_name = '" + tableName + "'");
>   }
> }
>
>
>  TestMe.java
> import TRSQLTest.*;
> import java.sql.*;
>
> class TestMe {
>   public static void main (String args[]) throws SQLException {
> TRSQLTest t = new TRSQLTest();
> ResultSet rs = t.getTables();
> while (rs.next()) {
>   String tableName = rs.getString(1);
>   System.out.println (tableName);
>   ResultSet rss = t.getTableDesc(tableName);
>   while (rss.next()) {
> String fieldName = rss.getString(1);
> System.out.println (" " + fieldName);
>   }
>
> }
>   }
> }
>
> Jonathan Halterman
> Track Record Webification Project
> Compuware Corporation
> (248) 737-7300 x18745
>
> Do justly, Love mercy, Walk humbly  - Micah 6:8
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Jsp bean error

2000-10-26 Thread Muan Hong Ng

Please help:
i am using Apache Server with JSP engine 1.1, JVM 1.1.7
i came across this error whenever i modify my bean code and upload them to
the server.
There is no error page displayed in my browser, but  the jsp page is just
displayed up to the line  where the bean is used.
Bizzarre, anyone has any clue for this problem?

Thanks in advance, pleas..help!

Hong



--
Muan Hong, Ng
Intelligence, Agents, Multimedia Research Group,
Department of Electronics and Computer Science,
University of Southampton,
United Kingdom.
Tel: ++44 (0)23 80 593256
Fax: ++44 (0)23 80 572865
--
-

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: I get "Out of environment space"

2000-10-26 Thread Jason Bowman

Hello,

I have had the same problem. The way I worked around it was to create my own
.bat file. Use the same java command to start tomcat but add the classpath
not as an enviroment variable but as a -cp option. I would send you the bat
file if I was at home...

For example (This will not work, it is just the general format):
java -cp classpath -Dtomcat.option.whatever=value org.apache.tomcat.startup
run

Hope this helps,
Jason B.


-Original Message-
From: Raj Jain <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, October 24, 2000 2:34 PM
Subject: I get "Out of environment space"


>I am not able to start tomcat on my win98. I have the following files:
>
>C:\jdk1.2.2\
>C:\tomcat\
>
>I used:
>C:\tomcat>set TOMCAT_HOME=c:\tomcat
>C:\tomcat>set JAVA_HOME=c:\jdk1.2.2
>C:\tomcat>set CLASSPATH=c:\jdk1.2.2\lib\tools.jar
>
>
>When I startup:
>C:\tomcat\bin>startup
>
>I get:
>Out of environment space
>starting tomcat in a new window
>
>Please advise.
>
>
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



Re: JSP and Reports

2000-10-26 Thread Arunkumar S Keserla

You will also get an 6 month free customer service rep bugging you to buy
the software

Arun
- Original Message -
From: "Anders Halden" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 8:16 AM
Subject: Re: JSP and Reports


> Formula One:
> http://www.tidestone.com/home/default.jsp
>
>
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Javier Navarrete T.
> Sent: Wednesday, October 25, 2000 3:08 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP and Reports
>
>
> Try Formula One reports. 30 days trial free
>
> - Original Message -
> From: Brian Nice <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 24, 2000 9:08 PM
> Subject: JSP and Reports
>
>
> > What is the best way to generate complex reports from JSP? I was =
> > thinking about selecting the information for the report out of the =
> > database in XML format and then applying a style sheet to the XML data =
> > to convert it into PDF format. Nice, but for complex reports the style =
> > sheets becomes unbearable.
> >
> > Are there ways to interface with Crystal Reports or some other reporting
=
> > program so that the user can click on a link on a web page to have a =
> > report generated and then displayed to the user. Also the user should be
=
> > able to print the report to their printer.
> >
> > What are the best ways to accomplish something like this?
> >
> > Thanks in advance
> > Brian
> > [EMAIL PROTECTED]
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



JSP and Word

2000-10-26 Thread Thompson Willard

Does anyone know how to invoke MS Word?  For instance, in my jsp I can
invoke Excel but not word:

<%@ page contentType="application/vnd.ms-excel" %>
<%-- Note that there are tabs, not spaces, between columns. --%>
19971998199920002001 (Anticipated)
12.313.414.515.616.7


but when I replaced excel with word I have to download the jsp file.

- Willard

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

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

2000-10-26 Thread Sylvain Roche

It would make things harder if you distribute a war archive too. But even
compiled classes aren't safe. Utilites like jad for exemple (but there are
plenty others) can decompile a class, and restore clean source code. What we
do here is change every name in the source into abstract ones : compt ->
tr53z. This is much harder to reverse engine, but if you can afford working
long enough on that, you can always restore a understandable code.

I'm effraied there is no strong solution.

-Message d'origine-
De : Dave Daniels <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : jeudi 26 octobre 2000 15:18
Objet : Re: Hiding code


>You should be able to precompile the JSPs, then distribute just the
>resulting class files.
>
>- Original Message -
>From: Kate McNamara <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, October 26, 2000 7:39 AM
>Subject: Hiding code
>
>
>> A weird question, and it's probably not possible, but as a part of a
>project
>> I have to supply my JSPs to a third party.  I don't want to reveal my
>code -
>> is there any way that I can avoid this?
>>
>> Cheers
>> Kate McNamara
>>
>>
>===
>> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>> Some relevant FAQs on JSP/Servlets can be found at:
>>
>>  http://java.sun.com/products/jsp/faq.html
>>  http://www.esperanto.org.nz/jsp/jspfaq.html
>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Re: JSP and Word

2000-10-26 Thread David Koo

try application/msword...

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Thompson Willard
Sent: Thursday, October 26, 2000 9:43 AM
To: [EMAIL PROTECTED]
Subject: JSP and Word


Does anyone know how to invoke MS Word?  For instance, in my jsp I can
invoke Excel but not word:

<%@ page contentType="application/vnd.ms-excel" %>
<%-- Note that there are tabs, not spaces, between columns. --%>
19971998199920002001 (Anticipated)
12.313.414.515.616.7


but when I replaced excel with word I have to download the jsp file.

- Willard

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

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

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

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



Java or Javascript and window closing

2000-10-26 Thread Philip Moschovas

Hi everyone,

Is there a way to open a new window from a browser with script and close the
original browser without having it prompt you if you want to close the
window or not?

Is there a way in either java or javascript to do this?  I've tried
everything and I can't get it to not prompt me.

Thanks
Phil

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

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

2000-10-26 Thread Gigno

Get the October 2000 issue of Java Reportarticle:

Large-Scale Servlet Programming
by Kyle Brown, Rachel Reinitz, and Skyler Thomas
Pages 36-44

It discusses session data and the various pros/cons for cookies vs. server
storage vs. hidden fields, etc.  Very good information.

-- John

- Original Message -
From: "maurice coyle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 10:39 AM
Subject: storing session variable


> hi all,
> does anyone know of a good way to store the session variable
> (maybe as a cookie?) so that a user can close the session and then come
> back later on and pick it up where they finished?
>
> i'm not asking for code or anything, just the general idea.
>
> i'd really appreciate any comments/ideas any of you have on this.
>
> thanks very much.
>
>
> --
> Maurice Coyle,
> Sun Microsystems Ireland
> Phone: 8199751.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



Re: Servlet/JSP Development

2000-10-26 Thread Antonio W. Lagnada

That's a typo on my part.  I can assure you that I have the spelling
correctly.  I didn't cut and paste what I posted here.

Anyways...back to the real problem :-(.

--
Antonio W. Lagnada
Ecommerce Consultant
[EMAIL PROTECTED]

This email address is specifically
for JSP-Interest email list.
Remove _NOSPAM for the actual email.



 "David M. Karr" <[EMAIL PROTECTED]> wrote:
> > "Antonio" == Antonio W Lagnada <[EMAIL PROTECTED]> writes:
>   Antonio> I do have this set to "true" in the server.xml config file
> and it's still
>   Antonio> not reloading:
>
>   Antonio> 
>   Antonio> 
>
> If you entered this exactly as from the file, then changing
> "reloadble" to "reloadable" might help.
>
> --
> ===
> David M. Karr ; [EMAIL PROTECTED]  ; w:(425)487-8312 ; TCSI & Best
> Consulting
> Software Engineer ; Unix/Java/C++/X ; BrainBench CJ12P (#12004)
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.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 get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.com

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

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



Re: JSP/JDBC Problems

2000-10-26 Thread Halterman, Jon

Actually,

I found a couple of problems...



Page should be page - it's case sensitive.

Also I found that my jsp configuration didn't have access to the same
classes that my java configuration did.

I also did need to import the java.sql.* classes.

Thanks for your help.


-Original Message-
From: Javier Navarrete T. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 9:42 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP/JDBC Problems


Add :
   <%@ page language="java" import="java.sql.*, java.util.*" %>

- Original Message -
From: Halterman, Jon <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 12:15 PM
Subject: JSP/JDBC Problems


> Hi,
>
> I am relatively new to the Java and JSP and JDBC worlds.  I am attempting
to
> write a simple JSP to prove to myself that it is possible to connect a JSP
> file to an Oracle database.
>
> I have two java classes: TRSQLTest.java and TestMe.java.  TRSQLTest is
> responsible for connecting to the database and has two methods.  getTables
> returns a record set of the table names available to the user.
getTableDesc
> returns a record set of the field/column names of a given table.  TestMe
is
> a command line version of what I would like to do (minimally) on the web.
> It lists each table name and displays the column names associated with
that
> table. [source for both is below]
>
> TestMe works fine.  My jsp file is as follows:
>
> <%@ page info="Track Record Database SQL Test" %>
> <%@ page import="TRSQLTest" %>
>
> 
>
> 
> <% response.setDateHeader( "Expires", 0 ); %>
> 
>
> 
>
> 
>
> 
>
> If I comment out the  tag, the page will at least load,
> otherwise I get the following error:
>
> Error: 500
> Location: /TrackRecord/test.jsp
> Fatal Error: missing resource: java.util.PropertyResourceBundle
>
> I have tried a variety of things to rectify this problem.  Unfortunately
> with my inexperience in the java world, I can't seem to figure it out.  I
am
> sure it is something simple.
>
> Thanks in advance for your help,
>
> Jonathan Halterman
>
>
> * TRSQLTest.java
> import java.sql.*;
> import java.util.*;
>
> public class TRSQLTest {
>   private String username;
>   private String password;
>   private String dbURL;
>   private Connection conn;
>
>   public TRSQLTest() throws SQLException {
> username="blahblahblah";
> password="blahblahblah";
> dbURL = "jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS =(COMMUNITY =
> world)(PROTOCOL = TCP)(Host = prodtisrv11)(Port = 1521))(CONNECT_DATA =
(SID
> = orc1)))";
> DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
> conn = DriverManager.getConnection(dbURL, username, password);
>   }
>
>   public ResultSet getTables() throws SQLException {
> Statement stmt = conn.createStatement();
> return stmt.executeQuery("select table_name from user_tables");
>   }
>
>   public ResultSet getTableDesc(String tableName) throws SQLException {
> Statement stmt = conn.createStatement();
> return stmt.executeQuery("select column_name from user_tab_columns
where
> table_name = '" + tableName + "'");
>   }
> }
>
>
>  TestMe.java
> import TRSQLTest.*;
> import java.sql.*;
>
> class TestMe {
>   public static void main (String args[]) throws SQLException {
> TRSQLTest t = new TRSQLTest();
> ResultSet rs = t.getTables();
> while (rs.next()) {
>   String tableName = rs.getString(1);
>   System.out.println (tableName);
>   ResultSet rss = t.getTableDesc(tableName);
>   while (rss.next()) {
> String fieldName = rss.getString(1);
> System.out.println (" " + fieldName);
>   }
>
> }
>   }
> }
>
> Jonathan Halterman
> Track Record Webification Project
> Compuware Corporation
> (248) 737-7300 x18745
>
> Do justly, Love mercy, Walk humbly  - Micah 6:8
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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

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

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

JSP and IIS

2000-10-26 Thread Thompson Willard

Hello -

Are you able to run JSP on plain IIS (i.e. without a plugin like Tomcat)?

- Willard

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

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



Re: JSP and Word

2000-10-26 Thread Thompson Willard

that works thanks.

-Original Message-
From: David Koo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 9:29 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP and Word


try application/msword...

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Thompson Willard
Sent: Thursday, October 26, 2000 9:43 AM
To: [EMAIL PROTECTED]
Subject: JSP and Word


Does anyone know how to invoke MS Word?  For instance, in my jsp I can
invoke Excel but not word:

<%@ page contentType="application/vnd.ms-excel" %>
<%-- Note that there are tabs, not spaces, between columns. --%>
19971998199920002001 (Anticipated)
12.313.414.515.616.7


but when I replaced excel with word I have to download the jsp file.

- Willard

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

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

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

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

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

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



Re: JSP and IIS

2000-10-26 Thread Michael Donnelly

Nope.  Resin from Caucho Software has a very cool servlet runner that
integrates with IIS via filter, though.  Easy to set up and hasn't bombed
yet in my tinkering.

   Mike

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Thompson Willard
Sent: Thursday, October 26, 2000 8:42 AM
To: [EMAIL PROTECTED]
Subject: [JSP-INTEREST] JSP and IIS


Hello -

Are you able to run JSP on plain IIS (i.e. without a plugin like Tomcat)?

- Willard

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

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

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

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



Re: JSP and Word

2000-10-26 Thread Norr, Peter

How do you make sure it invokes only one instance of excel or word?

For example, if already have excel open and I download a file with the below
content type it invokes another instance of excel.

Peter


> -Original Message-
> From: Thompson Willard [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, October 26, 2000 11:02 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: JSP and Word
>
> that works thanks.
>
> -Original Message-
> From: David Koo [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 26, 2000 9:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP and Word
>
>
> try application/msword...
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Thompson Willard
> Sent: Thursday, October 26, 2000 9:43 AM
> To: [EMAIL PROTECTED]
> Subject: JSP and Word
>
>
> Does anyone know how to invoke MS Word?  For instance, in my jsp I can
> invoke Excel but not word:
>
> <%@ page contentType="application/vnd.ms-excel" %>
> <%-- Note that there are tabs, not spaces, between columns. --%>
> 19971998199920002001 (Anticipated)
> 12.313.414.515.616.7
>
>
> but when I replaced excel with word I have to download the jsp file.
>
> - Willard
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Re: value from 1 jsp to another in difft frames

2000-10-26 Thread Navpreet

hi sri,
u can try using javascript for the purpose. remeber the parent or top window is the
same for both the frames!

Navpreet

"Mukka, Srikanth" wrote:

> Hi All,
>
> How to pass value from one jsp to other jsp which are displayed on different
> frames.
>
> Bye
> Srikanth
>
> -Original Message-
> From: Jitesh Gangwani [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 25, 2000 5:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Happy Diwali Greetings
>
> Hello EveryOne
>
> Hope this diwali will light up your dreams and show you the way to make them
> true..
>
> Diwali is more than a religious celebration...
>
> It is the only time in the year when you can find every nook and corner
> lighted up.. So you should look out for all the new opportunities which are
> shining there for you...
>
> Enjoy and put some sparkle in life of everyone around you...
>
> HAPP e-DIWALI...
>
> Your Friend
>
> Jitesh
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Re: JSP and Word

2000-10-26 Thread Thompson Willard

That's a good point.  Go ahead and test it.

-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 11:14 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP and Word


How do you make sure it invokes only one instance of excel or word?

For example, if already have excel open and I download a file with the below
content type it invokes another instance of excel.

Peter


> -Original Message-
> From: Thompson Willard [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, October 26, 2000 11:02 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: JSP and Word
>
> that works thanks.
>
> -Original Message-
> From: David Koo [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 26, 2000 9:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP and Word
>
>
> try application/msword...
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Thompson Willard
> Sent: Thursday, October 26, 2000 9:43 AM
> To: [EMAIL PROTECTED]
> Subject: JSP and Word
>
>
> Does anyone know how to invoke MS Word?  For instance, in my jsp I can
> invoke Excel but not word:
>
> <%@ page contentType="application/vnd.ms-excel" %>
> <%-- Note that there are tabs, not spaces, between columns. --%>
> 19971998199920002001 (Anticipated)
> 12.313.414.515.616.7
>
>
> but when I replaced excel with word I have to download the jsp file.
>
> - Willard
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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

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

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



Re: Hiding code

2000-10-26 Thread Ron Chan

Hi,

might as well try obfuscating the classes also!

ron


--- Dave Daniels <[EMAIL PROTECTED]> wrote:
> You should be able to precompile the JSPs, then
> distribute just the
> resulting class files.
>
> - Original Message -
> From: Kate McNamara <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 26, 2000 7:39 AM
> Subject: Hiding code
>
>
> > A weird question, and it's probably not possible,
> but as a part of a
> project
> > I have to supply my JSPs to a third party.  I
> don't want to reveal my
> code -
> > is there any way that I can avoid this?
> >
> > Cheers
> > Kate McNamara
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found
> at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

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

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



Re: I get "Out of environment space"

2000-10-26 Thread ~:~Koshy Karteya~:~

I got that once...
What I did was to increase the environment space
by putting the following line in config.sys
shell=command.com /e:3 /p

hope it works for u!!



>-Original Message-
>From: Raj Jain <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Tuesday, October 24, 2000 2:34 PM
>Subject: I get "Out of environment space"
>
>
> >I am not able to start tomcat on my win98. I have the following files:
> >
> >C:\jdk1.2.2\
> >C:\tomcat\
> >
> >I used:
> >C:\tomcat>set TOMCAT_HOME=c:\tomcat
> >C:\tomcat>set JAVA_HOME=c:\jdk1.2.2
> >C:\tomcat>set CLASSPATH=c:\jdk1.2.2\lib\tools.jar
> >
> >
> >When I startup:
> >C:\tomcat\bin>startup
> >
> >I get:
> >Out of environment space
> >starting tomcat in a new window
> >
> >Please advise.
> >
> >
> >
> >_
> >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> >
> >Share information about yourself, create your own public profile at
> >http://profiles.msn.com.
> >
> >===
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



RES : JSP and IIS

2000-10-26 Thread André Sampaio

Ok. You can use JSP with MS - IIS using Allaire JRun.
All deployment in JRun and Web Server Microsoft IIS 4.0 or 5.0.


> Andre Luis Duque Sampaio | Senior Engineer
> [EMAIL PROTECTED]
>
> 2PG | Seu futuro daqui pra frente
> Rua Voluntários da Pátria 89/2º andar
> CEP: 22270-000, Rio de Janeiro, RJ
> Tel/Fax: 55.21.579.2244
>www.2pg.com
>

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

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



Re: value from 1 jsp to another in difft frames

2000-10-26 Thread Mukka, Srikanth

Hi Nav,

Sounds great, is it like using getParameter, get the value and use it in the
scriplets in the different .html file.
Clarify.

Bye
Srikanth

-Original Message-
From: Navpreet [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 26, 2000 12:36 PM
To: [EMAIL PROTECTED]
Subject: Re: value from 1 jsp to another in difft frames


hi sri,
u can try using javascript for the purpose. remeber the parent or top window
is the
same for both the frames!

Navpreet

"Mukka, Srikanth" wrote:

> Hi All,
>
> How to pass value from one jsp to other jsp which are displayed on
different
> frames.
>
> Bye
> Srikanth
>
> -Original Message-
> From: Jitesh Gangwani [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 25, 2000 5:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Happy Diwali Greetings
>
> Hello EveryOne
>
> Hope this diwali will light up your dreams and show you the way to make
them
> true..
>
> Diwali is more than a religious celebration...
>
> It is the only time in the year when you can find every nook and corner
> lighted up.. So you should look out for all the new opportunities which
are
> shining there for you...
>
> Enjoy and put some sparkle in life of everyone around you...
>
> HAPP e-DIWALI...
>
> Your Friend
>
> Jitesh
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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

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

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



Re: RES : JSP and IIS

2000-10-26 Thread Thompson Willard

I'm running into a problem because I want to use JSP's but my host provider
doesn't support any new plugins with out charging an arm or leg.  But they
support ASP's of which I don't want to use.

-Original Message-
From: André Sampaio [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 1:30 PM
To: [EMAIL PROTECTED]
Subject: RES : JSP and IIS


Ok. You can use JSP with MS - IIS using Allaire JRun.
All deployment in JRun and Web Server Microsoft IIS 4.0 or 5.0.


> Andre Luis Duque Sampaio | Senior Engineer
> [EMAIL PROTECTED]
>
> 2PG | Seu futuro daqui pra frente
> Rua Voluntários da Pátria 89/2º andar
> CEP: 22270-000, Rio de Janeiro, RJ
> Tel/Fax: 55.21.579.2244
>www.2pg.com
>

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

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

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

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



Re: JSP with Informix JDBC

2000-10-26 Thread David Koo

I am assuming that the Informix JDBC driver will not work with an older
version of the jdk. Check to see which jdk your path is pointing to by
typing in
%which java

You might have multiple versions of jdk installed on your server and your
path might reflect an older version. When you modify your path info, make
sure the path to jdk1.2.1 comes before the path to any previous versions (or
just remove any old references altogether).

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Thang Nguyen
Sent: Wednesday, October 25, 2000 7:46 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP with Informix JDBC


ok,  I just found one more thing and i think it is related to my problem.
When I run the stand
alone java from the command line I need to put in the version which 1.2.1
for it to work with JDBC
such as:

% java -Djava.vm.version=1.2.1  TestDB
'jdbc:informix-sqli://143.183.67.14:1529/test31:INFORMIXSERVER=tng93;user=in
fotest;password=i5u'


I guess I need to do the same thing for JSP which is to specify the version
number, but how can I do
this?
Can you pls let me know?  Thanks

-Thang






Thang Nguyen wrote:

> Hi,
>
> I had a problem to get this jsp page to work (basically, it can not
establish the
> connection to the Informix database).  However, if I write a stand alone
java
> module  with the same driver and URL as described below, then it worked
just fine.
> There seemed to be a problem if I tried to do this within JSP.My
webserver is
> Tomcat (stand alone) and it worked fine except when it tried to connect to
the
> database.   I can assure with you that the driverName and dbUrl are
correct, I
> checked them so many times.The code  can only execute up to the line
of
> "Testing2... ha ha ha". The error I got is simply said that it could
not
> connect to the database.Do you see what I have done wrong? please
suggest a way
> for me to debug.  Below is my JSP page.  Thanks much in advance.
>
> <%@ page import="java.sql.*" %>
>
> 
> 
>
> <%
>   String driverName = "com.informix.jdbc.IfxDriver";
>   String dbUrl =
>
"jdbc:informix-sqli://143.183.67.14:1529/test31:INFORMIXSERVER=tng93;user=in
fotest;password=i5u";
>
>   out.println("" + "Testing1...h ha ha ha");
>   try {
>  // Step 1.  Load the driver
>  Class.forName(driverName);
>
>  out.println("" + "Testing2...h ha ha ha");
>  // Step 2:  Get a connection
>  out.println(dbUrl);
>  Connection myConn = DriverManager.getConnection (dbUrl);
>  out.println("" + "Testing3...h ha ha ha");
>
>  // Step 3:  Create and execute the SQL statement
>  Statement myStmt = myConn.createStatement ();
>  ResultSet myRs = myStmt.executeQuery ("SELECT * from pdscddata");
>  out.println("" + "Testing4...h ha ha ha");
>
>  // Step 4:  Process the Result Set
>  while (myRs.next()) {
> out.println("" + myRs.getString ("pdsname"));
>  }
>   }
>   catch (SQLException exc) {
>  out.println(" ERROR: failed to connect !");
>  exc.printStackTrace();
>   }
>   catch (ClassNotFoundException exc) {
>  out.println(" ERROR: failed to find a class !");
>  exc.printStackTrace();
>   }
> %>
>
> 
> 
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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

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

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



Re: JSP and Reports

2000-10-26 Thread Steve Bang

Our company, AlphaBlox, recently released an enterprise-oriented product,
SpreadsheetBlox, that may offer you a solution.  SpreadsheetBlox is a
DHTML-only spreadsheet, generated using JavaServer Pages, which can also be
used to create customizable reports that can be printed.  SpreadsheetBlox is
a result of a recent merger between AlphaBlox and HalfBrain.  For more
information, check out http://www.alphablox.com/.  If you want to try out
the precursor to SpreadsheetBlox, go to Blox.com (http://www.blox.com/).  At
Blox.com, you can create your own spreadsheets, custom calculators, and
reports using, I believe,  the original version of BrainMatter (not based on
JSP).  Re-written using JSP and XML, and integrated into our AlphaBlox
Analysis Server (which also supports JSP and XML), the AlphaBlox
SpreadsheetBlox has even more functionality than what you'll see at
Blox.com.  I've been at AlphaBlox two years and this is a very exciting new
product.

Steve

Steven K. Bang
Sr. Staff Information Developer
AlphaBlox
(650) 526-1782

P.S. Here is a brief description of SpreadsheetBlox:

"SpreadsheetBlox provides full-featured spreadsheets and a ready-to-use
spreadsheet management mechanism. The SpreadsheetBlox features enable you to
deploy highly customizable reports to end-users easily as well as deploy
applications that make use of data entry forms, such as budgeting
applications.

The AlphaBlox Spreadsheet is written entirely in dynamic HTML (DHTML).
AlphaBlox Spreadsheets are delivered as standard web pages, so there is no
need for client-side downloads, plug-ins, or Java-enabled browsers. An
AlphaBlox Spreadsheet can access and display information from any of the
data sources supported by AlphaBlox Analysis Server, enabling a saved
spreadsheet to retrieve and display current data whenever the spreadsheet
loads.

AlphaBlox Spreadsheets have the familiar spreadsheet interface, which
provides most of the functionality of Microsoft Excel. The spreadsheets
include support for formatting, a wide array of built-in functions (for
example, mathematical, logical, financial), cell ranges, absolute and
relative cell references, and automatic re-calculation. AlphaBlox
Spreadsheets also include a powerful JavaScript-based macro language that
enables both you and end-users to write custom functionality into the
spreadsheet. Using macros, you can even control the way in which the data is
displayed and formatted in the spreadsheet.

The ready-to-use spreadsheet management mechanism is called My Files. The My
Files interface integrates with existing AlphaBlox Analysis Server security
and allows users to manage their spreadsheets; users can sort and filter
their saved spreadsheets, as well as rename, delete, and open them. They can
also create new blank stand-alone spreadsheets and open saved spreadsheets
in "calculator mode". Users can save spreadsheets in their private My Files
area or for public viewing by others with appropriate access rights.

When opened in calculator mode, a spreadsheet displays a different
appearance - they look like regular HTML pages. You choose which cells are
locked and which are editable (input fields). The end user then types in a
their numbers and views the resulting calculation. By locking all the
fields, you can make a formatted, read-only report. Also, you or an end-user
can embed a calculator within any HTML page.

While you can use AlphaBlox Spreadsheets and the file management mechanism
"as is", you can also customize the spreadsheet document and the My Files
interface."




> -Original Message-
> From: Arunkumar S Keserla [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 26, 2000 7:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP and Reports
>
>
> You will also get an 6 month free customer service rep
> bugging you to buy
> the software
>
> Arun
> - Original Message -
> From: "Anders Halden" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 25, 2000 8:16 AM
> Subject: Re: JSP and Reports
>
>
> > Formula One:
> > http://www.tidestone.com/home/default.jsp
> >
> >
> >
> > -Original Message-
> > From: A mailing list about Java Server Pages specification
> and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Javier Navarrete T.
> > Sent: Wednesday, October 25, 2000 3:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: JSP and Reports
> >
> >
> > Try Formula One reports. 30 days trial free
> >
> > - Original Message -
> > From: Brian Nice <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 24, 2000 9:08 PM
> > Subject: JSP and Reports
> >
> >
> > > What is the best way to generate complex reports from JSP? I was =
> > > thinking about selecting the information for the report
> out of the =
> > > database in XML format and then applying a style sheet to
> the XML data =
> > > to convert it into PDF format. Nice, but for complex
> reports the style =
> > > sheets becomes unbearable.
> > >
> > > Are there ways to int

Re: JSP and IIS

2000-10-26 Thread Nasser Dassi

JSP and ASP, although functionality-wise are similar (but they are not the
same), are not interchangeable technologies.  The closest you can get is see
if your host provider is capable of swapping services for your package.
Otherwise, either seek an alternative host provider, or give up a limb or
two.

Yours,

  Nasser Dassi
  Software & Internet Developer

  "Openmindedness Rewards A Lifetime"

- Original Message -
From: "Thompson Willard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 26, 2000 1:48 PM
Subject: Re: RES : JSP and IIS


> I'm running into a problem because I want to use JSP's but my host
provider
> doesn't support any new plugins with out charging an arm or leg.  But they
> support ASP's of which I don't want to use.
>
> -Original Message-
> From: André Sampaio [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 26, 2000 1:30 PM
> To: [EMAIL PROTECTED]
> Subject: RES : JSP and IIS
>
>
> Ok. You can use JSP with MS - IIS using Allaire JRun.
> All deployment in JRun and Web Server Microsoft IIS 4.0 or 5.0.
>
>
> > Andre Luis Duque Sampaio | Senior Engineer
> > [EMAIL PROTECTED]
> >
> > 2PG | Seu futuro daqui pra frente
> > Rua Voluntários da Pátria 89/2º andar
> > CEP: 22270-000, Rio de Janeiro, RJ
> > Tel/Fax: 55.21.579.2244
> >www.2pg.com
> >
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



Calling all JRun users.

2000-10-26 Thread Nicholson Robert

Our site doesn't have a logout button and what I'm seeing at the moment
is that if I close the browser and login as the same user the same session
information is still around in the session? How can this be?

If I close the browser in IE 5 should I assume that the session cookie is
dead? and so when I log into my site again I'm guaranteed to get a new
session right?

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

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



Beans to do International conversions

2000-10-26 Thread Doug W

Anyone know of any beans to do translation of text from one language to another?
must be Unicode complaint

Also, are there any beans to automatic page code detection of the language?

thanks

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

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



Re: Beans to do International conversions

2000-10-26 Thread Karau, Joe

Doug, I don't know of any way to automatically translate from one language
to another because of all the considerations that go along with translating
between languages, not only the words but also the grammar would have to be
translated.  However, if you do happen to find one, I'd greatly appreciate
it if you could let me know.  About the 'page code detection of language'
I'm not quite sure what you mean, so I can't help you there.

Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629


-Original Message-
From: Doug W [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 1:42 PM
To: [EMAIL PROTECTED]
Subject: Beans to do International conversions


Anyone know of any beans to do translation of text from one language to
another?
must be Unicode complaint

Also, are there any beans to automatic page code detection of the language?

thanks

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

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

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

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



Problem calling Oracle

2000-10-26 Thread John Pallozzi

Hello,

I am trying to do a "proof of concept" exercise where I am trying to call
an Oracle DB and return one row of data, then print it out to the browser
with JSP.
Below is my JSP code, my Bean code, and the error I am receiving. Can
anyone tell me what I am doing wrong?

On a related note I am trying to debug this JSP page using Visual Cafe and
Tomcat  and I am receiving an error when the debugger tries to load
org.apache.tomcat.startup.Tomcat.class, it essentially says it can't find
the class. I followed the directions I found at :

http://people.netscape.com/chanezon/tech/java/tomcat/debug_jsp_in_cafe.html

To set up a debug environment for JSP with Visual Cafe and Tomcat, and
still get the same error. Any help there would be greatly appreciated as
well.

JSP CODE:

<%@ page import="java.sql.*" %>
<%@ page import = "helloracle.HelloOracleBean" %>

<%
Connection connection = null;
Statement statement = null;
ResultSet results = null;

HelloOracleBean line = new HelloOracleBean();

try{

Class.forName("oracle.jdbc.driver.OracleDriver");
String url = "jdbc:oracle:[EMAIL PROTECTED]";
String email_val = "[EMAIL PROTECTED]";
String query = "SELECT EMAIL, FNAME, LNAME FROM MY_TABLE WHERE EMAIL = " +
email_val;
connection = DriverManager.getConnection(url,"userid","password");
statement = connection.createStatement();
results = statement.executeQuery(query);
if(results.next()) {

 nline.setEmail(results.getString("EMAIL"));
 nline.setFname(results.getString("FNAME"));
 nline.setLname(results.getString("LNAME"));

 }

 connection.close();
}

catch (ClassNotFoundException e) {

System.err.println("Could not load database driver!");

}

catch (SQLException e) {

System.err.println("Could not connect to the database!");

}

finally{

try { if (connection != null) connection.close(); }
catch (SQLExecption e) {}

}

%>





Email:



First Name:



Last Name






BEAN CODE:

package helloracle;

import java.util.*;

public class HelloOracleBean {

 String passed_email;
 String passed_fname;
 String passed_lname;

  public void setEmail(String email) {

passed_email = email;

 }

  public void setFname(String fname) {

passed_fname = fname;

 }

  public void setLname(String lname) {

passed_lname = lname;

 }

  public String getEmail() {
return passed_email;
  }

  public String getFname() {
return passed_fname;
  }

   public String getLname() {
  return passed_lname;
  }


}


ERROR:

Location: /examples/jsp/helloracle/helloemail.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for
JSP/jakarta-tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fhelloracle_0002fhelloemail_0002ejsphelloemail_jsp_0.java:124:

Class jsp.helloracle.SQLExecption not found in type declaration.
catch (SQLExecption e) {}
   ^
1 error

   at java.lang.Throwable.(Compiled Code)
   at java.lang.Exception.(Compiled Code)
   at javax.servlet.ServletException.(Compiled Code)
   at org.apache.jasper.JasperException.(Compiled Code)
   at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
   at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code)
   at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compiled

Code)
   at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled
Code)
   at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled
Code)
   at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
   at org.apache.tomcat.core.ContextManager.service(Compiled Code)
   at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled

Code)
   at org.apache.tomcat.service.TcpConnectionThread.run(Compiled
Code)
   at java.lang.Thread.run(Compiled Code)


Thanks,

John P.

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

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

2000-10-26 Thread Spike, Stephanie

IBM offers a product that will translate English to seven other languages
automatically, I don't know what it is called or what the price tag is like
but I do know it does English/Italian very well.  Hope this helps, Stephanie

-Original Message-
From: Karau, Joe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 3:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Beans to do International conversions


Doug, I don't know of any way to automatically translate from one language
to another because of all the considerations that go along with translating
between languages, not only the words but also the grammar would have to be
translated.  However, if you do happen to find one, I'd greatly appreciate
it if you could let me know.  About the 'page code detection of language'
I'm not quite sure what you mean, so I can't help you there.

Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629


-Original Message-
From: Doug W [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 1:42 PM
To: [EMAIL PROTECTED]
Subject: Beans to do International conversions


Anyone know of any beans to do translation of text from one language to
another?
must be Unicode complaint

Also, are there any beans to automatic page code detection of the language?

thanks

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

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

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

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

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

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



Re: Problem calling Oracle

2000-10-26 Thread Mark Jorritsma

Hi,

You spelled Exception wrong in 'catch (SQLExecption e) {}'

Mark

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of John Pallozzi
> Sent: Thursday, October 26, 2000 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: Problem calling Oracle
>
>
> Hello,
>
> I am trying to do a "proof of concept" exercise where I am trying to call
> an Oracle DB and return one row of data, then print it out to the browser
> with JSP.
> Below is my JSP code, my Bean code, and the error I am receiving. Can
> anyone tell me what I am doing wrong?
>
> On a related note I am trying to debug this JSP page using Visual Cafe and
> Tomcat  and I am receiving an error when the debugger tries to load
> org.apache.tomcat.startup.Tomcat.class, it essentially says it can't find
> the class. I followed the directions I found at :
>
> http://people.netscape.com/chanezon/tech/java/tomcat/debug_jsp_in_
> cafe.html
>
> To set up a debug environment for JSP with Visual Cafe and Tomcat, and
> still get the same error. Any help there would be greatly appreciated as
> well.
>
> JSP CODE:
>
> <%@ page import="java.sql.*" %>
> <%@ page import = "helloracle.HelloOracleBean" %>
>  scope="session">
> <%
> Connection connection = null;
> Statement statement = null;
> ResultSet results = null;
>
> HelloOracleBean line = new HelloOracleBean();
>
> try{
>
> Class.forName("oracle.jdbc.driver.OracleDriver");
> String url = "jdbc:oracle:[EMAIL PROTECTED]";
> String email_val = "[EMAIL PROTECTED]";
> String query = "SELECT EMAIL, FNAME, LNAME FROM MY_TABLE WHERE EMAIL = " +
> email_val;
> connection = DriverManager.getConnection(url,"userid","password");
> statement = connection.createStatement();
> results = statement.executeQuery(query);
> if(results.next()) {
>
>  nline.setEmail(results.getString("EMAIL"));
>  nline.setFname(results.getString("FNAME"));
>  nline.setLname(results.getString("LNAME"));
>
>  }
>
>  connection.close();
> }
>
> catch (ClassNotFoundException e) {
>
> System.err.println("Could not load database driver!");
>
> }
>
> catch (SQLException e) {
>
> System.err.println("Could not connect to the database!");
>
> }
>
> finally{
>
> try { if (connection != null) connection.close(); }
> catch (SQLExecption e) {}
>
> }
>
> %>
> 
> 
> 
> 
> 
> Email:
> 
> 
> 
> First Name:
> 
> 
> 
> Last Name
> 
> 
> 
> 
> 
>
> BEAN CODE:
>
> package helloracle;
>
> import java.util.*;
>
> public class HelloOracleBean {
>
>  String passed_email;
>  String passed_fname;
>  String passed_lname;
>
>   public void setEmail(String email) {
>
> passed_email = email;
>
>  }
>
>   public void setFname(String fname) {
>
> passed_fname = fname;
>
>  }
>
>   public void setLname(String lname) {
>
> passed_lname = lname;
>
>  }
>
>   public String getEmail() {
> return passed_email;
>   }
>
>   public String getFname() {
> return passed_fname;
>   }
>
>public String getLname() {
>   return passed_lname;
>   }
>
>
> }
>
>
> ERROR:
>
> Location: /examples/jsp/helloracle/helloemail.jsp
> Internal Servlet Error:
> org.apache.jasper.JasperException: Unable to compile class for
> JSP/jakarta-tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fh
> elloracle_0002fhelloemail_0002ejsphelloemail_jsp_0.java:124:
>
> Class jsp.helloracle.SQLExecption not found in type declaration.
> catch (SQLExecption e) {}
>^
> 1 error
>
>at java.lang.Throwable.(Compiled Code)
>at java.lang.Exception.(Compiled Code)
>at javax.servlet.ServletException.(Compiled Code)
>at org.apache.jasper.JasperException.(Compiled Code)
>at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
>at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code)
>at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNeces
> sary(Compiled
>
> Code)
>at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled
> Code)
>at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled
> Code)
>at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
>at javax.servlet.http.HttpServlet.service(Compiled Code)
>at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
> Code)
>at org.apache.tomcat.core.ContextManager.service(Compiled Code)
>at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(Compiled
>
> Code)
>at org.apache.tomcat.service.TcpConnectionThread.run(Compiled
> Code)
>at java.lang.Thread.run(Compiled Code)
>
>
> Thanks,
>
> John P.
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 ht

Re: Problem calling Oracle

2000-10-26 Thread Richard Yee

John,
Check your spelling.

Location: /examples/jsp/helloracle/helloemail.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for
JSP/jakarta-tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fhelloracle_
0002fhelloemail_0002ejsphelloemail_jsp_0.java:124:

Class jsp.helloracle.SQLExecption not found in type declaration.
catch (SQLExecption e) {}
   ^
SQLException is spelled incorrectly.

Regards,

Richard

-Original Message-
From: John Pallozzi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 8:07 AM
To: [EMAIL PROTECTED]
Subject: Problem calling Oracle


Hello,

I am trying to do a "proof of concept" exercise where I am trying to call
an Oracle DB and return one row of data, then print it out to the browser
with JSP.
Below is my JSP code, my Bean code, and the error I am receiving. Can
anyone tell me what I am doing wrong?

On a related note I am trying to debug this JSP page using Visual Cafe and
Tomcat  and I am receiving an error when the debugger tries to load
org.apache.tomcat.startup.Tomcat.class, it essentially says it can't find
the class. I followed the directions I found at :

http://people.netscape.com/chanezon/tech/java/tomcat/debug_jsp_in_cafe.html

To set up a debug environment for JSP with Visual Cafe and Tomcat, and
still get the same error. Any help there would be greatly appreciated as
well.

JSP CODE:

<%@ page import="java.sql.*" %>
<%@ page import = "helloracle.HelloOracleBean" %>

<%
Connection connection = null;
Statement statement = null;
ResultSet results = null;

HelloOracleBean line = new HelloOracleBean();

try{

Class.forName("oracle.jdbc.driver.OracleDriver");
String url = "jdbc:oracle:[EMAIL PROTECTED]";
String email_val = "[EMAIL PROTECTED]";
String query = "SELECT EMAIL, FNAME, LNAME FROM MY_TABLE WHERE EMAIL = " +
email_val;
connection = DriverManager.getConnection(url,"userid","password");
statement = connection.createStatement();
results = statement.executeQuery(query);
if(results.next()) {

 nline.setEmail(results.getString("EMAIL"));
 nline.setFname(results.getString("FNAME"));
 nline.setLname(results.getString("LNAME"));

 }

 connection.close();
}

catch (ClassNotFoundException e) {

System.err.println("Could not load database driver!");

}

catch (SQLException e) {

System.err.println("Could not connect to the database!");

}

finally{

try { if (connection != null) connection.close(); }
catch (SQLExecption e) {}

}

%>





Email:



First Name:



Last Name






BEAN CODE:

package helloracle;

import java.util.*;

public class HelloOracleBean {

 String passed_email;
 String passed_fname;
 String passed_lname;

  public void setEmail(String email) {

passed_email = email;

 }

  public void setFname(String fname) {

passed_fname = fname;

 }

  public void setLname(String lname) {

passed_lname = lname;

 }

  public String getEmail() {
return passed_email;
  }

  public String getFname() {
return passed_fname;
  }

   public String getLname() {
  return passed_lname;
  }


}


ERROR:

Location: /examples/jsp/helloracle/helloemail.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for
JSP/jakarta-tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fhelloracle_
0002fhelloemail_0002ejsphelloemail_jsp_0.java:124:

Class jsp.helloracle.SQLExecption not found in type declaration.
catch (SQLExecption e) {}
   ^
1 error

   at java.lang.Throwable.(Compiled Code)
   at java.lang.Exception.(Compiled Code)
   at javax.servlet.ServletException.(Compiled Code)
   at org.apache.jasper.JasperException.(Compiled Code)
   at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
   at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code)
   at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led

Code)
   at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled
Code)
   at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled
Code)
   at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
   at org.apache.tomcat.core.ContextManager.service(Compiled Code)
   at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
led

Code)
   at org.apache.tomcat.service.TcpConnectionThread.run(Compiled
Code)
   at java.lang.Thread.run(Compiled Code)


Thanks,

John P.

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

 http://java.sun.com/products/jsp/faq.html
 h

Re: Beans to do International conversions

2000-10-26 Thread Doug W

Stephanie, are you talking about their AlphaWorlks International Machine
translation?

Have you used it before within your JSP site? Can you give us feedback?






"Spike, Stephanie" <[EMAIL PROTECTED]> on 10/26/2000 12:56:37 PM

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

To:   [EMAIL PROTECTED]
cc:(bcc: Douglas Wong/CDS/CG/CAPITAL)
Subject:  Re: Beans to do International conversions


IBM offers a product that will translate English to seven other languages
automatically, I don't know what it is called or what the price tag is like
but I do know it does English/Italian very well.  Hope this helps, Stephanie

-Original Message-
From: Karau, Joe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 3:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Beans to do International conversions


Doug, I don't know of any way to automatically translate from one language
to another because of all the considerations that go along with translating
between languages, not only the words but also the grammar would have to be
translated.  However, if you do happen to find one, I'd greatly appreciate
it if you could let me know.  About the 'page code detection of language'
I'm not quite sure what you mean, so I can't help you there.

Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629


-Original Message-
From: Doug W [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 1:42 PM
To: [EMAIL PROTECTED]
Subject: Beans to do International conversions


Anyone know of any beans to do translation of text from one language to
another?
must be Unicode complaint

Also, are there any beans to automatic page code detection of the language?

thanks

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

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

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

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

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

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

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

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



Re: Beans to do International conversions

2000-10-26 Thread Yamijala, Kalyan

Systran is another company that is big into translation. They actually do
web based translation also. But Machine translation is never accurate.
Inspite of all the advances we have in technology, machine translation is
still unreliable and the final product has to be cross checked by human
translators.Check out www.systran.com.

(This doesn't answer the original question however, 'cos I don't know about
"multilingual" beans either :^). Actually I think there aren't any.)


-Original Message-
From: Spike, Stephanie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 3:57 PM
To: [EMAIL PROTECTED]
Subject: Re: Beans to do International conversions


IBM offers a product that will translate English to seven other languages
automatically, I don't know what it is called or what the price tag is like
but I do know it does English/Italian very well.  Hope this helps, Stephanie

-Original Message-
From: Karau, Joe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 3:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Beans to do International conversions


Doug, I don't know of any way to automatically translate from one language
to another because of all the considerations that go along with translating
between languages, not only the words but also the grammar would have to be
translated.  However, if you do happen to find one, I'd greatly appreciate
it if you could let me know.  About the 'page code detection of language'
I'm not quite sure what you mean, so I can't help you there.

Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629


-Original Message-
From: Doug W [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 1:42 PM
To: [EMAIL PROTECTED]
Subject: Beans to do International conversions


Anyone know of any beans to do translation of text from one language to
another?
must be Unicode complaint

Also, are there any beans to automatic page code detection of the language?

thanks

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

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

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

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

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

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

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

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



Re: Problem calling Oracle

2000-10-26 Thread Vishnu Akkaraju

may be, check the format of url string

-Original Message-
From: John Pallozzi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 11:07 AM
To: [EMAIL PROTECTED]
Subject: Problem calling Oracle


Hello,

I am trying to do a "proof of concept" exercise where I am trying to call
an Oracle DB and return one row of data, then print it out to the browser
with JSP.
Below is my JSP code, my Bean code, and the error I am receiving. Can
anyone tell me what I am doing wrong?

On a related note I am trying to debug this JSP page using Visual Cafe and
Tomcat  and I am receiving an error when the debugger tries to load
org.apache.tomcat.startup.Tomcat.class, it essentially says it can't find
the class. I followed the directions I found at :

http://people.netscape.com/chanezon/tech/java/tomcat/debug_jsp_in_cafe.html

To set up a debug environment for JSP with Visual Cafe and Tomcat, and
still get the same error. Any help there would be greatly appreciated as
well.

JSP CODE:

<%@ page import="java.sql.*" %>
<%@ page import = "helloracle.HelloOracleBean" %>

<%
Connection connection = null;
Statement statement = null;
ResultSet results = null;

HelloOracleBean line = new HelloOracleBean();

try{

Class.forName("oracle.jdbc.driver.OracleDriver");
String url = "jdbc:oracle:[EMAIL PROTECTED]";
String email_val = "[EMAIL PROTECTED]";
String query = "SELECT EMAIL, FNAME, LNAME FROM MY_TABLE WHERE EMAIL = " +
email_val;
connection = DriverManager.getConnection(url,"userid","password");
statement = connection.createStatement();
results = statement.executeQuery(query);
if(results.next()) {

 nline.setEmail(results.getString("EMAIL"));
 nline.setFname(results.getString("FNAME"));
 nline.setLname(results.getString("LNAME"));

 }

 connection.close();
}

catch (ClassNotFoundException e) {

System.err.println("Could not load database driver!");

}

catch (SQLException e) {

System.err.println("Could not connect to the database!");

}

finally{

try { if (connection != null) connection.close(); }
catch (SQLExecption e) {}

}

%>





Email:



First Name:



Last Name






BEAN CODE:

package helloracle;

import java.util.*;

public class HelloOracleBean {

 String passed_email;
 String passed_fname;
 String passed_lname;

  public void setEmail(String email) {

passed_email = email;

 }

  public void setFname(String fname) {

passed_fname = fname;

 }

  public void setLname(String lname) {

passed_lname = lname;

 }

  public String getEmail() {
return passed_email;
  }

  public String getFname() {
return passed_fname;
  }

   public String getLname() {
  return passed_lname;
  }


}


ERROR:

Location: /examples/jsp/helloracle/helloemail.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for
JSP/jakarta-tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fhelloracle_
0002fhelloemail_0002ejsphelloemail_jsp_0.java:124:

Class jsp.helloracle.SQLExecption not found in type declaration.
catch (SQLExecption e) {}
   ^
1 error

   at java.lang.Throwable.(Compiled Code)
   at java.lang.Exception.(Compiled Code)
   at javax.servlet.ServletException.(Compiled Code)
   at org.apache.jasper.JasperException.(Compiled Code)
   at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
   at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code)
   at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led

Code)
   at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled
Code)
   at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled
Code)
   at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
   at org.apache.tomcat.core.ContextManager.service(Compiled Code)
   at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
led

Code)
   at org.apache.tomcat.service.TcpConnectionThread.run(Compiled
Code)
   at java.lang.Thread.run(Compiled Code)


Thanks,

John P.

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

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

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

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

how do I find out more about a error message

2000-10-26 Thread Shawn Zhu

Okay, I need some help now. =)

I got the following error message.  On the jsp I use.  I have a Database
class, that calls
javax.naming.InitialContext class.  I know that's where it generate the
error.  However, I have no idea whether the error is related to my
environment path setup or missing packages.
Unlike Microsoft, you can copy the error message and search on MSDN to get
an more detailed explaination on why such an error and how to go about
amending it.  Does Java.Sun have something like that?

Thank you.

==

javax.naming.CommunicationException: Can't find SerialContextProvider
at
com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:60)
at
com.sun.enterprise.naming.SerialContext.(SerialContext.java:79)
at
com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialI
nitContextFactory.java:54)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.(InitialContext.java:178)
at TestCases.dataBase.DBManager.(DBManager.java:22)
at
D_0003a.myprojects.TestCases.TestCases_0002fTableSelectView_0002ejspTableSel
ectView_jsp_1._jspService(TestCases_0002fTableSelectView_0002ejspTableSelect
View_jsp_1.java:74)
at com.sun.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:61)
at
com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:177)
at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:127)
at com.sun.web.core.Context.handleRequest(Context.java:414)
at
com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:101)

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

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



JSP History

2000-10-26 Thread Ganesh N.M

Dear All,

Can any one tell me when the first version of JSP released?

Ganesh

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

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

2000-10-26 Thread Doug W

I understand that "auto translators" aren't bullet proof (in fact, you can't
really rely on them), but I'm looking for similar technology with beans to get
an idea on how it is done.

Here is some info for you:

http://www.basistech.com/products/

What I mean by autodetection is when a user types some sentences or characters
in a web form, a servlet or jsp page would
be able to figure out what kind of language it istake a look at the URL
above...

Wondering if anyone else has done something similar to this


Doug




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

To:   [EMAIL PROTECTED]
cc:(bcc: Douglas Wong/CDS/CG/CAPITAL)
Subject:  Re: Beans to do International conversions


Doug, I don't know of any way to automatically translate from one language
to another because of all the considerations that go along with translating
between languages, not only the words but also the grammar would have to be
translated.  However, if you do happen to find one, I'd greatly appreciate
it if you could let me know.  About the 'page code detection of language'
I'm not quite sure what you mean, so I can't help you there.

Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629


-Original Message-
From: Doug W [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 1:42 PM
To: [EMAIL PROTECTED]
Subject: Beans to do International conversions


Anyone know of any beans to do translation of text from one language to
another?
must be Unicode complaint

Also, are there any beans to automatic page code detection of the language?

thanks

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

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

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

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

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

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



Please Give Samples for JSP-XML-XSL

2000-10-26 Thread Ganesh N.M

Hi All,

Please help me out by giving me some sample codes and explanations for the
use of XML, XSL in JSP.

Thanx in Advance.


Ganesh

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

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



HttpSession's get/setAttribute: Inprise Server 4.0 reports method not found

2000-10-26 Thread W Paul Waits

Topic: javax.servlet.http.HttpSession interface - setAttribute and getAttribute

Development Environment:
I am running Inprise Server 4.0 (which accesses it's ias.jar dated 2/16/00) as
distributed with JBuilder 3.5 Enterprise.
I have set up JBuilder to access JDK 1.3, j2sdkee 1.2.1's (j2ee.jar dated
4/27/00) and jswdk-1.0.1's (jspengine.jar and servlet.jar)

Two Problem(s):
This identical code listed below compiles and runs fine on the J2EE distributed
server (based on Tomcat)
a) could these problems be due to version differences between the jar files (IAS
vs J2EE)?
b) any suggested methods to attack this issue (other than drop the Inprise
server)
Thanks for your time and consideration!

1) In a login servlet, I use setAttribute (instead of the deprecated putValue).
The setAttribute command compiles under JBuilder without an error.  However,
when I run this servlet using the Inprise server (http://localhost...) I receive
the following exception:

javax.servlet.http.HttpSession: method
setAttribute(Ljava/lang/String;Ljava/lang/Object;)V not found.

++ Second related problem
+
2) In a JSP (which is called from within this login servlet using a
RequestDispatcher command), I try to access a variable "usr" via the following:

   session = request.getSession();
   user us = (user) session.getAttribute("usr");

When I test the JSP using the Inprise server I receive the following exception:

Java Server Page Translation Error
Error during compilation :

D:\Java\Inprise\AppServer\tmpdir\default\pagecompile\jsp\_jsp\_PageHolder.java:86:

cannot resolve symbol
symbol  : method getAttribute  (java.lang.String)
location: interface javax.servlet.http.HttpSession
   user us = (user) session.getAttribute("usr");
 ^
+++
When I compile the JSP's generated servlet source code using JBuilder and then
test the JSP using the Inprise server I receive the following exception:

java.lang.NoSuchMethodError: javax.servlet.http.HttpSession: method
getAttribute(Ljava/lang/String;)Ljava/lang/Object;

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

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



JSP and tomcat question!

2000-10-26 Thread gsong - Geun-Yeong Song

When I update JSP page, I refresh the browser to see the updated page.  It
works for a while, then it displays the old, the page before few updates,
page.  Only way to make it display the page updated
properly, I have to restart the tomcat.  The other problem I'm having is
whenever I restart tomcat, I
have to clean up the folder /tomcat/work/localhost_8080%2Fexamples/.
Otherwise, it doesn't work.
Does anybody know what might be causing this problem???

Thank you!

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

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

2000-10-26 Thread Yamijala, Kalyan

OOPS!! the link is www.systran.org or www.systransoft.com

-Original Message-
From: Yamijala, Kalyan
Sent: Thursday, October 26, 2000 4:13 PM
To: 'A mailing list about Java Server Pages specification and reference'
Subject: RE: Beans to do International conversions


Systran is another company that is big into translation. They actually do
web based translation also. But Machine translation is never accurate.
Inspite of all the advances we have in technology, machine translation is
still unreliable and the final product has to be cross checked by human
translators.Check out www.systran.com.

(This doesn't answer the original question however, 'cos I don't know about
"multilingual" beans either :^). Actually I think there aren't any.)


-Original Message-
From: Spike, Stephanie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 3:57 PM
To: [EMAIL PROTECTED]
Subject: Re: Beans to do International conversions


IBM offers a product that will translate English to seven other languages
automatically, I don't know what it is called or what the price tag is like
but I do know it does English/Italian very well.  Hope this helps, Stephanie

-Original Message-
From: Karau, Joe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 3:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Beans to do International conversions


Doug, I don't know of any way to automatically translate from one language
to another because of all the considerations that go along with translating
between languages, not only the words but also the grammar would have to be
translated.  However, if you do happen to find one, I'd greatly appreciate
it if you could let me know.  About the 'page code detection of language'
I'm not quite sure what you mean, so I can't help you there.

Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629


-Original Message-
From: Doug W [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 1:42 PM
To: [EMAIL PROTECTED]
Subject: Beans to do International conversions


Anyone know of any beans to do translation of text from one language to
another?
must be Unicode complaint

Also, are there any beans to automatic page code detection of the language?

thanks

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

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

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

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

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

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

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

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



Re: Problem calling Oracle

2000-10-26 Thread Parminder Arora

is there any way to get the error code frm a stored proc...in Java??

Thanks

John Pallozzi wrote:

> Hello,
>
> I am trying to do a "proof of concept" exercise where I am trying to call
> an Oracle DB and return one row of data, then print it out to the browser
> with JSP.
> Below is my JSP code, my Bean code, and the error I am receiving. Can
> anyone tell me what I am doing wrong?
>
> On a related note I am trying to debug this JSP page using Visual Cafe and
> Tomcat  and I am receiving an error when the debugger tries to load
> org.apache.tomcat.startup.Tomcat.class, it essentially says it can't find
> the class. I followed the directions I found at :
>
> http://people.netscape.com/chanezon/tech/java/tomcat/debug_jsp_in_cafe.html
>
> To set up a debug environment for JSP with Visual Cafe and Tomcat, and
> still get the same error. Any help there would be greatly appreciated as
> well.
>
> JSP CODE:
>
> <%@ page import="java.sql.*" %>
> <%@ page import = "helloracle.HelloOracleBean" %>
> 
> <%
> Connection connection = null;
> Statement statement = null;
> ResultSet results = null;
>
> HelloOracleBean line = new HelloOracleBean();
>
> try{
>
> Class.forName("oracle.jdbc.driver.OracleDriver");
> String url = "jdbc:oracle:[EMAIL PROTECTED]";
> String email_val = "[EMAIL PROTECTED]";
> String query = "SELECT EMAIL, FNAME, LNAME FROM MY_TABLE WHERE EMAIL = " +
> email_val;
> connection = DriverManager.getConnection(url,"userid","password");
> statement = connection.createStatement();
> results = statement.executeQuery(query);
> if(results.next()) {
>
>  nline.setEmail(results.getString("EMAIL"));
>  nline.setFname(results.getString("FNAME"));
>  nline.setLname(results.getString("LNAME"));
>
>  }
>
>  connection.close();
> }
>
> catch (ClassNotFoundException e) {
>
> System.err.println("Could not load database driver!");
>
> }
>
> catch (SQLException e) {
>
> System.err.println("Could not connect to the database!");
>
> }
>
> finally{
>
> try { if (connection != null) connection.close(); }
> catch (SQLExecption e) {}
>
> }
>
> %>
> 
> 
> 
> 
> 
> Email:
> 
> 
> 
> First Name:
> 
> 
> 
> Last Name
> 
> 
> 
> 
> 
>
> BEAN CODE:
>
> package helloracle;
>
> import java.util.*;
>
> public class HelloOracleBean {
>
>  String passed_email;
>  String passed_fname;
>  String passed_lname;
>
>   public void setEmail(String email) {
>
> passed_email = email;
>
>  }
>
>   public void setFname(String fname) {
>
> passed_fname = fname;
>
>  }
>
>   public void setLname(String lname) {
>
> passed_lname = lname;
>
>  }
>
>   public String getEmail() {
> return passed_email;
>   }
>
>   public String getFname() {
> return passed_fname;
>   }
>
>public String getLname() {
>   return passed_lname;
>   }
>
> }
>
> ERROR:
>
> Location: /examples/jsp/helloracle/helloemail.jsp
> Internal Servlet Error:
> org.apache.jasper.JasperException: Unable to compile class for
> 
>JSP/jakarta-tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fhelloracle_0002fhelloemail_0002ejsphelloemail_jsp_0.java:124:
>
> Class jsp.helloracle.SQLExecption not found in type declaration.
> catch (SQLExecption e) {}
>^
> 1 error
>
>at java.lang.Throwable.(Compiled Code)
>at java.lang.Exception.(Compiled Code)
>at javax.servlet.ServletException.(Compiled Code)
>at org.apache.jasper.JasperException.(Compiled Code)
>at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
>at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code)
>at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compiled
>
> Code)
>at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled
> Code)
>at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled
> Code)
>at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
>at javax.servlet.http.HttpServlet.service(Compiled Code)
>at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
> Code)
>at org.apache.tomcat.core.ContextManager.service(Compiled Code)
>at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled
>
> Code)
>at org.apache.tomcat.service.TcpConnectionThread.run(Compiled
> Code)
>at java.lang.Thread.run(Compiled Code)
>
> Thanks,
>
> John P.
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
T

Re: TO T A Flores

2000-10-26 Thread T A Flores

I stated that I do not do any processing in my JSP's, there is only
enough logic in my JSP to display what I need. JSP's were developed to
separate logic from presentation.  Use a SERVLET there is already too
much processing that takes place in a JSP.  Go from the JSP to the
servlet back to the JSP.

- Original Message -
From: "Ganesh N.M" <[EMAIL PROTECTED]>
Date: Thursday, October 26, 2000 3:15 pm
Subject: TO T A Flores

> Flores,
>
> Can u just ell me how u r calling/using  this  code snippet in
> JSP.
>
> i.e getConnection() u used in the following?
>
> Please give me the full coding.
>
> Ganesh
>
> -Original Message-
> From: T A Flores
> To: [EMAIL PROTECTED]
> Sent: 10/20/00 4:11 AM
> Subject: Re: TO T A Flores
>
> No, because I am not re-connecting to the database.  I do not perform
> my processing in my JSP's.  Now, let me ask you this.  When you close
> your connection in the servlet don't you loose the result set?
> Additionally, I do not use (regular) beans to get my connections I use
> Weblogic's Connection pooling features then perform JNDI lookup.  This
> way my code is completely portable.  See the following code snippet:
>
> public Connection getConnection ( ) {
> try{
> Context context = new InitialContext ( );
> javax.sql.DataSource ds = ( javax.sql.DataSource ) context.lookup
> ( "DbDataSource" );
>  conn = ds.getConnection ( );
>  }catch ( NamingException n){
>  n.printStackTrace( );
>  }catch ( SQLException s){
>  s.printStackTrace( );
>  }catch ( Exception ex ){
>  ex.printStackTrace( );
> }
> return conn;
> }
>
> Final though do we see too much processing in JSP's.
>
>
>
> - Original Message -
> From: marco <[EMAIL PROTECTED]>
> Date: Thursday, October 19, 2000 3:00 pm
> Subject: TO T A Flores
>
> > Hi all,
> > The use of all this vector and hashtable is not memory killer in JSP
> > processing???
> > Is't better to use directly the resultset in the JSP Page
> > like:
> > ..
> > rs = stmt.excuteQuery(strSql);
> > while(rs.next()){
> > %>
> > 
> ><%= rs.getInt("ID") %>
> > 
> > <%
> > }
> > ...
> >
> > what of this method is better???
> > Why you use a servlet and not a JavaBean to get the ResultSet
> > I use a JavaBean that connect to DB using connectDB() method,
> > extract the
> > ResultSet using getRs() method and disconnect DB using
> > disconnectDB()...i write this simple Bean 'cause i think is better
> > to use it... but know i'm
> > not sure... can you explain why you use this method to access DB???
> >
> > Thanx, mark
> >
> >
> >
> >
> > > I think if you were more specific about your exact problem you
> might> > get a little more assistance.  At any rate, below are a
> couple> of code
> > > snipets.  I use a servlet to perform the query and pass the
> > result set
> > > to a JSP.  I think the following will at least give you a very
> good> > start.
> > >
> > > In the servlet . . . .
> > >
> > >  rs = stmt.executeQuery( sql );
> > >  while (rs.next( ) ){
> > >
> > >  Vector vector = new Vector();
> > >  vector.add(new Integer(rs.getInt("var1")));
> > >  vector.add(new Integer(rs.getInt("var2")));
> > >  vector.add(rs.getString("var3"));
> > >  vector.add(rs.getString("var1"));
> > >  hashtable.put(rs.getString("var1"),vector);
> > >
> > >  session.setAttribute("Name the hashtable", hashtable);
> > >
> > > then in the JSP . . . .
> > > <%
> > >  Enumeration enum=null;
> > >  Hashtable ht = new Hashtable();
> > >  Vector vec = new Vector();
> > >
> > >  try{
> > >  ht =(Hashtable) session.getAttribute("Hashtable
> > > Name");
> > >  enum = ht.keys();
> > >  int i=0;
> > >  }catch(Exception e){System.out.println(e.toString());}
> > > %>
> > > <%
> > >while(enum.hasMoreElements()){
> > >vec = (Vector) ht.get(enum.nextElement());
> > > %>
> > > 
> > > 
> > > <%=vec.get(0).toString()%>
> > > <%=vec.get(1).toString()%>
> > > <%=vec.get(2).toString()%>
> > > 
> > > <%
> > >  }
> > > %>
> > >
> >
> >
>

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

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

JSP and java object

2000-10-26 Thread Thang Nguyen

Hi,

I have this basic question,  i have been successfully using servlet within HTML or
JSP such as form method:

http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: value from 1 jsp to another in difft frames

2000-10-26 Thread Andy Purshottam

Please look on page 129 section "More about window references"
in JavaScript Bible 3rd edition by Danny Goodman.

Please learn to use a library or bookstore.
Andy


-Original Message-
From: Mukka, Srikanth [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 10:40 AM
To: [EMAIL PROTECTED]
Subject: Re: value from 1 jsp to another in difft frames


Hi Nav,

Sounds great, is it like using getParameter, get the value and use it in the
scriplets in the different .html file.
Clarify.

Bye
Srikanth

-Original Message-
From: Navpreet [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 26, 2000 12:36 PM
To: [EMAIL PROTECTED]
Subject: Re: value from 1 jsp to another in difft frames


hi sri,
u can try using javascript for the purpose. remeber the parent or top window
is the
same for both the frames!

Navpreet

"Mukka, Srikanth" wrote:

> Hi All,
>
> How to pass value from one jsp to other jsp which are displayed on
different
> frames.
>
> Bye
> Srikanth
>
> -Original Message-
> From: Jitesh Gangwani [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 25, 2000 5:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Happy Diwali Greetings
>
> Hello EveryOne
>
> Hope this diwali will light up your dreams and show you the way to make
them
> true..
>
> Diwali is more than a religious celebration...
>
> It is the only time in the year when you can find every nook and corner
> lighted up.. So you should look out for all the new opportunities which
are
> shining there for you...
>
> Enjoy and put some sparkle in life of everyone around you...
>
> HAPP e-DIWALI...
>
> Your Friend
>
> Jitesh
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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

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

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

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

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



Applet and javascript...HELP

2000-10-26 Thread Henry Hooi Tak Keong

Hi all,

I'm need to encode certain form fields on my jsp page before submitting it
for processing because the information keyed in by the user is sensitive.
Does anyone have any recommendations on how I could go about it?

To resolve this issue, I have employed using an applet to encode the user's
information. The textfields used is still of a html form, and I used
javascript to invoke a method in the applet class on the textfields of the
form to help resolve this issue. However, that has led me to several
problems...

1) I can't seem determine when the applet has fully loaded on the html page
because if I press the submit button and the applet is still loading, then
the data in the forms will be posted without being encrypted first.

2) I realised that when I use this applet on form fields in a page with
frames , it somehow doesn't get loaded properly no matter how long I wait
for it to load. When I apply this applet to a page without frames, it loads
up almost instantaniously. Any suggestions on how I could resolve this data?

I have tried using the  tag to help download the applet but I'm
confused on how to reference it as an object, in terms of the DOM.
Initially, I can reference the html applet tag via
document.appletname.methodname.

This problem has been eluding me for days already and I really need help. I
realised that this may not be a the proper mailing list but I'm sure someone
here must have come across these issues before. I couldn't find an applet
mailing list from SUN, and if any of you found it, I would be glad if you
could pass it on. Thanks everyone.

Cheers'
Henry

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

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



xml parser ??

2000-10-26 Thread sufi malak

could you please tell me where to find these two packages :
import org.w3c.dom.NodeList;
import com.ibm.xml.parsers.*;
and where to install them.
Thanks
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

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

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



Re: JSP & LDAP

2000-10-26 Thread Martin Smith

Here's a trivial example (and please excuse the sloppiness)--



<%@ page import="javax.naming.*, javax.naming.directory.*, java.util.Properties" %>

<%@ page import="java.util.Hashtable, java.util.Enumeration, java.io.*" %>




   




<% for (int i=1;i<5;i++) {%>
>Hello, World>
<% } %>

Now let's get some data from the radiator LDAP directory . . .

<% Attributes attribs = null;
NamingEnumeration names = null;
 DirContext dctx = null;

 Hashtable env = new Hashtable();
  env.put(Context.INITIAL_CONTEXT_FACTORY,
  "com.sun.jndi.ldap.LdapCtxFactory");
  env.put(Context.PROVIDER_URL, "ldap://radiator.usitc.gov:389/o=U.S.
Government,c=US");

SearchControls ctls = new SearchControls();
  String scope = "ou=Operations,ou=International Trade Commission";
 SearchResult item;
 Attribute mail, phone, title;
 NamingEnumeration attrvals;
 String pstring;


 try  {
  dctx = new InitialDirContext(env);
  names = (NamingEnumeration)dctx.search(scope, "(objectclass=person)", ctls);

try {
 if ((names != null) &&  names.hasMore()) {
int i=0;

%>

NameDescriptionE-Mail
<%
while (names.hasMore()) { i++;
   item = (SearchResult)names.next();
   attribs = item.getAttributes();

%>


<%= i %><%= item.getName() %>
<%   phone = attribs.get("comment");
   attrvals = phone.getAll();
   pstring = "";
   while (attrvals.hasMore()) pstring = pstring + attrvals.next();
%>
<%= pstring %>
<%   mail = attribs.get("mail");
   attrvals = mail.getAll();
   pstring = "";
   while (attrvals.hasMore()) pstring = pstring + attrvals.next();
%>
<%= pstring %>

<%
}  // End while clause

%>  <%
} // End if clause
 else {
  System.out.println("No more person items in scope" + scope);
 } // End else clause
 } // End try
  catch (NamingException e) {
 e.printStackTrace();
   } // End catch NamingException
   catch (Exception ex) {
ex.printStackTrace();
 } // End catch general exception


  dctx.close();
  } catch (Exception e) { System.out.println("No person objects found in " +
scope); }

%>

Martin

Jason Cheek wrote:

> I am new to Java but here is what has worked for me.
> I am using the Netscape SDK for Java to access our Netscape Directory
> server. This includes code samples and several beans to do the work for you.
> http://developer.netscape.com/tech/directory/index.html?content=downloads.ht
> ml
> For the book readers out there:
> I have found the "LDAP Programming with Java" book (ISBN: 0201657589), by
> Rob Weltman and Tony Dahbura, to be very helpful with using the SDK.
>
> Regards,
> Jason
>
> -Original Message-
> From: Louis [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 25, 2000 7:16 AM
> To: [EMAIL PROTECTED]
> Subject: JSP & LDAP
>
> Hi,
> I just install Netscape Directory server with the sample database.  Is
> there anyone can provide a sample jsp code which can connect to ldap?
>
> Thanks
>
> Louis
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



HTML CODE DISPLAYED...

2000-10-26 Thread Thomas John

Hi all,
 I am facing one problem in my jsp pages. When i run my application,
in between if i press browser back button, the entire HTML code is
displayed on the screen.
I am using JSP ,servlets & Weblogic .
What could be the reason?
Like to get your suggestions...!

Thank in advance.
Thomas John

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

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



Re: JSP History

2000-10-26 Thread Purna Chandra Rao Pavuluri

Hi ,

I suppose it is 0.9

Regds.
Purna

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

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



new draft of JSP 1.2 now available

2000-10-26 Thread Eduardo Pelegri--Llopart

A new draft of the JSP 1.2 specification is now available.  The draft is
available for download as a PDF file from:

http://java.sun.com/aboutJava/communityprocess/first/jsr053/index.html

- eduard/o

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Please Give Samples for JSP-XML-XSL

2000-10-26 Thread Marco M

Hi
okhere is a brief explanation...

- you have to write your own JSP Custom tags that fetches its body (the XML
content of the page) and sends it to an XSLT processor
- ideally, your JSP Tag has an attribute that specifies which stylesheet to
use

then, everything is ready for writing JSP in XMLbelow is a simple
example





  A Simple Example




in the java code of your JSP Tag you have to write the code for fetching the
content (getBodyContent() )
then you instantiate an XSLTProcessor (XSLTProcessor proc = new
XSLTProcessor() )
then the processor does the rest (proc.process(xml,xsl,out) )  where out is
JspWriter (you got it using JspWriter writer =
getBodyContent().getEnclosingWriter()


and that's it

hope that this helps

anyway, you can check also this sites:

- http://jsptags.com
- http://jakarta.apache.org

they have much staff about JSP Custom Tags


regards
marco

> -Original Message-
> From: EXT Ganesh N.M [mailto:[EMAIL PROTECTED]]
> Sent: 27. October 2000 0:49
> To: [EMAIL PROTECTED]
> Subject: Please Give Samples for JSP-XML-XSL
>
>
> Hi All,
>
> Please help me out by giving me some sample codes and
> explanations for the
> use of XML, XSL in JSP.
>
> Thanx in Advance.
>
>
> Ganesh
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



Re: Appliction Object performance

2000-10-26 Thread Shawn Zhu

If you store them in Application Object, then 12 combo-boxes should be much
a problem.  Since Application Object doesn't grow in propotion to visitors
unlike Session Objects.

> -Original Message-
> From: GThomas [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 24, 2000 6:50 PM
> To: [EMAIL PROTECTED]
> Subject: Appliction Object performance
>
>
> Hi All,
>
> I have an application that uses about 12 Combo-boxes.I plan
> to store the
> values of all these in different Collection objects within the
> application object.
>
> These combo-boxes are used in multiple places across the application.
>
> Wanted to know if there is any drawback in using the above method in
> terms of performance or is there a preferred way to do this.
>
> I have searched the list and found that there are posts related to
> storing objects in the application object.
>
> My main concern here is performance. Please advise.
>
> Thanks in advance.
> Gigen Thomas
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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