From tomcat-dev-return-7976-qmlist-jakarta-archive-tomcat-dev=jakarta.apache.org@jakarta.apache.org Sat Mar 30 01:38:40 2002 Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 98314 invoked from network); 30 Mar 2002 01:38:40 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 30 Mar 2002 01:38:40 -0000 Received: (qmail 22760 invoked by uid 97); 30 Mar 2002 01:38:14 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 22627 invoked by uid 97); 30 Mar 2002 01:38:13 -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 22606 invoked from network); 30 Mar 2002 01:38:13 -0000 Date: 30 Mar 2002 01:38:01 -0000 Message-ID: <20020330013801.3611.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 Can my JSP page access initalization parameters from the servlet context? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=817005 I am calling my EJB method "transfer(request,destination)" from inside JSP page.

"request" is a HttpServletRequest object
"destiation" is a string

it is throwing following exceptions.....

java.rmi.MarshalException: failed to marshal public abstract void project.upload.Copy.transf er(javax.servlet.http.HttpServletRequest,java.lang.String) throws java.rmi.RemoteException,j ava.io.IOException; nested exception is: java.io.NotSerializableException: weblogic.servlet.internal.ServletRequestImpl java.io.NotSerializableException: weblogic.servlet.internal.ServletRequestImpl


actually i am trying to uplaod files and in JSP i use <input type="file"> tag to select a file inside a form.the logic is this that request object also have the file stream and using ServletInputStream in = request.getInputStream();

i can get the file stream and then save this stream in a new file

Why it is giving exception and any other way to upload files?

http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=816605 If a directory does not have one of the welcome-file I want to redirect to a page, not show the subdirectories and files. How could I do it? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=816600 Using JSP with Tomcat 4, I've noticed that using the response.sendRedirect() method, or jsp:forward tag to another directory on the same server is loosing all the session variables. Does anyone know the reason for this and a work around? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=816599 I'm using jboss(2.4.1) +tomcat(3.2.3).
I need to share the same directory structure of jsp's for different applications (I have deployed the jsp's as they are not in a war). Also I need to use the same libraries for all the applications. So my questions are:
Does a declaration in server.xml like this:
<Context path="/app1" docBase="/path/WebSites"/>
<Context path="/app2" docBase="/path/WebSites"/>
means really different applications?

2. Is there a way, if the above is true, to have different web.xml for each of them, I mean to make Tomcat to look for web.xml elsewhere WEB-INF for any of the app's?

3. Another issue is how to share the same libraries, (without affecting the .bat files of jboss/tomcat) between different applications that don't have the same docbase? Is there a way to instruct Tomcat to search for application libraries elsewhere WEB-INF/lib?

http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=816583 Is there a way to run a JSP that will give me the current classpath used by Tomcat? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=816577 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Tomcat does "unescape" the underscore (_) char when it is part of a war file. Why? Is there any way to disable this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=815865 How can I ensure that Tomcat compiles servlets with debugging info included (-g option of the javac compiler)? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=809402 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: