JSP FAQ Resource Information

2001-04-05 Thread Anil K. Vijendran
This is a weekly informative posting to the jsp-interest list. Before asking questions of a general nature, please check out the resources available online to see if your question already has an answer. The best place to start

Synchronization Issues

2001-04-05 Thread Stanley Tan
Hi all, Following jGuru's "Introduction to JavaServer Pages Technology", I have come across the following code: %@ page import="CounterBean" % jsp:useBean id="sessionCounter" class="CounterBean" scope="session" / jsp:useBean id="applicationCounter" scope="application" class="CounterBean"/ %

Re: JAVASCRIPT PROBLEM

2001-04-05 Thread Deepak Chawla
. -Original Message- From: paramjit singh [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Thursday, April 05, 2001 11:21 AM Subject: JAVASCRIPT PROBLEM Hello.. I am opening new Pop up internet explorer window when user clicks next button of current window by using

important

2001-04-05 Thread Amit Mahale
guys, i have made an alternate id for the mailing list...how do i unsubscribe from this email id of mine... amit. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto

Re: important

2001-04-05 Thread Hoorn, Michiel van
And that's important? How 'bout reading the sun/listserv page?? http://archives.java.sun.com/cgi-bin/wa . M -- From: Amit Mahale[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list about Java Server Pages specification and reference Sent: Thursday, April 05,

adding row dinamically in tables

2001-04-05 Thread Niraj Soni
hi i have a table generated by servlet like this table tbody !--row 1 trtdinput type=button value="Add row"/td/tr !--row 2- tr tdinput type=text name=data/td /tr ! -- /tdoby /table now i want to add new row at the comment

Re: adding row dinamically in tables

2001-04-05 Thread OK Prakasan
u can use server side scripting instead of javascript. Use a hidden field variable indicating the current number of rows. on clicking the ad row button resubmit the page . the code is like this % int Namecount =0; String[] values = new String[100]; if (request.getParameter("Namecount") ==

Uploading with Oreally's MultipartRequest

2001-04-05 Thread Angel Belda
Hi, Have you ever used O'really ' s MultipartRequest? I'm uploading images ok, but How can I upload a file to a directory which is defined like a parameter in the same form where is defined the image I am uploading? So, If I have to declare my

link clicking problem

2001-04-05 Thread Synu Jacob Vengal
Hi, I tried to call a javascript function on clicking a link. The validation is being performed,but the cursor style is always busy, when the validation returns false. Why is it so?? The code fragment is shown below. a href="javascript:gotoAdd();"img src="/images/addmore.gif" alt="Add

Re: adding row dinamically in tables

2001-04-05 Thread Niraj Soni
thats good but my data is very big and its take to much time to add a single row in table and a user hasto wait have u any example of client side script to add a row in table? - Original Message - From: "OK Prakasan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 05, 2001

Re: Uploading with Oreally's MultipartRequest

2001-04-05 Thread DivakarL
hi one of the methods in the MultipartRequest class takes the directiory into which the files are to be uploaded as a parameter.i think u can enter the path into the form and send it as a parameter to the method. hope u understood. cheers Divakar. -Original Message- From: A mailing

Re: Record-locking in J2EE/JSP/Servlet apps?

2001-04-05 Thread Keith Kwiatek
I think you mean "any time you want to work pessimistically" This is an outstanding issue I have also been wrestling with the same thing for a while now and it seems, for now, that the kludgy timestamp method is about the only solution I saw some more discussion on this issue

Re: Record-locking in J2EE/JSP/Servlet apps?

2001-04-05 Thread T.A. Flores
Have you posted this to the EJB list? I know this was discussed on EJB quite a while ago, I just don't remember the outcome. However, you might want to move the question there and see what those list members have to say on the mattter - - Original Message - From: Keith Kwiatek [EMAIL

browser timeout

2001-04-05 Thread Jeff Sahol
Correct me if I'm wrong, but isn't there an HTTP header or something that allows you to tell the browser what value to use before timing out the page? I have a long-running (but not super-long- running) JSP that is just over IE'e limit, but it looks just fine in Opera. I'm thinking that if the

How can I catch an JSP error ????

2001-04-05 Thread BERWART Thierry
Hello, I have a jsp which filled a bean with 3 variables : a name, an address email and an age. This is a part of my JSP : %@ page import="test_tbe" errorPage="error.jsp" % jsp:useBean id ="test" scope="page" class="test_tbe" / jsp:setProperty name="test" property="name" param="p_name"/

Re: Synchronization Issues

2001-04-05 Thread Roy Truelove
Hey Stanley.. things who's scope are "application" are shared by all of the users using the webapp at the same time. So if you and I are both running that page, there's a chance that we'll try to access that bean at the exact same time. Because of that, it has to be synchronized, so that only

Re: How can I catch an JSP error ????

2001-04-05 Thread John Thomas
u can easily write a javascript to check whether what u entered is an numeral or alphabet. There's no need to let an exception be thrown in first place. John BERWART Thierry [EMAIL PROTECTED]@java.sun.com on 04/05/2001 07:36:32 PM Please respond to A mailing list about Java Server Pages

Re: JAVASCRIPT PROBLEM

2001-04-05 Thread Michael Sweeney
The only time you can close a window without the alert dialogues is if your script has opened the window. If you try to close a parent window or an unrelated window with a script, it will always present the dialogue. It's a security thing. Michael At 11:49 PM 4/4/01 -0600, you wrote: Hello.. I

How to maintain the state of any checkBox, combo using JavaBean

2001-04-05 Thread ShriKant Vashishtha
Hi, Actually I want to store the state of a JSP page into one JavaBean using getter and setter methods. So if JSP needs to be reloaded, the state information can be got from getter methods. I am able to do it successfully with TextBoxes as the string information can be used in setter methods.

Re: How can I catch an JSP error ????

2001-04-05 Thread Michael Sweeney
Remember that when the form is submitted, it always sends data as a string in any case, no matter what the user enters. You have to use Integer.parseInt(request.getParameter('paramName') to make the value an int anyway. You might also want to check the form input with some javascript to make sure

accesing images from another server

2001-04-05 Thread Antillon Reyes Rafael Martin - EXT
Hi all: When i run a JSP and in an img has a source from another server (i.e. http:\\www.geocities.com\somepage\someimage.jpg) it doesnt display the image, but if the image is local (i.e. src="/images/someimage.jpg") it does work. Whats keeping the jsp from displaying them? because the source

Re: How can I catch an JSP error ????

2001-04-05 Thread Nils Janson
Hi, You can use JavaScript and check the fields on submit. Using something like: var check = pareseInt(document.form.field); if (isNaN(check)) {alert("Enter a number! ");} or with JSP try { int age = Interger.parseInt(request.getParameter("age")); bean.setAge(age); } ctach

No Subject

2001-04-05 Thread Shaikh, NeelKamal (MED, TCS America)
unscribe === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at:

Re: How can I catch an JSP error ????

2001-04-05 Thread John Thomas
Hi, But Micheal if u use setProperty the conversion from string to int would be automatically done if the value entered is a numeral. I think this is one of the intospection features. pls correct me if i am wrong. John Michael Sweeney [EMAIL PROTECTED]@java.sun.com on 04/05/2001 10:22:14 PM

Re: JSP and Oracle CLOB's...how to insert, update, delete?

2001-04-05 Thread Santapur, Rao
I am also having similar problem, what I need to do is convert a String(of over 4000 characters) to a Clob and insert the value in Oracle's Clob column. I can read the data from that column using resultset.getClob() method, but I can't insert/update that column. Has anybody did something like

Re: How can I catch an JSP error ????

2001-04-05 Thread Michael Sweeney
At 10:32 PM 4/5/01 +0530, you wrote: Hi, But Micheal if u use setProperty the conversion from string to int would be automatically done if the value entered is a numeral. I think this is one of the intospection features. pls correct me if i am wrong. John It's more likely that I am wrong (or at

java runtime error and solaris xwindows

2001-04-05 Thread Frank Mancini
Can someone tell me what this error is and how to fix it Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at

Re: JAVASCRIPT PROBLEM

2001-04-05 Thread Dean Sacramone
You can't get rid off that error..cause you are trying to close the "parent" windowmaybe an "onerror" will squash the error box--not sure. If you find a solution, let us know. -Original Message- From: A mailing list about Java Server Pages specification and reference

Re: JSP and Databases

2001-04-05 Thread Sebastian Odong-Wodolam
I'm new to JSP and want to know how can I write code for JSP to communicate with MicroSoft Access DataBase97. If possible, could someone show me some code or direct me in the right direction. Thanks. Sebastian === To

generating report in Excel

2001-04-05 Thread Debasis Dash
Hi all, I want to generate the excel file based on the data retrived from database in jsp.How can i do that? help me please. Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest:

Re: JSP and Databases

2001-04-05 Thread Sebastian Odong-Wodolam
This message bounced back to me, maybe because of the way I had sent it, but if someone could send me some info I would appreciate it: I'm new to JSP and want to know how can I write code for JSP to communicate with MicroSoft Access DataBase97. If possible, could someone show me some code or

session variables

2001-04-05 Thread Diana Luz Buitrago B.
Hello! i'm working jsp with GNUJSP 0.9.10 compiler and i don't know how i can define session variables and how to read them from other pages. i was trying to define them with "session.putValue("variable_name", variable_value);" but because of the GNUJSP 0.9.10 it appears as not defined. how can

Re: session variables

2001-04-05 Thread Nils Janson
Hi, try session.setAttribute("variable_name", variable_value); session.getAttribute("variable_name"); /Nils From: "Diana Luz Buitrago B." [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:

Re: Record-locking in J2EE/JSP/Servlet apps?

2001-04-05 Thread Jang Thye cheng
Hi, How about using bean-managed transaction in a stateful session bean? (check up chapter 11 in EJB1.1 specs). - JT - On Thursday, April 5, 2001, at 11:37 PM, Keith Kwiatek wrote: I think you mean "any time you want to work pessimistically" This is an outstanding issue I have

jspDestroy not executing

2001-04-05 Thread Alex A. Almero
i have a jspDestroy method on my jsp but its not working. any ideas? ÿÿü: ¢æ † ÿüg­Ê‹«~·žÿ¡¢Ü¢fv·¬±«a¶Úÿÿùš _òj (ýÊ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff