Re: Problem with reloading the page...
maybe the problem is that the records are stored in the view state of the page, so the best way is to reload the page using javascript as Jayant said -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jayant Kataria Sent: Tuesday, December 17, 2002 7:13 AM To: [EMAIL PROTECTED] Subject: Re: Problem with reloading the page... Sensitivity: Personal Hi, Try this opener.location.reload() ; Jayant -Original Message- From: Mallikarjuna Budur [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 10:59 AM To: [EMAIL PROTECTED] Subject: Problem with reloading the page... Importance: High Sensitivity: Personal Hi, I am facing a problem like this: I have a main (List) page where all the records are displayed and there are options of adding/modifying/deleting record(s). When I am clicking add button, I am opening a new window where I am adding a record and submitting that page by clicking on save button(This is image button). After that I am closing that new window (using window.close ()) and reloading the list page (by calling the list page just after saving the record). Script function save Record () { document.icareForm.action=servlet to insert record; document.icareForm.submit (); opener.document.icareForm.action = list servlet; opener.document.icareForm.submit (); window.close (); } /script New record is added in database but not reflecting in my main (List) page even after reloading the page. Once I am refreshing the window then only it reflects in list page. I want record should be reflected in list page without refreshing the window. Thanks in advance. = To unsubscribe: mailto [EMAIL PROTECTED] with body: 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: Problem with reloading the page...
I don't think the last 3 lines of your JavaScript fucntion will ever run, i.e. those lines after the document.icareForm.submit(); as this causes a new page to be requested from the server, hence the browser immediately stops processing the JavaScript on the current page. Secondly even if those lines did run you will have a race condition where your original opener page might retrieve it's new list before the add page has finished processing. What you could do is submit the form as you are doing at the moment, without the call to the opener page: script function saveRecord () { document.icareForm.action=servlet to insert record; document.icareForm.submit (); } /script and then when the JSP / servlet that you are psoting to is finished processing, have it return a small page containing just the remaining JavaScript: script // // this script will execute as soon as the page loads // opener.document.icareForm.action = list servlet; opener.document.icareForm.submit (); window.close (); /script This will ensure that there is no race condition. Cheers Adrian -Original Message- From: Mallikarjuna Budur [SMTP:[EMAIL PROTECTED]] Sent: 17 December 2002 07:29 To: [EMAIL PROTECTED] Subject: Problem with reloading the page... Importance: High Sensitivity: Personal Hi, I am facing a problem like this: I have a main (List) page where all the records are displayed and there are options of adding/modifying/deleting record(s). When I am clicking add button, I am opening a new window where I am adding a record and submitting that page by clicking on save button(This is image button). After that I am closing that new window (using window.close ()) and reloading the list page (by calling the list page just after saving the record). Script function save Record () { document.icareForm.action=servlet to insert record; document.icareForm.submit (); opener.document.icareForm.action = list servlet; opener.document.icareForm.submit (); window.close (); } /script New record is added in database but not reflecting in my main (List) page even after reloading the page. Once I am refreshing the window then only it reflects in list page. I want record should be reflected in list page without refreshing the window. Thanks in advance. == To unsubscribe: mailto [EMAIL PROTECTED] with body: 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 -- It is the strict policy of Truworths that its e-mail facility and all e-mail communications emanating therefrom, should be utilised for business purposes only and should conform to high professional and business standards. Truworths has stipulated certain regulations in terms whereof strict guidelines relating to the use and content of e-mail communications are laid down. The use of the Truworths e-mail facility is not permitted for the distribution of chain letters or offensive mail of any nature whatsoever. Truworths hereby distances itself from and accepts no liability in respect of the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Truworths furthermore disclaims liability for any unauthorised instruction for which permission was not granted.Truworths Limited accepts no liability for any consequences arising from or as a result of reliance on this message unless it is in respect of bona fide Truworths business for which proper authorisation has been granted. Any recipient of an unacceptable communication, a chain letter or offensive material of any nature is requested to notify the Truworths e-mail administrator ([EMAIL PROTECTED]) immediately in order that appropriate action can be taken against the individual concerned. === To unsubscribe: mailto [EMAIL PROTECTED] with body: 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
[no subject]
HI all, I am new to servlet I am using tomcat. I don't know how to put my servlet file to Tomcat. I don't have JSDK. I want to work with servlet, Thanks in Advance - The secret of getting ahead is getting started. The secret of getting start is breaking your complex overwhelming tasks into small manageable tasks, and then starting on the first one. === To unsubscribe: mailto [EMAIL PROTECTED] with body: 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
RES:
It's on your own message... 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 -Mensagem original- De: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]Em nome de Snehal Pandya Enviada em: segunda-feira, 16 de dezembro de 2002 06:43 Para: [EMAIL PROTECTED] Assunto: HI all, I am new to servlet I am using tomcat. I don't know how to put my servlet file to Tomcat. I don't have JSDK. I want to work with servlet, Thanks in Advance - The secret of getting ahead is getting started. The secret of getting start is breaking your complex overwhelming tasks into small manageable tasks, and then starting on the first one. === To unsubscribe: mailto [EMAIL PROTECTED] with body: 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
how to configure tomcat for oracle
hi all , i want to know , how to configure tomcat for oracle.jdbc.driver.OracleDriver .. i have tomcat 4.0.4 .. thanks and regards , - anindya === To unsubscribe: mailto [EMAIL PROTECTED] with body: 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
[no subject]
Install Netbeans it will do all the job for you. hihihihihi. But thats the fact. It has builtin support for tomcat. I just installed the executable. Voila I am able to run my jsp, servlet. It took me just a minute to deploy my web application. Have a great day. karthikeyan. - Original Message - From: Snehal Pandya [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 16, 2002 2:13 PM HI all, I am new to servlet I am using tomcat. I don't know how to put my servlet file to Tomcat. I don't have JSDK. I want to work with servlet, Thanks in Advance -- --- The secret of getting ahead is getting started. The secret of getting start is breaking your complex overwhelming tasks into small manageable tasks, and then starting on the first one. === To unsubscribe: mailto [EMAIL PROTECTED] with body: 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
session timeout setting
I have a site written in JSP that uses session info to validate user's sessions. I want to change the default timeout of the session from 60 mins but I'm not sure what is controlling this or how/where to change it. Here is more info to help figure this out...if anyone has any ideas I would greatly appreciate it. My initial JSP page has a login which, when validated, sets a cookie that stores the session ID. Every page thereafter, upon initial load, checks the current session ID against this cookie and if they don't match, the user is directed to re-login. My users want a longer timeout but I'm not sure where to control this (maybe this question is for the Tomcat listI just don't know). Thanks, Kenny === To unsubscribe: mailto [EMAIL PROTECTED] with body: 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 timeout setting
You can put this in your code: session.setMaxInactiveInterval(time); // time in seconds Josep R. Raurell En/na Kenny G. Dubuisson, Jr. ha escrit: I have a site written in JSP that uses session info to validate user's sessions. I want to change the default timeout of the session from 60 mins but I'm not sure what is controlling this or how/where to change it. Here is more info to help figure this out...if anyone has any ideas I would greatly appreciate it. My initial JSP page has a login which, when validated, sets a cookie that stores the session ID. Every page thereafter, upon initial load, checks the current session ID against this cookie and if they don't match, the user is directed to re-login. My users want a longer timeout but I'm not sure where to control this (maybe this question is for the Tomcat listI just don't know). Thanks, Kenny === To unsubscribe: mailto [EMAIL PROTECTED] with body: 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 timeout setting
Will this keep it from generating a new session ID every 60 mins? Thanks for the quick response. Kenny - Original Message - From: Josep R. Raurell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002 10:24 AM Subject: Re: session timeout setting You can put this in your code: session.setMaxInactiveInterval(time); // time in seconds Josep R. Raurell En/na Kenny G. Dubuisson, Jr. ha escrit: I have a site written in JSP that uses session info to validate user's sessions. I want to change the default timeout of the session from 60 mins but I'm not sure what is controlling this or how/where to change it. Here is more info to help figure this out...if anyone has any ideas I would greatly appreciate it. My initial JSP page has a login which, when validated, sets a cookie that stores the session ID. Every page thereafter, upon initial load, checks the current session ID against this cookie and if they don't match, the user is directed to re-login. My users want a longer timeout but I'm not sure where to control this (maybe this question is for the Tomcat listI just don't know). Thanks, Kenny === To unsubscribe: mailto [EMAIL PROTECTED] with body: 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: session timeout setting
I only use a session variable, Tomcat does the cookie work, and I only check if the user variable exist in the session. After the time of inactivity, Tomcat closes the session and the user must revalidate. I dont know if is the same that you do. Josep En/na Kenny G. Dubuisson, Jr. ha escrit: Will this keep it from generating a new session ID every 60 mins? Thanks for the quick response. Kenny - Original Message - From: "Josep R. Raurell" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002 10:24 AM Subject: Re: session timeout setting You can put this in your code: session.setMaxInactiveInterval(time); // time in seconds Josep R. Raurell En/na Kenny G. Dubuisson, Jr. ha escrit: I have a site written in JSP that uses session info to validate user's sessions. I want to change the default timeout of the session from 60 mins but I'm not sure what is controlling this or how/where to change it. Here is more info to help figure this out...if anyone has any ideas I would greatly appreciate it. My initial JSP page has a login which, when validated, sets a cookie that stores the session ID. Every page thereafter, upon initial load, checks the current session ID against this cookie and if they don't match, the user is directed to re-login. My users want a longer timeout but I'm not sure where to control this (maybe this question is for the Tomcat listI just don't know). Thanks, Kenny === To unsubscribe: mailto [EMAIL PROTECTED] with body: "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 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "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: Tutorial for JSP
http://www.jsptut.com/Index.html http://java.sun.com/products/jsp/technical.html http://www.jspsmart.com/ and http://google.com Ali Raza [EMAIL PROTECTED] [2002.12.16 13:08] Hi everyone Well I am a newbie to JSP. Where can I find the tutorial of JSP for beginners. Please send me url. Thanx in advance Ali Raza === To unsubscribe: mailto [EMAIL PROTECTED] with body: 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: Controlling session when user is out
i think you can check this article: http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html -Original Message- From: Christian Hamann L [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 8:56 PM To: [EMAIL PROTECTED] Subject: Re: Controlling session when user is out Hi All I have applications in my Application Server, which everybody are connecting to database, for some applications i use beans to manage information, but whne the user close the browser i dont know how can control his session, i can put a button for inavlidate sessions, but the user dont use that option, what can i do to controll it. Because it does lowest to my Server, because the session wasn't invalidated. atte Christian Hamann L. == = To unsubscribe: mailto [EMAIL PROTECTED] with body: 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 Disclaimer: This e-mail message along with any attachments is intended only for the addressee and may contain confidential and privileged information of GTL Limited. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system. === To unsubscribe: mailto [EMAIL PROTECTED] with body: 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