Re: Include Directive

2006-11-07 Thread Dies Koper
Hello Chris, Justin, The index.jsp file in the main directory contains the code <%@ include file="header.jsp" %> and it works great. In the admin directory the index.jsp file contains this code <%@ include file="../header.jsp" %> obviously referencing to the parent directory, where the header.j

Re: are JSPs using Java5.0 syntax supported completely?

2006-10-25 Thread Dies Koper
Dies Filip Hanik - Dev Lists wrote: > This question belongs to the tomcat user list, please direct your future > questions there, > The answer to your question is is conf/web.xml where you can set the > language features for the JSP, just search for 1.4 and change it to 1.5 >

Re: read file inside WEB-INF

2006-10-23 Thread Dies Koper
> But if he's using something like Axis, then there is no ServletContext > around to use IIRC. Actually, there is. You can get it with javax.xml.rpc.server.ServletEndpointContext#getServletContext(). Regards, Dies Christopher Schultz wrote: Tomas, 2) Then the code will be independent of t

Re: web.xml

2006-10-10 Thread Dies Koper
Hello Roberto, Check out the Servlet specification: http://java.sun.com/products/servlet/download.html The tags under jsp-config are explained in the JSP specification: http://java.sun.com/products/jsp/reference/api/index.html Tomcat 5.x supports the Servlet 2.4 and JSP 2.0 specifications. Reg

Re: Persistent session after browser restart, cookie expiration

2006-09-11 Thread Dies Koper
Hello Heiko, I think you're looking for the following method: javax.servlet.http.Cookie#setMaxAge(int expiry) Its default value (see getMaxAge()) is -1 => the cookie persists until browser shutdown. Regards, Dies Heiko Klein wrote: Hi, I'm currently moving an web-application from custom-m

Re: Server cannot access http://localhost:8080 after unknown event

2006-09-07 Thread Dies Koper
Hello Andrew, Could it be that Tomcat is busy garbage collecting? I see your machine has a lot of memory. If you set your VM size so big and that memory is all used by Tomcat or your application, garbage collection cycles are bound to take longer (all objects in memory have to be checked to se

Re: TR: Sessions and sendDirect(url)

2006-09-07 Thread Dies Koper
Hello Jean-Claude, Nothing in particular, it is not invalidated or anything just because you sent a redirect to the client. Regards, Dies Serlet Jean-Claude wrote: Sorry but i made a mistake : the method used is sendRedirect(url) instead of sendDirect(url) Jean-Claude

Re: cvs caught exception when building T5 from source

2006-08-17 Thread Dies Koper
Hello Yan, Is it possible that you don't have cvs in your classpath? Did you try to run `cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login` as suggested? Regards, Dies Yan Bai wrote: Hello all, I want to build T5 from src, have followed the steps in the instruction, but BUILD FAILED. B

Re: getRealPath and war file

2006-08-10 Thread Dies Koper
> Push a url to a servlet which then serves the images from the working > directory? In which you could also set the headers (images are temporary, so maybe set Cache-Control, Expires?). Regards, Dies Mark Thomas wrote: Romain Quilici wrote: Hello Dies, the working directory would be fine,

Re: getRealPath and war file

2006-08-09 Thread Dies Koper
Hello Romain, Is there no way you can use the temporary working directory (javax.servlet.context.tempdir)? I don't know what "pushing inside a client browser" means, but as you mentioned the files are temporary, this sounds like the place to put them.. Also, you won't need to worry about mainta