Re: Http Session Null issue

2009-07-04 Thread Pid
On 4/7/09 00:22, Konstantin Kolinko wrote: HttpSession session = request.getSession(); Is the request a legit one (that is, the one that is being served by Tomcat now)? Requests are recycled immediately after their processing is done, and it can result in null being returned by that method

Howto enable SSL/https for the tomcat-embedded version?

2009-07-04 Thread Clemens Eisserer
Hello, To do some development/testing I would like to enable SSL/https for my embedded tomcat version. The SSL tutorial suggests to modify server.xml, however this version of tomcat doesn't seem to have this file - instead all the configuration seems to be done by the ant build.xml file which is

Re: Howto enable SSL/https for the tomcat-embedded version?

2009-07-04 Thread Pid
On 4/7/09 11:34, Clemens Eisserer wrote: Hello, To do some development/testing I would like to enable SSL/https for my embedded tomcat version. The SSL tutorial suggests to modify server.xml, however this version of tomcat doesn't seem to have this file - instead all the configuration seems to

Re: JSP when tag question

2009-07-04 Thread Jim Anderson
David, Thank you to 'pid' and yourself. I spent quite a few hours going over the source HTML from Firefox and fixed some problems (e.g. an tag with no closing tag) and fixed some inefficient code. I was getting very inconsistent results and went through a number of iterations. This was to

Re: JSP when tag question

2009-07-04 Thread Ron McNulty
Hi Jim A liitle OT, but I can recommend the HTML Validator plugin for Firefox (if you don't already have it). It puts a red light in the bottom right corner of the browser when you forget an import - the HTML is of course invalid. Has saved me many a time... Regards Ron - Original

Re: JSP when tag question

2009-07-04 Thread Len Popp
On Sat, Jul 4, 2009 at 13:52, Jim Andersonez...@ieee.org wrote: Having said that, I'm a bit surprised that there was not error message generate by  tomcat about seeing a reference to c:choose and c:xxx with no definition available. I would guess that JSP processor allows unknown tags in case

Tomcat for serving only static files - how to prevent the likes of JSP execution

2009-07-04 Thread Keith67
This might seem like a strange request, but I would like to use Tomcat to only serve static files, from a certain context anyway. I have an application I would like to allow users to upload files through, and then I want to be able to link to them and serve them from the server. If I do this, I

Re: Tomcat for serving only static files - how to prevent the likes of JSP execution

2009-07-04 Thread Len Popp
The default handling of JSP files is set in conf/web.xml: *.jsp and *.jspx are handled by JspServlet. In your special context, you could handle *.jsp and *.jspx files with a servlet that just returns an error. That should do the trick. -- Len 2009/7/4 Keith67 keithmatthewwat...@gmail.com: