sign off
sign off -Mensaje original- De: Ying Sun [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 20 de abril de 2001 16:16 Para: [EMAIL PROTECTED] Asunto: Re: sign off sign off thanks === 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
Cookie problem
Hi, I have developed a website. The user has an option to set cookies to remember his username and password by checking a checkbox (I'm setting the cookie to expire after a month). Now if the user unchecks the checkbox how should I expire the cookies immediately. I've tried setMaxAge(0) but it does't work. I shall be thankful if you can send me an example how to resolve my problem. Thank you in anticipation. Thanks Regards Shuwaz Abbasi. Software Developer. Ph # 5584677-8. www.visualsoft-inc.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
Re: Set property=* with an array of fields
Case 2: Let's say the form fields are named field[0], field[1], ... What would the declaration be for the set-parameter method in the bean? public void setField(int field, String input) is the closest I could guess, but it doesn't seem to work. I haven't tried, but one guess is that setField(String input) is called n times with field[0] .. field[n] as parameter. Please post if you find a solution, could be interesting. /Mattias Jiderhamn [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
Re: Cookie problem
- Original Message - From: Shuja Nawaz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 28, 2000 12:28 PM Subject: Cookie problem Hi, I have developed a website. The user has an option to set cookies to remember his username and password by checking a checkbox (I'm setting the cookie to expire after a month). Now if the user unchecks the checkbox how should I expire the cookies immediately. I've tried setMaxAge(0) but it does't work. I shall be thankful if you can send me an example how to resolve my problem. Thank you in anticipation. Thanks Regards Shuwaz Abbasi. Software Developer. Ph # 5584677-8. www.visualsoft-inc.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: Set property=* with an array of fields
Stephen: The following code works just perfect: JSP page: ... form input type=... name=same_name value=valueA input type=... name=same_name value=valueB input type=... name=same_name value=valueC /form /... ON POST: jsp:setProperty name=id property=... param=same_name / What this code does is take all the parameters named 'same_name', make an array of them and send it to the method on the bean. Then you can get the array from the bean and loop through it. The bean: private String property[] = new String[] {}; public String[] get...() { return this.property; } public void set...(String b[]) { this.property = b; } If you don't want to use beans you can do the following: JSP page: ... form input type=... name=same_name value=valueA input type=... name=same_name value=valueB input type=... name=same_name value=valueC /form /... ON POST: % Enumeration e = request.getParameterValues(same_name); while (e.hasMoreElements()) { ... } % You have to check if the last method and names are correct because I don't remember totally. Hope this help Atilio --- Stephen T. Dziuban [EMAIL PROTECTED] wrote: Suppose: an html form has an array of similar fields, and on posting we want to send their parameter values to a bean using jsp:setProperty name=fieldArrayBean property=* / (with little or no code added). Case 1: Let's say the form fields are named field0, field1, ... Then public void setField0(String input), public void setField1(String input), ... could be used even if not the most elegant. Case 2: Let's say the form fields are named field[0], field[1], ... What would the declaration be for the set-parameter method in the bean? public void setField(int field, String input) is the closest I could guess, but it doesn't seem to work. Anybody solved this one? Steve Dz. === 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 = Ing. Atilio Ranzuglia Buteler [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from 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
Re: Autosetting properties of beans within JSP
Hello Atilo, I have just recently joined this list but for some reason my posts keep getting returned to me. Would you please let me know if you could assist me with my problem below and even post it to the list. Thank you, Robin Porter I have been trying to autoset the properties of a bean within a JSP but have not been having any luck. The line I was trying to use is: jsp:setProperty name=Book property=*/ Since this hasn't worked I have had to explicitly set the parameters individually with lines like: Book.setUsername(request.getParameter(Username)); Could you please make any suggestions as to what I may be doing wrong with the autosetting of these properties. My understanding is that if I pass in the parameters as part of the request object and then use the property=*, this should cause any properties of the Book bean that match a request parameter to be set as long as there was a set method for this property in the bean (which there was). These properties were not getting set with: jsp:setProperty name=Book property=*/ They were always NULL, so this is why I had to revert to setting each one individually. Please tell me why this autoset is not working for me. Thank you. === 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: Autosetting properties of beans within JSP
The line I was trying to use is: jsp:setProperty name=Book property=*/ Since this hasn't worked I have had to explicitly set the parameters individually with lines like: Book.setUsername(request.getParameter(Username)); I'm not sure in this matter, put sometimes the JSP/Servler API can be a bit poky. Try to use lower case letters in the parameter name BUT keep the upper case in the method name. 1. Change you form input name=User ... to input name=user ... 2. Try with Book.setUsername(request.getParameter(username)); // Note case 3. Try if jsp:setProperty name=Book property=*/ works Good luck. /Mattias Jiderhamn [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
Re: Autosetting properties of beans within JSP
Robin: As long as you write to [EMAIL PROTECTED] all your mails will arrive. You will recieve the one you wrote and some mailing failures. As you can see Mattias answer you, this is a good one. You have to be really 'cautioned' with your case. Follow the directions offered by Mattias. And more thing to keep in mind, if the JSP container encounter one jsp:setProperty tag, it looks at the bean and tries to find the corresponding setXxx method for every property you said, if they are founded there is no problem but if some one isn't found nothing happens, no exception are thrown. This way you don't know if something went wrong. You can do the following test to see wich property is giving you the problem: jsp:setProperty name=Class property=prop1 / jsp:setProperty name=Class property=prop2 / jsp:setProperty name=Class property=prop3 / Hope this help Atilio --- Robin Porter [EMAIL PROTECTED] wrote: Hello Atilo, I have just recently joined this list but for some reason my posts keep getting returned to me. Would you please let me know if you could assist me with my problem below and even post it to the list. Thank you, Robin Porter I have been trying to autoset the properties of a bean within a JSP but have not been having any luck. The line I was trying to use is: jsp:setProperty name=Book property=*/ Since this hasn't worked I have had to explicitly set the parameters individually with lines like: Book.setUsername(request.getParameter(Username)); Could you please make any suggestions as to what I may be doing wrong with the autosetting of these properties. My understanding is that if I pass in the parameters as part of the request object and then use the property=*, this should cause any properties of the Book bean that match a request parameter to be set as long as there was a set method for this property in the bean (which there was). These properties were not getting set with: jsp:setProperty name=Book property=*/ They were always NULL, so this is why I had to revert to setting each one individually. Please tell me why this autoset is not working for me. Thank you. === 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 = Ing. Atilio Ranzuglia Buteler [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from 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
placing data in Application level from servlets
HI Folks: wondering if anyone has any ideas on how to access the application level objects ( i.e similar to ASP application object) using a servlet? any help will be appreciated Asim Pasha IQHealth Cerner Corporation CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws and is intended only for the use of the addressee. Unauthorized forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerners corporate offices in Kansas City, Missouri, U.S.A at (+1) (816) 221-1024. === 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
Mailing this list (was RE: Autosetting properties of beans within JSP)
Robin: As long as you write to [EMAIL PROTECTED] all your mails will arrive. You will recieve the one you wrote and some mailing failures. And remember that your from/reply adress (in you mail program) must be the EXACT one you registered with. /Mattias Jiderhamn === 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: placing data in Application level from servlets
wondering if anyone has any ideas on how to access the application level objects ( i.e similar to ASP application object) using a servlet? Try pageContext.getAttribute(objectName, PageContext.SESSION_SCOPE ); See javax.servlet.jsp.PageContext for documentation Mattias Jiderhamn Expert Systems [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
Re: placing data in Application level from servlets
Anyway, application is an implicit object, so you can use without declaration. In this case, you can do the following: application.getAttribute(objectName) or application.getValue(objectName) It depends on the servlet API version you are using. The first one is for servlet's version 2.2 and the second one is servlet's version 2.1. Hope this help Atilio --- Mattias Jiderhamn [EMAIL PROTECTED] wrote: wondering if anyone has any ideas on how to access the application level objects ( i.e similar to ASP application object) using a servlet? Try pageContext.getAttribute(objectName, PageContext.SESSION_SCOPE ); See javax.servlet.jsp.PageContext for documentation Mattias Jiderhamn Expert Systems [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 = Ing. Atilio Ranzuglia Buteler [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from 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
Re: Executing a unix commmand in jsp
You can only exec an executable, and batch files aren't executable. Try executing cmd.exe /c mkdir c:\\kkk on Windows NT or command.com /c mkdir c:\\kkk on Windows 9x. (*Chris*) - Original Message - From: ZhaoBin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 7:12 PM Subject: Re: [JSP-INTEREST] Executing a unix commmand in jsp Hi all, How can i executing a Operating command in java ? as below ? public class Exec { public static void main(String[] args) { System.out.println(Begin); Runtime r= java.lang.Runtime.getRuntime(); System.out.println(r.totalMemory()=+r.totalMemory()); System.out.println(r.freeMemory()=+r.freeMemory()); try { r.exec(mkdir c:\\kkk); } catch (Exception ex) { ex.printStackTrace(); } } } Why I get such Error message ? Begin r.totalMemory()=2031616 r.freeMemory()=1842840 java.io.IOException: CreateProcess: mkdir c:\kkk error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.init(Win32Process.java:66) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:551) at java.lang.Runtime.exec(Runtime.java:418) at java.lang.Runtime.exec(Runtime.java:361) at java.lang.Runtime.exec(Runtime.java:325) at Exec.main(Exec.java:9) You help will be appreciated. Best Regards. ZhaoBin - Original Message - From: Chris Pratt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 4:42 AM Subject: Re: Executing a unix commmand in jsp Take a look at the java.lang.Runtime.exec() methods. (*Chris*) - Original Message - From: Mihir Sahu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 1:24 PM Subject: [JSP-INTEREST] Executing a unix commmand in jsp Hi all, Can anybody help me in telling how to execute a operating system command in a jsp page. Thanks Regards Mihir horwat wrote: A friend of mine, Greg Murray, created MightyJ, an IDE written in java. It is extendable through a plugin mechanism which allows plugins to be loaded manually or over the web. It currently has a search and zip viewer plugins which you may find useful. http://www.mightyj.com/ Justy - Original Message - Does anyone know where I can get a tool that will search jars, zips, etc. for a specific class file and it's directory... _ Get your FREE download of MSN Explorer at http://explorer.msn.com === Høm¶Ÿÿà #‚êîr‰¿Ž «»÷Ú«÷Úª– z;)©ž '«¾W _ Do You Yahoo!? Get your free @yahoo.com address at http://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
Re: Cookie problem
Immediately is a funny thing in web time. It can mean anything from right now to the next time I close all my browser instances. What I usually do if it's really important to know is put a marker in the user record. Something like PersistentLogin=true. Then when the user logs out, set the Max Age to 0 and also set PersistentLogin to false. When the user comes back to the site, both the cookie must be present and PersistentLogin must be true to pass by the login screen. (*Chris*) - Original Message - From: Shuja Nawaz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 28, 2000 12:28 AM Subject: [JSP-INTEREST] Cookie problem Hi, I have developed a website. The user has an option to set cookies to remember his username and password by checking a checkbox (I'm setting the cookie to expire after a month). Now if the user unchecks the checkbox how should I expire the cookies immediately. I've tried setMaxAge(0) but it does't work. I shall be thankful if you can send me an example how to resolve my problem. Thank you in anticipation. Thanks Regards Shuwaz Abbasi. Software Developer. Ph # 5584677-8. www.visualsoft-inc.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 _ Do You Yahoo!? Get your free @yahoo.com address at http://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
Re: Autosetting properties of beans within JSP
That's not quite true, I had a major problem using the list with Microsoft Outlook. Every post I sent was returned, and it was very obvious that is was not accepted by the list processor. Something about not accepting attachments (which I wasn't including anyway). I switched to Microsoft Outlook Express and a different account and everything has worked fine since. But there are definately some hinky things with the list. (*Chris*) - Original Message - From: Atilio Ranzuglia [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 6:48 AM Subject: Re: [JSP-INTEREST] Autosetting properties of beans within JSP Robin: As long as you write to [EMAIL PROTECTED] all your mails will arrive. You will recieve the one you wrote and some mailing failures. As you can see Mattias answer you, this is a good one. You have to be really 'cautioned' with your case. Follow the directions offered by Mattias. And more thing to keep in mind, if the JSP container encounter one jsp:setProperty tag, it looks at the bean and tries to find the corresponding setXxx method for every property you said, if they are founded there is no problem but if some one isn't found nothing happens, no exception are thrown. This way you don't know if something went wrong. You can do the following test to see wich property is giving you the problem: jsp:setProperty name=Class property=prop1 / jsp:setProperty name=Class property=prop2 / jsp:setProperty name=Class property=prop3 / Hope this help Atilio --- Robin Porter [EMAIL PROTECTED] wrote: Hello Atilo, I have just recently joined this list but for some reason my posts keep getting returned to me. Would you please let me know if you could assist me with my problem below and even post it to the list. Thank you, Robin Porter I have been trying to autoset the properties of a bean within a JSP but have not been having any luck. The line I was trying to use is: jsp:setProperty name=Book property=*/ Since this hasn't worked I have had to explicitly set the parameters individually with lines like: Book.setUsername(request.getParameter(Username)); Could you please make any suggestions as to what I may be doing wrong with the autosetting of these properties. My understanding is that if I pass in the parameters as part of the request object and then use the property=*, this should cause any properties of the Book bean that match a request parameter to be set as long as there was a set method for this property in the bean (which there was). These properties were not getting set with: jsp:setProperty name=Book property=*/ They were always NULL, so this is why I had to revert to setting each one individually. Please tell me why this autoset is not working for me. Thank you. === 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 = Ing. Atilio Ranzuglia Buteler [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from 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 _ Do You Yahoo!? Get your free @yahoo.com address at http://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
Re: Autosetting properties of beans within JSP (list problem)
It's not a list problem. The problem is with Microsoft Outlook/Microsoft Exchange. For some reason, this product pair creates an HTML copy of your outgoing email and appends it to your text-only email, as an attachment. The HTML attachment gets rejected by the list because attachments aren't allowed. And this problem occurs regardless of your personal settings in Outlook! I've got mine set to Text Only Email, yet I still have this problem. No one here seems to be able to figure it out, and have spent a lot of time looking at both Outlook and Exchange settings. :( I've had to jump out to Eudora to send this message, which is the only alternative I came up with. Jay -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 10:31 AM To: [EMAIL PROTECTED] Subject: Re: Autosetting properties of beans within JSP That's not quite true, I had a major problem using the list with Microsoft Outlook. Every post I sent was returned, and it was very obvious that is was not accepted by the list processor. Something about not accepting attachments (which I wasn't including anyway). I switched to Microsoft Outlook Express and a different account and everything has worked fine since. But there are definately some hinky things with the list. (*Chris*) - Original Message - From: Atilio Ranzuglia [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 6:48 AM Subject: Re: [JSP-INTEREST] Autosetting properties of beans within JSP Robin: As long as you write to [EMAIL PROTECTED] all your mails will arrive. You will recieve the one you wrote and some mailing failures. As you can see Mattias answer you, this is a good one. You have to be really 'cautioned' with your case. Follow the directions offered by Mattias. And more thing to keep in mind, if the JSP container encounter one jsp:setProperty tag, it looks at the bean and tries to find the corresponding setXxx method for every property you said, if they are founded there is no problem but if some one isn't found nothing happens, no exception are thrown. This way you don't know if something went wrong. You can do the following test to see wich property is giving you the problem: jsp:setProperty name=Class property=prop1 / jsp:setProperty name=Class property=prop2 / jsp:setProperty name=Class property=prop3 / Hope this help Atilio --- Robin Porter [EMAIL PROTECTED] wrote: Hello Atilo, I have just recently joined this list but for some reason my posts keep getting returned to me. Would you please let me know if you could assist me with my problem below and even post it to the list. Thank you, Robin Porter I have been trying to autoset the properties of a bean within a JSP but have not been having any luck. The line I was trying to use is: jsp:setProperty name=Book property=*/ Since this hasn't worked I have had to explicitly set the parameters individually with lines like: Book.setUsername(request.getParameter(Username)); Could you please make any suggestions as to what I may be doing wrong with the autosetting of these properties. My understanding is that if I pass in the parameters as part of the request object and then use the property=*, this should cause any properties of the Book bean that match a request parameter to be set as long as there was a set method for this property in the bean (which there was). These properties were not getting set with: jsp:setProperty name=Book property=*/ They were always NULL, so this is why I had to revert to setting each one individually. Please tell me why this autoset is not working for me. Thank you. === 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 = Ing. Atilio Ranzuglia Buteler [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from 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
Re: Autosetting properties of beans within JSP (list problem)
But it's properly attached as a multipart/alternative not a multipart/mixed (which would constitute a true attachment) The list should allow alternate's, in fact it can generate them. (*Chris*) - Original Message - From: Jay Burgess [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 8:52 AM Subject: Re: [JSP-INTEREST] Autosetting properties of beans within JSP (list problem) It's not a list problem. The problem is with Microsoft Outlook/Microsoft Exchange. For some reason, this product pair creates an HTML copy of your outgoing email and appends it to your text-only email, as an attachment. The HTML attachment gets rejected by the list because attachments aren't allowed. And this problem occurs regardless of your personal settings in Outlook! I've got mine set to Text Only Email, yet I still have this problem. No one here seems to be able to figure it out, and have spent a lot of time looking at both Outlook and Exchange settings. :( I've had to jump out to Eudora to send this message, which is the only alternative I came up with. Jay -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 10:31 AM To: [EMAIL PROTECTED] Subject: Re: Autosetting properties of beans within JSP That's not quite true, I had a major problem using the list with Microsoft Outlook. Every post I sent was returned, and it was very obvious that is was not accepted by the list processor. Something about not accepting attachments (which I wasn't including anyway). I switched to Microsoft Outlook Express and a different account and everything has worked fine since. But there are definately some hinky things with the list. (*Chris*) - Original Message - From: Atilio Ranzuglia [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 6:48 AM Subject: Re: [JSP-INTEREST] Autosetting properties of beans within JSP Robin: As long as you write to [EMAIL PROTECTED] all your mails will arrive. You will recieve the one you wrote and some mailing failures. As you can see Mattias answer you, this is a good one. You have to be really 'cautioned' with your case. Follow the directions offered by Mattias. And more thing to keep in mind, if the JSP container encounter one jsp:setProperty tag, it looks at the bean and tries to find the corresponding setXxx method for every property you said, if they are founded there is no problem but if some one isn't found nothing happens, no exception are thrown. This way you don't know if something went wrong. You can do the following test to see wich property is giving you the problem: jsp:setProperty name=Class property=prop1 / jsp:setProperty name=Class property=prop2 / jsp:setProperty name=Class property=prop3 / Hope this help Atilio --- Robin Porter [EMAIL PROTECTED] wrote: Hello Atilo, I have just recently joined this list but for some reason my posts keep getting returned to me. Would you please let me know if you could assist me with my problem below and even post it to the list. Thank you, Robin Porter I have been trying to autoset the properties of a bean within a JSP but have not been having any luck. The line I was trying to use is: jsp:setProperty name=Book property=*/ Since this hasn't worked I have had to explicitly set the parameters individually with lines like: Book.setUsername(request.getParameter(Username)); Could you please make any suggestions as to what I may be doing wrong with the autosetting of these properties. My understanding is that if I pass in the parameters as part of the request object and then use the property=*, this should cause any properties of the Book bean that match a request parameter to be set as long as there was a set method for this property in the bean (which there was). These properties were not getting set with: jsp:setProperty name=Book property=*/ They were always NULL, so this is why I had to revert to setting each one individually. Please tell me why this autoset is not working for me. Thank you. === 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 = Ing. Atilio Ranzuglia Buteler [EMAIL PROTECTED] __
Recompile class not picked up in TOMCAT
Does anyone know how to make TOMCAT reload a new class? I made changes that I want picked up, but cannot see until I reboot the server... Probably an age-old problem, but new to me. Thanks! === 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: Recompile class not picked up in TOMCAT
At least to the current release builds of tomcat you have to reboot the server, it's the only way, only if you want to replace a class. This is not the same to the jsp pages, you can replace them, the server detects that change and compile them again. Hope this help Atilio --- JP [EMAIL PROTECTED] wrote: Does anyone know how to make TOMCAT reload a new class? I made changes that I want picked up, but cannot see until I reboot the server... Probably an age-old problem, but new to me. Thanks! === 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 = Ing. Atilio Ranzuglia Buteler [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from 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
Re: Recompile class not picked up in TOMCAT
In Tomcat 4.0 you can use the Manager Application to force a reload of class files. The manager application is a servlet that helps you manage your web applications and get information about their state. By default it is not enabled. Check out the Tomcat 4.0 documentation for more details. Justy - Original Message - At least to the current release builds of tomcat you have to reboot the server, it's the only way, only if you want to replace a class. This is not the same to the jsp pages, you can replace them, the server detects that change and compile them again. Hope this help Atilio --- JP [EMAIL PROTECTED] wrote: Does anyone know how to make TOMCAT reload a new class? I made changes that I want picked up, but cannot see until I reboot the server... Probably an age-old problem, but new to me. Thanks! === 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 = Ing. Atilio Ranzuglia Buteler [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from 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: Recompile class not picked up in TOMCAT
If it's a jsp file (or a servlet class in the servlet directory) it should be picked up automatically. If it's a support class (in a jar/war file or under the WEB-INF/classes directory it won't. What I usually do is touch the .jsp page associated with the changed class, which causes Tomcat to reload everything associated with that class. (*Chris*) - Original Message - From: JP [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 9:41 AM Subject: [JSP-INTEREST] Recompile class not picked up in TOMCAT Does anyone know how to make TOMCAT reload a new class? I made changes that I want picked up, but cannot see until I reboot the server... Probably an age-old problem, but new to me. Thanks! === 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 _ Do You Yahoo!? Get your free @yahoo.com address at http://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
sign-off
i want to sign off _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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
Re: Cookie problem
If the server wants to expire a cookie, it sends the cookie to the browser with an expiration date and time. When expiration date and time is reached, the browser will delete the cookie. To immediately remove a cookie from the browser, you could send a cookie with an expiration date in the past. Justy - Original Message - Immediately is a funny thing in web time. It can mean anything from right now to the next time I close all my browser instances. What I usually do if it's really important to know is put a marker in the user record. Something like PersistentLogin=true. Then when the user logs out, set the Max Age to 0 and also set PersistentLogin to false. When the user comes back to the site, both the cookie must be present and PersistentLogin must be true to pass by the login screen. (*Chris*) - Original Message - From: Shuja Nawaz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 28, 2000 12:28 AM Subject: [JSP-INTEREST] Cookie problem Hi, I have developed a website. The user has an option to set cookies to remember his username and password by checking a checkbox (I'm setting the cookie to expire after a month). Now if the user unchecks the checkbox how should I expire the cookies immediately. I've tried setMaxAge(0) but it does't work. I shall be thankful if you can send me an example how to resolve my problem. Thank you in anticipation. Thanks Regards Shuwaz Abbasi. Software Developer. Ph # 5584677-8. www.visualsoft-inc.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 _ Do You Yahoo!? Get your free @yahoo.com address at http://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
List administration hints
I found this site really helpful: http://archives.java.sun.com/archives/jsp-interest.html You can administer the list through the web site. I've had my e-mail address change several times due to the powers that be. The old e-mail address still worked and was the one I had subscribed with but my new outgoing mail address was different. Unfortunately, when that happens I couldn't post or unsubscribe since all my outgoing messages had the new outgoing address. What to do? Well, you can do several things. You can unsubscribe via this website. You will get a confirmation code and then be able to unsubscribe. You can also contact the list administrator directly and have them unsubscribe the particular address. The website is really useful as well if you'd like digest e-mails or suspend yourself temporarily when on vacation. You can also look at all the archives and see if the question you have has already been answered. Justy - Original Message - It's not a list problem. The problem is with Microsoft Outlook/Microsoft Exchange. For some reason, this product pair creates an HTML copy of your outgoing email and appends it to your text-only email, as an attachment. The HTML attachment gets rejected by the list because attachments aren't allowed. And this problem occurs regardless of your personal settings in Outlook! I've got mine set to Text Only Email, yet I still have this problem. No one here seems to be able to figure it out, and have spent a lot of time looking at both Outlook and Exchange settings. :( I've had to jump out to Eudora to send this message, which is the only alternative I came up with. Jay -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 10:31 AM To: [EMAIL PROTECTED] Subject: Re: Autosetting properties of beans within JSP That's not quite true, I had a major problem using the list with Microsoft Outlook. Every post I sent was returned, and it was very obvious that is was not accepted by the list processor. Something about not accepting attachments (which I wasn't including anyway). I switched to Microsoft Outlook Express and a different account and everything has worked fine since. But there are definately some hinky things with the list. (*Chris*) - Original Message - From: Atilio Ranzuglia [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 6:48 AM Subject: Re: [JSP-INTEREST] Autosetting properties of beans within JSP Robin: As long as you write to [EMAIL PROTECTED] all your mails will arrive. You will recieve the one you wrote and some mailing failures. As you can see Mattias answer you, this is a good one. You have to be really 'cautioned' with your case. Follow the directions offered by Mattias. And more thing to keep in mind, if the JSP container encounter one jsp:setProperty tag, it looks at the bean and tries to find the corresponding setXxx method for every property you said, if they are founded there is no problem but if some one isn't found nothing happens, no exception are thrown. This way you don't know if something went wrong. You can do the following test to see wich property is giving you the problem: jsp:setProperty name=Class property=prop1 / jsp:setProperty name=Class property=prop2 / jsp:setProperty name=Class property=prop3 / Hope this help Atilio --- Robin Porter [EMAIL PROTECTED] wrote: Hello Atilo, I have just recently joined this list but for some reason my posts keep getting returned to me. Would you please let me know if you could assist me with my problem below and even post it to the list. Thank you, Robin Porter I have been trying to autoset the properties of a bean within a JSP but have not been having any luck. The line I was trying to use is: jsp:setProperty name=Book property=*/ Since this hasn't worked I have had to explicitly set the parameters individually with lines like: Book.setUsername(request.getParameter(Username)); Could you please make any suggestions as to what I may be doing wrong with the autosetting of these properties. My understanding is that if I pass in the parameters as part of the request object and then use the property=*, this should cause any properties of the Book bean that match a request parameter to be set as long as there was a set method for this property in the bean (which there was). These properties were not getting set with: jsp:setProperty name=Book property=*/ They were always NULL, so this is why I had to revert to setting each one individually. Please tell me why this autoset is not working for me. Thank you. === To
Re: Recompile class not picked up in TOMCAT
Someone just reported that there's a bug in tomcat 4, beta 5 that is preventing the reloading. -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 10:59 AM To: [EMAIL PROTECTED] Subject: Re: Recompile class not picked up in TOMCAT If it's a jsp file (or a servlet class in the servlet directory) it should be picked up automatically. If it's a support class (in a jar/war file or under the WEB-INF/classes directory it won't. What I usually do is touch the .jsp page associated with the changed class, which causes Tomcat to reload everything associated with that class. (*Chris*) - Original Message - From: JP [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 9:41 AM Subject: [JSP-INTEREST] Recompile class not picked up in TOMCAT Does anyone know how to make TOMCAT reload a new class? I made changes that I want picked up, but cannot see until I reboot the server... Probably an age-old problem, but new to me. Thanks! === 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 _ Do You Yahoo!? Get your free @yahoo.com address at http://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: sign-off
Does NOONE read the footer of each email? You have to send your sign off email to [EMAIL PROTECTED] Note that this is NOT the same email address as the list ([EMAIL PROTECTED]) And include in the body of your email: signoff JSP-INTEREST -Original Message- From: Kwong Brian [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: sign-off i want to sign off _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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
FW: call from JSP Page to Java Bean is repeating itself?
This should have been sent to the list, not to me. Forwarded for [EMAIL PROTECTED] The original question was: ... it looks like my JSP is calling the method in Java Bean two times ? I cannot think of why this will happen. Any help will be appreciated. -Original Message- From: Dasti, Hassan [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 7:21 AM To: Jann VanOver Subject: RE: call from JSP Page to Java Bean is repeating itself? Sensitivity: Personal Hello, here is the Java and JSP CODE. personnelPhone.jsp has two forms one update and delete a phone and the second one is for add new phone for the personnel. This second phone form (has the problem) it is submitted through savascript and goes to personnelPhoneAddRoute.jsp which calls the java Bean to add the information in database and displays an alert (javascript alert) and redirects the page back to personnelPhone.jsp By looking at the log for the system outs the personnelPhoneAddRoute is somehow being executed twice AND IT IS NOT ALL THE TIME. (IT IS RANDOM) 3 files are pasted in after this message, DATABEAN.java (not included) is being called from cdisPersPhoneBean.java Thanks for your offer to help Regards Hassan - personnelPhone.jsp %@page import=java.sql.*, java.text.*, java.io.*, java.util.*, cdis.beans.*, lib.beans.* % % String dbrespass = ; String dbresid = ; String dbresrole = ; String isFalse = false; String errmesg = new String(); HttpSession vSession = request.getSession(false); try { if(!(vSession.isNew())) { dbresid = (String)vSession.getValue(sesUserId); dbrespass = (String)vSession.getValue(sesPasswd); dbresrole = (String)vSession.getValue(sesRole); if( dbresid.equals(isFalse)) { response.sendRedirect(errorInt.jsp?Res=NS);} } else { response.sendRedirect(errorInt.jsp?Res=NS); } } catch(Exception e) { System.out.println(searchPersonal.jsp Exception); out.println(e); } System.out.println(in personnelPhone.jsp page); personnelPhoneBean sqlBean = new personnelPhoneBean(); int empid = Integer.parseInt(request.getParameter(empNumber)); String pURL = ./personnelDetails.jsp?empNumber= + empid; intintPhnID = 0; String pFirst = (String)vSession.getValue(sesPersFirst); String pMiddle = (String)vSession.getValue(sesPersMiddle); String pLast = (String)vSession.getValue(sesPersLast); String ID = ; String sAddPhoneType = ; String phnType = ; String sPhoneType = ; String areaCode = ; String phoneNum = ; String ext = ; String pin = ; Vector vrs = new Vector(); % html head title Update Personnel Phone /title script language=JavaScript //** function updatePhoneLine(form) { var selectedPhoneType = ''; for (a=0; a form.frmPhoneType.options.length; a++) { if(form.frmPhoneType.options[a].selected){ selectedPhoneType = + form.frmPhoneType.options[a].value; } } form.hPhoneType.value = selectedPhoneType; form.action = ./personnelPhoneUpdateRoute.jsp; form.submit(); return true; } // function removePhoneLine(form) { var selectedPhoneType = ''; for (a=0; a form.frmPhoneType.options.length; a++) { if(form.frmPhoneType.options[a].selected){ selectedPhoneType = + form.frmPhoneType.options[a].value; } } form.hPhoneType.value = selectedPhoneType; form.action = ./personnelPhoneRemoveRoute.jsp; form.submit(); return true; } // function addPhoneLine(form) { var selectedPhoneType = ''; for (a=0; a form.frmPhoneType.options.length; a++) { if(form.frmPhoneType.options[a].selected){ selectedPhoneType = + form.frmPhoneType.options[a].value; } } form.haPhoneType.value = selectedPhoneType; form.action = ./personnelPhoneAddRoute.jsp; form.submit(); return true; } // /script /head body bgcolor=#FF text=#00 % if(dbresrole.equals(admin)) { % %@ include file=./menuBarAdmin.html % % } else { % %@ include file=./menuBarUser.html % % } % CENTER IMG SRC=images/updatepersonnelphone.jpg/CENTERBR center bName: /b%=pFirst%nbsp;%=pMiddle%nbsp;%=pLast%nbsp;br br table width=70% align=center tr align=left bgcolor=#D0E1F4 tdBnbsp;Phone Type/B/td tdBnbsp;Phone Number/B/td tdBnbsp;Ext/B/td tdBnbsp;Pin/B/td tdBnbsp;Update/B/td tdBnbsp;Delete/B/td /tr % try { vrs = sqlBean.getPersonnelPhone(empid); Enumeration phRs = vrs.elements(); while(phRs.hasMoreElements()) {
Replacing the URL in a browser
Hi JSPers, Does anybody know if there's any JSP tag that can replace the URL in the browser? I need this to prevent the user to press the back button and re-login to my application without having to enter any password since the browser cached the password sent with the form. Thank you, Lucas === 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
How to pass variables between an HTML/JSP contained in web-broswer on a VB form and the form itself ??
Hi How to pass variables between an HTML/JSP contained in web-broswer on a VB form and the form itself ?? If anyone is aware then do let me know regards amar ==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 pass variables between an HTML/JSP contained in web-broswer on a VB form and the form itself ??
Try to use input type="hiddent" . and parse the variable out in JSP. good luck Duc From: Amar Deep Singh <[EMAIL PROTECTED]> Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: How to pass variables between an HTML/JSP contained in web-broswer on a VB form and the form itself ?? Date: Fri, 29 Jun 2001 09:12:08 +0530 Hi How to pass variables between an HTML/JSP contained in web-broswer on a VB form and the form itself ?? If anyone is aware then do let me know regards amar ==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
Can't write cookie
Hi, I'm new to JSP. I wrote a sample JSP app that writes/reads cookie. But everytime I access the page, it seems that the cookie is not saved because when I try to read all the cookies again, I don't see the values I just entered. The following is my code. The form calls the same file to submit the form. % // GET Cookies Cookie[] cookies = request.getCookies(); if (cookies.length 0) { out.println(Cookies sent from browser:br); for (int i = 0; i cookies.length; i++) { Cookie cookie = cookies[i]; out.print(Cookie Name: + cookie.getName() + br); out.println(Cookie Value: + cookie.getValue() + brbr); } } else { out.println(No cookies from browserbrbr); } // SET Cookies String cookieName = request.getParameter(cname); String cookieValue = request.getParameter(cvalue); if (cookieName != null cookieValue != null) { Cookie cookie = new Cookie(cookieName, cookieValue); response.addCookie(cookie); out.println(P); out.println(You just sent the following cookies to your browser:br); out.print(Name: + cookieName + br); out.print(Value: + cookieValue); } % FORM METHOD=POST ACTION=jsp-cookies.jsp BR Create a cookie to send to your browser: BR Name: input type=text name=cname value=br Value: input type=text name=cvalue value= br INPUT TYPE=submit name=submit Value=Submit P /FORM Thanks, Lester 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 http://www.jguru.com/jguru/faq/faqpage.jsp?name === 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: Cookie problem
Hi Chris. Your tip is quite helpful. Thanks Regards Shuwaz Abbasi. Software Developer. Ph # 5584677-8. www.visualsoft-inc.com. - Original Message - From: Chris Pratt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 8:27 PM Subject: Re: Cookie problem Immediately is a funny thing in web time. It can mean anything from right now to the next time I close all my browser instances. What I usually do if it's really important to know is put a marker in the user record. Something like PersistentLogin=true. Then when the user logs out, set the Max Age to 0 and also set PersistentLogin to false. When the user comes back to the site, both the cookie must be present and PersistentLogin must be true to pass by the login screen. (*Chris*) - Original Message - From: Shuja Nawaz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 28, 2000 12:28 AM Subject: [JSP-INTEREST] Cookie problem Hi, I have developed a website. The user has an option to set cookies to remember his username and password by checking a checkbox (I'm setting the cookie to expire after a month). Now if the user unchecks the checkbox how should I expire the cookies immediately. I've tried setMaxAge(0) but it does't work. I shall be thankful if you can send me an example how to resolve my problem. Thank you in anticipation. Thanks Regards Shuwaz Abbasi. Software Developer. Ph # 5584677-8. www.visualsoft-inc.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 _ Do You Yahoo!? Get your free @yahoo.com address at http://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
signoff JSP-INTEREST
** This correspondence is for the named person's use only. It may contain confidential or legally privileged information or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Vodafone. This email has been checked for viruses. ** === 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