Re: JSP Document
On Sat, Sep 06, 2003 at 06:10:26PM +0100, Sam Hough wrote: : : Tomcat 4.1.27 on Win32 given : : ?xml version=1.0? : jsp:root xmlns=http://java.sun.com/JSP/Page version=1.2 : h1Cat amp; Dog/h1 : /jsp:root : : Generates : : h1Cat Dog/h1 : : Can anybody confirm that this is correct behaviour? Why did the amp; entity get changed to a plain character? That's not kosher with HTML-4.01 specs. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Document
Actually I think it is, at least according to the HTML 4.01 Transitional. These are character entities and must be entered with the 'escape' character. These can assume a number or a character after the escape character. The only character which in some browsers is not rendered properly is the TM (trade mark) symbol, which doesn't have an 'escape' character representation, but only a numeric one (153;). In this scape the form: supsmallTM/small/sup is used. I can confirm also that the amp; is XHTML 1.0 Transitional valid. Hope this will help, Marco - Original Message - From: Eugene Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 06, 2003 6:23 PM Subject: Re: JSP Document On Sat, Sep 06, 2003 at 06:10:26PM +0100, Sam Hough wrote: : : Tomcat 4.1.27 on Win32 given : : ?xml version=1.0? : jsp:root xmlns=http://java.sun.com/JSP/Page version=1.2 : h1Cat amp; Dog/h1 : /jsp:root : : Generates : : h1Cat Dog/h1 : : Can anybody confirm that this is correct behaviour? Why did the amp; entity get changed to a plain character? That's not kosher with HTML-4.01 specs. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Document
Can still produce valid XHTML by doing Cat amp;amp; Dog But double escaping is not very friendly. I like the fact that JSP lets you generate any format HTML, XHTML, plain text and being able to write templates in XML but this is a bit ugly. Just want to check that it is meant to be this way before I learn how it all works. Seems like they are sticking to JSP generates anything since the JSP 2.0 syntax ${some.thing} doesnt escape XML. I think Ive spent too much time with XSL ;) - Original Message - From: Eugene Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 06, 2003 6:23 PM Subject: Re: JSP Document On Sat, Sep 06, 2003 at 06:10:26PM +0100, Sam Hough wrote: : : Tomcat 4.1.27 on Win32 given : : ?xml version=1.0? : jsp:root xmlns=http://java.sun.com/JSP/Page version=1.2 : h1Cat amp; Dog/h1 : /jsp:root : : Generates : : h1Cat Dog/h1 : : Can anybody confirm that this is correct behaviour? Why did the amp; entity get changed to a plain character? That's not kosher with HTML-4.01 specs. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP Document
Other solution: ... Cat ![CDATA[amp;]] Dog /... Especially handy when using large portions of Normal text -Original Message- From: Sam Hough [mailto:[EMAIL PROTECTED] Sent: zaterdag 6 september 2003 19:40 To: Tomcat Users List Can still produce valid XHTML by doing Cat amp;amp; Dog But double escaping is not very friendly. I like the fact that JSP lets you generate any format HTML, XHTML, plain text and being able to write templates in XML but this is a bit ugly. Just want to check that it is meant to be this way before I learn how it all works. Seems like they are sticking to JSP generates anything since the JSP 2.0 syntax ${some.thing} doesnt escape XML. I think Ive spent too much time with XSL ;) - Original Message - From: Eugene Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 06, 2003 6:23 PM Subject: Re: JSP Document On Sat, Sep 06, 2003 at 06:10:26PM +0100, Sam Hough wrote: : : Tomcat 4.1.27 on Win32 given : : ?xml version=1.0? : jsp:root xmlns=http://java.sun.com/JSP/Page version=1.2 : h1Cat amp; Dog/h1 : /jsp:root : : Generates : : h1Cat Dog/h1 : : Can anybody confirm that this is correct behaviour? Why did the amp; entity get changed to a plain character? That's not kosher with HTML-4.01 specs. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Document
My reading of the JSP spec says that Tomcat is correct here. If you need to preserve the escape, then follow Sjoerd's suggestion. Sam Hough [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 4.1.27 on Win32 given ?xml version=1.0? jsp:root xmlns=http://java.sun.com/JSP/Page version=1.2 h1Cat amp; Dog/h1 /jsp:root Generates h1Cat Dog/h1 Can anybody confirm that this is correct behaviour? I can sort of see that it makes sense (JSP is for generating any character stream...) but it does make a JSP Document look very odd. Also, is it correct that jsp:directive.include file=some jsp/ should not allow namespaces to be redelcared? Sorry if both these things are clear in the spec. Ive read it but dont feel much wiser. Thanks Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp document root
How is it possible to create something without a context @ the *very* top root level so you can say: / maps to things in directory /myapp Thanks. - Jon "Simon Oldeboershuis, outermedia" wrote: Regis Muller schrieb: Sorry to ask such a trivial question to all of you but how can I put my .jsp files outside of the ROOT Directory of tomcat in e.g. in apache\htdocs ? you have to configure the position of the directory in the config file: tomcat/conf/server.xml there should be some example. Context path="/myapp" docBase="apache\htdocs\myappdocbase" crossContext="false" debug="0" reloadable="true" /Context The docbase should probably given as an absolute path. simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]