RE: First try using Tiles - what appends ?
Hi Cedric, I just verify : i use tomcat 3.2.3 and i have no pb with tiles examples. I think the web server can run tiles but i cant manage to run my helloword app by myself :-( I wonder what could happend cause i manage to run the same helloword app using struts template : %@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' % template:insert template='template.jsp' template:put name='title' content='Templates' direct='true'/ template:put name='header' content='header.jsp' / template:put name='body' content='helloBody.jsp'/ template:put name='menu' content='menu.jsp'/ template:put name='footer' content='footer.jsp' / /template:insert it works fine and i tried usin direct=true in my tiles app with no result. I wonder if i'll be using tile or just template... the pb with tempate and perhaps with tiles too is my menu can become larger. Can i have a scrollbar or can i use another way to see all the menu even if a node is really long? -Message d'origine- De: Cedric Dumoulin [mailto:[EMAIL PROTECTED]] Date: vendredi 11 janvier 2002 18:46 À: Struts Users Mailing List Objet: Re: First try using Tiles - what appends ? Hi Alexandre, The problem comes from the web server having some trouble to convert a String to an Object ;-(. This problem was already encountered with old web server, but it seems you use Tomcat3.2.3. I also use Tomcat 3.2.3, and all work fine for me ! Have you tried examples coming with Tiles ? Do they work for you ? Check if you really use Tomcat 3.2.3. Cedric DUPRAT Alexandre wrote: Hi, I'm trying using tiles for the first time in order to mix struts-menu and tiles (or template with is similar if i understand the good way). my first try is using the classicLayout.jsp for tiles tutorial and my index page lookin like : %@ taglib uri=/WEB-INF/tiles.tld prefix=tiles % tiles:insert page=/layout/classicLayout.jsp flush=true tiles:put name=title value=My first page / tiles:put name=header value=header.jsp / tiles:put name=footer value=footer.jsp / tiles:put name=menu value=menu.jsp / tiles:put name=body value=helloBody.jsp / /tiles:insert i this exception i do not understand cause im not familiair with tiles : org.apache.jasper.compiler.CompileException: D:\Tomcat\jakarta-tomcat-3.2.3\webapps\tiles-tutor\index_tiles.jsp(3,1) Impossible de convertir une chaîne (String) à java.lang.Object pour l'attribut value at org.apache.jasper.compiler.TagBeginGenerator.convertString(TagBeginGenerator .java:268) at org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerat or.java, Compiled Code) at org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements (TagBeginGenerator.java:288) at org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java :357) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:175) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Need help if somebody ever saw such an error. Thanks in advance. Alexandre Duprat SOPRA. Direction France Sud
Re: First try using Tiles - what appends ?
The taglib directive seem to indicate that you use template, unless you have redefine it in web.xml. In this later case, in the taglib directive, change all simple quotes ' by double quote . Otherwise, Tomcat doesn't takes into account the definition from web.xml. I have already encountered this strange behavior, and correcting quotes solves it. Cedric DUPRAT Alexandre wrote: Hi Cedric, I just verify : i use tomcat 3.2.3 and i have no pb with tiles examples. I think the web server can run tiles but i cant manage to run my helloword app by myself :-( I wonder what could happend cause i manage to run the same helloword app using struts template : %@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' % template:insert template='template.jsp' template:put name='title' content='Templates' direct='true'/ template:put name='header' content='header.jsp' / template:put name='body' content='helloBody.jsp'/ template:put name='menu' content='menu.jsp'/ template:put name='footer' content='footer.jsp' / /template:insert it works fine and i tried usin direct=true in my tiles app with no result. I wonder if i'll be using tile or just template... the pb with tempate and perhaps with tiles too is my menu can become larger. Can i have a scrollbar or can i use another way to see all the menu even if a node is really long? This depends on template/layout you use. -Message d'origine- De: Cedric Dumoulin [mailto:[EMAIL PROTECTED]] Date: vendredi 11 janvier 2002 18:46 À: Struts Users Mailing List Objet: Re: First try using Tiles - what appends ? Hi Alexandre, The problem comes from the web server having some trouble to convert a String to an Object ;-(. This problem was already encountered with old web server, but it seems you use Tomcat3.2.3. I also use Tomcat 3.2.3, and all work fine for me ! Have you tried examples coming with Tiles ? Do they work for you ? Check if you really use Tomcat 3.2.3. Cedric DUPRAT Alexandre wrote: Hi, I'm trying using tiles for the first time in order to mix struts-menu and tiles (or template with is similar if i understand the good way). my first try is using the classicLayout.jsp for tiles tutorial and my index page lookin like : %@ taglib uri=/WEB-INF/tiles.tld prefix=tiles % tiles:insert page=/layout/classicLayout.jsp flush=true tiles:put name=title value=My first page / tiles:put name=header value=header.jsp / tiles:put name=footer value=footer.jsp / tiles:put name=menu value=menu.jsp / tiles:put name=body value=helloBody.jsp / /tiles:insert i this exception i do not understand cause im not familiair with tiles : org.apache.jasper.compiler.CompileException: D:\Tomcat\jakarta-tomcat-3.2.3\webapps\tiles-tutor\index_tiles.jsp(3,1) Impossible de convertir une chaîne (String) à java.lang.Object pour l'attribut value at org.apache.jasper.compiler.TagBeginGenerator.convertString(TagBeginGenerator .java:268) at org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerat or.java, Compiled Code) at org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements (TagBeginGenerator.java:288) at org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java :357) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:175) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2
First try using Tiles - what appends ?
Hi, I'm trying using tiles for the first time in order to mix struts-menu and tiles (or template with is similar if i understand the good way). my first try is using the classicLayout.jsp for tiles tutorial and my index page lookin like : %@ taglib uri=/WEB-INF/tiles.tld prefix=tiles % tiles:insert page=/layout/classicLayout.jsp flush=true tiles:put name=title value=My first page / tiles:put name=header value=header.jsp / tiles:put name=footer value=footer.jsp / tiles:put name=menu value=menu.jsp / tiles:put name=body value=helloBody.jsp / /tiles:insert i this exception i do not understand cause im not familiair with tiles : org.apache.jasper.compiler.CompileException: D:\Tomcat\jakarta-tomcat-3.2.3\webapps\tiles-tutor\index_tiles.jsp(3,1) Impossible de convertir une chaîne (String) à java.lang.Object pour l'attribut value at org.apache.jasper.compiler.TagBeginGenerator.convertString(TagBeginGenerator .java:268) at org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerat or.java, Compiled Code) at org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements (TagBeginGenerator.java:288) at org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java :357) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:175) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Need help if somebody ever saw such an error. Thanks in advance. Alexandre Duprat SOPRA. Direction France Sud. Bordeaux tel : 05 57 26 00 91 [EMAIL PROTECTED] ++ | Ce courrier ainsi que les fichiers joints sont confidentiels. | | Si vous avez recu ce courrier par erreur, veuillez en informer | | l'administrateur du systeme : [EMAIL PROTECTED] | | - | | Ce message confirme que le courrier a passe le controle| | antivirus du relais de messagerie Internet avec succes.| ++ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: First try using Tiles - what appends ?
DUPRAT == DUPRAT Alexandre [EMAIL PROTECTED] writes: DUPRAT Hi, DUPRAT I'm trying using tiles for the first time in order to mix struts-menu and DUPRAT tiles (or template with is similar if i understand the good way). DUPRAT my first try is using the classicLayout.jsp for tiles tutorial and my index DUPRAT page lookin like : DUPRAT %@ taglib uri=/WEB-INF/tiles.tld prefix=tiles % DUPRAT tiles:insert page=/layout/classicLayout.jsp flush=true DUPRAT tiles:put name=title value=My first page / DUPRAT tiles:put name=header value=header.jsp / DUPRAT tiles:put name=footer value=footer.jsp / DUPRAT tiles:put name=menu value=menu.jsp / DUPRAT tiles:put name=body value=helloBody.jsp / DUPRAT /tiles:insert DUPRAT i this exception i do not understand cause im not familiair with tiles : DUPRAT org.apache.jasper.compiler.CompileException: DUPRAT D:\Tomcat\jakarta-tomcat-3.2.3\webapps\tiles-tutor\index_tiles.jsp(3,1) DUPRAT Impossible de convertir une chaîne (String) à java.lang.Object pour DUPRAT l'attribut value I would guess you need to add 'direct=true' to the first tiles:put element. I would suggest you read the documentation. -- === David M. Karr ; Best Consulting [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: First try using Tiles - what appends ?
If the tiles taglib works in the same manner as the template taglib, then there must be an attribute to specify whether the value attribute refers to a file or a message to be displayed as is. The template taglib uses the direct attribute, set to true if you want the value to be treated as is. HTH (although it's quite vague...) olivier - Original Message - From: DUPRAT Alexandre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 11, 2002 4:06 PM Subject: First try using Tiles - what appends ? Hi, I'm trying using tiles for the first time in order to mix struts-menu and tiles (or template with is similar if i understand the good way). my first try is using the classicLayout.jsp for tiles tutorial and my index page lookin like : %@ taglib uri=/WEB-INF/tiles.tld prefix=tiles % tiles:insert page=/layout/classicLayout.jsp flush=true tiles:put name=title value=My first page / tiles:put name=header value=header.jsp / tiles:put name=footer value=footer.jsp / tiles:put name=menu value=menu.jsp / tiles:put name=body value=helloBody.jsp / /tiles:insert i this exception i do not understand cause im not familiair with tiles : org.apache.jasper.compiler.CompileException: D:\Tomcat\jakarta-tomcat-3.2.3\webapps\tiles-tutor\index_tiles.jsp(3,1) Impossible de convertir une chaîne (String) à java.lang.Object pour l'attribut value at org.apache.jasper.compiler.TagBeginGenerator.convertString(TagBeginGenerator .java:268) at org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerat or.java, Compiled Code) at org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements (TagBeginGenerator.java:288) at org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java :357) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:175) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Need help if somebody ever saw such an error. Thanks in advance. Alexandre Duprat SOPRA. Direction France Sud. Bordeaux tel : 05 57 26 00 91 [EMAIL PROTECTED] ++ | Ce courrier ainsi que les fichiers joints sont confidentiels. | | Si vous avez recu ce courrier par erreur, veuillez en informer | | l'administrateur du systeme : [EMAIL PROTECTED] | | - | | Ce message confirme que le courrier a passe le controle| | antivirus du relais de messagerie Internet avec succes.| ++ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: First try using Tiles - what appends ?
Hi Alexandre, The problem comes from the web server having some trouble to convert a String to an Object ;-(. This problem was already encountered with old web server, but it seems you use Tomcat3.2.3. I also use Tomcat 3.2.3, and all work fine for me ! Have you tried examples coming with Tiles ? Do they work for you ? Check if you really use Tomcat 3.2.3. Cedric DUPRAT Alexandre wrote: Hi, I'm trying using tiles for the first time in order to mix struts-menu and tiles (or template with is similar if i understand the good way). my first try is using the classicLayout.jsp for tiles tutorial and my index page lookin like : %@ taglib uri=/WEB-INF/tiles.tld prefix=tiles % tiles:insert page=/layout/classicLayout.jsp flush=true tiles:put name=title value=My first page / tiles:put name=header value=header.jsp / tiles:put name=footer value=footer.jsp / tiles:put name=menu value=menu.jsp / tiles:put name=body value=helloBody.jsp / /tiles:insert i this exception i do not understand cause im not familiair with tiles : org.apache.jasper.compiler.CompileException: D:\Tomcat\jakarta-tomcat-3.2.3\webapps\tiles-tutor\index_tiles.jsp(3,1) Impossible de convertir une chaîne (String) à java.lang.Object pour l'attribut value at org.apache.jasper.compiler.TagBeginGenerator.convertString(TagBeginGenerator .java:268) at org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerat or.java, Compiled Code) at org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements (TagBeginGenerator.java:288) at org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java :357) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:175) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Need help if somebody ever saw such an error. Thanks in advance. Alexandre Duprat SOPRA. Direction France Sud. Bordeaux tel : 05 57 26 00 91 [EMAIL PROTECTED] ++ | Ce courrier ainsi que les fichiers joints sont confidentiels. | | Si vous avez recu ce courrier par erreur, veuillez en informer | | l'administrateur du systeme : [EMAIL PROTECTED] | | - | | Ce message confirme que le courrier a passe le controle| | antivirus du relais de messagerie Internet avec succes.| ++ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]