Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 40918 invoked from network); 2 Feb 2002 03:09:47 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Feb 2002 03:09:47 -0000 Received: (qmail 2980 invoked by uid 97); 2 Feb 2002 03:09:19 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 2780 invoked by uid 97); 2 Feb 2002 03:09:18 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 2765 invoked from network); 2 Feb 2002 03:09:17 -0000 Date: 2 Feb 2002 03:08:59 -0000 Message-ID: <20020202030859.10988.qmail@edamame.stinky.com> To: tomcat-dev@jakarta.apache.org From: guru@stinky.com (Alex Chaffee) Subject: [FAQ] jGuru FAQ Update Reply-to: alex@jguru.com (Alex Chaffee) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to alex@jguru.com . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP I have several jsp pages that are referenced in an SSL server, and non-SSL server. To avoid the "this document contains some unencrypted data" error, I want to have it look at the HTTPS variable apache sets and see if its in secure mode.

So, if $HTTPS == on, I want to write:
img src="https://content.domain/images/foo.jpg"
else I want to write:
img src="http://content.domain/images/foo.jpg How do I do this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=741813 How can I make a JSP page implement the SingleThreadedModel interface? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=741113 Using JSP I can use implicit object exception when my JSP page is declared with <%@ page isErrorPage="true" %> directive. But how to get this reference programmatically, for example with a servlet ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=740991

I have a framed JSP application and would like to make it so pages meant to be viewed as a frame can only be viewed as a frame.

So, if they type the direct URL to that frame, I would like that page to check to see what frame it is in, and if it is in, say, _top, then redirect to the main (framed) page.

Is this possible? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=740988 I want to ship my JSP-based application to my customers by bundling it with Tomcat. Is Jakarta Tomcat 4.0 freeware? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=740986 If we declare a variable, say int i=3 in jsp file, then in what method does this variable reside? Is it within service() or the init() method? If this resides in service(), how can I make to be in init() and vice versa? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=739377 I want to create a Error Page and save the StackTrace within a String type variable.

My code is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ page import="java.lang.Exception,java.io.*"%>
<%@ page isErrorPage="true" %>
<html>
<head>
<title>Untitled</title>
</head>
<body>
Fehler!!!!

Fehler: <%=exception.getMessage()%>

<% PrintWriter writer = new PrintWriter(out);%> Stack: <% exception.printStackTrace(writer);%>

getLocalizedMessage = <%=exception.getLocalizedMessage()%>

toString = <%=exception.toString()%>
</body>
</html>

But here, the StackTrace is printed directly within the Page. How do I save it in a String variable? I want to send myself an automatic report if there is any error.

http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=739375

Hello! I am trying to include a JSP page that contains commonly used html/java code, into another JSP page multiple times using the jsp include directive.

This causes the parser in Websphere Appl. Server 3.5.3 to display an error page that says
org.apache.jasper.compiler.ParseException: Seen file include.jsp already, maybe this is a recursive include?!

However, when developing and testing the JSP page in Visual Age's 4.0 Websphere Test Environment, everything works fine....Why?

If Websphere Application Server is right about not allowing me to include the same JSP page several times, is there some other way perform this task?

http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=739372 I need to allow users to upload files and pictures.
When they upload pictures, I need to create thumbnail for them on the fly.
Is there any taglibs or java source to do this from JSP or servlets? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=735673 I need to allow users to upload files and pictures.
When they upload pictures, I need to create thumbnail for them on the fly.
Is there any taglibs or java source to do this from JSP or servlets? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=735672 My Jsp file need to forward a request to another servlet which is located in another Web Application on another machine. How can I do that? If I also want to add more parameters to the original request from the jsp file, what should I do? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=735653 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Using JSP I can use implicit object exception when my JSP page is declared with <%@ page isErrorPage="true" %> directive. But how to get this reference programmatically, for example with a servlet ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=740991 Why do I get the error org.xml.sax.SAXParseException : Element type "web-app" must be declared when starting my web application? It has a web-app element already! http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=740497 How can I prevent the expiration of a Session?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=738277 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Why do I get the error org.xml.sax.SAXParseException : Element type "web-app" must be declared when starting my web application? It has a web-app element already! http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=740497 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe, e-mail: For additional commands, e-mail: