LOC counter

2003-03-06 Thread Karau, Joe
One of my managers was recently asking about the size of our project.

So, I started looking around on the web and I could not find a good LOC
counter.

Does anyone know of a tool (freeware preferable) that will count the lines
of code for java source and JSP's, or even one for each.
Thanks.

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

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: Word API

2003-02-07 Thread Karau, Joe
There is support for reading and writing microsoft formatted documents (.doc
and .xsl for sure) on the jakarta web-site.  Don't recall the names of the
api's right now (POI?). I haven't started using them yet, but from what I
read about them I am planning on using the .xsl one api in a similar manner.

Hope that helps.

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



-Original Message-
From: Wesley Choate [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 2:03 PM
To: [EMAIL PROTECTED]
Subject: Word API


Just to see if there is anyway to do this.  I am needing to create an
application that will display a Microsoft Word document that has fields
defined in it.  Then the user can modify these fields, and then save these
fields back to a database.  I know you can do this using Active X and such,
but can I do this anyway in JSP/Java?

Thanks,
Wesley Choate
Programmer / Analyst
Lavender  Wyatt Systems, Inc.
[EMAIL PROTECTED]
5805 West 12th Street
Little Rock, AR  72204
(501)664-7039

Should array indices start at 0 or 1? My compromise of 0.5 was rejected
without, I thought, proper consideration. - Stan Kelly-Bootle

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com



Re: File not found???

2002-04-17 Thread Karau, Joe

Not sure if a type or not, but you are using two different file names.

myfile01.txt and file01.txt.

May want to double-check that.

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


-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: Re: File not found???


CL,
You need to use the getRealPath() method in the ServletContext class in
order to get the path to the file in your web application.

String myPath =
getServletConfig().getServletContext().getRealPath(/WEB-INF/files/myfile01.
txt);
br = new BufferedReader(new FileReader(path));

In order to check to see if your path string is correct, you should check
and make sure myPath is not null. If it is null, then the path is incorrect.

This problem can also be found in the archives of the servlet-interest
mailing list.

Regards,

Richard
At 10:57 AM 4/17/2002 -0700, you wrote:
I have a file
D:\tomcat4.0/webapps/myroot/WEB-INF/files/myfile01.txt


A/   If I try to open file01.txt on the command line, it is ok.
D:\tomcat4.0/webapps/myroot/WEB-INF/classesjava  MyApp  files/myfile01.txt


B/  However, I have problem when running a servlet,
D:\tomcat4.0/webapps/myroot/WEB-INF/classes/MyServlet.class

http://myserver:8080/myroot/servlet/MyServlet

1/  I can list all  the files in
D:\tomcat4.0\webapps\myroot\WEB-INF\files

2/  I can not open this file;  I get error message to open
java.io.FileNotFoundException: /WEB-INF/files/file01.txt (The system
cannot find the path specified)

I try to open unsuccessful with
br = new BufferedReader(new FileReader(/WEB-INF/files/file01.txt ));
br = new BufferedReader(new FileReader(WEB-INF/files/file01.txt ));


Thanks,
CL

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: javax.mail.NoSuchProviderException

2002-03-22 Thread Karau, Joe

Just ran into this exact problem yesterday believe it or not.  

 Add the javamail jars to the external directory of the test environment.

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


-Original Message-
From: Chan Mal [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 10:42 AM
To: [EMAIL PROTECTED]
Subject: javax.mail.NoSuchProviderException


I'm encountering following exception on Email Object
in my Jsp: javax.mail.NoSuchProviderException: No
provider for Address type: rfc822

 I am running a websphere Test Environment in Visual
Age .  Please let me know the solution for this
Excep...


Thanks.


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Urgent: Swing And JSP Communication

2002-03-19 Thread Karau, Joe

Not sure how you would do it to a JSP.  However, you could open a URL
connection to a servlet and send the serializable object to the servlet.



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


-Original Message-
From: Debopam Ghoshal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:25 AM
To: [EMAIL PROTECTED]
Subject: Urgent: Swing And JSP Communication


Dear All,
Can anyone please tell me how to send an object from a swing application to
a JSP running on Tomcat 4. For example how can I print a string sent from
the
swing application, on the tomcat server console.

Thanx in advance,
Regards,
Debopam.

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



HttpServletRequest characterEncoding

2002-02-28 Thread Karau, Joe

Hi,
I'm working on internationalizing our site.  So far, every thing is
coming from the server in UTF-8 fine.  However, when a user sends a request
to our server, the HttpServletRequest.getCharaceterEncoding method is
returning the encoding of iso-8859-1.  I've found that in the newer
Servlet spec, I still have to use 2.2, there is a method for setting the
character encoding on the request object, but I have not found any way of
doing it in 2.2.

Any help, tips, or ideas would be greatly appreciated.  Thanks.

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

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: HttpServletRequest characterEncoding

2002-02-28 Thread Karau, Joe

I was afraid of that.  I've already coded that into a workaround.  Was just
hoping there was a cleaner way of doing.
Oh well.  Thanks.

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


-Original Message-
From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 1:08 PM
To: [EMAIL PROTECTED]
Subject: Re: HttpServletRequest characterEncoding


Karau, Joe wrote:

 Hi,
 I'm working on internationalizing our site.  So far, every thing
is
 coming from the server in UTF-8 fine.  However, when a user sends a
request
 to our server, the HttpServletRequest.getCharaceterEncoding method is
 returning the encoding of iso-8859-1.


Yes, this is a problem caused by browsers not complying with the
HTTP spec. Most of them don't send a Content-Type request header
with the charset used for encoding the parameters.

 I've found that in the newer
 Servlet spec, I still have to use 2.2, there is a method for setting the
 character encoding on the request object, but I have not found any way of
 doing it in 2.2.

 Any help, tips, or ideas would be greatly appreciated.  Thanks.


In 2.2 you have to do the conversion yourself, like this:

   String requestCharset = UTF-8;
   String encodedValue = request.getParameter(myParam);
   String decodedValue =
 new String(encodedValue.getBytes(8859_1), requestCharset);

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Session Cookie HELP!!!

2001-09-20 Thread Karau, Joe

I believe all you have to do when you set your cookie is:

cookie.setPath(/);

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


-Original Message-
From: Hans Liebenberg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 8:53 AM
To: [EMAIL PROTECTED]
Subject: Session Cookie HELP!!!


Hi

I sniffed the http output from my servlet and the headers sent were:

HTTP/1.0 200
Date: Thu, 20 Sep 2001 13:38:27 GMT
Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6
DAV/1.0.2 PHP/4.0.5 mod_perl/1.24_01 mod_gzip
Pragma: No-cache
Cache-Control: No-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie2: JSESSIONID=yhf5wydm11;Version=1;Discard;Path=/thh
Set-Cookie: JSESSIONID=yhf5wydm11;Path=/thh
Content-Type: text/html;charset=ISO-8859-1

I have a problem which is being caused by the fact that the Set-Cookie
header is setting Path=/thh for the session IS
Is it possible to override this and force the servlet engine to set the path
to / without changing my context name 

Desperate
Hans

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

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

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

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



Re: Column index out of range ???

2001-09-10 Thread Karau, Joe

What's the code for where you build your SQL, retrieve the columns after
executing the query, and the table definition(s) for the table(s) that you
are querying?

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 1:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Column index out of range ???


No, it's not like that, because I am trying the qyery from the command line
of Mysql and it works, but not in jsp file.
thanks

From: Satyanarayan Divakar [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Column index out of range   ???
Date: Mon, 10 Sep 2001 13:04:56 -0500

That means u are referring to a cloumn that is not present in the result
set
you have obtained..

-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 1:04 PM
To: [EMAIL PROTECTED]
Subject: Column index out of range ???


Could you please tell me what this error means :

Error: 500
Location: /pcinfo/pager-jdbc.jsp
Internal Servlet Error:

javax.servlet.ServletException: java.sql.SQLException: Column index out of
range.


Thanks


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

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

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

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

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


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

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

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

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

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



Re: Column index out of range ???

2001-09-10 Thread Karau, Joe

try using the query:

select distinct(user) as user from pcinfo order by user

... just using select disinct user as user from pcinfo order by user
is most likely returning a column named distinct user  I'm not sure if
that is part of the SQL standard or not, however it is very common among
relational databases.


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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 2:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Column index out of range ???


Here is the code :

FORM NAME=productGoto
FONT FACE=Arial,Helvetica SIZE=-2
sql:statement id=stmt1 conn=conn1
  sql:query
select * from pcinfo order by User
  /sql:query
  %-- loop through the rows of your query --%
  Select By User:
SELECT NAME=productList onChange=gotoFunction() onBlur=return
options[0].selected = true
   OPTION VALUE=  Users  /OPTION
   OPTION VALUE=ALLAll  /OPTION
  sql:resultSet id=rset2
OPTION VALUE= 'sql:escapeSqlsql:getColumn
position=2//sql:escapeSql' sql:getColumn position=2//OPTION
  /sql:resultSet
/SELECT
/sql:statement
/FORM

It works fine with * (And I got duplication fields in the drop down
list)but when I put
select distinct User from pcinfo order by User I got the error :
Column index out of range.

thanks.



From: Karau, Joe [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Column index out of range ???
Date: Mon, 10 Sep 2001 13:37:30 -0500

What's the code for where you build your SQL, retrieve the columns after
executing the query, and the table definition(s) for the table(s) that you
are querying?

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 1:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Column index out of range ???


No, it's not like that, because I am trying the qyery from the command line
of Mysql and it works, but not in jsp file.
thanks

 From: Satyanarayan Divakar [EMAIL PROTECTED]
 Reply-To: A mailing list about Java Server Pages specification and
 reference [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Column index out of range   ???
 Date: Mon, 10 Sep 2001 13:04:56 -0500
 
 That means u are referring to a cloumn that is not present in the result
 set
 you have obtained..
 
 -Original Message-
 From: sufi malak [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 10, 2001 1:04 PM
 To: [EMAIL PROTECTED]
 Subject: Column index out of range ???
 
 
 Could you please tell me what this error means :
 
 Error: 500
 Location: /pcinfo/pager-jdbc.jsp
 Internal Servlet Error:
 
 javax.servlet.ServletException: java.sql.SQLException: Column index out
of
 range.
 
 
 Thanks
 
 
 _
 Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
 

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

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


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

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

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

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

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

Re: Column index out of range ???

2001-09-10 Thread Karau, Joe

Yes, sorry about previous comment, didn't look closely enough at the code.
You'd have to do what I suggested if you were retrieving the column by name
instead of by position.

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


-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Column index out of range ???


That's because you're asking for column 2.  When you use the *, it's
returning enough columns.  When you only ask for User, you have to change
your sql:getColumn's to position=1.
(*Chris*)

- Original Message -
From: sufi malak [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 12:08 PM
Subject: Re: [JSP-INTEREST] Column index out of range ???


 Here is the code :

 FORM NAME=productGoto
 FONT FACE=Arial,Helvetica SIZE=-2
 sql:statement id=stmt1 conn=conn1
   sql:query
 select * from pcinfo order by User
   /sql:query
   %-- loop through the rows of your query --%
   Select By User:
 SELECT NAME=productList onChange=gotoFunction() onBlur=return
 options[0].selected = true
OPTION VALUE=  Users  /OPTION
OPTION VALUE=ALLAll  /OPTION
   sql:resultSet id=rset2
 OPTION VALUE= 'sql:escapeSqlsql:getColumn
 position=2//sql:escapeSql' sql:getColumn position=2//OPTION
   /sql:resultSet
 /SELECT
 /sql:statement
 /FORM

 It works fine with * (And I got duplication fields in the drop down
 list)but when I put
 select distinct User from pcinfo order by User I got the error :
 Column index out of range.

 thanks.



 From: Karau, Joe [EMAIL PROTECTED]
 Reply-To: A mailing list about Java Server Pages specification and
 reference [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Column index out of range ???
 Date: Mon, 10 Sep 2001 13:37:30 -0500
 
 What's the code for where you build your SQL, retrieve the columns after
 executing the query, and the table definition(s) for the table(s) that
you
 are querying?
 
 Joseph Karau
 Kingland Systems
 [EMAIL PROTECTED]
 507-536-3629
 AIM: jkara3629
 
 
 -Original Message-
 From: sufi malak [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 10, 2001 1:36 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Column index out of range ???
 
 
 No, it's not like that, because I am trying the qyery from the command
line
 of Mysql and it works, but not in jsp file.
 thanks
 
  From: Satyanarayan Divakar [EMAIL PROTECTED]
  Reply-To: A mailing list about Java Server Pages specification and
  reference [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: Column index out of range   ???
  Date: Mon, 10 Sep 2001 13:04:56 -0500
  
  That means u are referring to a cloumn that is not present in the
result
  set
  you have obtained..
  
  -Original Message-
  From: sufi malak [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 10, 2001 1:04 PM
  To: [EMAIL PROTECTED]
  Subject: Column index out of range ???
  
  
  Could you please tell me what this error means :
  
  Error: 500
  Location: /pcinfo/pager-jdbc.jsp
  Internal Servlet Error:
  
  javax.servlet.ServletException: java.sql.SQLException: Column index out
 of
  range.
  
  
  Thanks
  
  
  _
  Get your FREE download of MSN Explorer at
 http://explorer.msn.com/intl.asp
  
 
===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
  
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
  
 
===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
  
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 
 
 _
 Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
 

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

Re: if with null ??

2001-09-06 Thread Karau, Joe

Most probably there is a type somewhere between you form's fields, and the
name of the parameters you are trying to retrieve.

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 1:46 PM
To: [EMAIL PROTECTED]
Subject: if with null ??


I have a file called add.jsp, the form that has the input fields and the
action processing are all in this file, what I want is :
when this file is for the first time displayed it will not be processed but
only show the form, The problem is when I filled up all the fields and I
submit the if statment never executed.

Thanks

%
String ipaddress = request.getParameter(ipaddress);
System.out.println(ipaddress  + ipaddress);
String user  = request.getParameter(user);
String newname   = request.getParameter(newname);
String jack   = request.getParameter(jack);
String os= request.getParameter(os);
String pc= request.getParameter(pc);
String processor = request.getParameter(processor);
String memory= request.getParameter(memory);
String domain= request.getParameter(domain);
%
% if ( (ipaddress!=null) (user!=null) (newname!=null) (jack !=null)
(os !=null)
(pc !=null) (processor!=null) (memory !=null) (domain !=null))
{ %

DTABASE OPERATION
% } %

form method=POST action=add.jsp
input fields here
form

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

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

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

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

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



Re: how to include spaces in jsp page?

2001-07-30 Thread Karau, Joe

sure just do this
nbsp;

It is already HTML, why put it in a code snippet.  But if you REALLY want to
just do this:
%=bsp;%

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


-Original Message-
From: srinivas puppala [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: how to include spaces in jsp page?


Hi All,
I am trying to display some hierarchy in jsp. I am tryign to use nbsp for
spaces with %=nbsp; %.

But it is not working. Can some guru guide me on how to get spaces in to the
display from a jsp page ?

TIA.
srini

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

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

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

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

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



Re: how do I make a new class name = a variable?

2001-07-24 Thread Karau, Joe

you could...

but the
request.getParameter(String parameterName)
method returns a String.

All you would need to do is:
String sLoginName = request.getParameter(name);

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


-Original Message-
From: Richard Diaz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 1:47 PM
To: [EMAIL PROTECTED]
Subject: how do I make a new class name = a variable?


I'm taking the paramater from the previous page and moving it into the
sLogingName varible.

Then I try to create an Account Bean using the name of the variable... can I
do this?

%
String sLogingName = new String (request.getParameter(name));
%

jsp:useBean id=LogingName scope=session class=Account/

%

etc...



thanks!
Rich

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

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

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

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

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



Re: change html form elements within a %@ include file fileex.ht ml

2001-07-13 Thread Karau, Joe

input type=text name=[element_name] value=

where

* is either %=request.getParameter([some_parm_value_name])%
or
%= (String)request.getAttribte([some_att_value_name])%

or

%= [some_string_object] %

otherwise, if it must be done dynamically, you can use javascript...

script language=JavaScript

document.[form_name].[element_name].value = [value to set to];
/script

hope one of these is what you need.

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


-Original Message-
From: Ze Luis [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 2:56 PM
To: [EMAIL PROTECTED]
Subject: change html form elements within a %@ include file
fileex.html


this is my code:

% response.setHeader(Pragma,no-cache);%
%@ page import=java.io.* %
%@ page import=javax.servlet.*%
%@ page import=javax.servlet.http.*%
%@ page import=javax.servlet.http.HttpSession%
%@ page import=java.io.IOException%
%@ page import=java.io.*%
%@ page import=java.net.*%
%@ page import=java.sql.*%
%@ page import=java.util.Properties%
%@ page import=java.net.InetAddress%
%@ page import=java.rmi.*%
%@page language=java errorPage=errorpage.jsp %
%@ include file=carregadriversqlserver.jsp %
%-- Verifica se o usuario esta logado --%
%session = request.getSession(true);%
% if (session.getValue(login.Logado) == sim)
{
 response.sendRedirect(nao_logado.html); }
else
{  %
 %@ include file=altera_senha_colegio.html%
%--

 here i need set the value of a text element in a form within
 altera_senha_colegio.html named Teste with value changed value.
 is it possible?
 examples are welcome...
 thanks

--%
 %
 }
%
%-- Termino da verificacao do Login de usuario --%

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

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

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

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



Re: change html form elements within a %@ include file fileex.ht ml

2001-07-13 Thread Karau, Joe

Please ignore the majority of my previous reply, did not read the message
close enough. sorry.

The best method would be to use the javascript, unless you want to change
the html into a jsp and do a
jsp:incude page=/altera_senha_colegio.jsp /

instead of doing the include file directive.

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


-Original Message-
From: Ze Luis [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 2:56 PM
To: [EMAIL PROTECTED]
Subject: change html form elements within a %@ include file
fileex.html


this is my code:

% response.setHeader(Pragma,no-cache);%
%@ page import=java.io.* %
%@ page import=javax.servlet.*%
%@ page import=javax.servlet.http.*%
%@ page import=javax.servlet.http.HttpSession%
%@ page import=java.io.IOException%
%@ page import=java.io.*%
%@ page import=java.net.*%
%@ page import=java.sql.*%
%@ page import=java.util.Properties%
%@ page import=java.net.InetAddress%
%@ page import=java.rmi.*%
%@page language=java errorPage=errorpage.jsp %
%@ include file=carregadriversqlserver.jsp %
%-- Verifica se o usuario esta logado --%
%session = request.getSession(true);%
% if (session.getValue(login.Logado) == sim)
{
 response.sendRedirect(nao_logado.html); }
else
{  %
 %@ include file=altera_senha_colegio.html%
%--

 here i need set the value of a text element in a form within
 altera_senha_colegio.html named Teste with value changed value.
 is it possible?
 examples are welcome...
 thanks

--%
 %
 }
%
%-- Termino da verificacao do Login de usuario --%

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

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

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

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



Re: Connection pooling problem

2001-07-11 Thread Karau, Joe

Yes, you should wrap it in a try catch finally construct.  And return the
connection in the finally.  That way, you are GUARANTEED (as long as the
server is not killed in the middle of the code) that the connection will be
returned.

It would be possible to allow the error page to return it, but then you'd
have to place the connection in the session, get it out on the error page,
and return it.  Possible, but not good coding practice.

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


-Original Message-
From: Marino Vittorio [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 3:24 AM
To: [EMAIL PROTECTED]
Subject: Connection pooling problem


Hi gurus, this is the typical layout of my page:

%@ page ... errorPage=error.jsp %
...
%

SQLManager myMan = SQLManager.getInstance();
Connection myConn = myMan.requestConnection();

...
...
...

myMan.returnConnection(myConn);
%

Now, if an exception occurs after requesting a connection to the pool and
before releasing it, that connection is open and is not gonna be closed till
PoolMan timeout. In a production environment with an average of 100 active
sessions this cannot be acceptable. If a page has errors in it after a
product release, all the connection objects in the pool are gonna be open
and unusable in seconds.

Now my question: how can I handle this? Do I need to put everything in
try/catch blocks? Is there any way to pass parameters to the error page?
Thanks. Cheers, Vittorio

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

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

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

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



Re: SCROLLABLE TABLE IN JSP

2001-07-06 Thread Karau, Joe

We've run into the same problem.  What we did to solve was use an iframe
to hold the table contents and put the headers on top.  This did however,
cause the header column widths, and table column widths to be slightly
mismatched though.  Definitely not the most elegant solutions, but it did
work.

(If you run across anything better, would appreciate it if you'd let me
know)

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


-Original Message-
From: chintha ratnasiri [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 11:34 AM
To: [EMAIL PROTECTED]
Subject: SCROLLABLE TABLE IN JSP


Hi,
Can anyone tell me or point to a resource where I can find how to display
table contents in a scrollable table format on a jsp page? This table has a
lot of columns, so if I use DIV STYLE=overflow: auto I do not know how to
deal with the headers when we scroll horizontally. Thanks for any hints.
Chintha
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

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

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

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



Re: dynamic data from a servlet ??? thanks

2001-06-26 Thread Karau, Joe

Not sure what you need help with...

You know how to get values out of a database, correct?

You know how to build arrays in Java, correct?

Just get your data, build the two dimensional array per method spec, and
call the method.

What are you having problems with?

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 10:12 AM
To: [EMAIL PROTECTED]
Subject: dynamic data from a servlet ??? thanks


Hi, I have a servlet that draw charts, it works fine, but the data is
static, here is the function that has the static data :
/**
   * Creates and returns a category data source for the demo charts.
   */
  public CategoryDataSource createCategoryDataSource() {

Number[][] data = new Integer[][]
  { { new Integer(10), new Integer(4), new Integer(15), new Integer(14)
},
{ new Integer(5), new Integer(7), new Integer(14), new Integer(3) },
{ new Integer(6), new Integer(17), new Integer(12), new Integer(7)
},
{ new Integer(7), new Integer(15), new Integer(11), new Integer(0)
},
{ new Integer(8), new Integer(6), new Integer(10), new Integer(9) },
{ new Integer(9), new Integer(8), new Integer(8), new Integer(6) },
{ new Integer(10), new Integer(9), new Integer(7), new Integer(7) },
{ new Integer(11), new Integer(13), new Integer(9), new Integer(9)
},
{ new Integer(3), new Integer(7), new Integer(11), new Integer(10) }
};

return new DefaultCategoryDataSource(data);

  }

Can someone please help me on how to have another servlet that get data from
a database and return the array data, so I can call the above function
snstead like this :
/**
   * Creates and returns a category data source for the demo charts.
   */
  public CategoryDataSource createCategoryDataSource() {
GET THE ARRAY DATA FROM ANOTHER SERVLET HERE
return new DefaultCategoryDataSource(data);

  }

Thanks lot, your help will be appreciated.
Sufi


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

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

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

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

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



Re: Urgent help needed

2001-06-06 Thread Karau, Joe

I'm not sure if it is the same problem but...

We use VA Java as a development IDE, and in the past we had a problem where
a class that we exported from VA Java could not be loaded by any other JVM.
After working with IBM we found that it is because VA Java had a bug and it
was exporting a java class with invalid byte codes.  The error we'd recieve
when trying to load this class was very similar to what you are getting.
I'd try writing a small test stub that uses the class loaded to load the
class, and test on a couple of different JVM's.  The class file that you
have may be corrupt.  If it fails to load in other JVM's as well, you'll
have to contact the authors of the class and see what can be done.

Hope this helps.

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


-Original Message-
From: M Sankar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 11:16 PM
To: [EMAIL PROTECTED]
Subject: Urgent help needed


Hi all,

I am using Netscape Iplanet Web Server and JSP.I am trying out a
cryptography module. Now my application is made and is working fine
using  Tomcat on a trial basis. But when I put these application on
iPlanet, JSP Compiler is throwing an Classformat error. It is showing
the message for a particular Java class which is used for cryptography.
The specific message is Illegal constant pool type.

Given below is the error message::

 failure ( 4941): Internal error: exception thrown from the servlet
service function (uri=/cryptix/intro.jsp): java.lang.ClassFormatError:
DES (Illegal constant pool type), Stack: java.lang.ClassFormatError: DES
(Illegal constant pool type)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass0(Compiled Code)
at java.lang.ClassLoader.defineClass(Compiled Code)
at java.security.SecureClassLoader.defineClass(Compiled Code)
at java.net.URLClassLoader.defineClass(Compiled Code)
at java.net.URLClassLoader.access$1(Compiled Code)
at java.net.URLClassLoader$1.run(Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(Compiled Code)
at java.net.URLClassLoader.findClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClassInternal(Compiled Code)
at Profile.(Profile.java:86)
at Profile.getInstance(Profile.java:65)
at Logintry.createRequest(Compiled Code)
at _jsps._cryptix._intro_jsp._jspService(_intro_jsp.java:91)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
at
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav
a:497)

Any help on this would be great.
Thanks
Sankar

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

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

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

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



Re: disabling the back button

2001-06-01 Thread Karau, Joe

There is no way to guarantee that the user can not somehow use the back
button.

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


-Original Message-
From: King Maurice [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 4:07 PM
To: [EMAIL PROTECTED]
Subject: disabling the back button


Off the subject

I am creating a program which one of the features it does not all you to hit
the back button.

Does someone have a java code for that, if not due to limitation to browser
does any have the code for javascript

Maurice~

- Original Message -
From: sufi malak [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 15, 2001 3:12 PM
Subject: apache + tomcat ??


 Hi,
 I installed Apache to work with tomcat, if I wok from tomcat directly:
 when I type http://mil2wwds10:8080/jetspeed/
 I got http://mil2wwds10:8080/jetspeed/index.jsp
 and everything works fine.

 But if I call from Apache port :
 http://mil2wwds10:80/jetspeed/
 I got only a page that show all the files and directories under jetspeed,
 then I have to click in index.jsp to be shown, and when I click in a link
in
 the index.jsp file, if the link is an html file it works fine, but if it's
a
 jsp or servlet it does not work.


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


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

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


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

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

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

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

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

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



Re: off topic (javascript popup window selection) ???

2001-06-01 Thread Karau, Joe

This is SPECIFICALLY a javascript question.  Sufi, please join a javascript
mailing list and post this question there.  Here is the url for what I feel
is a fairly good javascript mailing list.  It should be able to help you
with questions such as this in the future.

http://www.LaTech.edu/mailman/listinfo/javascript

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 10:19 AM
To: [EMAIL PROTECTED]
Subject: off topic (javascript popup window selection) ???


Hi, I was looking for this in some javascripts sites , but could not find
it, please if you know a web site that has done it , show me the link, or if
you have done it, I will appreciate your help.

from a parent window the user has two radi buttons YES and NO
when the user click in one of them, a pop up window show up with several
checked box, from that pop up window the user can check one or more checked
boxes, then click select button, the popup window disappears and in the
parent window under the radio button selected the user can see the value
selected.

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

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

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

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

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



Re: table applet

2001-05-31 Thread Karau, Joe

If you try to use Swing in an applet, it is going to require the browser to
download a Java2 Virtual Machine.  I your app is going to be for many
people, you may want to rethink.  By the way, not really a JSP question.

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


-Original Message-
From: Nguyen, Thang P [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 10:25 PM
To: [EMAIL PROTECTED]
Subject: table applet


Hi,

It is me again.  Do you have any sample code for JTable (Swing)?  I would
like to create an applet that represents a table with several buttons that
allow me to add/delete a row.   Please let me know where I can get this kind
of code.   Thank you so much in advance.

tn

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

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

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

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

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

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



Re: Jsp and Swing??

2001-05-25 Thread Karau, Joe

tried what exactly, you really need to be more specific.  If you are talking
about using Swing components to create the GUI for the client...
You can, but shouldn't unless you have a small number of users that will be
using your app, and/or until browsers start shipping with a Java2 JVM.  The
JVM's that currently ship with browsers do not have Swing components
available, so users will have to download a plug-in that allows Java2 code
to be run in applets.  Possible, but not adviseable for apps where you have
no control over who is going to be using it.

As far as using Swing components for the GUI.  It can be done, but only as
an applet, which is why I mention the browser's JVM above.

If you were asking if Swing components could be used in the Java Scriptlets
of your JSP page.  Of course they can, you can write just about any Java
code in the Java Scriptlets of JSP pages, because when everything is said
and done, they are basically transformed into little itty bitty prorams.
However, when a user calls the JSP page using the Swing components the Swing
GUI will appear on the SERVER machine, not the client.  This will not only
happen the first time that the page is called, but EVERY time the page is
called.  Meaning that if the page that contains the Swing components is
falled 100 times, you will have 100 Swing windows open on your server
machine.  Which in turn will gobble up the resources like a mad man.

So, my advice is do not use Swing components in JSP unless you understand
the implications.

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


-Original Message-
From: Simon Chia [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 7:02 AM
To: [EMAIL PROTECTED]
Subject: Jsp and Swing??


has any tried it before? plz le tme know how if you have!

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

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

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

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

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

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



Re: deploy issue

2001-05-17 Thread Karau, Joe

not only does it use the last change date of the jsp file to see if it must
recompile the page.  But the majority of servlet/JSP engines actually use
the file to get the static text.  In other words, anything that is not
enclosed in JSP tags or scriptlets is read from the file when the jsp is
called by the server.  So, the chances that you will be able to distribute
JUST the class files is almost 0.  If you must just distribute class files,
and not the JSP source itself, you'll probably have to do something evil
like implement the entire app as servlets.

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


-Original Message-
From: erik morton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 10:58 AM
To: [EMAIL PROTECTED]
Subject: Re: deploy issue


JRun stores the class files for JSPs in
servers/yourserver/yourapp/Web-Inf/jsp.
However, I believe that the 1.1 specification requires that the container
check the
actual *.jsp file to see if it has been modified since the last *.jsp to
*.class
translation and compilation. This means that the *.jsp file must exist.

If there is a work around I would love to hear about it. I'll look forward
to
reading this thread in the archives.

Mudit Mehta wrote:

 Hi all !!

 I am a new member to the group; and currently involved in developing an
 open client for Progress database. I am using JSP for the purpose; the
 application has
 taken a concrete shape and is working fine, but i am wondering how we can
 distribute it
 to our various clients.
 I don't want to give the JSP code to the clients, as i am building this
 application over our client-server CRM application.
 So, how can the things be resolved. If in place i would have used =3D
 servlets then it was not a problem, as .class files work in deployment.
 Is there some tool so that we can convert .jsp into class file for once.

 Pls let me know how to get out of this situation.

 I am using IIS, and JRun for it.

 Mudit this side.

 Smiles go Miles:o)
 **
 Mudit Mehta
 Progressive Software
 [EMAIL PROTECTED]
 **
 The soul would have no rainbow had the eyes no tears.


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

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

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

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

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

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

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



Re: Jsp and Swing??

2001-05-16 Thread Karau, Joe

By the nature of JSP and Swing, you can not really use them together.
Technically you can of course, except any swing components created in the
JSP will appear on the server, but if multiple requests are made to the same
JSP multiple windows will open.  (not the greatest idea)  If you want the
client to see Swing components, you have to write an applet that uses them,
but you should note that the user will have to download a plug-in from sun
in order to display an applet that uses Swng components. This can be done,
but is usually not an optimal solution, depending upon how many users will
be using the applet.  You don't want hundreds of people to have to download
a separate plug-in in order to access functionality of your site.

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


-Original Message-
From: Simon Chia [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 7:02 AM
To: [EMAIL PROTECTED]
Subject: Jsp and Swing??


has any tried it before? plz le tme know how if you have!

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

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

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

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



Re: Printing problem in JSP

2001-05-11 Thread Karau, Joe

well, if you are talking about the output of the jsp (which I'm assuming you
are) not really.  Most browsers will print as much of the page as they can,
and then truncate the rest (speaking about width of course).  The best you
can do is try to design the page so that it will fit onto one page when
printed.





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


-Original Message-
From: anil yeola [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 10:19 AM
To: [EMAIL PROTECTED]
Subject: Printing problem in JSP


Hi,
  Can any one tell me if it is possible to print the
current JSP page in compressed way so that day can fit
on one page on printer.
Thanx
Anil

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

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

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

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

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



Re: JDBC connection

2001-05-11 Thread Karau, Joe

make sure that the class that you are using for the forName([class name])
method is in your classpath.

(not so much a JSP question by the way, but hope this helps)

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


-Original Message-
From: Sharon Om [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 3:23 PM
To: [EMAIL PROTECTED]
Subject: JDBC connection


Hello.  I have the following code for connecting to the jdbc:odbc pool.
While compiling the Java code, I keep getting an ClassNotFoundException in
Class.forName.
I also tried declaring Class T and have T.forName.  I get the similar error
for T.forName. How can I get this to work?

Thank you for your help.
Sharon

package property;


import java.sql.*;
import java.io.Serializable;

public class database implements java.io.Serializable
{

  public database() {

  }

public String runSql()
{
 String browserOutput = ;
 Connection sqlca = null;
 Statement sqlStatement = null;
 ResultSet myResultSet=null;


 /*Connect to database, run SQL and produce output */

 try {
/* Connection to the database */
Class.forName(sun.jdbc.odbc.JdbcOdbcDrive);
String theDatabase = jdbc:odbc:loadtool;
sqlca =
DriverManager.getConnection(theDatabase,loadtool,loadtool);
  }
 catch (SQLException e) {

browserOutput = Error:SQL error of: +e.getMessage();
  }

 return browserOutput;
}

}

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

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

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

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



Re: How can I avoid a double submit?

2001-04-27 Thread Karau, Joe

We have had the same problems, and the safest way that we have found to
avoid it is after the user clicks the button that performs the submission we
disable any buttons that allow the form to be submitted.

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


-Original Message-
From: Lorena Carlo [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 9:17 AM
To: [EMAIL PROTECTED]
Subject: How can I avoid a double submit?


Hello all,

Can somebody please tell me of his or her experience how can I avoid a
double submit in a form?.

Please help me,  thanks in advance

Lorena Carlo

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

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

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

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



Re: Javascript question/discussion list?

2001-04-19 Thread Karau, Joe

on the form element implement the onBlur() event handler to set the focus to
the 'NEXT' link.

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


-Original Message-
From: Barbara Geelan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 3:51 PM
To: [EMAIL PROTECTED]
Subject: OT: Javascript question/discussion list?


I apoligize that this is off topic, but if someone could either help me with
this question, or refer me to a javascript discussion group, I would be very
grateful!!

***I am looking for a way to skip over two footer links (quit and back) to
the 'NEXT' link, when a user tabs from the last form element.  In other
words, when the user tabs from the last thing on the form, i want him to
land on NEXT  , not the first two links which are quit and back.  

Much thanks!!
__
Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/

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

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

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

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



Re: jdbc taglib question ?????

2001-04-17 Thread Karau, Joe

you'll probably want to put the %= request.getParameter(name) % in single
quotes, and use wild card characters.

example:
select * from [table name] where [column name] like '%=
request.getParameter(name)%[rdbms wild card]'

this would find any results where the column name had a value that started
with the parameter, it will be able to make use
of an index, if one is built on the column name.  However, if you would like
to find records where the parameter
is found anywhere within the value of the column name put the wild card
before the parameter as well.  (index won't be used though)

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 3:16 PM
To: [EMAIL PROTECTED]
Subject: jdbc taglib question ?


could you please tell me what's wrong in this line:
select * from description where name like %= request.getParameter("name")
%


the file is like this :
..
%@ taglib uri="http://jakarta.apache.org/taglibs/jdbc" prefix="sql" %

% String name = request.getParameter("name"); %
% out.println(" The name is :" + name); %

sql:connection id="conn1"
  sql:urljdbc:mysql://localhost/test/sql:url
  sql:driverorg.gjt.mm.mysql.Driver/sql:driver
/sql:connection

sql:preparedStatement id="stmt2" conn="conn1"
  sql:query
select * from description where name like %=
request.getParameter("name") %
  /sql:query
  sql:resultSet id="rset1"
   pg:item
  sql:getColumn position="1"/br
  sql:getColumn position="2"/br
..
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

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

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

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



Re: Hidden field NULL values after POST

2001-04-12 Thread Karau, Joe

If you are setting the value of pSHIP with javascript, I've seen the same
type of problem.  To fix I gave an initial value to pSHIP of an empty
string, such as:
input type="hidden" name="pSHIP" value=""

That seemed to fix it for me.  Hope this helps.

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


-Original Message-
From: Willy LEGIMAN [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 5:57 AM
To: [EMAIL PROTECTED]
Subject: Hidden field NULL values after POST


I have encountered a very strange issue with JSP when I submit a form with
hidden field.
The value of the hidden field is displayed as null when I do a
request.getParameter("pSHIP") after submitting the form for the first time.

But when I click on Back (on the browser) to go back and submit the form
again, the value is correctly displayed!

1. I have a Form with input type="hidden" name="pSHIP"
2. When I submit the form I set pSHIP.value to "OCEAN2001"
3. JSP displays value of pSHIP as null
4. Go back  submit the form again
5. JSP displays value of pSHIP as "OCEAN2001"

Anyone has any ideas why this happens? I'm working from JDeveloper 3.1.

Regards
Willy

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

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

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

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



Re: Getting error in compilation of page

2001-04-03 Thread Karau, Joe

make sure that you are returning an EmployeePayInfor object at the end of
the readEmployeeFile method

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


-Original Message-
From: Dan Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 9:46 AM
To: [EMAIL PROTECTED]
Subject: Getting error in compilation of page


SortEmployee.java:129: Return required at end of
Edinc.empcompsys.EmployeePayInfo readEmployeeFile().
   private EmployeePayInfo readEmployeeFile()


--

Any suggestions?


Thanks



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

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

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

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

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



Re: Servlet needs to run till the lifetime of Webserver

2001-03-28 Thread Karau, Joe

Why does it need to be a servlet, why not just create a separate thread to
run while the webserver is running?

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


-Original Message-
From: Ganesh MohanRao [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 8:49 AM
To: [EMAIL PROTECTED]
Subject: Servlet needs to run till the lifetime of Webserver


Hi,

Please tell me how to make a Servlet Run till the lifetime of Webserver.

Whenever the webserver starts, Servlet needs to start and should run till
the Webserver shuts down.

Please help me.

Thanx.

Ganesh

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

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

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

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



Re: Display records like google, HOW ??

2001-03-28 Thread Karau, Joe

Not sure, but willing to bet that it is because you're uri attribute has two
"=" before the value of it.

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 12:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Display records like google, HOW ??


Hi, thanks, I got them, I put page-taglib.tld in
/WEB-INF/tlds/pager-taglib.tld the pager-demo.jsp

and in pager-demo.jsp I have :
%@ page session="false" %
%@ taglib uri== "/WEB-INF/tlds/pager-taglib.tld"  prefix="pg" %
html
head
titlePager Tag Library Demo/title
.more code

BUT WHEN CALLING pager-demo.jsp I GOT THIS ERROR :
A Servlet Exception Has Occurred
org.apache.jasper.compiler.ParseException:
C:\tomcat4\webapps\google\pager-demo.jsp(1,15) Attribute value should be
quoted
at
org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:524)

Thanks.


From: James Klicman [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
 reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Display records like google, HOW ??
Date: Wed, 28 Mar 2001 09:05:26 -0800

Everything is in the jar file. You can jar xvf or unzip it.

jar xvf pager-taglib-1.1.jar

or

unzip pager-taglib-1.1.jar

-James

On Wed, Mar 28, 2001 at 04:40:09PM -, sufi malak wrote:
  Hi, thanks for the link, but when downloading I got only the jar file ,
  there is no examples or pager-taglib.tld, please where are they ?
  Thanks
 
 
  From: James Klicman [EMAIL PROTECTED]
  Reply-To: A mailing list about Java Server Pages specification and
   reference [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: Display records like google, HOW ??
  Date: Wed, 28 Mar 2001 08:30:33 -0800
  
  You can create paging navigation identical to google.com by using the
  Pager Tag Library. It even has google.com as one of it's example
pagers.
  
  http://jsptags.com/tags/navigation/pager/
  
  -James
  
  On Wed, Mar 28, 2001 at 09:59:31AM -0600, Christopher K. St. John
wrote:
sufi malak wrote:

 I am trying to display records like the way done in google.com,
with
  the
 Next and Previous buttons, and pages numbers link, has anybody
done is
  using
 jsp or servlet, could you please explain do they do it ?

   
 Do a google search, any search. Do a "View Page Source",
or just move your mouse across the page number links.
Look at the format of the URLs: that's how the client side
works. How the server side works depends on your
application. If you're trying to page around through
database results, there's been some dicusssion over in
servlet-interest. Try searching the archives[1] with terms
like "implementing page scrolling" to get one thread (there
are others if you rumage around in the archives)
   
   
[1]
URL:http://archives.java.sun.com/archives/servlet-interest.html
   
   
--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com
   
   
 

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

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

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

Re: PRINT UTILITY PROGRAM

2001-03-08 Thread Karau, Joe

A print module would have to be a java applet, and I believe (but I very
well may be mistaken) that it would not be able to get the entire graphics
context of the page that the applet is embedded in.  Even if it could, in
order to use the printer the applet would have to be a signed applet, not
really an issue bet something that should be noted.

It may be much more time efficient, though not as elegant as what you are
envisioning, to simply use javascript to bring up the browser's print dialog
when the user presses the print button.

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


-Original Message-
From: Agarwal, Shekhar (MED, TCS America)
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 12:25 PM
To: [EMAIL PROTECTED]
Subject: PRINT UTILITY PROGRAM


hi
i have print button in a jsp,on clicking the button i want the page to
be printed.its functionality should be same as the print button on the
browser.
i want a program module written in java that can print the current page.
can anyone help me ???
regards

SHEKHAR
SHEKHAR AGARWAL (B.TECH)
Email : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

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

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

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

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



Re: login servlet ??

2001-03-01 Thread Karau, Joe

Sufi, you could encode the url of the servlet, and pass the url of the
servletA as a parameter.
Example href=/servlets/YourLoginServlet?ToServlet=SerlvetA

Then, in your login servlet simply do a
String forwardTo = request.getParameter("ToServlet");

and the "forwardTo" String will be the url of the servlet that you
originally linked to.

To be on the safe side though, you may wish to encode the URL of servletA
using:

href=/servlets/YourLoginServlet?ToServlet=%=java.net.URLEncoder.encode(stri
ng_of_servletA_url)%



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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 12:45 PM
To: [EMAIL PROTECTED]
Subject: login servlet ??


Hi, please don't be mad, I know for you guru it's an easy question, please
bear with me, I am still learning servlets
I am trying to have a login servlet, and other servlets, when I click to a
link of a servletA, I want to loginservlet get invoqued, my question is how
to save the url of the servletA so if the loginservlet success we will
return to servletA
thanks
God helps all
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

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

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

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



Re: Off topic (MS Access query question) ?

2001-02-27 Thread Karau, Joe

its a syntax error

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 10:05 AM
To: [EMAIL PROTECTED]
Subject: Off topic (MS Access query question) ?


I am using MS Access database.
I have an sql quesion please:
what's wrong with this query :
String login = "SELECT * FROM USERS WHERE UserName = '" + ? + "' AND
Password = '" + ? + "'";
When I complile the bean I got this error :

C:\tomcat4\webapps\ultra2\WEB-INF\classesjavac Employee.java
Employee.java:30: illegal start of expression
   String login = "SELECT * FROM USERS WHERE UserName = '" + ? + "' AND
Password
= '" + ? + "'";
 ^
1 error

Thanks
Thanks

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

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

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

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

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



Re: sendRedirect ??

2001-02-27 Thread Karau, Joe

because response.sendRedirect takes a string, look, copied straight from the
documentatation:

sendRedirect
public void sendRedirect(java.lang.String location)
  throws java.io.IOException

Sends a temporary redirect response to the client using the specified
redirect location URL. This method can accept relative URLs; the servlet
container will convert the relative URL to an absolute URL before sending
the response to the client.
If the response has already been committed, this method throws an
IllegalStateException. After using this method, the response should be
considered to be committed and should not be written to.

Parameters:
location - the redirect location URL
Throws:
java.io.IOException - If an input or output exception occurs
java.lang.IllegalStateException - If the response was committed


... looks like you need to put quotes around your strings
Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629
AIM: jkara3629


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 10:49 AM
To: [EMAIL PROTECTED]
Subject: sendRedirect ??


I got this error :
A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for
JSP..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:89:
Undefined variable or class name: Insert
response.sendRedirect(Insert.jsp);
  ^
..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:92:
Undefined variable or class name: login2
response.sendRedirect(login2.jsp);
  ^
2 errors


This is my code for login2.jsp :
%@ page import="Employee"%
jsp:useBean id="employee" class="Employee" scope="request"/
%
String  user = (String)request.getParameter("username");
String  pass = (String)request.getParameter("password");
// check the session first, if the user is in the session
sendRedirect(Insert.jsp) directly
if (user != null  pass != null)
{
if (employee.login(user, pass)){
System.out.println("user exists");
response.sendRedirect(Insert.jsp);
}
else
{
System.out.println("User does not exist");
response.sendRedirect(login2.jsp);
}
}
%

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

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

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

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

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



Joseph Ottinger

2001-02-21 Thread Karau, Joe

I agree with Joseph as well.  There are way to many subscribers to this list
asking either off-topic, or "simple" questions.  They are, in my opinion,
being quite lazy.

Those asking off-topic questions should probably try to find the appropriate
forum for their questions, they would probably get more responses, and those
that they received would also probably be better.

Those asking the "simple" questions, the questions themselves may not really
be simple, but if they would try to spend time searching for the appropriate
reference and answering it themselves they will learn much more than if
somebody else just answers the question for them.

Mailing lists such as this are an excellent way for programmers to probe the
knowledge and experience of other programmers who have experienced similar
problems.  However, by simply answering all of these off-topic posts, and
"simple" questions without at least suggesting that they find the right
place to ask them, or spend some time trying to figure it out themselves,
will only increase the frequency that such questions are posted.  Thus,
bringing down the usefulness of the list.

As far as the personal attacks on Joseph whenever he posts a reply that may
be less than utterly polite, why?  OK, his replies may seem very abrupt,
sometimes condescending, and a little less than professional.  However, is
it professional to go ask your secretary how to execute a simple SQL
statement, no because she would be the wrong person to ask and that is
fundamentally what the people that are posting off-topic questions are
doing, asking the wrong person.  So, if you don't like his relies, don't
read them, but there is no need to constantly flame him.

By the way Joseph, I'd be more than interested in joining a JSP list that
focuses more on JSP.


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

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

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



Re: How jsp applet communicate ???

2001-02-20 Thread Karau, Joe

Sufi, a JSP file is a source file that contains bits of JAVA code, and HTML.
When the user requests a JSP file, it is first parsed into a regular *.java
source file, then compiled into a *.class file (which by the way is a
servlet), and finally the servlet executes providing the user's browser with
HTML. (overly simplified, but basically correct)

An applet is basically a JAVA application that runs within the browser
instance, you declare the name of it, and any PARAMETERS that you want to
pass it in the HTML.  View your favorite HTML reference for details.

Therefore, unless you are going to do some special work to allow the applet
to communicate with a servlet (have not been able to get it to work with a
JSP).  You have to pass the parameters to the applet based on output from
your JSP.

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 12:46 PM
To: [EMAIL PROTECTED]
Subject: How jsp applet communicate ???


How to pass a parameter in a jsp file to an applet, If I have an applet that
show text scrolling, I want to pass this text from the resultset to the
applet.
Thanks
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

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

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

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



Re: How jsp applet communicate ???

2001-02-20 Thread Karau, Joe

Yes you can, but the way to pass a parameter to an applet is simple HTML,
like I said, check your favorite HTML reference.  Here are a few I use:
http://www.devguru.com/
http://www.netstrider.com/tutorials/HTMLRef/
http://www.w3.org/MarkUp/

or... you can even check out one of SUN's very own applet tutorial pages at
http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html#param

Sufi, the answers out there, but you really should try to spend some time
looking for it, instead of just blindly asking for the answer.  You will
learn more that way.

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re: How jsp applet communicate ???


Yes, but I am sure there is a way that you can pass a parameter from
%= the_jsp_output % to the applet, I saw this somewhere but could not
remember where.
Thanks

From: "Karau, Joe" [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
 reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: How jsp applet communicate ???
Date: Tue, 20 Feb 2001 13:17:04 -0600

Sufi, a JSP file is a source file that contains bits of JAVA code, and
HTML.
When the user requests a JSP file, it is first parsed into a regular *.java
source file, then compiled into a *.class file (which by the way is a
servlet), and finally the servlet executes providing the user's browser
with
HTML. (overly simplified, but basically correct)

An applet is basically a JAVA application that runs within the browser
instance, you declare the name of it, and any PARAMETERS that you want to
pass it in the HTML.  View your favorite HTML reference for details.

Therefore, unless you are going to do some special work to allow the applet
to communicate with a servlet (have not been able to get it to work with a
JSP).  You have to pass the parameters to the applet based on output from
your JSP.

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 12:46 PM
To: [EMAIL PROTECTED]
Subject: How jsp applet communicate ???


How to pass a parameter in a jsp file to an applet, If I have an applet
that
show text scrolling, I want to pass this text from the resultset to the
applet.
Thanks
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

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

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

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

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

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

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

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

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



Re: Can't convert int to boolean. ??

2001-02-16 Thread Karau, Joe

you also want to user == (which is the comparison operator) instead of =
(which is the assignment operator).  Two suggestions for you.
1. Spend a little more time reviewing syntax (and all other options) before
asking for help.
2. To prevent problems similar to this in the future do null == whatever,
therefore when you forget one of the equal signs and code this null =
whatever, it will help you to realize that you missed an equal sign because
you can not assign anything to null.

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


-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 11:09 AM
To: [EMAIL PROTECTED]
Subject: Can't convert int to boolean. ??


what's wrong with this if statment :

Can't convert int to boolean.
%
String  imageurl = (String)request.getParameter("txtImageURL");
String  lastname = (String)request.getParameter("txtLastName");
String  firstname = (String)request.getParameter("txtFirstName");
String  id = (String)request.getParameter("txtId");
String  phone = (String)request.getParameter("txtPhone");
String  date = (String)request.getParameter("txtDate");
String  department = (String)request.getParameter("txtDept");
String  extension = (String)request.getParameter("txtExt");
String  email = (String)request.getParameter("txtEmail");
String  note = (String)request.getParameter("txtNotes");
String  nominatedby = (String)request.getParameter("txtNominatedby");

%
%
Driver DriverResults =
(Driver)Class.forName(MM_connCompass_DRIVER).newInstance();
Connection ConnResults =
DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM
_connCompass_PASSWORD);
PreparedStatement StatementResults;
String stmt = "insert into employee VALUES(id, firstname, lastname,
nominatedby, photo, extension, department, note, phone, email, date)";
StatementResults = ConnResults.prepareStatement(stmt);
if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id  =null)
| (phone  =null) |
   (department =null) | (date  =null) | (extension =null) | (email =null) |
(note =null) | ( nominatedby =null) ))
StatementResults.executeQuery();

%

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

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

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

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

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



OFFTOPIC - Problem with HTTPServletResponse.sendRedirect(String) on only one environment

2001-02-15 Thread Karau, Joe

Hi, this is both on and off topic, but more off topic than on I feel.
Here is the situation:
We have a JSP in the root directory that allows a user to enter
their username and password, and this JSP posts to a servlet to do the
processing.  When the servlet completes the processing is does a
response.sendRedirect to an HTML page.  This HTML page is nothing but a
frameset that references a head.html, and two JSPs that are also in the root
directory of our server.

Environments:
It works fine in our development machines VAJava 3.02, and AS/400
v4r5 running WebSphere 2.0.
It works fine on our production machine, running AS/400 v4r4 and
WebSphere 2.0.
It is failing (only for our subscribers) on our disaster recovery
machine that is also running AS/400 v4r4 and WebSphere 2.0.
The HTTP configuration, and our application are identical on our
production machine, and disaster recovery machine.

Problem:
While attempting to test our disaster recovery machine, we found
that our subscribers are getting 404's for all the frames in our home
frameset.
It appears that after they log on that the servlet does the send
redirect, they are requesting the header, and JSPs that make up the frameset
from, the root/servlet/
directory, not the root directory as they should be.  Also, after the
servlet does the sendRedirect the url or our logon servlet is being
displayed in the client's URL field of their browser, however this does not
happen in any of our other environments AND it does not happen when we try
to access the application from within our own intranet.

Maybe I'm mistaken, but from what I've been able to tell from the API specs,
is the behavior the client is seeing on our disaster recover machine is
closer to the behavior that should be expected from a request.forward(), not
a response.sendRedirect().  I was under the assumption that a
response.sendRedirect() would cause the client's browser to behave as if the
user themselves had typed the URL in their browser, whereas a forward would
simply leave the browser url that of the page/servlet doing the forward,
even though the HTML that would be displayed would be that of the page that
was forwarded to.

Any comments, ideas, or other resources to look at would be greatly
appreciated.

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

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

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



Re: Diff bet asp jsp

2001-02-05 Thread Karau, Joe

A JSP is only compiled, and thus parsed, when the source JSP is newer than
the compiled java source, and class file it generates.  When this parsing is
completed, a JAVA source file is created, following which a JAVA class file
is compiled based on the generated source.

Even if the content is changing, like in a forum to use your example, the
JSP will not have to be recompiled. Unless, the author has actually coded
the JSP to change its own source code as more messages are added, doubtful.
No, instead the messages are stored through some other type of persistence
mechanism, most probably a database.  Thus, when the page is served to the
user the servlet (which is the compiled version of the JSP) queries the
database, and uses the query to generate the HTML, which is then sent to the
client.

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


-Original Message-
From: Ahmed, Salman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Diff bet asp  jsp


Yes, but again isnt' this test repeating the test over and over so
the Page written in java is not being reparsed since its already compiled
right?
what if the page is always changing like in a forum? it will have to
reparse..that will change evertying? am i right?

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

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

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

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



Handling the browser going back

2001-01-16 Thread Karau, Joe

I understand that disabling the "Back" feature of a browser (whether the
user uses the back button, right click - back, etc) is not really a valid
option in most web-applications.  However, we are having problems with the
user choosing to go back to previous pages, and I was wondering how others
are handling this.

Any ideas, advice, or sources to check would greatly be appreciated, thanks.


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

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

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



Re: How to access JSP variable from javascript?

2000-12-01 Thread Karau, Joe

You can not access JSP variables directly using javascript because of the
most basic difference between the two.  JSP is a server-side scripting
language.  The JSP engine builds source code for a servlet from the JSP
page, the servlet is executed and html is sent to the browser.  Whereas,
javascript is a scripting language that the client's browser interprets and
executes.  Thus, it is not possible to DIRECTLY access JSP variables.
However, you can use JSP to place String variables within javascript so that
the javscript can be created dynamically.

For example, the following code:

% String some_jsp_var = "This is a java variable instantiated in a
JSP."; %

script language="Javascript"
function callMessage(){
alert("%=some_jsp_var%");
}
/script

would produce the following html to be received by the client:

script language="JavaScript"
function callMessage(){
alert("This is a java variable instantiated in a JSP.");
}
/script

In short Ganesh, you can use the values of JSP String variables within
javascript, however remember that there is no way to change the value of JSP
variables from javascript because of the environments that each language
runs on.

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


-Original Message-
From: Ganesh Mohan Rao [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 01, 2000 3:20 PM
To: [EMAIL PROTECTED]
Subject: How to access JSP variable from javascript?


Please tell me Gurus.

How to access JSP variable from javascript?

Ganesh.

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

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

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

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



Re: 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



Re: If stmt syntax problem

2000-10-24 Thread Karau, Joe

this is simple java and/or c/c++; but here:

if( thisIsTrue  thisIsAlsoTrue)
this gets done
else if((thisIsTrue || thisMightBeTrue)  (thisIsAlsoTrue))
this will get done
else if(thisIsTrue || thisMightBeTrue)
this will be done

--just a suggestion; next time you have a question such as this, there are
many useful websites that can be found that will answer simple syntax
questions, maybe finding one you like would be useful to you.


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


-Original Message-
From: Dan Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 10:35 AM
To: [EMAIL PROTECTED]
Subject: If stmt syntax problem


How do you do multiple conditions in an if statement?

EX:

% if (condition1  condition2 "and" condition2 =
condtion3 "and" condition3  condition4 "and"
condtion5  condition6) %
html code
% else. %

What is the syntax for "and"

Thanks

-D

__
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

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

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

2000-10-19 Thread Karau, Joe

Maybe it's just me, but all I see if code, I don't see a description of your
problem anywhere.  Are we supposed to load your code, try to run it, and
find what the problem is ourselves, and then try to fix it for you, just
because you need to, and I quote: "..solve this problem very fast:"?

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


-Original Message-
From: Charlotte Schaffstein [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 19, 2000 11:16 AM
To: [EMAIL PROTECTED]
Subject: JSP/BEAN
Importance: High


Hi everyone!

I need to solve this problem very fast:

JSP:

HTML
HEAD
jsp:useBean id="TestBean" scope="session" class="test.TestBean"
/
jsp:setProperty name="TestBean" property="*" /
TITLE
Test
/TITLE
/HEAD
BODY
H1
JBuilder Generated JSP
/H1
FORM method="post"
% String  strr = TestBean.getName() %
% String  strrr = TestBean.setName() %
BREnter new value   :  INPUT NAME="sample"
VALUE%=TestBean.getName() %BR
INPUT NAME="Hallo" VALUE%=setName() 
INPUT NAME="Huhu" VALUE%=TestBean.setName() 

BRBR
INPUT TYPE="SUBMIT" NAME="Submit" VALUE%=TestBean.getName() %
INPUT TYPE="RESET" VALUE%=text1.TestBean.setName() %
BR
Value of Bean property is :jsp:getProperty name="TestId"
property="sample" /
/FORM
/BODY
/HTML


Bean:


package test;

public class TestBean {
  private String sample = "Start value";
  //JTextField text1;
  //JTextField text2;
  String name;
  //Access sample property

  //public TestBean()
  //{
  //this.text1 = new JTextField();
  //this.text2 = new JTextField();
  //}

  public void setName(String nm)
  {
  //this.name = "Hallo";
  this.name = nm;


  }

  public String getName()
  {
  //return "Huhu";
  return this.name;
  }

  public String getSample() {
return sample;
  }



  //Access sample property
  public void setSample(String newValue) {
if (newValue!=null) {
  sample = newValue;
}
  }
}


PLEASE HELP AND EXCUSE DOUBLE MAIL AS I HAD TO CHANGE MY SYSTEM
DATE IN BETWEEN!


Charlotte Schaffstein
[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



No Subject

2000-10-19 Thread Karau, Joe

So.. do you want someone on the list to write the JSP for you, or point you
in the right diretion, or what?

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


-Original Message-
From: Mukka, Srikanth [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 19, 2000 2:27 PM
To: [EMAIL PROTECTED]
Subject:


Hi All,
I will accept a table name and want to display the all table data uisng JSP,
after displaying I want to update or delete or insert data.

Looking for your response.

Bye
Srikanth

-Original Message-
From: sonal bhasin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 19, 2000 11:30 AM
To: [EMAIL PROTECTED]
Subject:


what is the difference between servlet and JSP
_
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



Re: Passing multiples parameters to Jsps

2000-10-13 Thread Karau, Joe

check out the method request.getParameterNames(); -- or something very
similar, returns a list of parameter names

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


-Original Message-
From: rgu [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 9:14 AM
To: [EMAIL PROTECTED]
Subject: Re: Passing multiples parameters to Jsps


I need pass several parameters of a questionary form, so
how can I receive these parameters in other file .JSP
using request.GetParameter ?

  The number of questions can change, so how can I build
a file .JSP that receive each time a diferent number of
parameters from this questionary form!


__
Todo brasileiro tem direito a um e-mail grátis
http://www.bol.com.br

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

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

2000-10-12 Thread Karau, Joe

Stored procedures will be more efficient then using JDBC and directly
running queries.  However, the difference may not be noticed unless a large
and complex query was performed.  The reason that stored procedures are more
efficient, is that they are stored in the database as optimized queries.
Therefore, they do not need to go through the SQL optimizer, and often no
longer need to go through the SQL parser.

If using regular SQL however, the query will have to go through the SQL
parser, and the query optimizer before it is run.  Thus, taking more time
than stored procedures.  As I mentioned earlier, if the query is simple
there will be no noticeable difference.

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


-Original Message-
From: Robuschi (Delfi) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 12, 2000 7:35 AM
To: [EMAIL PROTECTED]
Subject: Re: Stored Procedures


I'm just tryin the best solution between simple queries and Stored
Procedures.

So i placed 5 tables, integrally referenced each other, and the main table
has 100.000 records.

I tried a query that joins these tables and a stored procedure that does the
same thing.

The result was the same: 4 seconds to execute both the query and the stored
procedure. So we decided to use queries... there are less troubles in
deploying the application.

Hope this can help you...

Robuschi Roberto  Delfi srl
P.za Ravenet 1/b - 43100 PARMA
Tel. 0521/932411 Fax 0521/989045
[EMAIL PROTECTED] --- http://www.delfi.it

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/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: Please help to test my new jsp website

2000-10-04 Thread Karau, Joe

Well first thing is, when I followed the link I received the following
error:


***
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform
them of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error log.






Apache/1.3.12 Server at www.asiazest.com Port 80


*

I may or may not be speaking for everybody on this list, but we are not your
testers.  Please do not post to this list asking us to test your site.
Especially if the server can't even serve the first page.

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


-Original Message-
From: job my [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 04, 2000 3:37 PM
To: [EMAIL PROTECTED]
Subject: Please help to test my new jsp website


Hi, I just finished a jsp website
(http://www.asiazest.com). Please help me to test it
and give me some comments then I can improve it.

BTW, I want to find a new job in a stable company.
Please give some information if possible.

Thanks.

__
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/

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

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

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

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



Re: Urgent ! about downloading of GIF

2000-09-21 Thread Karau, Joe

You could use an applet, however I wouldn't.  If you are worried about the
time it takes a gif to download, than you should be more worried about the
time it would take to download the applet with the gifs.  With the applet it
will be done all at once, making it appear to the user that it takes
forever.  With the gif/page, at least the total download time will be split
across multiple pages.


-Original Message-
From: Selvamani Jayakumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 21, 2000 1:50 PM
To: [EMAIL PROTECTED]
Subject: Urgent ! about downloading of GIF


hi
my prob. is  that , every page in our site has got a gif image.
since we hve a number of gif's , it takes time to download. each page
has got a diff. gif images.
is there any possibility that if i use applets
(which will be stored in the RAM of client) to do this.
so for each page , i can use the Applet to show the picture
rather than downloading from the Server.

can anyone suggest me how to do this?


Thanks in advance


_
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: Blank lines on JSP

2000-08-30 Thread Karau, Joe

Yes, the blank lines will increase the size of the documnt, but only by one
or two characters per blank line.  However, I believe those lines are
inevitable because they are placed there by the JSP processor.

-Original Message-
From: Sushil Singh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: Blank lines on JSP


blank lines will increase the size of your document (hence download
time:-), so
ideally you should always try to remove all these white characters.

Jorge Barrera wrote:

 Why do the blank lines bother you?

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Jeevan Mathew
 Sent: Wednesday, August 30, 2000 8:54 AM
 To: [EMAIL PROTECTED]
 Subject: Blank lines on JSP

 Hi all,
  I have an issue regarding JSPs.
  Most of my JSPs have many directive statements (jsp tags) at the
beginning
 of the file,
 and because which, the contents (html )are displayed  after a few blank
 lines !

 any idea to rectify it ??

 I have tried putting some html tags at the top of the jsp file , then
added
 the directives after them. but still the same result :(

 Thankx
 Jeevan


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

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/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: Ending line of code with ;

2000-08-10 Thread Karau, Joe

because what %= someVariable % is actually doing is:
% out.println(somVariable); %
therefore all you are doing is passing the argument for the out.println
method

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

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



Re: How to retrieve a field value with white space in

2000-06-23 Thread Karau, Joe

Add quotes around it

input type="text" name="fullname"
value="%=request.getParameter("FullName")%" 

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

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

2000-06-16 Thread Karau, Joe

Make sure the parameters are named, and then use a
request.getParameter(parmName) to get the value of the parameter.

Ex.
input type=hidden name=Parm1 value="Value1"

then, when processing the post/get do
String parm1 = request.getParameter("Parm1");

and parm1 will be equal to "Value1".

You will then be able to manipulate the values as you see fit.

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

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



Re: How to write functions and procedures in JSP?

2000-06-09 Thread Karau, Joe

Because of the system.out's you're probably outputing the data in the inner
functions to the web-server, instead of to the response's out stream.

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

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