Re: Tiles html-taglib producing XHTML
Add html:xhtml/ to each of your tiles. Each page fragment must decide how it will be rendered, not the containing page. David --- Adam Hardy [EMAIL PROTECTED] wrote: I'm using the struts html taglib, well actually the html-el taglib but the problem is with both, and I am outputting XHTML, but the input taglib doesn't output XHTML when it's in a different Tile. I have my Tiles layout page with the doctype declaration and the html:html xhtml=true and the tiles:insert attribute=bodyContent / to include my content. Anything nested nicely inside the html:html xhtml=true tags in the layout tile is given proper XHTML syntax, but in the other tiles, it's not. i.e. instead of: input type=image name= src=edit.png title=Edit alt=Edit / it gives: input type=image name= src=edit.png title=Edit alt=Edit Before I go off to bugzilla, assuming I haven't overlooked something important, what is it a bug of? html-taglib or tiles? Thanks, Adam -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tiles html-taglib producing XHTML
You have to set each tile to be XHTML - here's how I do it: Since every page probably needs taglibs, I have a common/taglibs.jsp file. In this page, I have my taglib declarations and the following line at the end: html:xhtml / Then every page includes that with: %@ include file=/common/taglibs.jsp% This has worked great for me. Matt -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 10:09 AM To: Struts Users Mailing List Subject: Tiles html-taglib producing XHTML I'm using the struts html taglib, well actually the html-el taglib but the problem is with both, and I am outputting XHTML, but the input taglib doesn't output XHTML when it's in a different Tile. I have my Tiles layout page with the doctype declaration and the html:html xhtml=true and the tiles:insert attribute=bodyContent / to include my content. Anything nested nicely inside the html:html xhtml=true tags in the layout tile is given proper XHTML syntax, but in the other tiles, it's not. i.e. instead of: input type=image name= src=edit.png title=Edit alt=Edit / it gives: input type=image name= src=edit.png title=Edit alt=Edit Before I go off to bugzilla, assuming I haven't overlooked something important, what is it a bug of? html-taglib or tiles? Thanks, Adam -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - 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: Tiles html-taglib producing XHTML
Thanks David. Sorry, didn't see it and it had never been talked about in the archives. May I suggest though that it be added to the API docs for html:html at http://jakarta.apache.org/struts/userGuide/struts-html.html#html Thanks Adam On 09/09/2003 06:26 PM David Graham wrote: Add html:xhtml/ to each of your tiles. Each page fragment must decide how it will be rendered, not the containing page. David --- Adam Hardy [EMAIL PROTECTED] wrote: I'm using the struts html taglib, well actually the html-el taglib but the problem is with both, and I am outputting XHTML, but the input taglib doesn't output XHTML when it's in a different Tile. I have my Tiles layout page with the doctype declaration and the html:html xhtml=true and the tiles:insert attribute=bodyContent / to include my content. Anything nested nicely inside the html:html xhtml=true tags in the layout tile is given proper XHTML syntax, but in the other tiles, it's not. i.e. instead of: input type=image name= src=edit.png title=Edit alt=Edit / it gives: input type=image name= src=edit.png title=Edit alt=Edit Before I go off to bugzilla, assuming I haven't overlooked something important, what is it a bug of? html-taglib or tiles? Thanks, Adam -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles html-taglib producing XHTML
Good tip. Thanks. On 09/09/2003 06:20 PM Matt Raible wrote: You have to set each tile to be XHTML - here's how I do it: Since every page probably needs taglibs, I have a common/taglibs.jsp file. In this page, I have my taglib declarations and the following line at the end: html:xhtml / Then every page includes that with: %@ include file=/common/taglibs.jsp% This has worked great for me. Matt -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 10:09 AM To: Struts Users Mailing List Subject: Tiles html-taglib producing XHTML I'm using the struts html taglib, well actually the html-el taglib but the problem is with both, and I am outputting XHTML, but the input taglib doesn't output XHTML when it's in a different Tile. I have my Tiles layout page with the doctype declaration and the html:html xhtml=true and the tiles:insert attribute=bodyContent / to include my content. Anything nested nicely inside the html:html xhtml=true tags in the layout tile is given proper XHTML syntax, but in the other tiles, it's not. i.e. instead of: input type=image name= src=edit.png title=Edit alt=Edit / it gives: input type=image name= src=edit.png title=Edit alt=Edit Before I go off to bugzilla, assuming I haven't overlooked something important, what is it a bug of? html-taglib or tiles? Thanks, Adam -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles html-taglib producing XHTML
--- Adam Hardy [EMAIL PROTECTED] wrote: Thanks David. Sorry, didn't see it and it had never been talked about in the archives. May I suggest though that it be added to the API docs for html:html at http://jakarta.apache.org/struts/userGuide/struts-html.html#html That would be helpful. Please open an enhancement request with the details so it doesn't get forgotten. David Thanks Adam On 09/09/2003 06:26 PM David Graham wrote: Add html:xhtml/ to each of your tiles. Each page fragment must decide how it will be rendered, not the containing page. David --- Adam Hardy [EMAIL PROTECTED] wrote: I'm using the struts html taglib, well actually the html-el taglib but the problem is with both, and I am outputting XHTML, but the input taglib doesn't output XHTML when it's in a different Tile. I have my Tiles layout page with the doctype declaration and the html:html xhtml=true and the tiles:insert attribute=bodyContent / to include my content. Anything nested nicely inside the html:html xhtml=true tags in the layout tile is given proper XHTML syntax, but in the other tiles, it's not. i.e. instead of: input type=image name= src=edit.png title=Edit alt=Edit / it gives: input type=image name= src=edit.png title=Edit alt=Edit Before I go off to bugzilla, assuming I haven't overlooked something important, what is it a bug of? html-taglib or tiles? Thanks, Adam -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles and %@ taglib
It may depend on your jsp compiler. We have it on each jsp page. sandeep --- Erez Efrati [EMAIL PROTECTED] wrote: In tiles, where should I be best putting the %@ taglib uri=required lib %? Each tile jsp with its own tags or put them all in the layout JSP I use? Thanks, Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tiles and %@ taglib
That's a matter of preference and application server capabilities. I prefer to keep them all in the same layout.jsp but I'm using jboss-3.2.0 with jetty and it doesn't support it that way. From what I know, only JRun currently supports that option. (Correct me if I'm wrong someone). Once you find an application server that supports both styles, however, it really becomes a matter of preference. -Tim -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 1:56 PM To: 'Struts Users Mailing List' Subject: Tiles and %@ taglib In tiles, where should I be best putting the %@ taglib uri=required lib %? Each tile jsp with its own tags or put them all in the layout JSP I use? Thanks, Erez - 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: Tiles and %@ taglib
I want to make sure I got you right. So, you mean you put in each JSP tile its required [EMAIL PROTECTED] taglibs? Erez -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 7:01 PM To: 'Struts Users Mailing List' Subject: RE: Tiles and %@ taglib That's a matter of preference and application server capabilities. I prefer to keep them all in the same layout.jsp but I'm using jboss-3.2.0 with jetty and it doesn't support it that way. From what I know, only JRun currently supports that option. (Correct me if I'm wrong someone). Once you find an application server that supports both styles, however, it really becomes a matter of preference. -Tim -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 1:56 PM To: 'Struts Users Mailing List' Subject: Tiles and %@ taglib In tiles, where should I be best putting the %@ taglib uri=required lib %? Each tile jsp with its own tags or put them all in the layout JSP I use? Thanks, Erez - 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]