Hello, I was wondering whether there are people who would find it useful if it was possible to escape content generated by JSP tags and expressions. For example, if I want to have <jsp:getProperty name="myBean" property="myProperty"/> included in a HTML page, and the (java.lang.String) value of myBean.getMyProperty() is "John & Mary", then I might want to properly escape the value as "John & Mary". Similarly, if the value is "$10.00" and I want to include it in a WML page, I will want to get "$$10.00". The page author might need to specify the escape type which must be done before including the result of a tag in a page. The types could be: html, url, xml, wml, none, ... Implementations could implement mapping for some escape types, some escape types (such as url) could be mandatory. The syntax could something like <jsp:tagName:escapetype .... /> for standard JSP tags <prefix:tagName:escapetype .... /> for user-defined tags <%=:escapetype ... %> for expressions I personally found this feature very useful when we wrote our template solution about 2 years ago. The WML specification also includes a similar mechanism, although this is processed on the client side. Please tell me what you think. Petr =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
