Grokbase
Topics Posts Groups | in
x
[ help ]

Re: ParseException in JSP document

View PostFlat  Thread  Threaded | < Prev
- - Re: ParseException in JSP document
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
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. Therefore, you will need to encapsulate the HTML parts of
>this page in <jsp:text> elements, something like this (not tested, so
>there might still be problems):
>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">
>  <jsp:text>[CDATA[[
>  <html>
>  <head>
>  <title>test</title>
>  <body>
> <form method="POST" action="]]</jsp:text>
> <jsp:expression>request.getRequestURI()</jsp-expression>
>  <jsp:text>[CDATA[[">
>  <input type="text" name="textbox">
>  <input type="submit">
>  </form>]]</jsp:text>
> <jsp:expression>request.getRequestURI()</jsp:expression>
> <jsp:text>[CDATA[[<br>]]</jsp:text>
> <jsp:expression>request.getParameter("textbox")</jsp:expression>
>  <jsp:text>




--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

Thread : ParseException in JSP document
1)
- - I am making a JSP document and want to have <jsp:expression> tag as an attribute value in another...
2)
Craig McClanahan The basic issue is that you must conform to all XML syntax requirements in a JSP document....
3)
- - I learned that template data should be preceded by <jsp:text><![CDATA[ and followed by...
spacer
View PostFlat  Thread  Threaded | < Prev