Re: URGENT - (How does sorting of mails work )
store all the values as a file and open the file with line number reader catch the start and end line always. Regards Ramesh Kesavanarayanan Electronic Data Systems Steeple Reach, 25, Cathedral Road, 91-44-811 3801 to 15 ext :2186 91-44-233 0380 (res) [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Jyoti Bongarala [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 2:39 AM To: [EMAIL PROTECTED] Subject: URGENT - (How does sorting of mails work ) Can somebody help me with the following : I am retreiving about 2000- 4000 rows and populate the CachedRowSet and display the rows the way mails in Yahoo are displayed. Any column header can be clicked to sort the rows by that column. I am kind of confused as to how NEXT and PREVIOUS work and then what is the sort algorithm and where should the rows be saved if not CachedRowSet. I would greatly appreciate if somebody helps me with the above problem. thanks, Jyoti __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.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: Urgent.. servlet with images
check this out, the author has kindly left all the source code for us to view his photo collection. http://www.magiccookie.com/ -Original Message- From: Christian Hamann Linares [mailto:[EMAIL PROTECTED]] Sent: 26 November 2000 22:34 To: [EMAIL PROTECTED] Subject: Urgent.. servlet with images Hi all I have a several problem... i have to use images... i have Oracle database, but i dont know what kind of type i have to use for storing my image in. Besides, i have to query my Bd and with ResultSet ask a image... Can you help me What kind of type i have to use in my DataBase to My Java program can ask the image and how can i do that. any example please... so... what type i have to use in my BD to store the image and how can obtain this image by Java atte Christian Hamann Linares Area de Desarrollo de Aplicaciones FICS-DATA USMP e-mail: [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent.. servlet with images
Hi all I have another problem... I have my JSP.. in it i have a for which paint a table put i want to use the continue sentence, but it is not possible, how can i do to skip next for... The example is here -- % HoraAMinutos query1=null; --HoraAMinutos delfor1=null; --HoraAMinutos query2=null; --HoraAMinutos delfor2=null; --boolean lun=false; --boolean mar=false; --boolean mie=false; --boolean jue=false; --boolean vie=false; --boolean sab=false; --boolean dom=false; % -- -- %for(int i=0;iBeanListaHora.getNumeroHora();i++) {% -- % Hora h=BeanListaHora.getHora(i); % --%delfor1=new HoraAMinutos(h.getInicio());% --%delfor2=new HoraAMinutos(h.getTermino());% -- tr -- td width="14%"font size="1"%=h.getInicio()% - %=h.getTermino()%/font/td -- %for(int j=0;jBeanHorarioAlumnoLista.getNumeroHorarioAlumno();j++){ % -- %HorarioAlumno ha = BeanHorarioAlumnoLista.getHorarioAlumno(j); % -- %query1=new HoraAMinutos(ha.getInicio());% -- %query2=new HoraAMinutos(ha.getTermino());% -- %if(query1.getNumeroTotalMinutos() == delfor1.getNumeroTotalMinutos() ) {% -- %if(ha.getDia().equals("LUNES") lun==false){% -- td width="10%"font size="1"%=ha.getCurso()%%=ha.getAula()%%=ha.getSeccion()%/font/td -- % lun=true; continue;% -- % }else{ % --td width="10%"font size="1"/font/td --% lun=true; continue;% -- % } % when i use continue the JSPCompiler throws a Error and i dont know how fix it, besides i need to use continue because in my program i need to skip the next ... how can fix it, or what sentence should i use to do skipping thanks Christian Hamann Linares Area de Desarrollo de Aplicaciones FICS-DATA USMP e-mail: [EMAIL PROTECTED] - Original Message - From: G.Nagarajan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 27, 2000 3:46 AM Subject: Re: Urgent.. servlet with images === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent.. servlet with images
Hi But if i have to use Blob to show images, how do i have to store in Database... my database is Oracle atte Christian Hamann Linares Area de Desarrollo de Aplicaciones FICS-DATA USMP e-mail: [EMAIL PROTECTED] - Original Message - From: G.Nagarajan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 27, 2000 3:46 AM Subject: Re: Urgent.. servlet with images The BLOB type should do. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Hamann Linares Sent: Sunday, November 26, 2000 11:34 PM To: [EMAIL PROTECTED] Subject: Urgent.. servlet with images Hi all I have a several problem... i have to use images... i have Oracle database, but i dont know what kind of type i have to use for storing my image in. Besides, i have to query my Bd and with ResultSet ask a image... Can you help me What kind of type i have to use in my DataBase to My Java program can ask the image and how can i do that. any example please... so... what type i have to use in my BD to store the image and how can obtain this image by Java atte Christian Hamann Linares Area de Desarrollo de Aplicaciones FICS-DATA USMP e-mail: [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent.. servlet with images
The BLOB type should do. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Hamann Linares Sent: Sunday, November 26, 2000 11:34 PM To: [EMAIL PROTECTED] Subject: Urgent.. servlet with images Hi all I have a several problem... i have to use images... i have Oracle database, but i dont know what kind of type i have to use for storing my image in. Besides, i have to query my Bd and with ResultSet ask a image... Can you help me What kind of type i have to use in my DataBase to My Java program can ask the image and how can i do that. any example please... so... what type i have to use in my BD to store the image and how can obtain this image by Java atte Christian Hamann Linares Area de Desarrollo de Aplicaciones FICS-DATA USMP e-mail: [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent: sorting japanese - off topic
Problem resolved Thanx -Original Message- From: Chandhan Rangarajan Sent: Friday, 10 November 2000 4:14 PM To: [EMAIL PROTECTED] Subject:Urgent: sorting japanese - off topic Hi Can somebody tell me if there is any java API that can help me sort Japanese words... Pls reply asap Thanks Chandhan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: (URGENT) Dynamically changing the name of a vector
Could you be more specific about your problem... - Original Message - From: "Jyoti Bongarala" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 25, 2000 10:57 AM Subject: (URGENT) Dynamically changing the name of a vector I am unable to dynamically change the name of a vector. Can some body please help me with this thanks in advance Jyoti __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: (URGENT) Dynamically changing the name of a vector
sure what's ur problem raman -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jyoti Bongarala Sent: Wednesday, October 25, 2000 11:58 AM To: [EMAIL PROTECTED] Subject: (URGENT) Dynamically changing the name of a vector I am unable to dynamically change the name of a vector. Can some body please help me with this thanks in advance Jyoti __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent..Servelet Aliases
Go to Admin Console, and select the web server instance you want to manage. From the 'Servlets' tab, click 'Configure Servlet Attributes'. Supply the information there. A short cut would be to modify the 'servlet.properties' file. Hope this helps, Kachana --- Sukalyan Fouzdar [EMAIL PROTECTED] wrote: Hi All !!! Please help me out. How to create servelet aliases in iPalnet server? Please help me out..its urgent Regards Sukalyan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent ! about downloading of GIF
You could use an applet, however I wouldn't. If you are worried about the time it takes a gif to download, than you should be more worried about the time it would take to download the applet with the gifs. With the applet it will be done all at once, making it appear to the user that it takes forever. With the gif/page, at least the total download time will be split across multiple pages. -Original Message- From: Selvamani Jayakumar [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 21, 2000 1:50 PM To: [EMAIL PROTECTED] Subject: Urgent ! about downloading of GIF hi my prob. is that , every page in our site has got a gif image. since we hve a number of gif's , it takes time to download. each page has got a diff. gif images. is there any possibility that if i use applets (which will be stored in the RAM of client) to do this. so for each page , i can use the Applet to show the picture rather than downloading from the Server. can anyone suggest me how to do this? Thanks in advance _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT: JSP on Oracle Application Server 4.0.8.x
Hi, Only OAS 4.0.8.2 supports JSP on a Sun box. OAS 4.0.8.2 has JSP application cardtrige. We were able to configure JSP application to run on OAS; however, we ran into so many problems every time we release new jsp sources. We got some weird Servlet errors. Since we've got so many problems w/o support from Oracle, by the way Oracle is not very good of supporting this product, we just changed to Oracle IAS. We now still try to configure jsp application on this new web server. Oracle claims that this product is better because it uses Apache technology as the web server but we got to see it. Hope it helps, Queenie --- Mauro Quartini [EMAIL PROTECTED] wrote: Hi, I'm installing OAS 4.x.x.x on a Sun box, but it seems oas does not support JSP. Does anyone know how to run JSP with OAS 4.x.x.x? any suggestion will be welcome. Thank you all in advance. Mauro === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent!! RE: Supress LDAP Authentication
Yes, we need to authenticate user, we dont want to show ugly ldap dialog. I have made a page to get user/pass from user. then we need it to be verified from ldap. -Original Message- From: Raj S [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 20, 2000 10:51 PM To: [EMAIL PROTECTED] Subject: Re: Urgent!! RE: Supress LDAP Authentication I am too sure but I may be able to help you. I just need to clarify a few things.If I have understood your requirements,do u need to authenticate the user at the backend and then display next page,according to authentication or else maybe an error page or prompt the user to enter username and password . -Original Message- From: Mutahar Qayum [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 20, 2000 11:34 AM To: [EMAIL PROTECTED] Subject: Supress LDAP Authentication Hi, I want some information for suppressing the login dialog box that comes when anyone open a site. I will be developing a page to get userid/password from user, and want it to be directly authenticated without displaying the userid/password dialog. thanks MQ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent ! about downloading of GIF
"Karau, Joe" wrote: You could use an applet, however I wouldn't. If you are worried about the time it takes a gif to download, than you should be more worried about the time it would take to download the applet with the gifs. With the applet it will be done all at once, making it appear to the user that it takes forever. With the gif/page, at least the total download time will be split across multiple pages. The other thing to remember is that the browser can cache images (and pages) locally for the user, without you having to do anything special. As long as they have their cache settings set up right (default is multiple megabytes, but depends on the browser) the images will only be downloaded the first time they are accessed. Craig McClanahan See you at ApacheCon Europe http://www.apachecon.com! Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ Applications to Tomcat === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent!! RE: Supress LDAP Authentication
Ok,Then you can try this. Make a class and invoke a method of this class,example VerifyLogin(String uname,String pwd); In this method ,seek a connection to your ldap server using the username and password just received by specifying environment properties. If you are able to get it's directory context,then connection is successful.In that case you can return the name of the JSP,where you want to forward it,and if not authenticated,then you can return name of an Error jsp. Hope this help. Raj S From: Mutahar Qayum [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Urgent!! RE: Supress LDAP Authentication Date: Thu, 21 Sep 2000 09:51:31 -0700 Yes, we need to authenticate user, we dont want to show ugly ldap dialog. I have made a page to get user/pass from user. then we need it to be verified from ldap. -Original Message- From: Raj S [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 20, 2000 10:51 PM To: [EMAIL PROTECTED] Subject: Re: Urgent!! RE: Supress LDAP Authentication I am too sure but I may be able to help you. I just need to clarify a few things.If I have understood your requirements,do u need to authenticate the user at the backend and then display next page,according to authentication or else maybe an error page or prompt the user to enter username and password . -Original Message- From: Mutahar Qayum [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 20, 2000 11:34 AM To: [EMAIL PROTECTED] Subject: Supress LDAP Authentication Hi, I want some information for suppressing the login dialog box that comes when anyone open a site. I will be developing a page to get userid/password from user, and want it to be directly authenticated without displaying the userid/password dialog. thanks MQ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent please help!
try to use Class BigDecimal. Leena Albert wrote: Hi, I have a small problem in using datatype. In a javabean, I am getting a value "A" from pl/sql procedure and am comparing it with a value "B" entered in a textbox , that is "B" should be greater than or equal to "A". I have declared "B" as double in the bean, as i need to use a decimal value like 1234578899.12345678 . double B = Double.parseDouble(request.getParameter("txt1")); Eventhough if i give value bigger than A, it is giving the value as low. If i get less value for "A" and if i give bigger value than that for "B", it works. I feel that, the value is getting truncated while getting the parameter from the form . What datatype can i use, so that even if i use big values, it should compare? Thanks in advance, Leena _ Get Your Free Email At, http://www.rediffmail.com For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- Best Regards, Yi Liu Java Programmer -- Invisible.Ink Corporation 1400 Old Country Road Suite 408 Westbury, NY 11590 Phone: (516) 338 - 5283 Ext.148 Fax: (516) 876 - 8032 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent!! RE: Supress LDAP Authentication
I am too sure but I may be able to help you. I just need to clarify a few things.If I have understood your requirements,do u need to authenticate the user at the backend and then display next page,according to authentication or else maybe an error page or prompt the user to enter username and password . -Original Message- From: Mutahar Qayum [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 20, 2000 11:34 AM To: [EMAIL PROTECTED] Subject: Supress LDAP Authentication Hi, I want some information for suppressing the login dialog box that comes when anyone open a site. I will be developing a page to get userid/password from user, and want it to be directly authenticated without displaying the userid/password dialog. thanks MQ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent please help!
hi: you can try % String tmpb=request.getParameter("txt1"); int Tmpb1=0; //define variant who equals the part of integer int Tmpb2=0; // define variant who equals the part of decimal if(tmpb.indexOf(".",0)!=-1) { Tmpb1=Integer.parseInt(tmpb.substring(0,tmpb.indexOf(".",0)); Tmpb2=Integer.parseInt(tmpb.substring(tmpb.indexOf(".",0)+1,tmpb.length())); }else{ Tmpb1=Integer.parseInt(tmpb); } //then you can compare this two parts of B with the same parts of A % - Original Message - From: "Leena Albert" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 19, 2000 8:51 PM Subject: Urgent please help! Hi, I have a small problem in using datatype. In a javabean, I am getting a value "A" from pl/sql procedure and am comparing it with a value "B" entered in a textbox , that is "B" should be greater than or equal to "A". I have declared "B" as double in the bean, as i need to use a decimal value like 1234578899.12345678 . double B = Double.parseDouble(request.getParameter("txt1")); Eventhough if i give value bigger than A, it is giving the value as low. If i get less value for "A" and if i give bigger value than that for "B", it works. I feel that, the value is getting truncated while getting the parameter from the form . What datatype can i use, so that even if i use big values, it should compare? Thanks in advance, Leena _ Get Your Free Email At, http://www.rediffmail.com For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent JSP, XML, XSL
Are you expecting the browser or the server to do the style sheet conversion? -Original Message- From: Priya Pinto [mailto:[EMAIL PROTECTED]] Sent: Monday, September 18, 2000 1:18 PM To: [EMAIL PROTECTED] Subject: Urgent JSP, XML, XSL Hi, I've been trying a absolutely simple program in jsp and it is just refusing to work out! I've got a jsp file which generates XML code and calls an xsl file to display the output and it is just not working!! Here's the JSP file ?xml version="1.0"? ?xml:stylesheet type="text/xsl" href="Test.xsl"? %@ page language="java" import="java.io.*" session="true"% % String title1="Yahoo"; String description1="Search engine extraordinaire"; String urls1="http://www.yahoo.com"; String category1="General"; String id1="b001"; String ss="Blackie"; % bookmarks user%=ss%/user id%=id1%/id title%=title1%/title description%=description1%/description urls%=urls1%/urls category%=category1%/category /bookmarks Here's the XSL file ?xml version="1.0"? xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xsl:template match="/" html body bgcolor="#eed5d2" center xsl:for-each select="bookmarks" font size="5" color="#b03060"Welcome xsl:value-of select="user"/ /font br/br/ table border="0" cellpadding="2" cellspacing="0" width="50%" bgcolor="#b03060" tr td width="100%" align="center"font face="Times New Roman" size="5" color="#FF"strongEdit Bookmark/strong/font/td /tr tr td width="100%"div align="center"centertable border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#FF" tr td width="29%"br/ /td td width="71%"/td /tr tr td width="29%"Title/td td width="71%" input type="text" name="title" xsl:attribute name="value" xsl:value-of select="title"/ /xsl:attribute /input /td /tr tr td width="29%"Description/td td width="71%" input type="text" name="description" xsl:attribute name="value" xsl:value-of select="description"/ /xsl:attribute /input /td /tr tr td width="29%"Url/td td width="71%" input type="text" name="urls" xsl:attribute name="value" xsl:value-of select="urls"/ /xsl:attribute /input /td /tr tr td width="29%"Category/td td width="71%" input type="text" name="category" xsl:attribute name="value" xsl:value-of select="category"/ /xsl:attribute /input /td /tr tr td width="29%"br/ /td td width="71%"/td /tr tr td width="100%" colspan="2" align="center"input type="submit" value="Edit" name="Edit" / input type="reset" value="Reset" name="Reset" //td /tr /table /center/div/td /tr /table /xsl:for-each /center /body /html /xsl:template /xsl:stylesheet Thanks Priya _ Get Your Free Email At, http://www.rediffmail.com For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent JSP, XML, XSL
Check out the taglibs project http://jakarta.apache.org/taglibs and check out the XSL tag library. Take a look at the xsl:apply and xsl:include tags. They will allow you to perform dynamic XSLT transformations. -Original Message- From: Priya Pinto [mailto:[EMAIL PROTECTED]] Sent: Monday, September 18, 2000 6:18 AM To: [EMAIL PROTECTED] Subject: Urgent JSP, XML, XSL Hi, I've been trying a absolutely simple program in jsp and it is just refusing to work out! I've got a jsp file which generates XML code and calls an xsl file to display the output and it is just not working!! Here's the JSP file ?xml version="1.0"? ?xml:stylesheet type="text/xsl" href="Test.xsl"? %@ page language="java" import="java.io.*" session="true"% % String title1="Yahoo"; String description1="Search engine extraordinaire"; String urls1="http://www.yahoo.com"; String category1="General"; String id1="b001"; String ss="Blackie"; % bookmarks user%=ss%/user id%=id1%/id title%=title1%/title description%=description1%/description urls%=urls1%/urls category%=category1%/category /bookmarks Here's the XSL file ?xml version="1.0"? xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xsl:template match="/" html body bgcolor="#eed5d2" center xsl:for-each select="bookmarks" font size="5" color="#b03060"Welcome xsl:value-of select="user"/ /font br/br/ table border="0" cellpadding="2" cellspacing="0" width="50%" bgcolor="#b03060" tr td width="100%" align="center"font face="Times New Roman" size="5" color="#FF"strongEdit Bookmark/strong/font/td /tr tr td width="100%"div align="center"centertable border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#FF" tr td width="29%"br/ /td td width="71%"/td /tr tr td width="29%"Title/td td width="71%" input type="text" name="title" xsl:attribute name="value" xsl:value-of select="title"/ /xsl:attribute /input /td /tr tr td width="29%"Description/td td width="71%" input type="text" name="description" xsl:attribute name="value" xsl:value-of select="description"/ /xsl:attribute /input /td /tr tr td width="29%"Url/td td width="71%" input type="text" name="urls" xsl:attribute name="value" xsl:value-of select="urls"/ /xsl:attribute /input /td /tr tr td width="29%"Category/td td width="71%" input type="text" name="category" xsl:attribute name="value" xsl:value-of select="category"/ /xsl:attribute /input /td /tr tr td width="29%"br/ /td td width="71%"/td /tr tr td width="100%" colspan="2" align="center"input type="submit" value="Edit" name="Edit" / input type="reset" value="Reset" name="Reset" //td /tr /table /center/div/td /tr /table /xsl:for-each /center /body /html /xsl:template /xsl:stylesheet Thanks Priya _ Get Your Free Email At, http://www.rediffmail.com For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT JRun Apache PHP ???
Sufi, Run Service program from administration tool=20 (NT 5 in Program, NT4 in control panel),=20 Set Startup type of JRun Admin Server or JRun Default Server to Manual, and Stop the service. This will remove the current setting and configuration for JRun server. Hope it helps. --www.iconixx.com --internet smart === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT JRun Apache PHP ???
probably you need to change port number in this console -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: 01 September 2000 16:02 To: [EMAIL PROTECTED] Subject: URGENT JRun Apache PHP ??? Hi, before installing JRun in my NT workstation, I had Apache and PHP and always I put my php dir in htdocs dirctory in apache, and go to the browser and type : localhost:80/dir/index.php4 But now when I installed JRun, whenever I go to the browser and type localhost:80 and hit enter it brings to me the Application Management Console of JRUN. Would you like please help Thanks. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent error resolving relative path in 'errorPage'
Hi, You should use a URL relative to the "root" of your application; ie, if your directory structure is as follows... application_root/jsp/news/news.jsp application_root/jsp/failure/failure.jsp application_root/WEB-INF/classes In the page diective of news.jsp use %@ page session='true' errorPage='/jsp/failure/failure.jsp' % ^^ This '/' will always resolve to the root of your application. Hope this helps, Stephen. Yashwant Balwant wrote: I have question regarding error handling in JSP. My site say 'Today' has two jsp files under two seperate folders namely 'News.jsp' under 'News' folder and 'failure.jsp' under 'failure' folder. As you can see failure is my error page. Now when an exception occurrs in news.jsp, my error page gets called but the 'errorPage' attribute of 'page' directive says "../failure/failure.jsp". This is where the call fails and WebSphere gives me compilation error since it cannot resolve '..' and I don't know how to go up the tree. Because of our products structure, the failure page cannot be under same folder. Can anyone please tell me how to get thsi path resolved? I wanted to make the code neat with error handling... I don't want to use try.catch everywhere in my jsp code or sendRedirect. As I use beans I don't have servlet context in my java code. Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- ._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. Stephen RedmondLogica (Mobile Networks) Tel: +353-1-8193673 5 Custom House Plaza, Fax: +353-1-8193401 Harbourmaster Place, mailto:[EMAIL PROTECTED] Dublin 1, http://www.logica.com/telecoms Ireland. ._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent Help on UPLOAD a file
IMHO the only real solution for this is smarter or better trained users - maybe put a warning next to the browse button, or popup a javascript prompt when they click the button, like confirm("Hey, are you sure you saved your most recent changes?"). As for a hack, if you are on an intranet using client-side vbscript/ActiveX on Windows, (I really don't know if this is possible), maybe you could try to rename or move the file and see if Windows complains about a sharing conflict. If it does then you know its still open. Of course, if something goes wrong your users will be really pissed off that they can't find their local files anymore. -Original Message- From: Rajesh Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 22, 2000 1:52 PM To: [EMAIL PROTECTED] Subject: urgent Help on UPLOAD a file Hi all guru ...i've one problem which is bugging me since last two days.I NEED URGENT HELP from all of u ...the problem is like this: ...creating a web-based application in which one of the functionality is to UPLOAD a file (in my case it will be .xls file)from the client's machine. Now requirement is that if you select a file to upload THEN IF THAT FILE is opened at the client's system at that time then it SHOULD NOT UPLOAD the file and give some Message to the User.It is to prevent that the user could be editing the file at that time and without saving he can go for uploading(this is to prevent as application requires this)...so we will prevent the UPLOAD if that file is opened at that time.(if you have used www.driveway.com then you would hv found that they allow the UPLOAD taking the old ie last updated file...this thing we want to prevent) HOW TO GO ABOUT IT ?..I'm using Java, Servlet etc. one thing i feel that i need to check the Task Manager before uploading BUT still here atmost we can check is whether that application(MS-Excel for ex) is running and can't check which file... HELP Please...if u have anything to say on this problem u can send at [EMAIL PROTECTED] also thanx and regards, Rajesh __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent Help on UPLOAD a file
Hi Rajesh. Try the following 1. For intracting with the client (node) :- Try using java web start . it allows u to interact with the client(node) or may be signed applets. 2. use boolean java.io.File.canWrite() method to see if u can write to file. if u r sucessful in writing to the file (i.e the method returns true) that means that the file is not in use with any other program or if the method returns false that means that the file is not writeble due to some reason (Most probably coz it may be already in use). I hope that 2 will solve ur problem Cheers Tripat - Original Message - From: Rajesh Singh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 22, 2000 5:22 PM Subject: urgent Help on UPLOAD a file Hi all guru ..i've one problem which is bugging me since last two days.I NEED URGENT HELP from all of u ..the problem is like this: ..creating a web-based application in which one of the functionality is to UPLOAD a file (in my case it will be .xls file)from the client's machine. Now requirement is that if you select a file to upload THEN IF THAT FILE is opened at the client's system at that time then it SHOULD NOT UPLOAD the file and give some Message to the User.It is to prevent that the user could be editing the file at that time and without saving he can go for uploading(this is to prevent as application requires this)...so we will prevent the UPLOAD if that file is opened at that time.(if you have used www.driveway.com then you would hv found that they allow the UPLOAD taking the old ie last updated file...this thing we want to prevent) HOW TO GO ABOUT IT ?..I'm using Java, Servlet etc. one thing i feel that i need to check the Task Manager before uploading BUT still here atmost we can check is whether that application(MS-Excel for ex) is running and can't check which file... HELP Please...if u have anything to say on this problem u can send at [EMAIL PROTECTED] also thanx and regards, Rajesh __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent- compilation
%= "This page has been accessed " +i+ " times" % or %= new String("This page has been accessed " +i+ " times")% ~ David Eaves Mad Scientist, The Lab 949.936.3077 [EMAIL PROTECTED] WWW.COM Internet Broadcasting Log On. Tune In. ~ -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of BLAKCORI, Ansar Sent: Monday, August 21, 2000 4:57 AM To: [EMAIL PROTECTED] Subject: urgent- compilation I am writing jsp page under forte gui application. Once that is done I save the file under examples/jsp subdir/jspfile I am trying to access file under: http://127.0.0.1:8080/examples/jspsubdir/jsp.file but it would not display the result of the page. However with date.jsp example it does work fine Here is the source of the page html headtitleAccess/title/head body h1This is counter example/h1 %! int i=0; % % i++; % Hello World ! %= "This page has been accessed " +i " times" % /body /html Ansar Blakqori System analyst / Developer Goldenberg,Hehmeyer Co - London email: [EMAIL PROTECTED] ( business ) Tel: ++44 (0) 2073903421 - business Cell:++44 (0) 7730986227 Diverted tel: ++44 (0) 2073903380 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent- compilation
I am writing jsp page under forte gui application. Once that is done I save the file under examples/jsp subdir/jspfile I am trying to access file under: http://127.0.0.1:8080/examples/jspsubdir/jsp.file but it would not display the result of the page. However with date.jsp example it does work fine Here is the source of the page html headtitleAccess/title/head body h1This is counter example/h1 %! int i=0; % % i++; % Hello World ! %= "This page has been accessed " +i " times" % Try this %= "This page has been accessed " +i + " times" % /body /html Ansar Blakqori System analyst / Developer Goldenberg,Hehmeyer Co - London email: [EMAIL PROTECTED] ( business ) Tel: ++44 (0) 2073903421 - business Cell:++44 (0) 7730986227 Diverted tel: ++44 (0) 2073903380 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent- compilation
What makes the difference Mr David?? Both are correct and valid in java. in Anscar Case error is in the line Hello World ! %= "This page has been accessed " +i " times" % he forgot a "PLUS" after i. --- David Eaves [EMAIL PROTECTED] wrote: %= "This page has been accessed " +i+ " times" % or %= new String("This page has been accessed " +i+ " times")% ~ David Eaves Mad Scientist, The Lab 949.936.3077 [EMAIL PROTECTED] WWW.COM Internet Broadcasting Log On. Tune In. ~ -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of BLAKCORI, Ansar Sent: Monday, August 21, 2000 4:57 AM To: [EMAIL PROTECTED] Subject: urgent- compilation I am writing jsp page under forte gui application. Once that is done I save the file under examples/jsp subdir/jspfile I am trying to access file under: http://127.0.0.1:8080/examples/jspsubdir/jsp.file but it would not display the result of the page. However with date.jsp example it does work fine Here is the source of the page html headtitleAccess/title/head body h1This is counter example/h1 %! int i=0; % % i++; % Hello World ! %= "This page has been accessed " +i " times" % /body /html Ansar Blakqori System analyst / Developer Goldenberg,Hehmeyer Co - London email: [EMAIL PROTECTED] ( business ) Tel: ++44 (0) 2073903421 - business Cell:++44 (0) 7730986227 Diverted tel: ++44 (0) 2073903380 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets = -SaTyA- __ Do You Yahoo!? Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent- compilation
Definitely the first. but why don't you use: This Page has been accessed %=i% times Geert Van Damme -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of David Eaves Sent: maandag 21 augustus 2000 10:20 To: [EMAIL PROTECTED] Subject: Re: urgent- compilation %= "This page has been accessed " +i+ " times" % or %= new String("This page has been accessed " +i+ " times")% ~ David Eaves Mad Scientist, The Lab 949.936.3077 [EMAIL PROTECTED] WWW.COM Internet Broadcasting Log On. Tune In. ~ -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of BLAKCORI, Ansar Sent: Monday, August 21, 2000 4:57 AM To: [EMAIL PROTECTED] Subject: urgent- compilation I am writing jsp page under forte gui application. Once that is done I save the file under examples/jsp subdir/jspfile I am trying to access file under: http://127.0.0.1:8080/examples/jspsubdir/jsp.file but it would not display the result of the page. However with date.jsp example it does work fine Here is the source of the page html headtitleAccess/title/head body h1This is counter example/h1 %! int i=0; % % i++; % Hello World ! %= "This page has been accessed " +i " times" % /body /html Ansar Blakqori System analyst / Developer Goldenberg,Hehmeyer Co - London email: [EMAIL PROTECTED] ( business ) Tel: ++44 (0) 2073903421 - business Cell:++44 (0) 7730986227 Diverted tel: ++44 (0) 2073903380 == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent- compilation
Hi Out your code in root dir ie webapps/root Hope this help you At 10:56 AM 21/08/2000 +0100, you wrote: I am writing jsp page under forte gui application. Once that is done I save the file under examples/jsp subdir/jspfile I am trying to access file under: http://127.0.0.1:8080/examples/jspsubdir/jsp.file but it would not display the result of the page. However with date.jsp example it does work fine Here is the source of the page This is counter example %! int i=0; % % i++; % Hello World ! %= This page has been accessed +i times % Ansar Blakqori System analyst / Developer Goldenberg,Hehmeyer Co - London email: [EMAIL PROTECTED] ( business ) Tel: ++44 (0) 2073903421 - business Cell:++44 (0) 7730986227 Diverted tel: ++44 (0) 2073903380 === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets Regards :-) Kanojia Jogesh(Senior Web Developer) IG Technologies Ltd,Mumbai We are in Web Development and B2B and B2C Solution provider === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent !!!
Yes, U can use like that. There is no any problem, except in the dimension of performance. This is then completely depends on your server configuration. --- amit [EMAIL PROTECTED] wrote: Hi ALL, I'm interested to test a E-Com Site. Currently ,I'm interested to test it's performance and overall deployment concerned issues. With this regard please try to provide answer of my following query : * Is it possible to run two servers (Server Softwares) on a single machine on single hard disk ,with same IP address but with DIFFERENT port numbers ? * e.g. Say IIS (Internet Information Server From Microsoft) and Apache Server (for Win NT) from Apache Foundation) are running , without interference , on the same machine with same IP address but with different port numbers(say 80 for IIS and 8080 for Apache). With This Regard Please Provide the needful info and co-operate with me.Thanking You. Any Resources / URLs / Book Names With This Regard Are WEL-COME !!! With Luv, -Amit [EMAIL PROTECTED] Sansui Software Pvt. Ltd.,Pune === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets = -SaTyA- __ Do You Yahoo!? Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent !!!
Yes - Original Message - From: amit [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 21, 2000 3:47 PM Subject: Urgent !!! Hi ALL, I'm interested to test a E-Com Site. Currently ,I'm interested to test it's performance and overall deployment concerned issues. With this regard please try to provide answer of my following query : * Is it possible to run two servers (Server Softwares) on a single machine on single hard disk ,with same IP address but with DIFFERENT port numbers ? * e.g. Say IIS (Internet Information Server From Microsoft) and Apache Server (for Win NT) from Apache Foundation) are running , without interference , on the same machine with same IP address but with different port numbers(say 80 for IIS and 8080 for Apache). With This Regard Please Provide the needful info and co-operate with me.Thanking You. Any Resources / URLs / Book Names With This Regard Are WEL-COME !!! With Luv, -Amit [EMAIL PROTECTED] Sansui Software Pvt. Ltd.,Pune === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent !!!
yes that possible. for this u need to add a port to listen in the server configuration file. I have dun that for jswdk but since i dun know for apache and IIS i'll enclose the code that needs to be added for the addition for port. Add this code to webserver.xml file WebServer id="webServer" Service id="service0" WebApplication id="examples" mapping="/examples" docBase="examples"/ /Service Service id="service1" port="8082" WebApplication id="map" mapping="/map" docBase="map"/ /Service /WebServer After this create a directory "map" in the webserver root folder in my case it was c:\jswdk\jswdk-1.0.1\ Hope this helps. Regards Tripat - Original Message - From: amit [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 21, 2000 5:17 PM Subject: Urgent !!! Hi ALL, I'm interested to test a E-Com Site. Currently ,I'm interested to test it's performance and overall deployment concerned issues. With this regard please try to provide answer of my following query : * Is it possible to run two servers (Server Softwares) on a single machine on single hard disk ,with same IP address but with DIFFERENT port numbers ? * e.g. Say IIS (Internet Information Server From Microsoft) and Apache Server (for Win NT) from Apache Foundation) are running , without interference , on the same machine with same IP address but with different port numbers(say 80 for IIS and 8080 for Apache). With This Regard Please Provide the needful info and co-operate with me.Thanking You. Any Resources / URLs / Book Names With This Regard Are WEL-COME !!! With Luv, -Amit [EMAIL PROTECTED] Sansui Software Pvt. Ltd.,Pune === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent !!!
Hi U can do this. And no need to go deep inside. just define different ports in their respective configuration files. and use ip:port, where port number is different for different webservers. try this. Regards Kumail Rizvi -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of amit Sent: Monday, August 21, 2000 4:48 PM To: [EMAIL PROTECTED] Subject: Urgent !!! Hi ALL, I'm interested to test a E-Com Site. Currently ,I'm interested to test it's performance and overall deployment concerned issues. With this regard please try to provide answer of my following query : * Is it possible to run two servers (Server Softwares) on a single machine on single hard disk ,with same IP address but with DIFFERENT port numbers ? * e.g. Say IIS (Internet Information Server From Microsoft) and Apache Server (for Win NT) from Apache Foundation) are running , without interference , on the same machine with same IP address but with different port numbers(say 80 for IIS and 8080 for Apache). With This Regard Please Provide the needful info and co-operate with me.Thanking You. Any Resources / URLs / Book Names With This Regard Are WEL-COME !!! With Luv, -Amit [EMAIL PROTECTED] Sansui Software Pvt. Ltd.,Pune === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent help on XML
Following link may help you ... http://java.sun.com/xml/docs/tutorial/dom/index.html With regards, Atchutarao Killamsetty, http://karao.tripod.com/myjava.html -Original Message- From: George Varghese [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Saturday, July 29, 2000 10:42 PM Subject: Urgent help on XML Hi, Please suggest an XMLParser/DOM Implementation that allows me to do the following: * Initialize the DOM using a string that contains a valid XML Document hierarchy (via probably org.xml.sax.InputSource) * Extract a section of the tree hierarchy that meets a specified criteria viz. a given tagName, or has a given Attribute with a given value etc. Thanx George Varghese === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent-install jsp problems
Thank you very much It did work but still I've got this problem My autoexec.bat is: mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi) mode con codepage select=850 keyb uk,,c:\windows\COMMAND\keyboard.sys set PATH=C:\jdk1.2.2\bin set CLASSPATH=C:\jdk1.2.2\lib\tools.jar;C:\jdk1.2.2; The java programs work well but with jswdk the problem is the following: When I start my startserver.bat at the prompt the java console is initialized and I can invoke examples in http://localhost or 127.0.0.1:8080 but when I try to stop the server by typing in the console: C:\jswdk-1.0.1\ stopserver.bat I have got the following problem: Using classpath: .\classes;.\webserver.jar; .etc the same message you get when you start startserver.bat but the next line is : Bad command or file name Basically I can not stop the server by command but I have to close the dos window which I hate How can I overcome this problem -Original Message- From: Klacansky, Igor [SMTP:[EMAIL PROTECTED]] Sent: 27 July 2000 23:25 To: [EMAIL PROTECTED] Subject: Re: urgent-install jsp problems I have the same problem with WIN NT 4.0. The solution I found is to switch from jdk1.3 back to jdk1.2.2. I sent it to tomcat_dev group as a bug/question and I am still hoping to get an answer. Igor [EMAIL PROTECTED] == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent-install jsp problems
It seems to me you have a path problem (are there spaces in your path?). What about to close the path into "..." in stopserver.bat? -Original Message- From: BLAKCORI, Ansar [mailto:[EMAIL PROTECTED]] Sent: Friday, July 28, 2000 6:48 AM To: [EMAIL PROTECTED] Subject: Re: urgent-install jsp problems Thank you very much It did work but still I've got this problem My autoexec.bat is: mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi) mode con codepage select=850 keyb uk,,c:\windows\COMMAND\keyboard.sys set PATH=C:\jdk1.2.2\bin set CLASSPATH=C:\jdk1.2.2\lib\tools.jar;C:\jdk1.2.2; The java programs work well but with jswdk the problem is the following: When I start my startserver.bat at the prompt the java console is initialized and I can invoke examples in http://localhost or 127.0.0.1:8080 but when I try to stop the server by typing in the console: C:\jswdk-1.0.1\ stopserver.bat I have got the following problem: Using classpath: .\classes;.\webserver.jar; .etc the same message you get when you start startserver.bat but the next line is : Bad command or file name Basically I can not stop the server by command but I have to close the dos window which I hate How can I overcome this problem -Original Message- From: Klacansky, Igor [SMTP:[EMAIL PROTECTED]] Sent: 27 July 2000 23:25 To: [EMAIL PROTECTED] Subject: Re: urgent-install jsp problems I have the same problem with WIN NT 4.0. The solution I found is to switch from jdk1.3 back to jdk1.2.2. I sent it to tomcat_dev group as a bug/question and I am still hoping to get an answer. Igor [EMAIL PROTECTED] == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent help needed
I'm still running into this same problem. However I noticed that if I hit the test.jsp first, then hit the servlet, it worked. Has anyone ran into this problem using Java Web Server 2.0, and servlet 2.1? TIA, Kachana --- Vasudha Deepak [EMAIL PROTECTED] wrote: Hi, Check the version of servlet.jar.Probably it needs the new one ie servlet.jar version2.2 Also verify your classpath. If you have the new verison,may be it is referring to the old one somewhere. Vasudha - Original Message - From: Kachana Ung [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 21, 2000 10:18 AM Subject: Urgent help needed Hi, I tried unsuccessfully to write a servlet that simply forwards the request to another jsp page (test.jsp) to be proccessed. The test.jsp is a simple PURE html page that just prints something. Here's the code: = package workflow.servlet; import javax.servlet.*; import javax.servlet.http.*; public class TestServlet extends HttpServlet{ public void service (HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException{ RequestDispatcher rd = getServletContext().getRequestDispatcher("/workflow/test.jsp"); rd.forward(req, res); } } === I kept getting the following error message: --- 500 Internal Server Error The servlet named Test at the requested URL http://sabrejspServlet reported this exception: java.lang.NullPointerException. Please report this to the administrator of the web server. java.lang.NullPointerException at com.sun.server.http.pagecompile.GenericPageCompileServlet.loadClass(GenericP ageCompileServlet.java:517) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.compileAndLoadServlet (JspServlet.java:274) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspSer vlet.java:254) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.ja va:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:202) at com.sun.server.http.HttpRequestDispatcherImpl.forward(HttpRequestDispatcherI mpl.java:249) at com.thevegroup.client.service.workflow.servlet.TestServlet.service(TestServl et.java:21) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.ServletManager.callServletService(ServletManager.java:936) at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423) at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79) at com.sun.server.http.stages.Runner.process(Runner.java:79) at com.sun.server.ProcessingSupport.process(ProcessingSupport.java:294) at com.sun.server.Service.process(Service.java:204) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java :374) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java :166) at com.sun.server.HandlerThread.run(HandlerThread.java:162) --- However when I rewrote the servlet to forward the request to an html page (test.jsp above saved as test.html), the message is displayed correctly. Please, help. I'm using NT, jws 2.0, and servlets 2.1. Thanks, Kachana __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
Re: urgent-install jsp problems
The JAVA_HOME path should be C:\jdk1.3; - Original Message - From: Ansar Blakqori [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 27, 2000 3:54 PM Subject: urgent-install jsp problems Hi there I have this problem I have installed the following : My java is on C:\jdk1.3\bin My java ent is on C:\j2ee\bin My java jsp is on C:\JSWDK-1.0.1\ According to instructions I have added the following in autoexec.bat(win98): mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi) mode con codepage select=850 keyb uk,,c:\windows\COMMAND\keyboard.sys set CLASSPATH = C:\jdk1.3\lib\tools.jar set JAVA_HOME=C:\jdk1.3\bin But when i go to C:\jswdk-1.0.1\ and execute the command: startserver.bat I receive this error: sun.tools.javac.Main Quite often this warning is the result of not including the necessary packages in the CLASSPATH enviroment which used to invoke com.sun.web.shell.Startup. This can be corrected by adding the following For JDK 2.1.X on windows you add: %CLASSPATH=[jdkHome]\lib\tools.jar;%CLASSPATH% I do not know what's wrong. Do I have to edit the startserver.bat and change anything Do I have to edit the autoexec.bat differently and how By the way my C:\JDK1.3\BIN is working just fine What do I have to do to get the jsp server up and running Is there any useful book on learning jsp How can i view http://localhost:8080/ It is not working and how can view the index page and the result of jsp work Regards Ansar Please help because i want to get jsp running quickly Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent-install jsp problems
I have changed the content but still does not work mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi) mode con codepage select=850 keyb uk,,c:\windows\COMMAND\keyboard.sys set CLASSPATH = C:\jdk1.3\lib\tools.jar; set JAVA_HOME=C:\jdk1.3; But still I receive the same message. Would you think of anything else. If anyone has the deatiled,step by step, installation instructions of setting jsp please tell me -Original Message- From: Yasir Feroze Minhas [SMTP:[EMAIL PROTECTED]] Sent: 27 July 2000 12:35 To: [EMAIL PROTECTED] Subject: Re: urgent-install jsp problems The JAVA_HOME path should be C:\jdk1.3; - Original Message - From: Ansar Blakqori [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 27, 2000 3:54 PM Subject: urgent-install jsp problems Hi there I have this problem I have installed the following : My java is on C:\jdk1.3\bin My java ent is on C:\j2ee\bin My java jsp is on C:\JSWDK-1.0.1\ According to instructions I have added the following in autoexec.bat(win98): mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi) mode con codepage select=850 keyb uk,,c:\windows\COMMAND\keyboard.sys set CLASSPATH = C:\jdk1.3\lib\tools.jar set JAVA_HOME=C:\jdk1.3\bin But when i go to C:\jswdk-1.0.1\ and execute the command: startserver.bat I receive this error: sun.tools.javac.Main Quite often this warning is the result of not including the necessary packages in the CLASSPATH enviroment which used to invoke com.sun.web.shell.Startup. This can be corrected by adding the following For JDK 2.1.X on windows you add: %CLASSPATH=[jdkHome]\lib\tools.jar;%CLASSPATH% I do not know what's wrong. Do I have to edit the startserver.bat and change anything Do I have to edit the autoexec.bat differently and how By the way my C:\JDK1.3\BIN is working just fine What do I have to do to get the jsp server up and running Is there any useful book on learning jsp How can i view http://localhost:8080/ It is not working and how can view the index page and the result of jsp work Regards Ansar Please help because i want to get jsp running quickly Thanks == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent-install jsp problems
Here is my class path CLASSPATH = c:\jss\jswdk-1.0.1\webserver.jar;e:\jars\pop3.jar;c:\jdk1.2.2\lib\tools.jar; e:\jars\junit.jar;e:\jars\ejb.jar;e:\jars\jndi.jar; Hope this will help. regards Y - Original Message - From: BLAKCORI, Ansar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 27, 2000 5:10 PM Subject: Re: urgent-install jsp problems I have changed the content but still does not work mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi) mode con codepage select=850 keyb uk,,c:\windows\COMMAND\keyboard.sys set CLASSPATH = C:\jdk1.3\lib\tools.jar; set JAVA_HOME=C:\jdk1.3; But still I receive the same message. Would you think of anything else. If anyone has the deatiled,step by step, installation instructions of setting jsp please tell me -Original Message- From: Yasir Feroze Minhas [SMTP:[EMAIL PROTECTED]] Sent: 27 July 2000 12:35 To: [EMAIL PROTECTED] Subject: Re: urgent-install jsp problems The JAVA_HOME path should be C:\jdk1.3; - Original Message - From: Ansar Blakqori [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 27, 2000 3:54 PM Subject: urgent-install jsp problems Hi there I have this problem I have installed the following : My java is on C:\jdk1.3\bin My java ent is on C:\j2ee\bin My java jsp is on C:\JSWDK-1.0.1\ According to instructions I have added the following in autoexec.bat(win98): mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi) mode con codepage select=850 keyb uk,,c:\windows\COMMAND\keyboard.sys set CLASSPATH = C:\jdk1.3\lib\tools.jar set JAVA_HOME=C:\jdk1.3\bin But when i go to C:\jswdk-1.0.1\ and execute the command: startserver.bat I receive this error: sun.tools.javac.Main Quite often this warning is the result of not including the necessary packages in the CLASSPATH enviroment which used to invoke com.sun.web.shell.Startup. This can be corrected by adding the following For JDK 2.1.X on windows you add: %CLASSPATH=[jdkHome]\lib\tools.jar;%CLASSPATH% I do not know what's wrong. Do I have to edit the startserver.bat and change anything Do I have to edit the autoexec.bat differently and how By the way my C:\JDK1.3\BIN is working just fine What do I have to do to get the jsp server up and running Is there any useful book on learning jsp How can i view http://localhost:8080/ It is not working and how can view the index page and the result of jsp work Regards Ansar Please help because i want to get jsp running quickly Thanks == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent-install jsp problems
hi i worked on this problem yesterday. may be i can help u. this is what i observed and changed. if u'v a look at the "startserver.bat" file it goes something like this: set jsdkJars=.\webserver.jar;.\lib\jakarta.jar;.\lib\servlet.jar set jspJars=.\lib\jsp.jar;.\lib\jspengine.jar set beanJars=.\examples\WEB-INF\jsp\beans;.\webpages\WEB-INF\servlets;.\webpages \WEB-INF\jsp\beans set miscJars=.\lib\xml.jar;.\lib\moo.jar set appJars=%jsdkJars%;%jspJars%;%beanJars%;%miscJars% set sysJars=JAVA_HOME\lib\tools.jar set appClassPath=.\classes;%appJars% set cp=%CLASSPATH% set CLASSPATH=%appClassPath%;%sysJars% - hence just replace "JAVA_HOME" in the code above(in the set sysJars) to "C:\jdk1.3"..this must solve the problem. and one more thing...if u still receive any errors...just look at the first dos window that has text of 4-5lines (titled: Finished startserver) and try to compare it with the code in the startserver.bat... if u get the results or if u don'tdo reply. hope it helps Paavan B.Eng (E.C) Ahmedabad, Gujarat phone:079-6731740 -Original Message- From: Ansar Blakqori [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Thursday, July 27, 2000 4:44 PM Subject: urgent-install jsp problems Hi there I have this problem I have installed the following : My java is on C:\jdk1.3\bin My java ent is on C:\j2ee\bin My java jsp is on C:\JSWDK-1.0.1\ According to instructions I have added the following in autoexec.bat(win98): mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi) mode con codepage select=850 keyb uk,,c:\windows\COMMAND\keyboard.sys set CLASSPATH = C:\jdk1.3\lib\tools.jar set JAVA_HOME=C:\jdk1.3\bin But when i go to C:\jswdk-1.0.1\ and execute the command: startserver.bat I receive this error: sun.tools.javac.Main Quite often this warning is the result of not including the necessary packages in the CLASSPATH enviroment which used to invoke com.sun.web.shell.Startup. This can be corrected by adding the following For JDK 2.1.X on windows you add: %CLASSPATH=[jdkHome]\lib\tools.jar;%CLASSPATH% I do not know what's wrong. Do I have to edit the startserver.bat and change anything Do I have to edit the autoexec.bat differently and how By the way my C:\JDK1.3\BIN is working just fine What do I have to do to get the jsp server up and running Is there any useful book on learning jsp How can i view http://localhost:8080/ It is not working and how can view the index page and the result of jsp work Regards Ansar Please help because i want to get jsp running quickly Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent-install jsp problems
I have the same problem with WIN NT 4.0. The solution I found is to switch from jdk1.3 back to jdk1.2.2. I sent it to tomcat_dev group as a bug/question and I am still hoping to get an answer. Igor [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: **URGENT***
Manish, My first advise to you is to Isolate the problem . Try to write a Simple Java program which runs the unix command..and Make it to work.. And then try integrating it in to the SErvlet. I have been doing the same with out any problem ..although it was in Weblogic App Server native Secondly, Try Studying the servlet demostrated at : http://www.frontiernet.net/~imaging/FileUploadServlet.html Thirdly , I guess you would have to learn Java programming first before you speed ypur way in to App Servers..:) J/king Cheers, Nagraj -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Manish Shah Sent: Friday, July 21, 2000 8:02 AM To: [EMAIL PROTECTED] Subject: **URGENT*** Hye all I am kinda new to Java Programming as such and so to Jsp and servlet. I have a couple of questions [1] I get exceptions when i try to run unix command from my servlet To be precise about the error, this is what I get on the JSWDK1.0.1 startserver screen: java.io.IOException: CreateProcess: rlpq -H101.20.35.78 error=0 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.init(Unknown Source) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) I am performing the following command: rlpq -H101.20.35.78 which will query the printer 101.20.35.78 and check the status of the printer. However it works perfectly when I execute in a stand-alone application and I get the above mentioned IOException when I execute the same command from the Servlet. The code which I try to carry out is.. String[] tokenizedCom = new String[4]; String s; tokenizedCom[0] = "rlpq"; tokenizedCom[1] = "-H101.20.35.78"; try { Process myProcess = Runtime.getRuntime().exec(tokenizedCom); //DataInputStream in = new DataInputStream(new //BufferedInputStream(myProcess.getInputStream())); } catch (IOException e) { e.printStackTrace(); } I kinda am not sure as to what the problem might be. If possible, do send in a sample code alias to the above code. [2] I want to upload file from the JSP page to my servlet. One solution I found was to use the oreilley servlet package. I downloaded that. But I dont know how to use it. I tried to put that in the import statement, but not of much help. I even tried to modify my startserver.bat file on JSWDK1.0.1 by setting the class path. Please advice on it. Thanks a lot Manish __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: **URGENT***
Is your server on a windows machine? -Original Message- From: Manish Shah [mailto:[EMAIL PROTECTED]] Sent: Friday, July 21, 2000 9:02 AM To: [EMAIL PROTECTED] Subject: **URGENT*** Hye all I am kinda new to Java Programming as such and so to Jsp and servlet. I have a couple of questions [1] I get exceptions when i try to run unix command from my servlet To be precise about the error, this is what I get on the JSWDK1.0.1 startserver screen: java.io.IOException: CreateProcess: rlpq -H101.20.35.78 error=0 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.init(Unknown Source) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) I am performing the following command: rlpq -H101.20.35.78 which will query the printer 101.20.35.78 and check the status of the printer. However it works perfectly when I execute in a stand-alone application and I get the above mentioned IOException when I execute the same command from the Servlet. The code which I try to carry out is.. String[] tokenizedCom = new String[4]; String s; tokenizedCom[0] = "rlpq"; tokenizedCom[1] = "-H101.20.35.78"; try { Process myProcess = Runtime.getRuntime().exec(tokenizedCom); //DataInputStream in = new DataInputStream(new //BufferedInputStream(myProcess.getInputStream())); } catch (IOException e) { e.printStackTrace(); } I kinda am not sure as to what the problem might be. If possible, do send in a sample code alias to the above code. [2] I want to upload file from the JSP page to my servlet. One solution I found was to use the oreilley servlet package. I downloaded that. But I dont know how to use it. I tried to put that in the import statement, but not of much help. I even tried to modify my startserver.bat file on JSWDK1.0.1 by setting the class path. Please advice on it. Thanks a lot Manish __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: **URGENT***
no..its on solaris... --- Nathan Revo [EMAIL PROTECTED] wrote: Is your server on a windows machine? -Original Message- From: Manish Shah [mailto:[EMAIL PROTECTED]] Sent: Friday, July 21, 2000 9:02 AM To: [EMAIL PROTECTED] Subject: **URGENT*** Hye all I am kinda new to Java Programming as such and so to Jsp and servlet. I have a couple of questions [1] I get exceptions when i try to run unix command from my servlet To be precise about the error, this is what I get on the JSWDK1.0.1 startserver screen: java.io.IOException: CreateProcess: rlpq -H101.20.35.78 error=0 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.init(Unknown Source) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) I am performing the following command: rlpq -H101.20.35.78 which will query the printer 101.20.35.78 and check the status of the printer. However it works perfectly when I execute in a stand-alone application and I get the above mentioned IOException when I execute the same command from the Servlet. The code which I try to carry out is.. String[] tokenizedCom = new String[4]; String s; tokenizedCom[0] = "rlpq"; tokenizedCom[1] = "-H101.20.35.78"; try { Process myProcess = Runtime.getRuntime().exec(tokenizedCom); //DataInputStream in = new DataInputStream(new //BufferedInputStream(myProcess.getInputStream())); } catch (IOException e) { e.printStackTrace(); } I kinda am not sure as to what the problem might be. If possible, do send in a sample code alias to the above code. [2] I want to upload file from the JSP page to my servlet. One solution I found was to use the oreilley servlet package. I downloaded that. But I dont know how to use it. I tried to put that in the import statement, but not of much help. I even tried to modify my startserver.bat file on JSWDK1.0.1 by setting the class path. Please advice on it. Thanks a lot Manish __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent help needed
There may be a problem in your JSP. Tag not ended properly, etc. -Original Message- From: Kachana Ung [mailto:[EMAIL PROTECTED]] Sent: Friday, July 21, 2000 9:19 AM To: [EMAIL PROTECTED] Subject: Urgent help needed Hi, I tried unsuccessfully to write a servlet that simply forwards the request to another jsp page (test.jsp) to be proccessed. The test.jsp is a simple PURE html page that just prints something. Here's the code: = package workflow.servlet; import javax.servlet.*; import javax.servlet.http.*; public class TestServlet extends HttpServlet{ public void service (HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException{ RequestDispatcher rd = getServletContext().getRequestDispatcher("/workflow/test.jsp"); rd.forward(req, res); } } === I kept getting the following error message: --- 500 Internal Server Error The servlet named Test at the requested URL http://sabrejspServlet reported this exception: java.lang.NullPointerException. Please report this to the administrator of the web server. java.lang.NullPointerException at com.sun.server.http.pagecompile.GenericPageCompileServlet.loadClass(GenericP ageCompileServlet.java:517) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.compileAndLoadServlet (JspServlet.java:274) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspSer vlet.java:254) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.ja va:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:202) at com.sun.server.http.HttpRequestDispatcherImpl.forward(HttpRequestDispatcherI mpl.java:249) at com.thevegroup.client.service.workflow.servlet.TestServlet.service(TestServl et.java:21) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.ServletManager.callServletService(ServletManager.java:936) at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423) at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79) at com.sun.server.http.stages.Runner.process(Runner.java:79) at com.sun.server.ProcessingSupport.process(ProcessingSupport.java:294) at com.sun.server.Service.process(Service.java:204) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java :374) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java :166) at com.sun.server.HandlerThread.run(HandlerThread.java:162) --- However when I rewrote the servlet to forward the request to an html page (test.jsp above saved as test.html), the message is displayed correctly. Please, help. I'm using NT, jws 2.0, and servlets 2.1. Thanks, Kachana __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent help needed
Aparna, When I directly hit the jsp page, it worked fine. Thanks, Kachana --- "Joshi, Aparna" [EMAIL PROTECTED] wrote: There may be a problem in your JSP. Tag not ended properly, etc. -Original Message- From: Kachana Ung [mailto:[EMAIL PROTECTED]] Sent: Friday, July 21, 2000 9:19 AM To: [EMAIL PROTECTED] Subject: Urgent help needed Hi, I tried unsuccessfully to write a servlet that simply forwards the request to another jsp page (test.jsp) to be proccessed. The test.jsp is a simple PURE html page that just prints something. Here's the code: = package workflow.servlet; import javax.servlet.*; import javax.servlet.http.*; public class TestServlet extends HttpServlet{ public void service (HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException{ RequestDispatcher rd = getServletContext().getRequestDispatcher("/workflow/test.jsp"); rd.forward(req, res); } } === I kept getting the following error message: --- 500 Internal Server Error The servlet named Test at the requested URL http://sabrejspServlet reported this exception: java.lang.NullPointerException. Please report this to the administrator of the web server. java.lang.NullPointerException at com.sun.server.http.pagecompile.GenericPageCompileServlet.loadClass(GenericP ageCompileServlet.java:517) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.compileAndLoadServlet (JspServlet.java:274) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspSer vlet.java:254) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.ja va:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:202) at com.sun.server.http.HttpRequestDispatcherImpl.forward(HttpRequestDispatcherI mpl.java:249) at com.thevegroup.client.service.workflow.servlet.TestServlet.service(TestServl et.java:21) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.ServletManager.callServletService(ServletManager.java:936) at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423) at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79) at com.sun.server.http.stages.Runner.process(Runner.java:79) at com.sun.server.ProcessingSupport.process(ProcessingSupport.java:294) at com.sun.server.Service.process(Service.java:204) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java :374) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java :166) at com.sun.server.HandlerThread.run(HandlerThread.java:162) --- However when I rewrote the servlet to forward the request to an html page (test.jsp above saved as test.html), the message is displayed correctly. Please, help. I'm using NT, jws 2.0, and servlets 2.1. Thanks, Kachana __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent help needed
Hi, Check the version of servlet.jar.Probably it needs the new one ie servlet.jar version2.2 Also verify your classpath. If you have the new verison,may be it is referring to the old one somewhere. Vasudha - Original Message - From: Kachana Ung [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 21, 2000 10:18 AM Subject: Urgent help needed Hi, I tried unsuccessfully to write a servlet that simply forwards the request to another jsp page (test.jsp) to be proccessed. The test.jsp is a simple PURE html page that just prints something. Here's the code: = package workflow.servlet; import javax.servlet.*; import javax.servlet.http.*; public class TestServlet extends HttpServlet{ public void service (HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException{ RequestDispatcher rd = getServletContext().getRequestDispatcher("/workflow/test.jsp"); rd.forward(req, res); } } === I kept getting the following error message: --- 500 Internal Server Error The servlet named Test at the requested URL http://sabrejspServlet reported this exception: java.lang.NullPointerException. Please report this to the administrator of the web server. java.lang.NullPointerException at com.sun.server.http.pagecompile.GenericPageCompileServlet.loadClass(GenericP ageCompileServlet.java:517) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.compileAndLoadServlet (JspServlet.java:274) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspSer vlet.java:254) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.ja va:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:202) at com.sun.server.http.HttpRequestDispatcherImpl.forward(HttpRequestDispatcherI mpl.java:249) at com.thevegroup.client.service.workflow.servlet.TestServlet.service(TestServl et.java:21) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.ServletManager.callServletService(ServletManager.java:936) at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423) at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79) at com.sun.server.http.stages.Runner.process(Runner.java:79) at com.sun.server.ProcessingSupport.process(ProcessingSupport.java:294) at com.sun.server.Service.process(Service.java:204) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java :374) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java :166) at com.sun.server.HandlerThread.run(HandlerThread.java:162) --- However when I rewrote the servlet to forward the request to an html page (test.jsp above saved as test.html), the message is displayed correctly. Please, help. I'm using NT, jws 2.0, and servlets 2.1. Thanks, Kachana __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent....
please go thru the sites at the end of message. or java.sun.com/products/jsp or search the mail archive for this topic you will find lots of information - Original Message - From: manu mehrotra [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 19, 2000 3:49 PM Subject: urgent Hi all, Can anyone please tell me how to go about for learning JSP because i am totally new to it... Thanks Waiting for ur response Manu === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent....
Plz go to the links below (at the end of the page)or visit the site http://java.sun.com/products/jsp manu mehrotra wrote: Hi all, Can anyone please tell me how to go about for learning JSP because i am totally new to it... Thanks Waiting for ur response Manu === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT!Your kind help is earnestly solicited
I think you need to add an extra mybean to the directory as a class from package mybean in folder mybean will appear to the program as mybean/mybean/*.class === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT!Your kind help is earnestly solicited
import jdk api - Original Message - From: Sujoy Kumar Bose [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 13, 2000 8:22 PM Subject: URGENT!Your kind help is earnestly solicited Hi All, Could anybody kindly tell me why the following error is coming ? The scenario is like this :- 1.Windows 98 2.GNUJSP 3.APACHE Jserv 4. Apache WebServer Directory Structure: C:\ EcommPkg Apache Apache Jserv GNUJSP mybean The following error is coming when I am trying to access a Database bean i.e. DataInsertion.java file thru the Form2.jsp and I quote the error below as shown in the IE 4.0 browser :- ( The bean is kept in a package named as mybean which is in mybean directory under the EcommPkg directory which is my root directory under which I have the above mentioned 2,3,4 ) M025 /jsp/MyPages/Form2.jsp: java.lang.NoClassDefFoundError: mybean/DataInsertion at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Compiled Code) at org.gjt.jsp.JspServlet$Page.load(JspServlet.java:929) at org.gjt.jsp.JspServlet$Page.needToRecompile(Compiled Code) at org.gjt.jsp.JspServlet$Page.process(Compiled Code) at org.gjt.jsp.JspServlet.service(JspServlet.java:284) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.jserv.JServConnection.processRequest(Compiled Code) at org.apache.jserv.JServConnection.run(Compiled Code) at java.lang.Thread.run(Compiled Code) With Regards, Sujoy. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent - WebLogic and JSP !
Hi Bhawna, Can you detail what error are you facing? Ritesh sinha Bhawana Vijh [EMAIL PROTECTED] on 06/13/2000 03:20:21 PM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Sinha Ritesh-SWD-ITIL-UB/Itilmail) Subject: Urgent - WebLogic and JSP ! Hi, I am using WebLogic for the first time. I want to configure it for running JSP's. I have set my properties file properly. But still I am not able to run my JSP's properly. The JSP is being compiled but it gives some kind of error. Do we have to set anything in the classpath for running JSP's ? Thanks in advnace, Bhawna. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT!Your kind help is earnestly solicited
Dear Sujoy, Pl check ur classpath such settings in jserv gnujsp. Som -- From: Sujoy Kumar Bose[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list about Java Server Pages specification and reference Sent: Tuesday, June 13, 2000 5:52 PM To: [EMAIL PROTECTED] Subject:URGENT!Your kind help is earnestly solicited Hi All, Could anybody kindly tell me why the following error is coming ? The scenario is like this :- 1.Windows 98 2.GNUJSP 3.APACHE Jserv 4. Apache WebServer Directory Structure: C:\ EcommPkg Apache Apache Jserv GNUJSP mybean The following error is coming when I am trying to access a Database bean i.e. DataInsertion.java file thru the Form2.jsp and I quote the error below as shown in the IE 4.0 browser :- ( The bean is kept in a package named as mybean which is in mybean directory under the EcommPkg directory which is my root directory under which I have the above mentioned 2,3,4 ) M025 /jsp/MyPages/Form2.jsp: java.lang.NoClassDefFoundError: mybean/DataInsertion at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Compiled Code) at org.gjt.jsp.JspServlet$Page.load(JspServlet.java:929) at org.gjt.jsp.JspServlet$Page.needToRecompile(Compiled Code) at org.gjt.jsp.JspServlet$Page.process(Compiled Code) at org.gjt.jsp.JspServlet.service(JspServlet.java:284) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.jserv.JServConnection.processRequest(Compiled Code) at org.apache.jserv.JServConnection.run(Compiled Code) at java.lang.Thread.run(Compiled Code) With Regards, Sujoy. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent newbie question: literal characters to not display as HTML in output
Or you can replace the with "lt;" and the with "gt;" (without quotes). These are the codes so html will display the and characters instead of trying to interpret what is contained within. You can use PerlTools from ORO to do these types of search and replace easily. http://www.oroinc.com matt Date: Thu, 8 Jun 2000 17:55:52 -0700 From: David Edmister [EMAIL PROTECTED] Subject: urgent newbie question: literal characters to not display as HTML in output To: [EMAIL PROTECTED] i know there is a simple answer to this but i'm not sure how to do this in JSP...i want to suppress html and display the literal characters if the user inputs tag references in my input box...because when i display it, it'll come out as HTML diplayed (e.g., hr will show the HTML line on the display output)what's the JSP tag syntax to show the literal tag or text statement (e.g., i want to display hr if the user enters it) thanks in advance. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets Matt Houser Senior Java Developer World Wide Software Development Sun Microsystems, Inc. 500 Eldorado Boulevard, UBRM02-264 Broomfield, CO 80021 [EMAIL PROTECTED] (303) 272-9747 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent newbie question: literal characters to not display as HTML in output
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 9 Jun 2000, Matthew Houser wrote: You can also use the view:escape tag I created expressly for this purpose. See http://cupid.suninternet.com/~joeo/View.html for more details. Or you can replace the with "lt;" and the with "gt;" (without quotes). These are the codes so html will display the and characters instead of trying to interpret what is contained within. You can use PerlTools from ORO to do these types of search and replace easily. http://www.oroinc.com matt Date: Thu, 8 Jun 2000 17:55:52 -0700 From: David Edmister [EMAIL PROTECTED] Subject: urgent newbie question: literal characters to not display as HTML in output To: [EMAIL PROTECTED] i know there is a simple answer to this but i'm not sure how to do this in JSP...i want to suppress html and display the literal characters if the user inputs tag references in my input box...because when i display it, it'll come out as HTML diplayed (e.g., hr will show the HTML line on the display output)what's the JSP tag syntax to show the literal tag or text statement (e.g., i want to display hr if the user enters it) thanks in advance. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets Matt Houser Senior Java Developer World Wide Software Development Sun Microsystems, Inc. 500 Eldorado Boulevard, UBRM02-264 Broomfield, CO 80021 [EMAIL PROTECTED] (303) 272-9747 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets - --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer -BEGIN PGP SIGNATURE- Version: PGP 6.5.1i iQA+AwUBOUEa4AhcVZKknQwGEQKxhQCfbov/gFUUo9Bh8kqLeWgGADVGdq4Al1I1 qc/8ccnYsbmzR7QRMOZTMrU= =rNfg -END PGP SIGNATURE- === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent : FAX in Java
You're best best is to setup a mailtofax gateway and use the java mail APIs to send the message. On Fri, 9 Jun 2000, Romin K. Irani wrote: Hi, What we need in our application is a simple mechanism to send FAX. The contents are read from the Database. Is there any piece of code/pointers/services that one can use to do this !!! Thanks Romin === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent newbie question: literal characters to not display as HTML in output
You could try enclosing the string in pre /pre tags before printing it. ax i know there is a simple answer to this but i'm not sure how to do this in JSP...i want to suppress html and display the literal characters if the user inputs tag references in my input box...because when i display it, it'll come out as HTML diplayed (e.g., hr will show the HTML line on the display output)what's the JSP tag syntax to show the literal tag or text statement (e.g., i want to display hr if the user enters it) === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent HELP!!!
Hi, Java is case-sensitive. Have have to - either name your source-file "_Hello.java" AND your Class "_Hello" - or name your source-file "_hello.java" AND your Class "_hello" Greetings Peter -Ursprüngliche Nachricht- Von: Tarun Dewan [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 6. Juni 2000 11:30 An: [EMAIL PROTECTED] Betreff: Urgent HELP!!! Hi, I'm using Java Web Server but when I try to execute my JSP following errors occured : D:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_alps\_Hello.java:22: '}' expected. static char[][] _jspx_html_data = null; ^ D:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_alps\_Hello.java:20: Public class pagecompile.jsp._alps._hello must be defined in a file called "_hello.java". public class _hello extends HttpJspBase { ^ Any ideas? Tarun Dewan Software Engineer Nucleus Software Exports Ltd. 33-35, Thyagraj Nagar Market, New Delhi - 110003. Tel.: 4627552 Ext. 342 E-Mail : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent HELP!!!
In the first case u must have forget to close one bracket and in other case u must have mentioned a wrong name to the file. Bye! Sandy. - Original Message - From: Tarun Dewan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 06, 2000 2:59 PM Subject: Urgent HELP!!! Hi, I'm using Java Web Server but when I try to execute my JSP following errors occured : D:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_alps\_Hello.java:22: '}' expected. static char[][] _jspx_html_data = null; ^ D:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_alps\_Hello.java:20: Public class pagecompile.jsp._alps._hello must be defined in a file called "_hello.java". public class _hello extends HttpJspBase { ^ Any ideas? Tarun Dewan Software Engineer Nucleus Software Exports Ltd. 33-35, Thyagraj Nagar Market, New Delhi - 110003. Tel.: 4627552 Ext. 342 E-Mail : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent
Check TCPIP settings all round. Are there any ports blocked on the server machine. Can you connect via Oracle Net8 easy config utility. If not what is the error. Eugene Martin -Original Message- From: Aggarwal, Pawan [mailto:[EMAIL PROTECTED]] Sent: 02 June 2000 08:52 To: [EMAIL PROTECTED] Subject: Urgent !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12" TITLE Urgent/TITLE /HEAD BODY Pnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; BRFONT SIZE=2 FACE="Arial"Hi All,/FONT /P PFONT SIZE=2 FACE="Arial"I am using thin JDBC to connect with Oracle 8I version 8.1.5.0.0/FONT BRFONT SIZE=2 FACE="Arial"I am getting error "network adapter could not establish connection"/FONT /P PFONT SIZE=2 FACE="Arial"Here is the code../FONT BRFONT SIZE=2 FACE="Arial"C/FONTFONT SIZE=2 FACE="Arial"lass.forName (quot;oracle.jdbc.driver.OracleDriverquot;);/FONT /P PFONT SIZE=2 FACE="Arial"nbsp;nbsp;nbsp; String url = quot;jdbc:oracle:thin:@/FONTFONT SIZE=2 FACE="Arial"Serv:1521:ora1/FONTFONT SIZE=2 FACE="Arial"quot;;/FONT /P PFONT SIZE=2 FACE="Arial"nbsp;nbsp;nbsp; Connection conn = DriverManager.getConnection(url,quot;/FONTFONT SIZE=2 FACE="Arial"user/FONTFONT SIZE=2 FACE="Arial"quot;,quot;/FONTFONT SIZE=2 FACE="Arial"password/FONTFONT SIZE=2 FACE="Arial"quot;);/FONT /P PFONT SIZE=2 FACE="Arial"I have placed classes111.zip amp; nls_charset11.zip in classpath/FONT BRFONT SIZE=2 FACE="Arial"And oracle home\oracle\jdbc\lib in path/FONT /P PFONT SIZE=2 FACE="Arial"Machine name is Serv/FONT BRFONT SIZE=2 FACE="Arial"Ora1 is database/FONT BRFONT SIZE=2 FACE="Arial"HostString is Oraspa/FONT /P BR PFONT SIZE=2 FACE="Arial"Please advice me as this is urgent//FONT /P PFONT SIZE=2 FACE="Arial"Thanks./FONT /P BR BR /BODY /HTML ==To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent
Title: RE: Urgent The exact error is establish the connection at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:407) at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:152) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja va:214) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:193) at java.sql.DriverManager.getConnection(DriverManager.java:457) at java.sql.DriverManager.getConnection(DriverManager.java:137) at Data1.main(Data1.java:17) -Original Message- From: Aggarwal, Pawan [SMTP:[EMAIL PROTECTED]] Sent: 02 June 2000 15:16 To: [EMAIL PROTECTED] Subject: Re: Urgent Easy config is easily connecting to the database...successfully..thru port 1521.. I installed Oracle 8I giving path like e:\oracle\ora81\jdbc\lib\classes111.zip I have placed this whole thing in the class path Should I declare ORACLE_HOME as some system variable And then use ORACLE_HOME\jdbc\lib as classpath.. I tried connecting with scott / tiger thru easy config and it works. -Original Message- From: Eugene Martin [SMTP:[EMAIL PROTECTED]] Sent: 02 June 2000 14:07 To: [EMAIL PROTECTED] Subject: Re: Urgent Check TCPIP settings all round. Are there any ports blocked on the server machine. Can you connect via Oracle Net8 easy config utility. If not what is the error. Eugene Martin === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets Ýo unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name
Re: Urgent
hi 1) you can use expilcitly,call the servlets to control the session, as 2) you can use the getValue and PutValue functions in JSP, when you haev specified in JSP tag that session="true" anil From: Munish Talwar [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Urgent Date: Thu, 1 Jun 2000 13:34:52 -0400 Any body knows how to trap session expiration in JSP so that we can display proper message?? thanks munish === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent
This is how we do it: HttpSession session = request.getSession(false); if (session == null) { // Redirect to timeout WebLogic.redirect(request, response, "Timeout.html"); } Make sure you set page sessio to false as in below: %@ page session="false" % Dean -Original Message- From: Munish Talwar [mailto:[EMAIL PROTECTED]] Sent: June 01, 2000 10:35 AM To: [EMAIL PROTECTED] Subject: Urgent Any body knows how to trap session expiration in JSP so that we can display proper message?? thanks munish === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent : how to replace multiple occurances of a character in a string
Use a regular expression package like the good one available from GNU (www.cacas.org/~wes), OROMatch or Stevesoft`s com.stevesoft.pat. fribeiro - Original Message - From: "srinivasa rao yeramati" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 01, 2000 1:03 AM Subject: Urgent : how to replace multiple occurances of a character in a string Hi I have to replace the occurance of single quote ' with two single quotes '' in multipe places with in the same string . How can i replace multiple ocurances. is replace method has any parameters to take care. Help is highly appreciated srini yeramati Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent : how to replace multiple occurances of a character in a string
I use the regular expression package from Apache http://jakarta.apache.org/regexp/index.html and then I did: RE expr = new RE("'") ; // RE is the class object from Apache String newstr = expr.subst(oldstr, "''") ; m: srinivasa rao yeramati [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Urgent : how to replace multiple occurances of a character in a string Date: Thu, 1 Jun 2000 04:03:14 IST Hi I have to replace the occurance of single quote ' with two single quotes '' in multipe places with in the same string . How can i replace multiple ocurances. is replace method has any parameters to take care. Help is highly appreciated srini yeramati Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT!!!! --- calling a servlet from a jsp page
Title: RE: URGENT --- calling a servlet from a jsp page Hi joy get a reference to request dispatcher and invoke forward method on rd with request and response object as parameter somethin like % RequestDispatcher rd= req.getRequestDispatcher( /servlet/myServlet); if(rd ! = null) { try{ rd.forward(req,res); } catch(Exception e) } % -Original Message- From: Joysorlyn Dixon [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, May 30, 2000 3:48 AM To: [EMAIL PROTECTED] Subject: URGENT --- calling a servlet from a jsp page My apologies for the newbie question -- but I'm pulling my hair out at this point -- Please some one tell/show me a snippet of code that will call my servlet passing the jsp page's request and response objects to the servlet-- or passing the request and response objects to a class that will call my call my servlet through servlet chaining. Thank you very much in advance, Joy === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets Ýo unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name
Re: Urgent ! SSI - LAST_MODIFIED
.Kelly, .to include the last modified page value is not as easy in a .jsp file as it is in a .shtml file. .you need to do the following: %@ page import="java.io.*,java.util.*" % % File f = new File(application.getRealPath(request.getServletPath())); % % Date modified = new Date(f.getLastModified()); % htmlbody This page last modified on: %= modified % /body/html .hope it helps, .javier. Javier Cazares GEPS Intranet Web Team 1 River Road, Bldg. 40-213 Schenectady, NY 12345 P: (518) 385-1521 Email: [EMAIL PROTECTED] -Original Message- From: Kelly Lew Sent: Thursday, May 25, 2000 7:28 AM To: [EMAIL PROTECTED] Subject: Urgent ! SSI - LAST_MODIFIED Hi, How can I include the !--#echo var="LAST_MODIFIED"-- into the jsp file. It seems like working to me. Please help. Kelly == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent ! SSI - LAST_MODIFIED
Use Javascript instead. http://www.elastica.com/cv.html look at the bottom of the html source. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Kelly Lew Sent: Thursday, May 25, 2000 4:28 AM To: [EMAIL PROTECTED] Subject: Urgent ! SSI - LAST_MODIFIED Hi, How can I include the !--#echo var="LAST_MODIFIED"-- into the jsp file. It seems like working to me. Please help. Kelly == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent ! SSI - LAST_MODIFIED
IMO, it would work better with lastModified() instead of getLastModified() Pierre-Yves Saumont [EMAIL PROTECTED] -Message d'origine- De: Javier Cazares [SMTP:[EMAIL PROTECTED]] Date: jeudi 25 mai 2000 15:07 A: [EMAIL PROTECTED] Objet: Re: Urgent ! SSI - LAST_MODIFIED .Kelly, .to include the last modified page value is not as easy in a jsp file as it is in a .shtml file. .you need to do the following: %@ page import="java.io.*,java.util.*" % % File f = new File(application.getRealPath(request.getServletPath())); % % Date modified = new Date(f.getLastModified()); % htmlbody This page last modified on: %= modified % /body/html .hope it helps, .javier. Javier Cazares GEPS Intranet Web Team 1 River Road, Bldg. 40-213 Schenectady, NY 12345 P: (518) 385-1521 Email: [EMAIL PROTECTED] -Original Message- From: Kelly Lew Sent: Thursday, May 25, 2000 7:28 AM To: [EMAIL PROTECTED] Subject: Urgent ! SSI - LAST_MODIFIED Hi, How can I include the !--#echo var="LAST_MODIFIED"-- into the jsp file. It seems like working to me. Please help. Kelly == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT: How I save the JSP's html output as a file?
Can you use a custom tag and in the end tag write the contents of the out steam to file? ie. wrap your jsp page in custom tags. Alternatively I reckon you could chain a servlet that has the responsibility of writing the response to a file also. I think you can get out stream from the PageContext. (don't quote me I don't have my book handy) This doesn't seem to difficult. How does buffering work when you chain servlets? On Fri, 19 May 2000, Alan Ausi wrote: Hi: I have a urgent problem. I want save the JSP's output as a html file (not by hand). I think this is a basic problem but I can not solve it. Any one can help me? using "openstream" I can get static HTML from any URL, even outside the server. but the problem is I have no method to get the dynamic part of JSP because the URL is the same before or after I write the JSP. Would you please give me some suggestion using which method I can distinguish it? I once read a mail: it is said we can pretend the program is a browser, issue an http request to java webserver then read the response back. Would someone explain it in detailed example? Thanks in advance __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent: how to sense url click
I don't see how you can use servlet chaining here. The URL's I want to count the clicks for are on another server. They're not mine. To which call would I chain this servlet you gave Geert 'Darling' Van Damme -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan Hager Sent: woensdag 3 mei 2000 2:08 To: [EMAIL PROTECTED] Subject: Re: urgent: how to sense url click Servlet Chaining may be more appropriate...I guess it's just a design issue. I might argue that servlet chaining allows for regular uri's to be used, which are more search-server friendly. public doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String contentType = req.contentType(); if (contentType == null) return; res.setContentType(contentType); String URI = getURI(); //update database for the give URI //output content identical to the input PrintWriter out = res.getWriter(); BufferedReader in = req.Reader(); String line = null; while ((line = in.readLine()) != null) out.println(line); } Don't forget to turn servlet chaining on for text/html files (or whatever type of files you are counting). You'll have to refer to your servers document on how to do this. Sincerely Jonathan Hager -Original Message- From: Geert Van Damme [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 02, 2000 1:50 AM To: [EMAIL PROTECTED] Subject: Re: urgent: how to sense url click I just tried to send you this, but the mail server doesn't seem to find your address immediately, so I copy it to the list. Others might be interested as well. I use a servlet that does something like this public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String url = req.getQueryString(); //String url = req.getParameter(url); if (url != null){ url = url.substring(url.indexOf("url=")+4); //log(url); try{ Integer id = new Integer(req.getParameter("id")); if (url != l){ res.sendRedirect(url); synchronized (this){ // update your db here } } } } instead of a normal hyperlink I use a link to /servlet/counter?url=http://www.reallink.com Geert 'Darling' Van Damme -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Nagaprakash C S Sent: dinsdag 2 mei 2000 10:19 To: [EMAIL PROTECTED] Subject: Re: urgent: how to sense url click can u pls brief me, i'm not clear how to write thanks in advance prakash K Ramesh wrote: write a onclick() handler for the hyperlink. Nagaprakash C S [EMAIL PROTECTED] on 05/02/2000 12:09:12 Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: K Ramesh/Chennai/HCLDELUXE) Subject: urgent: how to sense url click hi all, i 'v an urgent requirement of sensing the clicking of hyperlink and upadating the database, any suggestions and solutions are greatly welcome thanks in advance prakash == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe:
Re: urgent: how to sense url click
write a onclick() handler for the hyperlink. Nagaprakash C S [EMAIL PROTECTED] on 05/02/2000 12:09:12 Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: K Ramesh/Chennai/HCLDELUXE) Subject: urgent: how to sense url click hi all, i 'v an urgent requirement of sensing the clicking of hyperlink and upadating the database, any suggestions and solutions are greatly welcome thanks in advance prakash === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent: how to sense url click
What do you mean exactly? Is it something like the servlet we use at http://www.gojasper.be ? We use a servlet to keep track of the number of hits for each link. after recording the click the servlets sends a redirect. Geert 'Darling' Van Damme -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Nagaprakash C S Sent: dinsdag 2 mei 2000 8:39 To: [EMAIL PROTECTED] Subject: urgent: how to sense url click hi all, i 'v an urgent requirement of sensing the clicking of hyperlink and upadating the database, any suggestions and solutions are greatly welcome thanks in advance prakash == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent: how to sense url click
can u pls brief me, i'm not clear how to write thanks in advance prakash K Ramesh wrote: write a onclick() handler for the hyperlink. Nagaprakash C S [EMAIL PROTECTED] on 05/02/2000 12:09:12 Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: K Ramesh/Chennai/HCLDELUXE) Subject: urgent: how to sense url click hi all, i 'v an urgent requirement of sensing the clicking of hyperlink and upadating the database, any suggestions and solutions are greatly welcome thanks in advance prakash === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urgent: how to sense url click
Servlet Chaining may be more appropriate...I guess it's just a design issue. I might argue that servlet chaining allows for regular uri's to be used, which are more search-server friendly. public doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String contentType = req.contentType(); if (contentType == null) return; res.setContentType(contentType); String URI = getURI(); //update database for the give URI //output content identical to the input PrintWriter out = res.getWriter(); BufferedReader in = req.Reader(); String line = null; while ((line = in.readLine()) != null) out.println(line); } Don't forget to turn servlet chaining on for text/html files (or whatever type of files you are counting). You'll have to refer to your servers document on how to do this. Sincerely Jonathan Hager -Original Message- From: Geert Van Damme [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 02, 2000 1:50 AM To: [EMAIL PROTECTED] Subject: Re: urgent: how to sense url click I just tried to send you this, but the mail server doesn't seem to find your address immediately, so I copy it to the list. Others might be interested as well. I use a servlet that does something like this public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String url = req.getQueryString(); //String url = req.getParameter(url); if (url != null){ url = url.substring(url.indexOf("url=")+4); //log(url); try{ Integer id = new Integer(req.getParameter("id")); if (url != l){ res.sendRedirect(url); synchronized (this){ // update your db here } } } } instead of a normal hyperlink I use a link to /servlet/counter?url=http://www.reallink.com Geert 'Darling' Van Damme -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Nagaprakash C S Sent: dinsdag 2 mei 2000 10:19 To: [EMAIL PROTECTED] Subject: Re: urgent: how to sense url click can u pls brief me, i'm not clear how to write thanks in advance prakash K Ramesh wrote: write a onclick() handler for the hyperlink. Nagaprakash C S [EMAIL PROTECTED] on 05/02/2000 12:09:12 Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: K Ramesh/Chennai/HCLDELUXE) Subject: urgent: how to sense url click hi all, i 'v an urgent requirement of sensing the clicking of hyperlink and upadating the database, any suggestions and solutions are greatly welcome thanks in advance prakash == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.o
Re: urgent: how to sense url click
I just tried to send you this, but the mail server doesn't seem to find your address immediately, so I copy it to the list. Others might be interested as well. I use a servlet that does something like this public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String url = req.getQueryString(); //String url = req.getParameter(url); if (url != null){ url = url.substring(url.indexOf("url=")+4); //log(url); try{ Integer id = new Integer(req.getParameter("id")); if (url != l){ res.sendRedirect(url); synchronized (this){ // update your db here } } } } instead of a normal hyperlink I use a link to /servlet/counter?url=http://www.reallink.com Geert 'Darling' Van Damme -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Nagaprakash C S Sent: dinsdag 2 mei 2000 10:19 To: [EMAIL PROTECTED] Subject: Re: urgent: how to sense url click can u pls brief me, i'm not clear how to write thanks in advance prakash K Ramesh wrote: write a onclick() handler for the hyperlink. Nagaprakash C S [EMAIL PROTECTED] on 05/02/2000 12:09:12 Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: K Ramesh/Chennai/HCLDELUXE) Subject: urgent: how to sense url click hi all, i 'v an urgent requirement of sensing the clicking of hyperlink and upadating the database, any suggestions and solutions are greatly welcome thanks in advance prakash == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT : How do i extend a JSP page ?
Here is what we are doing at Cambridge Interactive with Resin. It works correctly though it bypasses Resin's optimizations. We are porting from a JSP 0.91 version though so we are willing to take that hit (temporarily I hope). It isn't a recommended design though. You could be losing a lot of performance tweaks by using the extends page directive with JSP 1.x. public abstract class CIServlet extends javax.servlet.http.HttpServlet implements HttpJspPage, SingleThreadModel { public abstract void _jspService( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException; public void jspDestroy() { } public void jspInit() { } public synchronized void service( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { _jspService( request, response ); } } Jim Bailey mailto:[EMAIL PROTECTED] http://www.cinteractive.com -Original Message- From: Ñarendra Acharya [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 27, 2000 10:02 AM To: [EMAIL PROTECTED] Subject: URGENT : How do i extend a JSP page ? Hi everybody, I'm trying to extend my own class using a JSP. The spec says that the superclass: 1. should implement HttpJspPage 2. al the methods in the Servlet interface are declared final additionally, JSP author should have in the superclass : - the service() method of the Servlet API invoke the _jspService() - init(ServletConfig) method stores the configuration, makes it = available as getServletConfig, then invokes jspInt - the destroy() method invokes jspDestroy now i'm using JRUN and i just checked out the .java file created by it : it has the following signature: public class myacct extends com.livesoftware.jsp.HttpJSPServlet = implements com.livesoftware.jsp.JRunJspPage, HttpJspPage=20 Can somebody please tell me if i have to have my own superclass : 1. What class should my super class extend ? (in the context of using = JRUN) 2. what classes should my super class implement ? (in the context of = using JRUN) 3. What should be there in the init()/destroy() method ? (in the context = of using JRUN) 3.1 by default 3.1 in case i don't have to initialize/destroy any objects for my = project Many thanx in advance regards narendra P.S. i tried to send this mail twice using Outlook Express but it was returned back saying that this mail contained an attachment ..??? anybody know if Outlook Express somehow "attaches" anything ? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT : How do i extend a JSP page ?
hi all... for those of you into servlet engine/JSP page compilation implementation: name some of the performance tweaks that can be lost by using the "extends" directive? what about the "implements" directive of JSP 0.9x? thanks for the info, p -- // Paul Holser (mailto:[EMAIL PROTECTED]) // ObjectSpace, Inc. // The Leader in Business-to-Business Solutions // http://www.objectspace.com -Original Message- From: Jim Bailey [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 27, 2000 11:09 AM To: [EMAIL PROTECTED] Subject: Re: URGENT : How do i extend a JSP page ? Here is what we are doing at Cambridge Interactive with Resin. It works correctly though it bypasses Resin's optimizations. We are porting from a JSP 0.91 version though so we are willing to take that hit (temporarily I hope). It isn't a recommended design though. You could be losing a lot of performance tweaks by using the extends page directive with JSP 1.x. public abstract class CIServlet extends javax.servlet.http.HttpServlet implements HttpJspPage, SingleThreadModel { public abstract void _jspService( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException; public void jspDestroy() { } public void jspInit() { } public synchronized void service( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { _jspService( request, response ); } } Jim Bailey mailto:[EMAIL PROTECTED] http://www.cinteractive.com -Original Message- From: Ñarendra Acharya [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 27, 2000 10:02 AM To: [EMAIL PROTECTED] Subject: URGENT : How do i extend a JSP page ? Hi everybody, I'm trying to extend my own class using a JSP. The spec says that the superclass: 1. should implement HttpJspPage 2. al the methods in the Servlet interface are declared final additionally, JSP author should have in the superclass : - the service() method of the Servlet API invoke the _jspService() - init(ServletConfig) method stores the configuration, makes it = available as getServletConfig, then invokes jspInt - the destroy() method invokes jspDestroy now i'm using JRUN and i just checked out the .java file created by it : it has the following signature: public class myacct extends com.livesoftware.jsp.HttpJSPServlet = implements com.livesoftware.jsp.JRunJspPage, HttpJspPage=20 Can somebody please tell me if i have to have my own superclass : 1. What class should my super class extend ? (in the context of using = JRUN) 2. what classes should my super class implement ? (in the context of = using JRUN) 3. What should be there in the init()/destroy() method ? (in the context = of using JRUN) 3.1 by default 3.1 in case i don't have to initialize/destroy any objects for my = project Many thanx in advance regards narendra P.S. i tried to send this mail twice using Outlook Express but it was returned back saying that this mail contained an attachment ..??? anybody know if Outlook Express somehow "attaches" anything ? == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT: using session vs request/response
John, Are there any downsides to putting objects in the HttpSession Object (as opposed to strictly using request/response). All session-bound objects have to serialisable (which can cause problems), due to the session constantly saved and restored. Therefore if you have large data objects, it would be better to store references to the these objects rather than the objects themselves. Also stay away from binding SQL connections in the session, as this also can cause some nasty db access problems. Are there any guidelines/Best Practices discussing (or advocating) minimal use of HttpSession object as a placeholder for object data (ex. beans)? If you are using the model2 jsp-servlet-jsp concept, then it's best to bind objects to the request and forward(), and only bind to the session for things that are constantly accessed, e.g. member's name, id, etc. Any comments? Andrew Beacock Software Team Leader InterVoiceBrite Ltd. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT: using session vs request/response
Andrew Beacock wrote: John, Are there any downsides to putting objects in the HttpSession Object (as opposed to strictly using request/response). All session-bound objects have to serialisable (which can cause problems), due to the session constantly saved and restored. In servlet API 2.2, the requirement to be serializable is only when you include the distributable element in your web application deployment descriptor, which indicates that your application is programmed to operate in a distributed environment. In general, whether or not session information is ever saved and restored is a feature of each particular servlet container -- check the docs on yours to know what is supported and what is not. Therefore if you have large data objects, it would be better to store references to the these objects rather than the objects themselves. Also stay away from binding SQL connections in the session, as this also can cause some nasty db access problems. Are there any guidelines/Best Practices discussing (or advocating) minimal use of HttpSession object as a placeholder for object data (ex. beans)? If you are using the model2 jsp-servlet-jsp concept, then it's best to bind objects to the request and forward(), and only bind to the session for things that are constantly accessed, e.g. member's name, id, etc. I follow a slightly different rule in my own application development -- if I need something for longer than just the current request, I store the data, or a "pointer" to the data, in the user's session. Otherwise, I use request attributes. The decision between storing the data or a "pointer" to the data (i.e. a way to reconstruct it) depends on the size of the stuff that would need to be stored as compared to the memory available on the server, the number of simultaneous user sessions that are active, and so on. If I have (relatively) lots of available memory, and/or it would take a long time to reconstruct the data next time I needed it (say, a very expensive database query) I will tend to keep the data in the user session even if it is fairly large -- but I will try to get rid of it as quickly as possible to make the memory space available for garbage collection and reuse. Any comments? Andrew Beacock Software Team Leader InterVoiceBrite Ltd. Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT: *W*e*b*S*p*h*e*r*e jsp include issues??
You've probably got too many asterisks in your code. - Original Message - From: John G Kroubalkian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 26, 2000 7:48 AM Subject: URGENT: *W*e*b*S*p*h*e*r*e jsp include issues?? Sorry about the cryptic subject, but I have posted several times and it seems to be getting filtered by the list server. This is not a flame, I need some developer feedback. These .jsp's work fine under W*e*b*L*o*g*i*c and our firm has a "Sev 1" into I*B*M but we find it hard to believe that this product cannot handle a jsp:include... it's kind of fundamental to JSP. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Urgent
Please, please, please read the faq referenced at the bottom of every list message before posting. It really does provide answers, and that's what it's there for "Frequently Asked Questions"... It gives you lots of answers on what jsp is, and how to sue, with references to other good sites. Sorry to all for ranting, but this list is getting very busy - with off-topic postings, "unsubscribe" messages ;) and simple questions answered in the faq (not quite so heinous a crime), and I must have got out of the wrong side of bed this morning (the grumpy side). Jari Rao Dadi wrote: Hi All, I am New to JSP. I want to Know how to use Anchor, Including a file, Including an img file,Running an Ordinary JavaBean from JSP. Any help is Highly Appriciated. Satya === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: urgent: JSP's calling Servlets
I tried this but it says it cannot find the servlet pgm. Where should I place the servlet pgm. I'm using JAVA WEBSERVER? But I'm able to solve the problem .. call servlet with session alive using window.open(""); Thanks, Chary -- From: Sam[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Tuesday, January 25, 2000 12:49 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: urgent: JSP's calling Servlets the forward tag uses a request dispatcher works locally only Use a relative url like "/servlet/MyServlet" for this and it will work -Sameer "[EMAIL PROTECTED]" wrote: I want to call a Servlet from my JSP page.when I was trying to use href,my servlet is invoked but the session which was created earlier is found to be null(may be because of the request parameter not passed from JSP) When I was using jsp:forward page="http://localhost:8080/../..Servlet" / It's gving "Your request is understood but cannot provide service to your request" How can I call a servlet from a JSP and pass on the request paramter from a JSP; Any suggestion or help would be helpful for my project. Thanks in advance, Chary === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: URGENT: *W*e*b*S*p*h*e*r*e jsp include issues??
Is your WebSphere installed to use jsp 0.92? In WebSphere Studio see: Edit-Properties-Advanced and set JSP Version, Server Version and classes version to 3.0. I think the server is ready to work. _ Vinicios Torres [EMAIL PROTECTED] ICHTUS Webmaster http://www.Ichtus.com.br ICHTUS - Edificando o Povo de Deus na Palavra de Deus na Internet _ -Mensagem original- De: John G Kroubalkian [EMAIL PROTECTED] Para: [EMAIL PROTECTED] [EMAIL PROTECTED] Data: Terça-feira, 25 de Janeiro de 2000 22:22 Assunto: URGENT: *W*e*b*S*p*h*e*r*e jsp include issues?? Sorry about the cryptic subject, but I have posted several times and it seems to be getting filtered by the list server. This is not a flame, I need some developer feedback. My development team has the 3.0 version of WS (see subject) When we attempt to do any kind of jsp:include file="..." / within this product we get many Exceptions thrown. These .jsp's work fine under W*e*b*L*o*g*i*c and our firm has a "Sev 1" into I*B*M but we find it hard to believe that this product cannot handle a jsp:include... it's kind of fundamental to JSP. Has anyone had a similar experience? Were you able to correct it? Any help would be highly appreciated...as our deliverable dates are rapidly approaching. Thanks, John === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: urgent: JSP's calling Servlets
Hey Chary, The jsp:forward tag should always use a relative URL. Try that instead! -AMT -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, January 24, 2000 5:02 AM To: [EMAIL PROTECTED] Subject: urgent: JSP's calling Servlets I want to call a Servlet from my JSP page.when I was trying to use href,my servlet is invoked but the session which was created earlier is found to be null(may be because of the request parameter not passed from JSP) When I was using jsp:forward page="http://localhost:8080/../..Servlet" / It's gving "Your request is understood but cannot provide service to your request" How can I call a servlet from a JSP and pass on the request paramter from a JSP; Any suggestion or help would be helpful for my project. Thanks in advance, Chary == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: urgent: JSP's calling Servlets
the forward tag uses a request dispatcher works locally only Use a relative url like "/servlet/MyServlet" for this and it will work -Sameer "[EMAIL PROTECTED]" wrote: I want to call a Servlet from my JSP page.when I was trying to use href,my servlet is invoked but the session which was created earlier is found to be null(may be because of the request parameter not passed from JSP) When I was using jsp:forward page="http://localhost:8080/../..Servlet" / It's gving "Your request is understood but cannot provide service to your request" How can I call a servlet from a JSP and pass on the request paramter from a JSP; Any suggestion or help would be helpful for my project. Thanks in advance, Chary === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Urgent: Starting a new Session
Moonim Masaoud wrote: Hi, First Wishing you all a Happy and Prosperous New Year ! I have a JSP which has a list of links. These links point to other JSPs. When I click one of these links, I want to start a new session. Now is there a way to branch of into a new session, when the user clicks on one of those links ? At the top of each linked-to page, add a scriptlet that invalidates the current session and creates a new one: % session.invalidate(); session = request.getSession(); % In these pages themselves, you won't be able to refer to any session-scope beans because you are wiping them out, but subsequent pages will be able to. Thanx, Masaoud Craig === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Urgent : Problem with session bean
If it's as simple as opening up a completely separate window when each friend is clicked on, then I would just use the same tag to open the window. I.e.: a href="somepage.jsp" target="_friend" This should always keep the same window targeted and thus be in sync with your bean. Jason Moonim Masaoud wrote: Hi all, I have a web application which consists of 4 JSP's and a session bean. Description : - The session bean holds data which is to be displayed/modified in the JSP's. The Sequence of JSP's is defined as follows : Page 1 is a list of friend names: The user clicks one of these names, which results in data from the database to fill up this session bean and calling the second page ( which displays the data ). Page 2 contains a form with breif information about the friend. The user can edit this data and submit it. Page 2 can also call Page 3 and Page 4. Page 3 contains a form with detailed information about the friend. The user can edit this data and submit it, which results in Page 2 being called. Page 4 contains business information about the friend.The user can edit this data and submit it, which results in Page 2 being called. All the information is stored in the session bean. Page 3 and Page 4 come back to page 2 to finally submit the data. Problem : - Since there is a session bean used, on Page 1 if the user right clicks on two or more friend links, the session bean gets intitially populated by the first selected friend, and then by the second selected friend. The user gets two browser windows, showing him different data, but the session bean actually has the second selected friends data. Thus if the user submitted both the windows, the second friends data would be updated twice, when actually the user intended to update two different friends data. I cannot use a page scope bean since I am shuffling between different pages. How can I avoid the above problem ? Thanx Masaoud. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Urgent : Browser Inconsistencies
Hi It seems to be working fine for me, i am trying it across my network... and it seems to wrok fine in any case the browser will just see html text, it depends on how your server is reacting to the requests, Is the Url you are calling your jsp refreing to your web server(of your machine) if you could clarify this pls. Regards Amit -Original Message- From: Masaoud [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, November 30, 1999 4:30 PM To: [EMAIL PROTECTED] Subject: Urgent : Browser Inconsistencies Hi, I have a very vague problem. I have a set of JSPs, these are called depending on certain parameters passed in the Forms Submit. Now these JSPs work fine on IE 5.0 and on Netscape 4.7 But when I try running these JSP Pages on other machines or on browser versions other than the ones installed on my machine, they refuse to work. A blank page is displayed. After this I have to restart my Java Web Server, for anything to work properly again. Could anybody tell me if there are certain features of JSP that are not supportedon certain browser versions or so. ( I am currently trying IE 4.0, IE 5.0, NC 4.5, NC 4.61, NC 4.7 ) Thanx Masaoud == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Urgent : Problem using a JDBC Bean in a JSP
Masaoud wrote: Hi, I am new to JSP's and Beans. I have written a Java class which acceses a MySQL database on a remote machine usingd JDBC. This class when run using the java interpreter works fine and displays proper results. Now, I converted the above class file into a bean, by creating a ".jar" file and updated the manifest file accordingly. I am using the trial Java Web Server 2.0, so I placed the ".jar" file in the "lib" directory of the Java Web Server, and restarted the web server. I have a JSP file which uses the above mentioned class as a bean. When I try to access it, it gives me the following error : " javax.servlet.ServletException : Cannot create bean of class abc.dbclass " In the above message "dbclass" is my bean class, whereas abc is the folder containig that class when the ".jar" file was created. All the JDBC drivers that are required, have also been placed in the appropriate directory hierrarchy. Just to doble check I tried writting a very simple bean which just had a method that displayed a message. When I ran the JSP with this particular bean, it worked fine. I want to know that are there any particular things that are not to be performed in a bean, or which don't work in a bean, or any special care to be taken while writting a bean which uses JDBC. Or any other area which I may have overlooked. Also supplement your answer with some examples, if possible. A bean is just a Java class, with no restrictions whatsoever. It seems like you need to look at how packages work. The fully qualified name of a class is composed of the package name plus the class name. In your example it seems like you have a class named "dbclass" in a package named "abc", or at least that's what you have specified in the useBean tag. This works fine if you: 1) Specify the package name in your source file, i.e. package abc; public class dbclass { ... } 2) Put the .class file in a subdirectory to a directory in the CLASSPATH with the same name as the package. For JWS I believe the JWS/classes directory is included in the CLASSPATH automatically, so you can place it in JWS/classes/abc 3) If you rather use a JAR file, you must use the same kind of structure in the JAR file as in the file system, i.e. the .class file must be in a subdirectory with the same name as the package. But while you're developing the class it's usually easier to just put it in the classes directory as in 2) above. 4) In your JSP page, specify the fully qualified name for the class, i.e. jsp:useBean id="myDb" class="abc.dbclass" / -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html