Error reading tag-library: PLEASE HELP
Hi i'm getting the following error. Using tomcat3.2 Error: 500 Location: /dynamic/home/testJobs.jsp Internal Servlet Error: org.apache.jasper.compiler.CompileException: /usr/local/cmc/fe/content/en_US/dynamic/home/testJobs.jsp(0,0) Unable to open taglibrary /WEB-INF/struts-template.tld : Error reading tag-library /WEB-INF/struts-template.tld: no protocol: /usr/local/tomcat/bin at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:713) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:329) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Whats wrong
Error reading tag-library
Hi i'm getting the following error. Using tomcat3.2 Error: 500 Location: /dynamic/home/testJobs.jsp Internal Servlet Error: org.apache.jasper.compiler.CompileException: /usr/local/cmc/fe/content/en_US/dynamic/home/testJobs.jsp(0,0) Unable to open taglibrary /WEB-INF/struts-template.tld : Error reading tag-library /WEB-INF/struts-template.tld: no protocol: /usr/local/tomcat/bin at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:713) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:329) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Whats wrong
Struts behind the scene
Hi, Could somebody explain me how struts work behind the scenes. The particular case being there is template, content and the renderer. So does it create precompiled jsps or how does it work coz the very first time you render a page it's very slow Shelly
Re: Struts behind the scene
Hi, I meant like when we invoke a jsp page that is using a template to render itself, does it then take the template, insert the relevant stuff into the template and then what? Actually i'm confused too. Lets say i have a template A, renderer jsp B and a content page say C, SO are these all put together into a precompiled jsp which is then compiled and rendered or how does it all work Thanks Shelly Greg Reddin wrote: Shelly, I'm not sure I fully understand the question, but I'll give it a shot. Struts does not generate anything. You write the JSP's that Struts uses. When your JSP pages are invoked the first time, the web container (i.e. Tomcat, etc.) compiles the JSP's and renders them. That's why it is slow the first time. Hope that helps. -Original Message- From: [EMAIL PROTECTED] at INTERNET [mailto:IMCEACCMAIL-struts-user+40jakarta+2Eapache+2Eorg+20at+ 20INTERNET @alltel.com] Sent: Wednesday, August 29, 2001 2:27 PM To: [EMAIL PROTECTED] at INTERNET Subject: Struts behind the scene Hi, Could somebody explain me how struts work behind the scenes. The particular case being there is template, content and the renderer. So does it create precompiled jsps or how does it work coz the very first time you render a page it's very slow Shelly
Re: Struts behind the scene
Thanks Shelly malcolm davis wrote: To be more exact, JSP's are pre-compiled into a special servlet source (java files). The servlets are compiled into classes. There exist mechanism for pre-compiling the JSP to classes, before the first user request is received. You can find these special servlet .java files in the tomcat/work/ directory. There is no rendering mechanism per-say. In the end, the JSP/Java files write information using JspWriter class that subclasses from java.io.Writer. To me, a JSP is just another view of a Servlet, without all the ugly print statements. The reason this is important, is that you can do all those things that servlets can do, well sort of. -Original Message- From: Greg Reddin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 2:00 PM Subject: RE: Struts behind the scene Shelly, I'm not sure I fully understand the question, but I'll give it a shot. Struts does not generate anything. You write the JSP's that Struts uses. When your JSP pages are invoked the first time, the web container (i.e. Tomcat, etc.) compiles the JSP's and renders them. That's why it is slow the first time. Hope that helps. -Original Message- From: [EMAIL PROTECTED] at INTERNET [mailto:IMCEACCMAIL-struts-user+40jakarta+2Eapache+2Eorg+20at+ 20INTERNET @alltel.com] Sent: Wednesday, August 29, 2001 2:27 PM To: [EMAIL PROTECTED] at INTERNET Subject: Struts behind the scene Hi, Could somebody explain me how struts work behind the scenes. The particular case being there is template, content and the renderer. So does it create precompiled jsps or how does it work coz the very first time you render a page it's very slow Shelly
Re: URGENT: PLEASE HELP
Hi Chris, Sorry to bother you but for me it doesn't work. Below is th e snippet for my code template:insert template='testpage.jsp' template:put name='title' direct='true'HELLO/template:put /template:insert Shelly Assenza, Chris wrote: Shelly, I've cut and paste the template for one of our pages (minus a lot of extra puts). This does indeed work. template:insert template=/template.jsp template:put name=title direct=truebean:message key=acctmaint.window.title //template:put template:put name=test direct=trueHTML Text/template:put /template:insert Make sure you aren't closing the opening put tag with a slash before the content (ie. DO NOT DO: template:put name=title direct=true /html/template:put) (note the slash before html/) Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: Shelly Dhiman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 2:30 PM To: [EMAIL PROTECTED] Subject: Re: URGENT: PLEASE HELP Hi, It does not work. It complains about ending the template:put tag Shelly Assenza, Chris wrote: template:put name=abc direct=truebHello, I'm HTML in a template/b/template:put Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: Shelly Dhiman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 1:51 PM To: [EMAIL PROTECTED] Subject: URGENT: PLEASE HELP In template:put name='abc' content='' tag can we put direct html code fragment Shelly
Re: URGENT: PLEASE HELP
By the way what version of struts do you have? I have 1.0 version Shelly Assenza, Chris wrote: Shelly, I've cut and paste the template for one of our pages (minus a lot of extra puts). This does indeed work. template:insert template=/template.jsp template:put name=title direct=truebean:message key=acctmaint.window.title //template:put template:put name=test direct=trueHTML Text/template:put /template:insert Make sure you aren't closing the opening put tag with a slash before the content (ie. DO NOT DO: template:put name=title direct=true /html/template:put) (note the slash before html/) Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: Shelly Dhiman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 2:30 PM To: [EMAIL PROTECTED] Subject: Re: URGENT: PLEASE HELP Hi, It does not work. It complains about ending the template:put tag Shelly Assenza, Chris wrote: template:put name=abc direct=truebHello, I'm HTML in a template/b/template:put Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: Shelly Dhiman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 1:51 PM To: [EMAIL PROTECTED] Subject: URGENT: PLEASE HELP In template:put name='abc' content='' tag can we put direct html code fragment Shelly
Re: URGENT: PLEASE HELP
Hi, That part is working now. Can i say something like this template:insert template='testpage.jsp' template:put name='title' direct='true'htmlbHELLO/b/html/template:put /template:insert I mean insert html tags in it Shelly Shelly Dhiman wrote: Hi Chris, Sorry to bother you but for me it doesn't work. Below is th e snippet for my code template:insert template='testpage.jsp' template:put name='title' direct='true'HELLO/template:put /template:insert Shelly Assenza, Chris wrote: Shelly, I've cut and paste the template for one of our pages (minus a lot of extra puts). This does indeed work. template:insert template=/template.jsp template:put name=title direct=truebean:message key=acctmaint.window.title //template:put template:put name=test direct=trueHTML Text/template:put /template:insert Make sure you aren't closing the opening put tag with a slash before the content (ie. DO NOT DO: template:put name=title direct=true /html/template:put) (note the slash before html/) Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: Shelly Dhiman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 2:30 PM To: [EMAIL PROTECTED] Subject: Re: URGENT: PLEASE HELP Hi, It does not work. It complains about ending the template:put tag Shelly Assenza, Chris wrote: template:put name=abc direct=truebHello, I'm HTML in a template/b/template:put Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: Shelly Dhiman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 1:51 PM To: [EMAIL PROTECTED] Subject: URGENT: PLEASE HELP In template:put name='abc' content='' tag can we put direct html code fragment Shelly
Re: URGENT: PLEASE HELP
It's working Shelly Shelly Dhiman wrote: Hi, That part is working now. Can i say something like this template:insert template='testpage.jsp' template:put name='title' direct='true'htmlbHELLO/b/html/template:put /template:insert I mean insert html tags in it Shelly Shelly Dhiman wrote: Hi Chris, Sorry to bother you but for me it doesn't work. Below is th e snippet for my code template:insert template='testpage.jsp' template:put name='title' direct='true'HELLO/template:put /template:insert Shelly Assenza, Chris wrote: Shelly, I've cut and paste the template for one of our pages (minus a lot of extra puts). This does indeed work. template:insert template=/template.jsp template:put name=title direct=truebean:message key=acctmaint.window.title //template:put template:put name=test direct=trueHTML Text/template:put /template:insert Make sure you aren't closing the opening put tag with a slash before the content (ie. DO NOT DO: template:put name=title direct=true /html/template:put) (note the slash before html/) Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: Shelly Dhiman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 2:30 PM To: [EMAIL PROTECTED] Subject: Re: URGENT: PLEASE HELP Hi, It does not work. It complains about ending the template:put tag Shelly Assenza, Chris wrote: template:put name=abc direct=truebHello, I'm HTML in a template/b/template:put Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: Shelly Dhiman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 1:51 PM To: [EMAIL PROTECTED] Subject: URGENT: PLEASE HELP In template:put name='abc' content='' tag can we put direct html code fragment Shelly
building dynamic components
Hi IN our site we want to build navigation dynamically depending on what is the content in a specific area, say A on the page we are at. Now we have a main template that may be used by 50 pages. And content in the area A is different on each of these pages. Navigation has to be built from the database depending on the content in area A. How CAn i do something like this IN the template i want to say abc:leftNav(contentName), IN the renderer page(homepage.jsp) contentName=dataCard Depending on the value of contentName, navigation will be fetched from the database. Or could anyone suggest a better way to do it Shelly
BUILDING DYNAMIC COMPONENTS IN A SITE:Somebody Please reply
Hi IN our site we want to build navigation dynamically depending on what is the content in a specific area, say A on the page we are at. Now we have a main template that may be used by 50 pages. And content in the area A is different on each of these pages. Navigation has to be built from the database depending on the content in area A. How CAn i do something like this IN the template i want to say abc:leftNav(contentName), IN the renderer page(homepage.jsp) contentName=dataCard Depending on the value of contentName, navigation will be fetched from the database. BAsically want to be able to use taglibs to set attributes and read them Or could anyone suggest a better solution to this problem Shelly
Re: URGENT: PLEASE HELP
Hi, It does not work. It complains about ending the template:put tag Shelly Assenza, Chris wrote: template:put name=abc direct=truebHello, I'm HTML in a template/b/template:put Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: Shelly Dhiman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 1:51 PM To: [EMAIL PROTECTED] Subject: URGENT: PLEASE HELP In template:put name='abc' content='' tag can we put direct html code fragment Shelly
URGENT: PLEASE HELP
In template:put name='abc' content='' tag can we put direct html code fragment Shelly
Re: Problem with Placing tlds out of WEB-INF
Thanks a ton for clarification on this. Shelly Ana Narvaez Vila wrote: *.tld's are resources of your aplication so you must put it under your root directory. WEB-INF directory contains your private files, those files will not be serve to the client. If you put the files out of WEB-INF but under your root directory they will be public and visible for anyone. Java Servlet Specification v2.2 defines a Web Aplication Shelly Dhiman wrote: Hi: I would really appreciate any help on this. I want to get my tlds out of the WEB-inf directory and place all tlds in the directory 'tld' that is 4 directories below WEB-inf. So i also changed my web.xml so that taglib location for each tld was relative to docroot So if my docroot is /usr/local/test/fe/content/en_US and WEB-INF is under this. I created a tld directory in /usr/local/test/fe/tld and put all tlds in it. And my web.xml taglib taglib-uri/WEB-INF/struts.tld/taglib-uri taglib-location/../../tld/struts.tld/taglib-location /taglib I'm getting the following error. Looks like its unable to locate struts.jar. But if i craete tld directory within WEB-INF and have the web.xml look like this it works taglib taglib-uri/WEB-INF/struts.tld/taglib-uri taglib-location/WEB-INF/tld/struts.tld/taglib-location /taglib Error: 500 Location: /cmc/home/CMCBody.jsp Internal Servlet Error: org.apache.jasper.compiler.CompileException: /usr/local/cmc/fe/content/en_US/home/CMCBody.jsp(1,0) Unable to open taglibrary /WEB-INF/struts-template.tld : Could not locate TLD META-INF/taglib.tld at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:713) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Thanks for your help(in advance) Shelly -- This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Sema Group. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. --