blank mails.
I´m getting some void mails from this list (from Lorena Carlo and Orlando Perdomo). Something was wrong?
Re: how to set session time out in jsp page?
session.setMaxInactiveInterval(time in milliseconds.); Vikramjit singh, eAngel Team, Global Tele-systems Ltd. Ph. 7612929-3140 -Original Message- From: Robin [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 9:29 PM To: [EMAIL PROTECTED] Subject: how to set session time out in jsp page? hi: how to set session time out in jsp page? thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: blank mails.
They are Outlook express virus. El 2001.11.30 08:55 Carlos Vicente ha escrit: > I´m getting some void mails from this list (from Lorena Carlo and Orlando > Perdomo). > Something was wrong? > > > -- Antoni Reus === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
WEb server
I am choosing the web server for a project on weblogic, can anyone tell me if I will build my app on the web server integrated in weblogic, or just find alternative to seperate the EJB tier with web tier. Is resin is a good choice? This message was posted using eunumTo interact with a real-time, threaded interface to this e-mail list, clickthe link below:JSP-INTEREST === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
i get mails too.
it is virus mail? -- ???: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]?? Antoni Reus : 2001?11?30? 16:05 ???: [EMAIL PROTECTED] ??: Re: blank mails. They are Outlook express virus. El 2001.11.30 08:55 Carlos Vicente ha escrit: > I´m getting some void mails from this list (from Lorena Carlo and Orlando > Perdomo). > Something was wrong? > > > -- Antoni Reus === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com¢éì¹»®&Þ¨¥¶b²Û®øÚ½«.Ê&Â+anr²('¡÷ÉHò LDDI1hØ zËfj)m¢X¬¶Ç«¾6¯j˧r°Ø[¡Ü¬zÒR<SL2$Ò¢g«zW¯j{E(ý'«¾W±Æ§mçèºwZ¶m§ÿÚÈb½ë#jö¬ºw(øì¦)íz·¬¶fm§ÿãjö¬ºw(úk¡Û¶Ïã²ßj¨mXm¶ÿà ²«j{h¢¸'Ïøì§øì¥öªÊa¶Úÿ0«¹Ê&ýöªþ)Ý{ì¦m§ÿðÃì¦)ì׫r
please critique (demo site and resume site)
Hello, in my quest to find an entry level jsp/servlets job, I have an online resume at http://www.oliverbarnes.com/ with a demo jsp site at http://www.pretaluz.com/ which I would like to submit to the list and get people's opinions on them. I will greatly appreciate anybody taking their time to give me their impressions. great thanks in advance, OIiver === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Virus Alert!!!
I've received a virus alert in my Microsoft Outlook in two messages from Lorena Carlo and Orlando Perdomo. Archive : YOU_ARE_.scr Virus name : W32/BadTrans@MM Please check your systems. Thanks to all Fran Martinez === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: i get mails too.
unfortunately it is, this morning my PC infected with that email too, but seems that not such a destructive virus. i cleaned up easily :) - Original Message - From: "Robin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 4:10 PM Subject: i get mails too. > it is virus mail? > -- > ???: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]?? Antoni Reus > : 2001?11?30? 16:05 > ???: [EMAIL PROTECTED] > ??: Re: blank mails. > > > They are Outlook express virus. > > El 2001.11.30 08:55 Carlos Vicente ha escrit: > > I´m getting some void mails from this list (from Lorena Carlo and Orlando > > Perdomo). > > Something was wrong? > > > > > > > > -- Antoni Reus > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
executing perl script in jsp
Hi! when a jsp page is called ,I want ot execute a perl script and print the output of the perl script on to the browser. How do I do it. Thanks in advance, Soumitra === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
JSP and SQL between \"
hi all, I have a troble with jsp and a query on access table. i have to made a select for example select count(*) from table where Data between \"01/01/2001\" and \"30/01/2001\" when i try to insert in the jsp code String queric = \"SELECT Count(*) FROM Attivazioni WHERE Attivazioni.DataINS Between \"01/11/2001\" And \"30/11/2001\"; i have tried to use \"\\\"\" but i receive always the same error. but my problem is the DATE must stay between the \" caratcher How can i insert in one string one \" thanks for the help Peter - This mail sent through IMP: http://web.horde.org/imp/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Should the controller be a JSP or a servlet ?
Hi , it can be a servlet or jsp?My openion is better go for servlet.becoz in jsp implicit objects are created due to these objects performence will some how decreased . one more thing being a controller it will consists more of logic than presentation that means we have code it java.its good and better put java code in servlet than putting it in JSP. - Original Message - From: "Sowbhagyavalli Suryadevara" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 11:18 AM Subject: Should the controller be a JSP or a servlet ? > Hi > > I am new to JSPs. My application was developed using servlets. We are > planning to redo the whole thing using MVC architecture. My question is > should the controller be a JSP or a servlet ? What are the advantages and > disadvantages ? > > Thank you > Valli > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Java number format question....please help
Why do not use DecimalFormat? See for example Number custom tag on http://www.servletsuite.com/jsp.htm >Hi all, > >How do I format a integer 20 to 00020 ? > >Thanks. > >Regards, >KL OOI -- Coldbeans Software - server-side Java (tm) components http://www.servletsuite.com __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: QUESTION ON APACHE / TOMCAT
If Tomcat 4.0 is running on a system called COMP1 with a project named PROJ1, we would run the project in the following manner right? http://COMP1:8080/PROJ1/index.htm Instead of having the above as the address, could I have something like http://mydomain/PROJ1/index.htm Thanks a lot in advance - Original Message - From: Paul Foxton To: [EMAIL PROTECTED] Sent: Monday, November 26, 2001 3:48 PM Subject: Re: QUESTION ON APACHE / TOMCAT Sorry, but thats incorrect. Tomcat is a servlet engine, also referred to as a servlet container. This means that it is an application server which serves up your jsp/servlets. Tomcat also has its own webserver integrated which runs by default on port 8080 for tomcat 3X and (I think) 8081 for tomcat 4X. You can change the port to 80 with version 3 or 4 but I think with 3 you need to run Tomcat as root. The only reason you'd need to use tomcat with apache is if your site has a lot of static files ( straight html and images) since apache will serve this content marginally faster. Also, if your site includes some perl say, you might want to use apache for its perl support, and hook it up to Tomcat for your jsp/servlets. If your webapp is mainly dynamic jsp pages/servlets and you dont need perl or php support theres no need to use apache _and_ Tomcat, Tomcat can do everyhting you need on its own. Hope this helps paul -Original Message-From: Raj Chanian [mailto:[EMAIL PROTECTED]]Sent: 26 November 2001 10:15To: [EMAIL PROTECTED]Subject: Re: QUESTION ON APACHE / TOMCAT No, With Tomcat you just get the servlet engine. This needs to be integrated with Apache, use mod_jk and also update the conf file, instructions for the integration are on Suns Web Site. Regards, Raj -Original Message-From: Daliso Zuze [mailto:[EMAIL PROTECTED]] Sent: 26 November 2001 10:13To: [EMAIL PROTECTED]Subject: QUESTION ON APACHE / TOMCAT Hello All, I just have a small question about the apache web server and tomcat. When I downlaod and install Tomcat, what am I really getting? Is it the apache web server enhanced with the Tomcat container or is Tomcat a different web server all together? If I already have an Apache web server already installed, how do I add the functionality provided by Tomcat? Thanks, Daliso
Re: errors starting tomcat 4 on linux
This looks JVM related, is your JVM certified on your kernel and gcc versions? -Original Message-From: Daliso Zuze [mailto:[EMAIL PROTECTED]]Sent: Thursday, November 29, 2001 10:56 PMTo: [EMAIL PROTECTED]Subject: errors starting tomcat 4 on linux Hi All, Would anyone have any idea what the following error may be caused by when trying to start up tomcat 4 on suse linux 6.2 thanks Function name=(N/A)Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Dynamic libraries:08048000-0804c000 r-xp 08:03 882710 /usr/local/java/jdk1.3.1_01/bin/i386/native_threads/java0804c000-0804d000 rw-p 3000 08:03 882710 /usr/local/java/jdk1.3.1_01/bin/i386/native_threads/java4000-40013000 r-xp 08:03 63508 /lib/ld-2.1.1.so40013000-40014000 rw-p 00012000 08:03 63508 /lib/ld-2.1.1.so40015000-40016000 r--p 08:03 2017282 /usr/share/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES40016000-40017000 r--p 08:03 2015236 /usr/share/locale/en_US/LC_MONETARY40017000-40018000 r--p 08:03 2015238 /usr/share/locale/en_US/LC_TIME40018000-40019000 r--p 08:03 2015237 /usr/share/locale/en_US/LC_NUMERIC40019000-4001c000 r--p 08:03 2015235 /usr/share/locale/en_US/LC_CTYPE4001e000-40028000 r-xp 08:03 63527 /lib/libpthread.so.040028000-4003 rw-p 9000 08:03 63527 /lib/libpthread.so.04003-40039000 r-xp 08:03 1402893 /usr/local/java/jdk1.3.1_01/jre/lib/i386/native_threads/libhpi.so40039000-4003a000 rw-p 8000 08:03 1402893 /usr/local/java/jdk1.3.1_01/jre/lib/i386/native_threads/libhpi.so4003a000-40227000 r-xp 08:03 1576975 /usr/local/java/jdk1.3.1_01/jre/lib/i386/client/libjvm.so40227000-4031d000 rw-p 001ec000 08:03 1576975 /usr/local/java/jdk1.3.1_01/jre/lib/i386/client/libjvm.so40335000-40337000 r-xp 08:03 63517 /lib/libdl.so.240337000-40338000 rw-p 1000 08:03 63517 /lib/libdl.so.240338000-4042a000 r-xp 08:03 63513 /lib/libc.so.64042a000-4042e000 rw-p 000f1000 08:03 63513 /lib/libc.so.640432000-40444000 r-xp 08:03 63519 /lib/libnsl.so.140444000-40446000 rw-p 00011000 08:03 63519 /lib/libnsl.so.140448000-40464000 r-xp 08:03 63518 /lib/libm.so.640464000-40465000 rw-p 0001b000 08:03 63518 /lib/libm.so.640465000-4049e000 r-xp 08:03 235544 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so4049e000-404aa000 rw-p 00038000 08:03 235544 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so404ae000-404bf000 r-xp 08:03 1368077 /usr/local/java/jdk1.3.1_01/jre/lib/i386/libverify.so404bf000-404c1000 rw-p 0001 08:03 1368077 /usr/local/java/jdk1.3.1_01/jre/lib/i386/libverify.so404c1000-404e2000 r-xp 08:03 1368078 /usr/local/java/jdk1.3.1_01/jre/lib/i386/libjava.so404e2000-404e4000 rw-p 0002 08:03 1368078 /usr/local/java/jdk1.3.1_01/jre/lib/i386/libjava.so404e5000-404f9000 r-xp 08:03 1368079 /usr/local/java/jdk1.3.1_01/jre/lib/i386/libzip.so404f9000-404fc000 rw-p 00013000 08:03 1368079 /usr/local/java/jdk1.3.1_01/jre/lib/i386/libzip.so404fc000-4122a000 r--s 08:03 1363996 /usr/local/java/jdk1.3.1_01/jre/lib/rt.jar41257000-414fc000 r--s 08:03 1363997 /usr/local/java/jdk1.3.1_01/jre/lib/i18n.jar414fc000-41512000 r--s 08:03 1363984 /usr/local/java/jdk1.3.1_01/jre/lib/sunrsasign.jar435ba000-435bf000 r--s 08:03 1175604 /usr/local/tomcat/jakarta-tomcat-4.0.1/common/lib/jta.jar4961f000-49627000 r--p 08:03 2015234 /usr/share/locale/en_US/LC_COLLATE49627000-4962e000 r--s 08:03 1548315 /usr/local/tomcat/jakarta-tomcat-4.0.1/bin/bootstrap.jar4969a000-496a6000 r--s 08:03 1175597 /usr/local/tomcat/jakarta-tomcat-4.0.1/common/lib/activation.jar496a6000-496f r--s 08:03 1175599 /usr/local/tomcat/jakarta-tomcat-4.0.1/common/lib/tyrex-0.9.7.0.jar496f-496f9000 r--s 08:03 1175605 /usr/local/tomcat/jakarta-tomcat-4.0.1/common/lib/naming-resources.jar496f9000-4970 r--s 08:03 1175607 /usr/local/tomcat/jakarta-tomcat-4.0.1/common/lib/naming-common.jar4980-49c7f000 r--s 08:03 507925 /usr/local/java/jdk1.3.1_01/lib/tools.jar49c7f000-49e39000 r--s 08:03 1175598 /usr/local/tomcat/jakarta-tomcat-4.0.1/common/lib/xerces.jar49e39000-49e4e000 r--s 08:03 1175601 /usr/local/tomcat/jakarta-tomcat-4.0.1/common/lib/jdbc2_0-stdext.jar49e4e000-49e61000 r--s 08:03 1175602 /usr/local/tomcat/jakarta-tomcat-4.0.1/common/lib/servlet.jar49e61000-49ea6000 r--s
Re: display image from table WOO their Sports fans, here is an answer
Yo dude do this. Bye the way if you searched the archives you would of found it, cause that is where i got this code :) <% String comment = request.getParameter("comment"); InputStream input; DataInputStream dataInput; Connection con = null; String line = ""; java.sql.Blob myBlob = null; try { con = dbCon.getConnection("system"); Statement stmt = con.createStatement(); stmt.execute("select blob_data from blob where write some code to get one blob"); ResultSet rs = stmt.getResultSet(); rs.next(); ByteArrayOutputStream bos = new ByteArrayOutputStream(1024); int n=0; InputStream in = rs.getBinaryStream("blob_data"); while((n = in.read()) != -1) { bos.write(n); } out.println(bos.toString()); rs.close(); stmt.close(); con.close(); } catch (SQLException e){} %> Daniel Jaffa Stuff i say i know: Java, JSP, JavaBeans, TagLibs, J2EE, EJB Before asking someone, do a search on google: Google will set you free "If you are not happy, I am not happy" _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Virus Alert!!!
I got the same ones. -Original Message- From: Francisco Manuel Martínez Suárez [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 4:27 AM To: [EMAIL PROTECTED] Subject: Virus Alert!!! I've received a virus alert in my Microsoft Outlook in two messages from Lorena Carlo and Orlando Perdomo. Archive : YOU_ARE_.scr Virus name : W32/BadTrans@MM Please check your systems. Thanks to all Fran Martinez === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Virus Alert!!!
I just finished reading all about it. Even if you don't open the attachment, it'll attempt to infect your system. It can do this by having "preview window" mode on (I always have this turned off on my PCs) and if you double-click the mail to open it up in its own window. It'll not only infect your address book (an mail others the virus) but will also install a trojan (backdoor) on your system which allows capture of keystrokes, IP & other personal info. http:[EMAIL PROTECTED] ml Just though you'd all like to know, I have received about 20 or so in the last few days. Eric Fleming | GravityFree 1960 Stickney Point Road | Second Floor Sarasota | FL | 34231 | (941) 927-7674 [EMAIL PROTECTED] http://www.gravityfree.com - Original Message - From: "Troy Campano" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 09:48 am Subject: Re: Virus Alert!!! I got the same ones. -Original Message- From: Francisco Manuel Martínez Suárez [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 4:27 AM To: [EMAIL PROTECTED] Subject: Virus Alert!!! I've received a virus alert in my Microsoft Outlook in two messages from Lorena Carlo and Orlando Perdomo. Archive : YOU_ARE_.scr Virus name : W32/BadTrans@MM Please check your systems. Thanks to all Fran Martinez === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: executing perl script in jsp
Look at java.lang.Runtime and java.lang.Process use Runtime.exec() and use the process to get the output stream! ashish shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: executing perl script in jsp
Title: RE: executing perl script in jsp Any people -- Ashish? -- doing this? I'm sure our people are going to be VERY interested. chuck williams -Original Message- From: Ashish [SMTP:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 11:03 AM To: [EMAIL PROTECTED] Subject: Re: executing perl script in jsp Look at java.lang.Runtime and java.lang.Process use Runtime.exec() and use the process to get the output stream! ashish shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: executing perl script in jsp
I have used this method to pull env var out of a sun box. It worked quite well. Daniel Jaffa Stuff i say i know: Java, JSP, JavaBeans, TagLibs, J2EE, EJB Before asking someone, do a search on google: Google will set you free "If you are not happy, I am not happy" _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Calling Stored Procedures
Hi all, Can anyone provide code snippets of how to call a stored procedure which involves multiple selects statements and Joins. Procedure takes 3 inputs and returns 8 columns. Can someone provide me with some examples. Thanks in advance Praveen
Servlet refresh
Hello: I am running TomCat 4.0.1 and I have servlet class file placed in the appropriate position. I made some changes ot my servlet source class and compiled. Compilation went thorugh. I restarted my TomCat server. But still, I do not see the changes. I have changed hte text to be displayed. I am not able to see the change in the browser. Where am I going wrong? Thanks in advance. /KK
Re: Servlet refresh
Have you emptied the browser cache/shift-reloaded the page? -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath KamalanathanSent: Friday, November 30, 2001 12:54 PMTo: [EMAIL PROTECTED]Subject: Servlet refresh Hello: I am running TomCat 4.0.1 and I have servlet class file placed in the appropriate position. I made some changes ot my servlet source class and compiled. Compilation went thorugh. I restarted my TomCat server. But still, I do not see the changes. I have changed hte text to be displayed. I am not able to see the change in the browser. Where am I going wrong? Thanks in advance. /KK
Re: Servlet refresh
You may also need to delete the compiled version in the WORK folder under your tomcat installation. That is where Tomcat stores its version of your code. Margaret -Original Message-From: Chris Tucker [mailto:[EMAIL PROTECTED]]Sent: Friday, November 30, 2001 12:54 PMTo: [EMAIL PROTECTED]Subject: Re: Servlet refresh Have you emptied the browser cache/shift-reloaded the page? -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath KamalanathanSent: Friday, November 30, 2001 12:54 PMTo: [EMAIL PROTECTED]Subject: Servlet refresh Hello: I am running TomCat 4.0.1 and I have servlet class file placed in the appropriate position. I made some changes ot my servlet source class and compiled. Compilation went thorugh. I restarted my TomCat server. But still, I do not see the changes. I have changed hte text to be displayed. I am not able to see the change in the browser. Where am I going wrong? Thanks in advance. /KK
Re: Servlet refresh
Yes I did. I deleted all the cache from the browser too. Thanks /KK - Original Message - From: Chris Tucker To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 2:54 PM Subject: Re: Servlet refresh Have you emptied the browser cache/shift-reloaded the page? -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath KamalanathanSent: Friday, November 30, 2001 12:54 PMTo: [EMAIL PROTECTED]Subject: Servlet refresh Hello: I am running TomCat 4.0.1 and I have servlet class file placed in the appropriate position. I made some changes ot my servlet source class and compiled. Compilation went thorugh. I restarted my TomCat server. But still, I do not see the changes. I have changed hte text to be displayed. I am not able to see the change in the browser. Where am I going wrong? Thanks in advance. /KK
Re: Servlet refresh
I do not see any other version of my class. I did a through search for the specified class name. My class file name is login.class. It is in C:\tomcat4.0\jakarta\webapps\examples\WEB-INF\classes The error from the log file "localhost_examples_log.2001-11-30.txt" is: 2001-11-30 14:05:23 invoker: init2001-11-30 14:05:23 jsp: init2001-11-30 14:05:31 StandardWrapper[/examples:org.apache.catalina.INVOKER.login]: Marking servlet org.apache.catalina.INVOKER.login as unavailable2001-11-30 14:05:31 invoker: Cannot allocate servlet instance for path /examples/servlet/loginjavax.servlet.ServletException: Wrapper cannot find servlet class login or a class it depends on at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:807) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at filters.ExampleFilter.doFilter(ExampleFilter.java:149) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at filters.ExampleFilter.doFilter(ExampleFilter.java:149) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:484)- Root Cause -java.lang.ClassNotFoundException: login at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1156) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:801) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at filte
Re: Servlet refresh
If at first something like that doesn't work for me, I tend to stop Tomcat, erase the offending servlet, copy the new version in again, and restart. However, it sounds like you've probably already done this. The next thing I would try is to just make absolutely sure the browser isn't serving you a cached copy. The best way to test this is to telnet to your HTTP server: telnet servername 80 GET /absolute/url/to/servlet HTTP/1.1 Host: localhost (make sure you hit return twice after the Host: line). The response you get in the telnet window will be exactly what the server is sending. If you get the "new" version response from that command, then it's the browser at fault; otherwise, it's Tomcat. -Chris -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan Sent: Friday, November 30, 2001 1:02 PM To: [EMAIL PROTECTED] Subject: Re: Servlet refresh Yes I did. I deleted all the cache from the browser too. Thanks /KK - Original Message - From: Chris Tucker To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 2:54 PM Subject: Re: Servlet refresh Have you emptied the browser cache/shift-reloaded the page? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan Sent: Friday, November 30, 2001 12:54 PM To: [EMAIL PROTECTED] Subject: Servlet refresh Hello: I am running TomCat 4.0.1 and I have servlet class file placed in the appropriate position. I made some changes ot my servlet source class and compiled. Compilation went thorugh. I restarted my TomCat server. But still, I do not see the changes. I have changed hte text to be displayed. I am not able to see the change in the browser. Where am I going wrong? Thanks in advance. /KK === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Servlet refresh
1. I am not able to telnet to my server. I havethe machine on the Net with IP 65.71.103.122 and port 8080 for my web app. Can you tell me if I have any thing wrong in what I have set up by seeing the page yourself?? Thanks /KK - Original Message - From: "Chris Tucker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 3:06 PM Subject: Re: Servlet refresh > If at first something like that doesn't work for me, I tend to stop Tomcat, > erase the offending servlet, copy the new version in again, and restart. > However, it sounds like you've probably already done this. The next thing I > would try is to just make absolutely sure the browser isn't serving you a > cached copy. The best way to test this is to telnet to your HTTP server: > > telnet servername 80 > GET /absolute/url/to/servlet HTTP/1.1 > Host: localhost > > (make sure you hit return twice after the Host: line). The response you get > in the telnet window will be exactly what the server is sending. > > If you get the "new" version response from that command, then it's the > browser at fault; otherwise, it's Tomcat. > > -Chris > > > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > Sent: Friday, November 30, 2001 1:02 PM > To: [EMAIL PROTECTED] > Subject: Re: Servlet refresh > > > Yes I did. I deleted all the cache from the browser too. > > Thanks > > /KK > - Original Message - > From: Chris Tucker > To: [EMAIL PROTECTED] > Sent: Friday, November 30, 2001 2:54 PM > Subject: Re: Servlet refresh > > > Have you emptied the browser cache/shift-reloaded the page? > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > Sent: Friday, November 30, 2001 12:54 PM > To: [EMAIL PROTECTED] > Subject: Servlet refresh > > > Hello: > > I am running TomCat 4.0.1 and I have servlet class file placed in the > appropriate position. > > I made some changes ot my servlet source class and compiled. Compilation > went thorugh. I restarted my TomCat server. But still, I do not see the > changes. I have changed hte text to be displayed. I am not able to see the > change in the browser. > > Where am I going wrong? > > Thanks in advance. > > /KK > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Servlet refresh
Seems to be working fine. I just went to http://65.71.103.122:8080/index.html and the TomCat start page came right up. (*Chris*) - Original Message - From: "Ketharinath Kamalanathan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 1:39 PM Subject: Re: [JSP-INTEREST] Servlet refresh > 1. I am not able to telnet to my server. > > I havethe machine on the Net with IP 65.71.103.122 and port 8080 for my web > app. Can you tell me if I have any thing wrong in what I have set up by > seeing the page yourself?? > > Thanks > > /KK > - Original Message - > From: "Chris Tucker" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 30, 2001 3:06 PM > Subject: Re: Servlet refresh > > > > If at first something like that doesn't work for me, I tend to stop > Tomcat, > > erase the offending servlet, copy the new version in again, and restart. > > However, it sounds like you've probably already done this. The next thing > I > > would try is to just make absolutely sure the browser isn't serving you a > > cached copy. The best way to test this is to telnet to your HTTP server: > > > > telnet servername 80 > > GET /absolute/url/to/servlet HTTP/1.1 > > Host: localhost > > > > (make sure you hit return twice after the Host: line). The response you > get > > in the telnet window will be exactly what the server is sending. > > > > If you get the "new" version response from that command, then it's the > > browser at fault; otherwise, it's Tomcat. > > > > -Chris > > > > > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > Sent: Friday, November 30, 2001 1:02 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Servlet refresh > > > > > > Yes I did. I deleted all the cache from the browser too. > > > > Thanks > > > > /KK > > - Original Message - > > From: Chris Tucker > > To: [EMAIL PROTECTED] > > Sent: Friday, November 30, 2001 2:54 PM > > Subject: Re: Servlet refresh > > > > > > Have you emptied the browser cache/shift-reloaded the page? > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > Sent: Friday, November 30, 2001 12:54 PM > > To: [EMAIL PROTECTED] > > Subject: Servlet refresh > > > > > > Hello: > > > > I am running TomCat 4.0.1 and I have servlet class file placed in the > > appropriate position. > > > > I made some changes ot my servlet source class and compiled. Compilation > > went thorugh. I restarted my TomCat server. But still, I do not see the > > changes. I have changed hte text to be displayed. I am not able to see the > > change in the browser. > > > > Where am I going wrong? > > > > Thanks in advance. > > > > /KK > > > > > === > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Servlet refresh
Title: RE: Servlet refresh Hi chris, I am trying to use the telnet as per your advice. When you say "servername". I am using the "localhost" On the command prompt I type "telnet localhost : 80" when I do this, I get a blank screen. I then have to enter twice before I see some HTML data. Am I doing right here? madu Madu Ramanujan Business Analyst Pacificorp -Original Message- From: Chris Tucker [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 1:06 PM To: [EMAIL PROTECTED] Subject: Re: Servlet refresh If at first something like that doesn't work for me, I tend to stop Tomcat, erase the offending servlet, copy the new version in again, and restart. However, it sounds like you've probably already done this. The next thing I would try is to just make absolutely sure the browser isn't serving you a cached copy. The best way to test this is to telnet to your HTTP server: telnet servername 80 GET /absolute/url/to/servlet HTTP/1.1 Host: localhost (make sure you hit return twice after the Host: line). The response you get in the telnet window will be exactly what the server is sending. If you get the "new" version response from that command, then it's the browser at fault; otherwise, it's Tomcat. -Chris -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan Sent: Friday, November 30, 2001 1:02 PM To: [EMAIL PROTECTED] Subject: Re: Servlet refresh Yes I did. I deleted all the cache from the browser too. Thanks /KK - Original Message - From: Chris Tucker To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 2:54 PM Subject: Re: Servlet refresh Have you emptied the browser cache/shift-reloaded the page? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan Sent: Friday, November 30, 2001 12:54 PM To: [EMAIL PROTECTED] Subject: Servlet refresh Hello: I am running TomCat 4.0.1 and I have servlet class file placed in the appropriate position. I made some changes ot my servlet source class and compiled. Compilation went thorugh. I restarted my TomCat server. But still, I do not see the changes. I have changed hte text to be displayed. I am not able to see the change in the browser. Where am I going wrong? Thanks in advance. /KK === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Servlet refresh
but the fun is when you submit something on that page. The TOmCat server is up and running fine. I get he TomCat Index page. But hte servlet I am talkng baout is my servlet for my app. http://65.71.103.122:8080/examples/jsp/middleware/index.html If you visit there, you will get a login screen.(this is just a dummy one). typr something in the username nad password and submit. Then you will get a message on the browser. What actually should come is the out put for the code given below. BUt check out what comes up. Thanks //KK public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); String un = req.getParameter("uname")); out.println(""); out.println(" Middleware Login "); out.println(""); out.println("My Login is Login Success"); out.println(un); out.println(""); } - Original Message - From: "Chris Pratt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 3:53 PM Subject: Re: Servlet refresh > Seems to be working fine. I just went to > http://65.71.103.122:8080/index.html and the TomCat start page came right > up. > (*Chris*) > > - Original Message - > From: "Ketharinath Kamalanathan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 30, 2001 1:39 PM > Subject: Re: [JSP-INTEREST] Servlet refresh > > > > 1. I am not able to telnet to my server. > > > > I havethe machine on the Net with IP 65.71.103.122 and port 8080 for my > web > > app. Can you tell me if I have any thing wrong in what I have set up by > > seeing the page yourself?? > > > > Thanks > > > > /KK > > - Original Message - > > From: "Chris Tucker" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, November 30, 2001 3:06 PM > > Subject: Re: Servlet refresh > > > > > > > If at first something like that doesn't work for me, I tend to stop > > Tomcat, > > > erase the offending servlet, copy the new version in again, and restart. > > > However, it sounds like you've probably already done this. The next > thing > > I > > > would try is to just make absolutely sure the browser isn't serving you > a > > > cached copy. The best way to test this is to telnet to your HTTP > server: > > > > > > telnet servername 80 > > > GET /absolute/url/to/servlet HTTP/1.1 > > > Host: localhost > > > > > > (make sure you hit return twice after the Host: line). The response you > > get > > > in the telnet window will be exactly what the server is sending. > > > > > > If you get the "new" version response from that command, then it's the > > > browser at fault; otherwise, it's Tomcat. > > > > > > -Chris > > > > > > > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > > Sent: Friday, November 30, 2001 1:02 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Servlet refresh > > > > > > > > > Yes I did. I deleted all the cache from the browser too. > > > > > > Thanks > > > > > > /KK > > > - Original Message - > > > From: Chris Tucker > > > To: [EMAIL PROTECTED] > > > Sent: Friday, November 30, 2001 2:54 PM > > > Subject: Re: Servlet refresh > > > > > > > > > Have you emptied the browser cache/shift-reloaded the page? > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > > Sent: Friday, November 30, 2001 12:54 PM > > > To: [EMAIL PROTECTED] > > > Subject: Servlet refresh > > > > > > > > > Hello: > > > > > > I am running TomCat 4.0.1 and I have servlet class file placed in the > > > appropriate position. > > > > > > I made some changes ot my servlet source class and compiled. Compilation > > > went thorugh. I restarted my TomCat server. But still, I do not see the > > > changes. I have changed hte text to be displayed. I am not able to see > the > > > change in the browser. > > > > > > Where am I going wrong? > > > > > > Thanks in advance. > > > > > > /KK > > > > > > > > > === > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > > DIGEST". > > > Some relevant FAQs on JSP/Servlets can be found at: > > > > > > http://archives.java.sun.com/jsp-interest.html > > > http://java.sun.com/products/jsp/faq.html > > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > > http://www.jguru.com/faq/index.jsp > > > http://www.jspinsider.com > > > > > > > > ===
Re: Servlet refresh
To telnet to it you should issue the command: telnet 65.71.103.122 8080 When it's connected, type in: GET /path/to/your/servlet HTTP/1.1 Host: localhost You didn't say where your servlet was located, so I don't know what path to use: when you test it, simply replace the "/path/to/your/servlet" part of the HTTP request with the actual path to your servlet. Also, if you're on Windows 9x, the telnet client is a bit crappy. You won't see a "local echo" of what you type unless you explicitly set that option: the characters you type will go through, you just won't see anything until you hit after typing in the host line. When I tried it out I got the standard Tomcat "welcome" page on /, so Tomcat seems to be working OK. One thing it might be worth checking, if you're accessing the machine on the web rather than directly, is if there is an intermediate proxy server or caching server that may have cached an old copy of the content and be serving that instead. Most web caches are pretty intelligent with regards to this stuff now, but problems can still occur. -Chris -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan Sent: Friday, November 30, 2001 1:39 PM To: [EMAIL PROTECTED] Subject: Re: Servlet refresh 1. I am not able to telnet to my server. I havethe machine on the Net with IP 65.71.103.122 and port 8080 for my web app. Can you tell me if I have any thing wrong in what I have set up by seeing the page yourself?? Thanks /KK - Original Message - From: "Chris Tucker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 3:06 PM Subject: Re: Servlet refresh > If at first something like that doesn't work for me, I tend to stop Tomcat, > erase the offending servlet, copy the new version in again, and restart. > However, it sounds like you've probably already done this. The next thing I > would try is to just make absolutely sure the browser isn't serving you a > cached copy. The best way to test this is to telnet to your HTTP server: > > telnet servername 80 > GET /absolute/url/to/servlet HTTP/1.1 > Host: localhost > > (make sure you hit return twice after the Host: line). The response you get > in the telnet window will be exactly what the server is sending. > > If you get the "new" version response from that command, then it's the > browser at fault; otherwise, it's Tomcat. > > -Chris > > > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > Sent: Friday, November 30, 2001 1:02 PM > To: [EMAIL PROTECTED] > Subject: Re: Servlet refresh > > > Yes I did. I deleted all the cache from the browser too. > > Thanks > > /KK > - Original Message - > From: Chris Tucker > To: [EMAIL PROTECTED] > Sent: Friday, November 30, 2001 2:54 PM > Subject: Re: Servlet refresh > > > Have you emptied the browser cache/shift-reloaded the page? > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > Sent: Friday, November 30, 2001 12:54 PM > To: [EMAIL PROTECTED] > Subject: Servlet refresh > > > Hello: > > I am running TomCat 4.0.1 and I have servlet class file placed in the > appropriate position. > > I made some changes ot my servlet source class and compiled. Compilation > went thorugh. I restarted my TomCat server. But still, I do not see the > changes. I have changed hte text to be displayed. I am not able to see the > change in the browser. > > Where am I going wrong? > > Thanks in advance. > > /KK > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at:
Re: Servlet refresh
As Madhu says, I get a blank TelNet Screen. I have the servlet file in localhost\tomcat\webapps\examples\web-inf\classes any suggestions?? Thanks /KK - Original Message - From: "Chris Tucker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 3:54 PM Subject: Re: Servlet refresh > To telnet to it you should issue the command: > telnet 65.71.103.122 8080 > > When it's connected, type in: > GET /path/to/your/servlet HTTP/1.1 > Host: localhost > > You didn't say where your servlet was located, so I don't know what path to > use: when you test it, simply replace the "/path/to/your/servlet" part of > the HTTP request with the actual path to your servlet. Also, if you're on > Windows 9x, the telnet client is a bit crappy. You won't see a "local echo" > of what you type unless you explicitly set that option: the characters you > type will go through, you just won't see anything until you hit > after typing in the host line. > > When I tried it out I got the standard Tomcat "welcome" page on /, so Tomcat > seems to be working OK. One thing it might be worth checking, if you're > accessing the machine on the web rather than directly, is if there is an > intermediate proxy server or caching server that may have cached an old copy > of the content and be serving that instead. Most web caches are pretty > intelligent with regards to this stuff now, but problems can still occur. > > -Chris > > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > Sent: Friday, November 30, 2001 1:39 PM > To: [EMAIL PROTECTED] > Subject: Re: Servlet refresh > > > 1. I am not able to telnet to my server. > > I havethe machine on the Net with IP 65.71.103.122 and port 8080 for my web > app. Can you tell me if I have any thing wrong in what I have set up by > seeing the page yourself?? > > Thanks > > /KK > - Original Message - > From: "Chris Tucker" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 30, 2001 3:06 PM > Subject: Re: Servlet refresh > > > > If at first something like that doesn't work for me, I tend to stop > Tomcat, > > erase the offending servlet, copy the new version in again, and restart. > > However, it sounds like you've probably already done this. The next thing > I > > would try is to just make absolutely sure the browser isn't serving you a > > cached copy. The best way to test this is to telnet to your HTTP server: > > > > telnet servername 80 > > GET /absolute/url/to/servlet HTTP/1.1 > > Host: localhost > > > > (make sure you hit return twice after the Host: line). The response you > get > > in the telnet window will be exactly what the server is sending. > > > > If you get the "new" version response from that command, then it's the > > browser at fault; otherwise, it's Tomcat. > > > > -Chris > > > > > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > Sent: Friday, November 30, 2001 1:02 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Servlet refresh > > > > > > Yes I did. I deleted all the cache from the browser too. > > > > Thanks > > > > /KK > > - Original Message - > > From: Chris Tucker > > To: [EMAIL PROTECTED] > > Sent: Friday, November 30, 2001 2:54 PM > > Subject: Re: Servlet refresh > > > > > > Have you emptied the browser cache/shift-reloaded the page? > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > Sent: Friday, November 30, 2001 12:54 PM > > To: [EMAIL PROTECTED] > > Subject: Servlet refresh > > > > > > Hello: > > > > I am running TomCat 4.0.1 and I have servlet class file placed in the > > appropriate position. > > > > I made some changes ot my servlet source class and compiled. Compilation > > went thorugh. I restarted my TomCat server. But still, I do not see the > > changes. I have changed hte text to be displayed. I am not able to see the > > change in the browser. > > > > Where am I going wrong? > > > > Thanks in advance. > > > > /KK > > > > > === > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTE
Re: Servlet refresh
Title: RE: Servlet refresh I tried accessing your URL. after typing hte username and Password, I am getting an error page. Looks like it is uanble to find the page. Madu Ramanujan Business Analyst Pacificorp -Original Message- From: Ketharinath Kamalanathan [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 2:02 PM To: [EMAIL PROTECTED] Subject: Re: Servlet refresh but the fun is when you submit something on that page. The TOmCat server is up and running fine. I get he TomCat Index page. But hte servlet I am talkng baout is my servlet for my app. http://65.71.103.122:8080/examples/jsp/middleware/index.html If you visit there, you will get a login screen.(this is just a dummy one). typr something in the username nad password and submit. Then you will get a message on the browser. What actually should come is the out put for the code given below. BUt check out what comes up. Thanks //KK public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); String un = req.getParameter("uname")); out.println(""); out.println(" Middleware Login "); out.println(""); out.println("My Login is Login Success"); out.println(un); out.println(""); } - Original Message - From: "Chris Pratt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 3:53 PM Subject: Re: Servlet refresh > Seems to be working fine. I just went to > http://65.71.103.122:8080/index.html and the TomCat start page came right > up. > (*Chris*) > > - Original Message - > From: "Ketharinath Kamalanathan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 30, 2001 1:39 PM > Subject: Re: [JSP-INTEREST] Servlet refresh > > > > 1. I am not able to telnet to my server. > > > > I havethe machine on the Net with IP 65.71.103.122 and port 8080 for my > web > > app. Can you tell me if I have any thing wrong in what I have set up by > > seeing the page yourself?? > > > > Thanks > > > > /KK > > - Original Message - > > From: "Chris Tucker" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, November 30, 2001 3:06 PM > > Subject: Re: Servlet refresh > > > > > > > If at first something like that doesn't work for me, I tend to stop > > Tomcat, > > > erase the offending servlet, copy the new version in again, and restart. > > > However, it sounds like you've probably already done this. The next > thing > > I > > > would try is to just make absolutely sure the browser isn't serving you > a > > > cached copy. The best way to test this is to telnet to your HTTP > server: > > > > > > telnet servername 80 > > > GET /absolute/url/to/servlet HTTP/1.1 > > > Host: localhost > > > > > > (make sure you hit return twice after the Host: line). The response you > > get > > > in the telnet window will be exactly what the server is sending. > > > > > > If you get the "new" version response from that command, then it's the > > > browser at fault; otherwise, it's Tomcat. > > > > > > -Chris > > > > > > > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > > Sent: Friday, November 30, 2001 1:02 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Servlet refresh > > > > > > > > > Yes I did. I deleted all the cache from the browser too. > > > > > > Thanks > > > > > > /KK > > > - Original Message - > > > From: Chris Tucker > > > To: [EMAIL PROTECTED] > > > Sent: Friday, November 30, 2001 2:54 PM > > > Subject: Re: Servlet refresh > > > > > > > > > Have you emptied the browser cache/shift-reloaded the page? > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > > Sent: Friday, November 30, 2001 12:54 PM > > > To: [EMAIL PROTECTED] > > > Subject: Servlet refresh > > > > > > > > > Hello: > > > > > > I am running TomCat 4.0.1 and I have servlet class file placed in the > > > appropriate position. > > > > > > I made some changes ot my servlet source class and compiled. Compilation > > > went thorugh. I restarted my TomCat server. But still, I do not see the > > > changes. I have changed hte text to be displayed. I am not able to see > the > > > change in the browser. > > > > > > Where am I going wrong? > > > > > > Thanks in advance. > > > > > > /KK > > > > > > > > > === > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTERE
Re: Servlet refresh
At the moment your form submission is going to localhost:8080, not 65.71.103.122:8080 -- I assume these two IP's are the same machine for you? If you want it to be testable by people on the list, you'll need to fix up your form submission to go to the 'net IP, not localhost. Chris -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan Sent: Friday, November 30, 2001 2:02 PM To: [EMAIL PROTECTED] Subject: Re: Servlet refresh but the fun is when you submit something on that page. The TOmCat server is up and running fine. I get he TomCat Index page. But hte servlet I am talkng baout is my servlet for my app. http://65.71.103.122:8080/examples/jsp/middleware/index.html If you visit there, you will get a login screen.(this is just a dummy one). typr something in the username nad password and submit. Then you will get a message on the browser. What actually should come is the out put for the code given below. BUt check out what comes up. Thanks //KK public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); String un = req.getParameter("uname")); out.println(""); out.println(" Middleware Login "); out.println(""); out.println("My Login is Login Success"); out.println(un); out.println(""); } - Original Message - From: "Chris Pratt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 3:53 PM Subject: Re: Servlet refresh > Seems to be working fine. I just went to > http://65.71.103.122:8080/index.html and the TomCat start page came right > up. > (*Chris*) > > - Original Message - > From: "Ketharinath Kamalanathan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 30, 2001 1:39 PM > Subject: Re: [JSP-INTEREST] Servlet refresh > > > > 1. I am not able to telnet to my server. > > > > I havethe machine on the Net with IP 65.71.103.122 and port 8080 for my > web > > app. Can you tell me if I have any thing wrong in what I have set up by > > seeing the page yourself?? > > > > Thanks > > > > /KK > > - Original Message - > > From: "Chris Tucker" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, November 30, 2001 3:06 PM > > Subject: Re: Servlet refresh > > > > > > > If at first something like that doesn't work for me, I tend to stop > > Tomcat, > > > erase the offending servlet, copy the new version in again, and restart. > > > However, it sounds like you've probably already done this. The next > thing > > I > > > would try is to just make absolutely sure the browser isn't serving you > a > > > cached copy. The best way to test this is to telnet to your HTTP > server: > > > > > > telnet servername 80 > > > GET /absolute/url/to/servlet HTTP/1.1 > > > Host: localhost > > > > > > (make sure you hit return twice after the Host: line). The response you > > get > > > in the telnet window will be exactly what the server is sending. > > > > > > If you get the "new" version response from that command, then it's the > > > browser at fault; otherwise, it's Tomcat. > > > > > > -Chris > > > > > > > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > > Sent: Friday, November 30, 2001 1:02 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Servlet refresh > > > > > > > > > Yes I did. I deleted all the cache from the browser too. > > > > > > Thanks > > > > > > /KK > > > - Original Message - > > > From: Chris Tucker > > > To: [EMAIL PROTECTED] > > > Sent: Friday, November 30, 2001 2:54 PM > > > Subject: Re: Servlet refresh > > > > > > > > > Have you emptied the browser cache/shift-reloaded the page? > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > > Sent: Friday, November 30, 2001 12:54 PM > > > To: [EMAIL PROTECTED] > > > Subject: Servlet refresh > > > > > > > > > Hello: > > > > > > I am running TomCat 4.0.1 and I have servlet class file placed in the > > > appropriate position. > > > > > > I made some changes ot my servlet source class and compiled. Compilation > > > went thorugh. I restarted my TomCat server. But still, I do not see the > > > changes. I have changed hte text to be displayed. I am not able to see > the > > > change in the browser. > > > > > > Where am I going wrong? > > > > > > Thanks in advance. > > > > > > /KK > > > > > > > > > =
Re: Servlet refresh
Title: RE: Servlet refresh Yeah, the HTTP server won't write anything to the display until the headers are sent for the client. When you're telnetting in, you're effectively opening a raw-text socket to the server. You can then explicitly type in the HTTP headers that you want sent, and when you hit twice, you get the response. The HTTP protocol describes exactly how a well-formed HTTP header must be created: you just have to manually create it by typing in the right values. Take a look at the HTTP/1.1 RFC over at www.ietf.org for the full specification of what is and is not allowed. -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Madhusudhan, RamanujanSent: Friday, November 30, 2001 1:30 PMTo: [EMAIL PROTECTED]Subject: Re: Servlet refresh Hi chris, I am trying to use the telnet as per your advice. When you say "servername". I am using the "localhost" On the command prompt I type "telnet localhost : 80" when I do this, I get a blank screen. I then have to enter twice before I see some HTML data. Am I doing right here? madu Madu Ramanujan Business Analyst Pacificorp -Original Message- From: Chris Tucker [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 1:06 PM To: [EMAIL PROTECTED] Subject: Re: Servlet refresh If at first something like that doesn't work for me, I tend to stop Tomcat, erase the offending servlet, copy the new version in again, and restart. However, it sounds like you've probably already done this. The next thing I would try is to just make absolutely sure the browser isn't serving you a cached copy. The best way to test this is to telnet to your HTTP server: telnet servername 80 GET /absolute/url/to/servlet HTTP/1.1 Host: localhost (make sure you hit return twice after the Host: line). The response you get in the telnet window will be exactly what the server is sending. If you get the "new" version response from that command, then it's the browser at fault; otherwise, it's Tomcat. -Chris -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan Sent: Friday, November 30, 2001 1:02 PM To: [EMAIL PROTECTED] Subject: Re: Servlet refresh Yes I did. I deleted all the cache from the browser too. Thanks /KK - Original Message - From: Chris Tucker To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 2:54 PM Subject: Re: Servlet refresh Have you emptied the browser cache/shift-reloaded the page? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan Sent: Friday, November 30, 2001 12:54 PM To: [EMAIL PROTECTED] Subject: Servlet refresh Hello: I am running TomCat 4.0.1 and I have servlet class file placed in the appropriate position. I made some changes ot my servlet source class and compiled. Compilation went thorugh. I restarted my TomCat server. But still, I do not see the changes. I have changed hte text to be displayed. I am not able to see the change in the browser. Where am I going wrong? Thanks in advance. /KK === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Servlet refresh
I got it fixed. The problem was with the browser itself. I was cleaning the catch with the TomCat server Running. It did not work. This time, I stopped the server and then cleaned the cache and restarted the server. It went thru. By the way, is there any work around so that one does not need to restart the server often for servlet changes??? Thanks guys. /KK - Original Message - From: "Ketharinath Kamalanathan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 4:10 PM Subject: Re: Servlet refresh > As Madhu says, I get a blank TelNet Screen. > > I have the servlet file in localhost\tomcat\webapps\examples\web-inf\classes > > any suggestions?? > > Thanks > > /KK > - Original Message - > From: "Chris Tucker" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 30, 2001 3:54 PM > Subject: Re: Servlet refresh > > > > To telnet to it you should issue the command: > > telnet 65.71.103.122 8080 > > > > When it's connected, type in: > > GET /path/to/your/servlet HTTP/1.1 > > Host: localhost > > > > You didn't say where your servlet was located, so I don't know what path > to > > use: when you test it, simply replace the "/path/to/your/servlet" part of > > the HTTP request with the actual path to your servlet. Also, if you're on > > Windows 9x, the telnet client is a bit crappy. You won't see a "local > echo" > > of what you type unless you explicitly set that option: the characters you > > type will go through, you just won't see anything until you hit > > after typing in the host line. > > > > When I tried it out I got the standard Tomcat "welcome" page on /, so > Tomcat > > seems to be working OK. One thing it might be worth checking, if you're > > accessing the machine on the web rather than directly, is if there is an > > intermediate proxy server or caching server that may have cached an old > copy > > of the content and be serving that instead. Most web caches are pretty > > intelligent with regards to this stuff now, but problems can still occur. > > > > -Chris > > > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > Sent: Friday, November 30, 2001 1:39 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Servlet refresh > > > > > > 1. I am not able to telnet to my server. > > > > I havethe machine on the Net with IP 65.71.103.122 and port 8080 for my > web > > app. Can you tell me if I have any thing wrong in what I have set up by > > seeing the page yourself?? > > > > Thanks > > > > /KK > > - Original Message - > > From: "Chris Tucker" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, November 30, 2001 3:06 PM > > Subject: Re: Servlet refresh > > > > > > > If at first something like that doesn't work for me, I tend to stop > > Tomcat, > > > erase the offending servlet, copy the new version in again, and restart. > > > However, it sounds like you've probably already done this. The next > thing > > I > > > would try is to just make absolutely sure the browser isn't serving you > a > > > cached copy. The best way to test this is to telnet to your HTTP > server: > > > > > > telnet servername 80 > > > GET /absolute/url/to/servlet HTTP/1.1 > > > Host: localhost > > > > > > (make sure you hit return twice after the Host: line). The response you > > get > > > in the telnet window will be exactly what the server is sending. > > > > > > If you get the "new" version response from that command, then it's the > > > browser at fault; otherwise, it's Tomcat. > > > > > > -Chris > > > > > > > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > > Sent: Friday, November 30, 2001 1:02 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Servlet refresh > > > > > > > > > Yes I did. I deleted all the cache from the browser too. > > > > > > Thanks > > > > > > /KK > > > - Original Message - > > > From: Chris Tucker > > > To: [EMAIL PROTECTED] > > > Sent: Friday, November 30, 2001 2:54 PM > > > Subject: Re: Servlet refresh > > > > > > > > > Have you emptied the browser cache/shift-reloaded the page? > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > > Sent: Friday, November 30, 2001 12:54 PM > > > To: [EMAIL PROTECTED] > > > Subject: Servlet refresh > > > > > > > > > Hello: > > > > > > I am running TomCat 4.0.1 and I have servlet class file placed in the > > > appropriate position. > > > > > > I made some changes ot my servlet source class and compiled. Compilation > > > went thorugh. I restarted my TomCat server. But still, I do not see the > > > changes. I have changed hte text to be displayed. I am not able to see > the > > > change in the brow
Re: Servlet refresh
Title: RE: Servlet refresh You have 'localhost' in your web page rather than a relative directory. or at least that's my thinking. My client looks for file on my localhost... -Original Message- From: Ketharinath Kamalanathan [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 2:02 PM To: [EMAIL PROTECTED] Subject: Re: Servlet refresh but the fun is when you submit something on that page. The TOmCat server is up and running fine. I get he TomCat Index page. But hte servlet I am talkng baout is my servlet for my app. http://65.71.103.122:8080/examples/jsp/middleware/index.html If you visit there, you will get a login screen.(this is just a dummy one). typr something in the username nad password and submit. Then you will get a message on the browser. What actually should come is the out put for the code given below. BUt check out what comes up. Thanks //KK public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); String un = req.getParameter("uname")); out.println(""); out.println(" Middleware Login "); out.println(""); out.println("My Login is Login Success"); out.println(un); out.println(""); } - Original Message - From: "Chris Pratt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 3:53 PM Subject: Re: Servlet refresh > Seems to be working fine. I just went to > http://65.71.103.122:8080/index.html and the TomCat start page came right > up. > (*Chris*) > > - Original Message - > From: "Ketharinath Kamalanathan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 30, 2001 1:39 PM > Subject: Re: [JSP-INTEREST] Servlet refresh > > > > 1. I am not able to telnet to my server. > > > > I havethe machine on the Net with IP 65.71.103.122 and port 8080 for my > web > > app. Can you tell me if I have any thing wrong in what I have set up by > > seeing the page yourself?? > > > > Thanks > > > > /KK > > - Original Message - > > From: "Chris Tucker" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, November 30, 2001 3:06 PM > > Subject: Re: Servlet refresh > > > > > > > If at first something like that doesn't work for me, I tend to stop > > Tomcat, > > > erase the offending servlet, copy the new version in again, and restart. > > > However, it sounds like you've probably already done this. The next > thing > > I > > > would try is to just make absolutely sure the browser isn't serving you > a > > > cached copy. The best way to test this is to telnet to your HTTP > server: > > > > > > telnet servername 80 > > > GET /absolute/url/to/servlet HTTP/1.1 > > > Host: localhost > > > > > > (make sure you hit return twice after the Host: line). The response you > > get > > > in the telnet window will be exactly what the server is sending. > > > > > > If you get the "new" version response from that command, then it's the > > > browser at fault; otherwise, it's Tomcat. > > > > > > -Chris > > > > > > > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > > Sent: Friday, November 30, 2001 1:02 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Servlet refresh > > > > > > > > > Yes I did. I deleted all the cache from the browser too. > > > > > > Thanks > > > > > > /KK > > > - Original Message - > > > From: Chris Tucker > > > To: [EMAIL PROTECTED] > > > Sent: Friday, November 30, 2001 2:54 PM > > > Subject: Re: Servlet refresh > > > > > > > > > Have you emptied the browser cache/shift-reloaded the page? > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan > > > Sent: Friday, November 30, 2001 12:54 PM > > > To: [EMAIL PROTECTED] > > > Subject: Servlet refresh > > > > > > > > > Hello: > > > > > > I am running TomCat 4.0.1 and I have servlet class file placed in the > > > appropriate position. > > > > > > I made some changes ot my servlet source class and compiled. Compilation > > > went thorugh. I restarted my TomCat server. But still, I do not see the > > > changes. I have changed hte text to be displayed. I am not able to see > the > > > change in the browser. > > > > > > Where am I going wrong? > > > > > > Thanks in advance. > > > > > > /KK > > > > > > > > > === > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP
localhost vs ip address
Title: localhost vs ip address Chris is correct...change the 'localhost' to your ip address in your html file and you should be working.
FW: localhost vs ip address
Title: localhost vs ip address http://65.71.103.122:8080/tomcat/webapps/examples/web-inf/classes I tried the above url and I was able to see something on the page. Just find out whether is this right. Madu Ramanujan Business Analyst Pacificorp -Original Message-From: Michael Reilly [mailto:[EMAIL PROTECTED]]Sent: Friday, November 30, 2001 2:15 PMTo: [EMAIL PROTECTED]Subject: localhost vs ip address Chris is correct...change the 'localhost' to your ip address in your html file and you should be working.
Re: FW: localhost vs ip address
Title: localhost vs ip address Actually Tomcat is the installation directory. Youneed to user relative path. http://65.71.103.122:8080/examples/jsp/middleware/index.html will put you in index page. Anyway, I got it fixed. Thanks /KK - Original Message - From: Madhusudhan, Ramanujan To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 4:24 PM Subject: FW: localhost vs ip address http://65.71.103.122:8080/tomcat/webapps/examples/web-inf/classes I tried the above url and I was able to see something on the page. Just find out whether is this right. Madu Ramanujan Business Analyst Pacificorp -Original Message-From: Michael Reilly [mailto:[EMAIL PROTECTED]]Sent: Friday, November 30, 2001 2:15 PMTo: [EMAIL PROTECTED]Subject: localhost vs ip address Chris is correct...change the 'localhost' to your ip address in your html file and you should be working.
Include non-existing page result in different behavior with tomcat and resin
Hi there! I was just wondering what is considered to be correct behavior. I’m including a jsp from a servlet (see codesnip below). Now, sometimes the included jsp does not exist. I was under the impression that a ServletException was to be thrown in these cases. This seems to be correct with tomcat 4.0.1. Later, I switched to resin-2.0.0 and to my surprise resin didn’t raise an exception but instead served the error page that I specified in my web.xml for http 404 errors. Now, what is considered to be correct behavior? I’ve checked the specifications but I can’t find anything to indicate the correct behavior. … try { RequestDispatcher rd = request.getRequestDispatcher(aURL); rd.include(request, response);} catch (Exception se) { CAT.debug("ServletException: " + se);}… … 404 /404.jsp … In tomcat 4.0.1 the catch block is reached and the debugging code is executed. Seems to me that the included request does not go through tomcat like a regular request. If it was, tomcat should have redirected the include request to the error page as specified in web.xml. In resin 2.0.0 the catch block is NOT reached. In this case the request seems to go through resin like a regular request, resulting a resin picking up the error page as specified in web.xml. _ Inception vof J.C.H. (Ron) van Pol PO Box 80 5600 AB Eindhoven De Zaale 11 5612 AJ Eindhoven The Netherlands phone: +31 40 23 90 530 fax: +31 40 23 90 800 mobile: +31 6 28 942 465