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 [EMAIL PROTECTED] .
- 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 <font color="#0000FF">EJB</font> method "<font color="#FF0000">transfer(request,destination)</font>" from inside JSP page.<br><br> "<font color="#FF0000">request</font>" is a HttpServletRequest object<br> "<font color="#FF0000">destiation</font>" is a string<br><br> it is throwing following exceptions.....<br><br> <font color="#FF0000">java.rmi.MarshalException</font>: 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<br><br><br> 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 <font color="#FF0000"> ServletInputStream in = request.getInputStream();</font> <br><br> i can get the file stream and then save this stream in a new file<br><br> <b>Why it is giving exception and any other way to upload files?</b><br><br> 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).<BR> 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:<BR> Does a declaration in server.xml like this:<I><B><BR> <Context path="/app1" docBase="/path/WebSites"/> <BR> <Context path="/app2" docBase="/path/WebSites"/> <BR></B></I> means really different applications?<BR><BR> 2. Is there a way, if the above is true, to have different <I>web.xml</I> for each of them, I mean to make Tomcat to look for <I>web.xml</I> elsewhere <I>WEB-INF</I> for any of the app's?<BR><BR> 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 <I>WEB-INF/lib</I>?<BR><BR> 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 "<i>unescape</i>" 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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>