Oops!, I mean't $CATALINA_BASE/conf/web.xml

On Sun, Oct 9, 2011 at 9:37 AM, Karan Malhi <[email protected]> wrote:
> Aha.. I did not know that - thanks!. One of the possible checks could
> be detection of jsp files. We could scan the CATALINA_BASE/web.xml and
> find the suffix mapping for org.apache.jasper.servlet.JspServlet. For
> example, if the suffix is mapped to *.jsp and if we find a foo.jsp,
> then we know it is a web-app. Of course, there should be other checks
> too, this could be one of them. If only jcp.org was responsive and I
> could download the spec right now, sigh!
>
>
> On Sun, Oct 9, 2011 at 9:17 AM, Jacek Laskowski <[email protected]> wrote:
>> On Sun, Oct 9, 2011 at 6:10 PM, Karan Malhi <[email protected]> wrote:
>>> As Romain mentioned earlier, we should check for WEB-INF, because
>>> thats the directory which is guaranteed to be present in a web
>>> application.
>>
>> Is it? Even though I believe WEB-INF is a better bet, it's not
>> required as webapps with jsps/html/css or any non-Java classes are
>> possible. I'll be working on it for the coming days and will include
>> appropriate checks. Thanks Karan.
>>
>> Jacek
>>
>> --
>> Jacek Laskowski
>> Java EE, functional languages and IBM WebSphere - http://blog.japila.pl
>> Warszawa JUG conference = Confitura (formerly Javarsovia) :: 
>> http://confitura.pl
>> "Hoping to save time by spending it" by David Blevins (Apache OpenEJB)
>>
>
>
>
> --
>
> Karan Singh Malhi
> twitter.com/KaranSinghMalhi
>



-- 

Karan Singh Malhi
twitter.com/KaranSinghMalhi

Reply via email to