Possible to include JSP document (.jspx) fragments that aren't well formed?

2005-04-25 Thread Jonathan Eric Miller
Does anyone know if it's possible to include a .jspx fragment in another .jspx file? When I say .jspx fragment, I mean a file that is in XML format, but, may not be well formed. For example, I want to do something like the following. Currently, I'm receiving an error message like the

Ampersand problem in JSP document

2004-08-23 Thread Andreas Schildbach
Hello everyone, I am using the following fragment in a JSP document (the XML variant of JSP pages): hrefmyurl?param1=value1amp;param2=value2/href The problem is, Tomcat sends this fragment to the browser as hrefmyurl?param1=value1param2=value2/href which causes an XML parsing exception

RE: Ampersand problem in JSP document

2004-08-23 Thread Shapira, Yoav
Informatics -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach Sent: Monday, August 23, 2004 3:31 PM To: [EMAIL PROTECTED] Subject: Ampersand problem in JSP document Hello everyone, I am using the following fragment in a JSP document (the XML variant of JSP

Re: Ampersand problem in JSP document

2004-08-23 Thread John Villar
Try to append amp to the amp; fragment it should end like this amp;amp; and the output would be amp; Andreas Schildbach escribió: Hello everyone, I am using the following fragment in a JSP document (the XML variant of JSP pages): hrefmyurl?param1=value1amp;param2=value2/href The problem

Re: Ampersand problem in JSP document

2004-08-23 Thread Andreas Schildbach
Shapira, Yoav wrote: Does it happen if you have a proper JSP XML page, e.g. jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=1.2 jsp:text![CDATA[html body center h1Hello World/h1 /center /body /html]]/jsp:text /jsp:root It happens with the

Re: Ampersand problem in JSP document

2004-08-23 Thread Andreas Schildbach
John Villar wrote: Try to append amp to the amp; fragment it should end like this amp;amp; and the output would be amp; It is my understanding that if an XML document is serialized to an output stream, characters like , and are represented by their entities amp; gt; lt so an XML parser

Re: Ampersand problem in JSP document

2004-08-23 Thread John Villar
LOL that's true. i think yoav gave you the right solution try embedding your xml processor offending fragment into a jsp:text![CDATA[ ]]/jsp:text that should do the work It is my understanding that if an XML document is serialized to an output stream, characters like ,

Re: Ampersand problem in JSP document

2004-08-23 Thread Robert Koberg
Hi, (jumping in late) Have you tried: jsp:directive.page contentType=text/xml / and perhaps: jsp:output doctype-root-element=html doctype-public=-//W3C//DTD XHTML 1.0 Transitional//EN doctype-system=http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/ best, -Rob Andreas Schildbach

XML format JSP document, and prelude problem

2004-03-24 Thread Keith Hyland
file specified in the web.xml to do some common tasks for each page. include-prelude/template/prelude.jspf/include-prelude include-coda/template/coda.jspf/include-coda Case 1: prelude.jspf is not a valid jsp document (ie. it is a valid jsp page, but not a xml doc) Then when my main page (a valid

JSP Document

2003-09-06 Thread Sam Hough
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

Re: JSP Document

2003-09-06 Thread Eugene Lee
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

Re: JSP Document

2003-09-06 Thread Marco Tedone
: 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

Re: JSP Document

2003-09-06 Thread Sam Hough
, 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

RE: JSP Document

2003-09-06 Thread Sjoerd van Leent
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

Re: JSP Document

2003-09-06 Thread Bill Barker
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

ParseException in JSP document

2002-01-05 Thread - -
I am making a JSP document and want to have jsp:expression tag as an attribute value in another tag. I got an error like org.apache.jasper.compiler.ParseException: /thispage.jsp(8,30) The value of attribute action must not contain the '' character. The following is thispage.jsp. (Tomcat 4.0.1

Re: ParseException in JSP document

2002-01-05 Thread Craig R. McClanahan
On Sat, 5 Jan 2002, - - wrote: Date: Sat, 05 Jan 2002 12:21:19 -0800 From: - - [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: ParseException in JSP document I am making a JSP document and want to have

Re: ParseException in JSP document

2002-01-05 Thread - -
I learned that template data should be preceded by jsp:text![CDATA[ and followed by ]]/jsp:text and it works as expected. Thank you. -- On Sat, 5 Jan 2002 12:34:39 Craig R. McClanahan wrote: The basic issue is that you must conform to all XML syntax requirements in a JSP document

Tomcat Newbie has problem with Apache connector and JSP: document contains no data

2001-07-17 Thread Mark Dzmura
Gentle Folks: After spending a ridiculously long time in a frustrating and humiliating attempt to get the following configuration working on a Redhat 7.1 Linux box: - Apache 1.3.19 DSO - mod_webapps - Jakarta-Tomcat 4.0b5 I have finally gotten Tomcat to serve static content with the Default

jsp document root

2001-01-16 Thread Regis Muller
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 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email:

Re: jsp document root

2001-01-16 Thread Jon Baer
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