Re: Whee!! It's good to be back!
How about calling out.close() Stefanos Steve Burrus wrote: *It's very good indeed to be back in your midst again, and believe me, I will try hard to mind my manners and try to use this list for the most knowledgeable insight that I can posssibly get about how to execute certain jsp's/servlets with the Tomcat web container!!* *Case in point: I am having problems with trying to see this TodayServlet.java servlet of mine. It just flat doesn't show up in my browser when I try to look at it, sad to say. It is just the most simple and basic servlet, so it shouldn't be too much of a big deal to correct whatever problem it has, so I could then see it. I naturally have attached it to my posting, and again, it's good to be back in your good graces again. * *p.s.: excuse my absolute ignorance about how servlet creation is done successfully, but I was wondering if I possibly need a HTML file to go along with this servlet as a helper file.* import java.io.*; import java.util.Date; import javax.servlet.*; import javax.servlet.http.*; public class TodayServlet extends HttpServlet { public void doGet( HttpServletRequest request, HttpServletResponse response ) throws IOException, ServletException { response.setContentType( text/HTML ); response.setHeader( Pragma, no cache ); response.setHeader( Cache-Control, no cache ); response.setHeader( Expires, 0 ); PrintWriter out = response.getWriter(); out.println( HTML ); out.println( head ); out.println( titleToday/title ); out.println( /head ); out.println( body bgcolor='00' text='10' ); out.println(h1The Date and Time, if u didn't know,is:/h1 ); Date today = new Date(); out.println( p + today + /p ); out.flush(); out.println( /body ); out.println( /HTML ); } } !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2.2.dtd; web-app display-name How to program servlet examples /display-name description this is the web app. in which we show our servlets/jsp's. /description servlet servlet-nametoday/servlet-name servlet-classTodayServlet/servlet-class /servlet servlet-mapping servlet-nametoday/servlet-name url-pattern/today/url-pattern /servlet-mapping /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Whee!! It's good to be back!
Br. Burrus has unsubscribed from this list, and subscribed to tomcat-users. If you are also on that list, I'd recommend you rewrite your reply over there, I don't think he is listening here. (And warning, the guy is sometimes quite abrasive in his replies/questions, just so you know, don't take it personal...) Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., the leading provider of Net business solutions http://www.novell.com [EMAIL PROTECTED] 3/21/03 4:24:22 AM How about calling out.close() Stefanos Steve Burrus wrote: *It's very good indeed to be back in your midst again, and believe me, I will try hard to mind my manners and try to use this list for the most knowledgeable insight that I can posssibly get about how to execute certain jsp's/servlets with the Tomcat web container!!* *Case in point: I am having problems with trying to see this TodayServlet.java servlet of mine. It just flat doesn't show up in my browser when I try to look at it, sad to say. It is just the most simple and basic servlet, so it shouldn't be too much of a big deal to correct whatever problem it has, so I could then see it. I naturally have attached it to my posting, and again, it's good to be back in your good graces again. * *p.s.: excuse my absolute ignorance about how servlet creation is done successfully, but I was wondering if I possibly need a HTML file to go along with this servlet as a helper file.* import java.io.*; import java.util.Date; import javax.servlet.*; import javax.servlet.http.*; public class TodayServlet extends HttpServlet { public void doGet( HttpServletRequest request, HttpServletResponse response ) throws IOException, ServletException { response.setContentType( text/HTML ); response.setHeader( Pragma, no cache ); response.setHeader( Cache-Control, no cache ); response.setHeader( Expires, 0 ); PrintWriter out = response.getWriter(); out.println( HTML ); out.println( head ); out.println( titleToday/title ); out.println( /head ); out.println( body bgcolor='00' text='10' ); out.println(h1The Date and Time, if u didn't know,is:/h1 ); Date today = new Date(); out.println( p + today + /p ); out.flush(); out.println( /body ); out.println( /HTML ); } } !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2.2.dtd; web-app display-name How to program servlet examples /display-name description this is the web app. in which we show our servlets/jsp's. /description servlet servlet-nametoday/servlet-name servlet-classTodayServlet/servlet-class /servlet servlet-mapping servlet-nametoday/servlet-name url-pattern/today/url-pattern /servlet-mapping /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Whee!! It's good to be back!
It's very good indeed to be back in your "midst" again, and believe me, I will try hard to "mind my manners" and try to use this list for the most knowledgeable insight that I can posssibly get about how to execute certain jsp's/servlets with the Tomcat web container!! Case in point: I am having problems with trying to see this "TodayServlet.java" servlet of mine. It just flat doesn't show up in my browser when I try to look at it, sad to say. It is just the most simple and basic servlet, so it shouldn't be too much of a "big deal" to correct whatever problem it has, so I could then see it. I naturally have attached it to my posting, and again, it's good to be back "in your good graces" again. p.s.: excuse my absolute ignorance about how servlet creation is done successfully, but I was wondering if I possibly need a HTML file to go along with this servlet as a helper file.import java.io.*; import java.util.Date; import javax.servlet.*; import javax.servlet.http.*; public class TodayServlet extends HttpServlet { public void doGet( HttpServletRequest request, HttpServletResponse response ) throws IOException, ServletException { response.setContentType( text/HTML ); response.setHeader( Pragma, no cache ); response.setHeader( Cache-Control, no cache ); response.setHeader( Expires, 0 ); PrintWriter out = response.getWriter(); out.println( HTML ); out.println( head ); out.println( titleToday/title ); out.println( /head ); out.println( body bgcolor='00' text='10' ); out.println(h1The Date and Time, if u didn't know,is:/h1 ); Date today = new Date(); out.println( p + today + /p ); out.flush(); out.println( /body ); out.println( /HTML ); } } !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2.2.dtd; web-app display-name How to program servlet examples /display-name description this is the web app. in which we show our servlets/jsp's. /description servlet servlet-nametoday/servlet-name servlet-classTodayServlet/servlet-class /servlet servlet-mapping servlet-nametoday/servlet-name url-pattern/today/url-pattern /servlet-mapping /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Whee!! It's good to be back!
How are you packaging it? Are you putting it in a certain context, or what? How are you trying to view it? Through Port 8080, or through a web server? It seems that your web.xml is fine. Where are you putting the compiled .class file in your web app's directory structure? Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., the leading provider of Net business solutions http://www.novell.com [EMAIL PROTECTED] 3/19/03 12:26:18 PM It's very good indeed to be back in your midst again, and believe me, I will try hard to mind my manners and try to use this list for the most knowledgeable insight that I can posssibly get about how to execute certain jsp's/servlets with the Tomcat web container!! Case in point: I am having problems with trying to see this TodayServlet.java servlet of mine. It just flat doesn't show up in my browser when I try to look at it, sad to say. It is just the most simple and basic servlet, so it shouldn't be too much of a big deal to correct whatever problem it has, so I could then see it. I naturally have attached it to my posting, and again, it's good to be back in your good graces again. p.s.: excuse my absolute ignorance about how servlet creation is done successfully, but I was wondering if I possibly need a HTML file to go along with this servlet as a helper file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]