FW: character to byte

2001-03-23 Thread Priya Ranjan Dash
1. it a little less understandable, and performance might also be a little worse affected due to the "replace" of strings ? --U R right. 2. Moreover, the function "escape" seems incompatible with different browsers. -- I think it works for IE and netscape not sure about others? 3, How

absolute path

2001-03-23 Thread Manish
hello how can i get the absolute path of the documentroot(public_html directory) of my web server thre a jsp. i want the full path like c:/dir1/dir2/dir3/public_html thanx manish === To unsubscribe: mailto [EMAIL PROTECTED]

Re: absolute path

2001-03-23 Thread Sachin S. Khanna
Call the getRealPath("your virtual path") method of the ServletContext interface. It would be nice for you as well as the mailing list if you look at the Servlet and Jsp Api documentation before posting your queries here :-). Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com

Re: which web server other than tomcat4.0 can suport servlet2.3 A PI

2001-03-23 Thread Ron Quartel
Orion www.orionserver.com Ron Quartel -Original Message- From: hua ge [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001 4:21 PM To: [EMAIL PROTECTED] Subject: which web server other than tomcat4.0 can suport servlet2.3 API hello, does anyone know which web server other than

Re: sessions - variable

2001-03-23 Thread S. Jyotinarayan
I am using the value of the variable to read data from my database on the server. According to the next and previous actions it'll retrieve different sets of data. So could you suggest what I could do. JNS - Original Message - From: "Rui Santos Antnio" [EMAIL PROTECTED] To: [EMAIL

Java Beans!!

2001-03-23 Thread Shahaji Kadam.
Hi, I am calling a Java Bean from a JSP file. Both the .jsp file and Java Bean (.class file) is in the same directory ex. ../jsp/ when i call .jsp page i get an error that bean could not be found. It seems that it is not able to locate the Bean. how can i import the bean in JSP page? is it

Model 3-tier in application

2001-03-23 Thread Jose Gregorio (EST)
Hello! I'm writing for a big question: Where i can find tutorial/paper/docs about devloping Servlet/JSP applications with 3 tier model. Thanks! GreG === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff

Re: Caching a JSP Page

2001-03-23 Thread sharma Sumeet
You will need to set the appropriate HTTP header attributes to prevent the dynamic content output by the JSP page from being cached by the browser. Just execute the following scriptlet at the beginning of your JSP pages to prevent them from being cached at the browser. You need both the

E-mail ID validation

2001-03-23 Thread Priya Ranjan Dash
Does anybody know of any e-mail and phone-no validation script available on net or how to go about this? Ranjan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL

Connecting to MySql DB

2001-03-23 Thread Gavin Meehan
Hi I have a DBconnect class that connects to a mySql DB. When it runs as an application it runs fine and a connection is set up, but when the calss is used as a bean from a JSP Page i get the exception "No suitable driver" I have also tried put the code in the JSP page a scriptle but the same

Re: Java Beans!!

2001-03-23 Thread Thompson, Willard (GTICCC)
our beans are in the web-inf directory (of JRun web server) and we would do a jsp:useBean id=" -Original Message- From: Shahaji Kadam. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 3:35 AM To: [EMAIL PROTECTED] Subject: Java Beans!! Hi, I am calling a Java Bean from a

Re: Java Beans!!

2001-03-23 Thread Aravind
yes, i too facing the same problem. i have jsp file and the bean in the same directory (in tomcat, d:\tomcat\webapps\cms\ ) as u said, even i copied the bean to WEB-INF directory still it is not working Aravind - Original Message - From: Thompson, Willard (GTICCC) [EMAIL PROTECTED]

Re: E-mail ID validation

2001-03-23 Thread LouisVoo
goto www.javascript.com and search, you can found plenty of it. Regards, Louis \!/ (@ @) o00-(_)-00o `,,`,,`,,` (``) ` . - Original Message - From: "Priya

Re: Java Beans!!

2001-03-23 Thread Rodrigo Lopes
On Fri, 23 Mar 2001, Aravind wrote: yes, i too facing the same problem. i have jsp file and the bean in the same directory (in tomcat, d:\tomcat\webapps\cms\ ) as u said, even i copied the bean to WEB-INF directory The beans must be in the WEB-INF\classes directory still it is not

Debugging JSP with JRun Studio

2001-03-23 Thread Ganesh MohanRao
Hi All, I am trying to Debug JSP with Jrun Studio which I am not able to do. When I start Debug it gives the following error. "An error occured contacting RDS server(localhost Hostname:localhost): (9) A connection with server could not be established". Have any of you worked on this Debug in

Re: Connecting to MySql DB

2001-03-23 Thread Gavin Meehan
Thanks Nishit but how do i set the classpaph on tomcat Damien From: Nishit Trivedi [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Connecting to MySql DB Date: Fri, 23 Mar 2001 10:33:26

Cancelling of changes in a form

2001-03-23 Thread Mihir Sahu
Hi all, Is there anyway we can know if anyvalue in the jsp form has been changed or not, depending on which we can ask the user if he really wants to cancel his request. I have a Jsp form(with data retrieved from many tables) which call the javascipt function to pop of the message of, if

Re: AutoCompilation of JSP's at AppServer startup

2001-03-23 Thread Tom Simpson
Hi all Can someone give me the syntax for using a jar file in a jsp page. I get beans working but would like to put in a jar file. ( Is this possible? Thanks in advance New to JSP = Thomas Simpson [EMAIL PROTECTED] __ Do You Yahoo!? Get

Re: Cancelling of changes in a form

2001-03-23 Thread Brad Rhoads
On the server side, you can build a JavaScript array that dontains the values that will be initially displayed in the form. The on the client side, use an onsubmit function to compare each form value w/ its initial value from the array. -Original Message- From: Mihir Sahu

Next, Previous Servlet Display ??? thanks

2001-03-23 Thread sufi malak
Hi, I am writing this servlet to display the first N records and two buttons (Next and Previous), only Next button is working fine, but the Previous button is not, I know theat my implementation for Previous button is not correct, please take a look to this servlet and tell me what's wrong with

Re: Cancelling of changes in a form

2001-03-23 Thread Satyanarayan Divakar
Mihir, Assuming that you want to pop up a message only when the user changes the values .. You can make use of client side javascript function onChange() which gets fired when there is any change in the data from the initial value. This is the easiest way I can think of. But the drawback

Re: HTML Parser

2001-03-23 Thread Dennis Sosnoski
If you want a full SAX interface for parsing HTML I should have a working product next week. The HTML parser I have now supports a SAX-like interface, and I've been working on converting it over to true SAX. This will be available as free for non-commercial use, fee for commercial use. I'll

Re: Cancelling of changes in a form

2001-03-23 Thread Dubreuil, Jason
If it's not sensitive data then just drop a hidden input field on the form, and then compare the original data to a possibly changed field when they submit the page. -Original Message- From: Mihir Sahu [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 11:08 AM To: [EMAIL

Re: Connecting to MySql DB

2001-03-23 Thread Nishit Trivedi
put your mysql driver in tomcat\lib and \where you installed tomcat\webapps\examples\WEB-INF\lib i am not sure exactly..so i have it in both place...:) Nishit -Original Message- From: Gavin Meehan [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 10:57 AM To: [EMAIL PROTECTED]

JSP tutorial: need contributions.

2001-03-23 Thread Cybrarian Rök
Hello, would anyone be interested to contribute to a tutorial ? the tutorial is named 'JSP, Servlet and so on ...'; - About the tutorial: we made it in June 2000, this was a first draft; now we plan a second draft before summer; the current version is available here:

Re: Dreamweaver JSP

2001-03-23 Thread Dylan Rosario
Erwin, I developed a 30 page JSP application in under 2 week by my self with Dreamweaver Ultradev4. Complete with administration forms and multi-record views. It's the fastest way to get a mid to large size app to the market. I highly recommend it. Stick to servlets to do complex binary

Re: Caching a JSP Page

2001-03-23 Thread Subha Desikan
EXTRA PRECAUTIONS: The http version should be 1.1, otherwise the cache-control tag does not work. If nothing works, a final step for RESOLUTION: Add the header information : HEAD META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-STORE" /HEAD at the end of

Re: Connecting to MySql DB

2001-03-23 Thread Kare Nuorteva
On Fri, 23 Mar 2001, Nishit Trivedi wrote: Date: Fri, 23 Mar 2001 12:01:07 -0500 From: Nishit Trivedi [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Connecting to MySql DB put your

Re: MVC and Database Connection Pool

2001-03-23 Thread Kare Nuorteva
Hello, On Fri, 23 Mar 2001, Gerry Scheetz wrote: Date: Fri, 23 Mar 2001 10:25:35 -0500 From: Gerry Scheetz [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: MVC and Database Connection Pool

session timeout

2001-03-23 Thread Thomas
Are session timeouts renewed everytime a session is used, even if the value is not updated, i.e. is the timeout renewed with every session.getAttribute()? Thanks Thomas === To unsubscribe: mailto [EMAIL PROTECTED] with

Re: MVC and Database Connection Pool

2001-03-23 Thread Duffey, Kevin
I have a simple framework you can download from http://www.brainopolis.com/jsp/mvc/KDuffey_MVC.html It is free to use, free source. I am not sure if what your saying about Singleton is correct however. If you have a single controller servlet that implements the Singleton interface, your telling

Using jar files

2001-03-23 Thread Tom Simpson
Hi all Can you tell me if you can have Beans in a jar file for the JSP to use. If so could you lead me on where to look or give me example? Thanks in advance new to JSP --- Nishit Trivedi [EMAIL PROTECTED] wrote: put your mysql driver in tomcat\lib and \where you installed

getting paramater names from checkboxes

2001-03-23 Thread Martin Pribyl
Hi, I have a problem in handling values of checkboxes. If I write for exampple input type=submit name=action value=delete and then on some other page String whatToDo = request.getParameter("action"); then everything is OK, in whatToDo is the value DELETE. But If I have input type=chceckbox

Re: getting paramater names from checkboxes

2001-03-23 Thread Dubreuil, Jason
Add a number to name of the CheckBox if they are created dynamically. Then loop through all of them. input type=chceckbox name=select1 value=a input type=chceckbox name=select2 value=b input type=chceckbox name=select3 value=c String whatToDo = request.getParameter("select" + inum);

Re: Abwesenheitsnotiz: A best practice for moving data from table to db

2001-03-23 Thread joe smith
Peter, I assume you wrote in German? I can't read German, please resend in english. Thanks. --Original Message-- From: "Peter Perini" [EMAIL PROTECTED] To: "joe smith" [EMAIL PROTECTED] Sent: March 22, 2001 6:26:14 PM GMT Subject: Abwesenheitsnotiz: A best practice for moving data

Re: getting paramater names from checkboxes

2001-03-23 Thread Andi Anderson
use String[] whatToDo = request.getParameters("action"); multiple checkbaoxes return multiple parameters -Original Message- From: Martin Pribyl [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 2:30 PM To: [EMAIL PROTECTED] Subject: getting paramater names from checkboxes Hi, I

Re: getting paramater names from checkboxes

2001-03-23 Thread Martin Pribyl
Sorry, but it doesn't work. Error compiling source file: file:f:/java/apache/htdocs/work/movedel.jsp: Method getParameters(java.lang.String) not found in interface javax.servlet.http.HttpServletRequest. String checkbox[] = request.getParameters("movedel");

focusing back of a page

2001-03-23 Thread Mihir Sahu
Hi, I have a focus problem in which I add dynamically text fields(each time I add button is clicked, an extra field is added) in a form using JSP. I call a servlet(I do not use javascript to do it), which in turn a uses other objects to add it and finally, I call the same JSP to display

response.sendRedirect() problem

2001-03-23 Thread Thomas
At the top of my page is an access control code block that checks to see if a user is allowed access to the page. If the user doesn't have access, then they are redirected to an error page. Below the control code is a procedure to deal with a submitted form that updates a database. The problem

Re: getting paramater names from checkboxes

2001-03-23 Thread Martin Pribyl
I was faster:-)) Thanks anyway, now everything is OK. Martin - Original Message - From: "Andi Anderson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 23, 2001 9:30 PM Subject: Re: getting paramater names from checkboxes I am sorry it should look like this: String

RES: focusing back of a page

2001-03-23 Thread Rodrigo Gevaerd
You can add a html code like a name="gotohere"/a at the point where the field were added and call the jsp as "jspname.jsp#gotohere". This may not focus exactly to the same place, but this way you can choose a place to focus on instead of the top of the page, probably enough for the result to

Re: getting paramater names from checkboxes

2001-03-23 Thread Martin Pribyl
I got it!! The name of the function is getParameterValues and not getParameters. So I have to use String[] whatToDo = request.getParameterValues("action"); Thank you very much, You inspired me! Thanks Martin - Original Message - From: "Andi Anderson" [EMAIL PROTECTED] To: [EMAIL

Re: getting paramater names from checkboxes

2001-03-23 Thread Andi Anderson
-Original Message- From: Andi Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 3:31 PM To: [EMAIL PROTECTED] Subject: Re: getting paramater names from checkboxes I am sorry it should look like this: String checkbox[] = request.getParameterValues("mavdel"); my bust

Re: getting paramater names from checkboxes

2001-03-23 Thread Andi Anderson
I am sorry it should look like this: String checkbox[] = request.getParameterValues("mavdel"); my bust Andi -Original Message- From: Martin Pribyl [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 3:18 PM To: [EMAIL PROTECTED] Subject: Re: getting paramater names from checkboxes

Re: focusing back of a page

2001-03-23 Thread Brad Rhoads
Again, on the server side, write some JavaScript that set's the focus where you want it. -Original Message- From: Mihir Sahu [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: focusing back of a page Hi, I have a focus problem in

Re: getting paramater names from checkboxes

2001-03-23 Thread Andi Anderson
cool glad to help -Original Message- From: Martin Pribyl [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 3:37 PM To: [EMAIL PROTECTED] Subject: Re: getting paramater names from checkboxes I was faster:-)) Thanks anyway, now everything is OK. Martin - Original Message

Page Directive error

2001-03-23 Thread Azania Abebe
I've the following code in my jsp page when I try to compile the jsp pages I'm getting an error but if I take out the ";" the page compiles. Any idea why I'm getting this error? %@ page contentType="text/plain; charset=UTF-8 " % Thanks!

Re: Page Directive error

2001-03-23 Thread Andi Anderson
I believe that you have to use the ISO--# not UTF-8 I think what you are looking for is ISO-8859-1 -Original Message- From: Azania Abebe [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 4:39 PM To: [EMAIL PROTECTED] Subject: Page Directive error I've the following code in my

sending a cookie through URL connection

2001-03-23 Thread Vidyasagar Guduru
Hi All, I want to send a cookie information through a stand alone program please provide any Idea that how I can do this? I have a stand alone program it will sends a request to the servelt and receives the out put from the servlet, I am using URL object. My problem is I need to send some cookie

Re: Page Directive error

2001-03-23 Thread Azania Abebe
Why is that? -Original Message- From: Andi Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 1:55 PM To: [EMAIL PROTECTED] Subject: Re: Page Directive error I believe that you have to use the ISO--# not UTF-8 I think what you are looking for is ISO-8859-1

R: response.sendRedirect() problem

2001-03-23 Thread Dark
At the top of my page is an access control code block that checks to see if a user is allowed access to the page. If the user doesn't have access, then they are redirected to an error page. Below the control code is a procedure to deal with a submitted form that updates a database. The

Re: session timeout

2001-03-23 Thread Hans Bergsten
Thomas wrote: Are session timeouts renewed everytime a session is used, even if the value is not updated, i.e. is the timeout renewed with every session.getAttribute()? The session timeout comes into play only when no requests at all have been received for this session for the period of time

Re: response.sendRedirect() problem

2001-03-23 Thread Hans Bergsten
Thomas wrote: At the top of my page is an access control code block that checks to see if a user is allowed access to the page. If the user doesn't have access, then they are redirected to an error page. Below the control code is a procedure to deal with a submitted form that updates a

JSP tutorial: need contributors.

2001-03-23 Thread Jean-Christophe Brouze
Hello, would anyone be interested to contribute to a tutorial ? the tutorial is named 'JSP, Servlet and so on ...'; - About the tutorial: we made it in June 2000, this was a first draft; now we plan a second draft before summer; the current version is available here:

no 'implements' in page directive

2001-03-23 Thread suresh babu (Bawa)
Y there is no 'implements' attribute in %@page directive? we've extends but we cant use it direcly, I guess b'coz there's no mutiple inheritance in JAVA. can anybody throw some light Y these two things are like this in JSP? TIA Suresh. _