Check Tag problem?
I used the example that came with tiles to create a site and I keep getting this error below, ERROR - Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Error - tag useAttribute : attribute 'list' not found in context. Check tag syntax at org.apache.struts.taglib.tiles.UseAttributeTag.doStartTag(UseAttributeTag.java:184) at org.apache.jsp.common.layouts.vboxLayout_jsp._jspService(org.apache.jsp.common.layouts.vboxLayout_jsp:73) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) Where do I look to check the Tag Syntax?. (I never changed it!) The only thing I have done is to move all the layout files into a common directory. (columnslayout.jsp, body.jsp, header.jsp and footer.jsp. I made sure the files are in the right location but I keep getting this error) Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LogFactory error with Struts and Tomcat
I managed to root out all old versions of java sdk and jre from my system and reinstalled 1.4.2 - it works now. Not sure exactly what was going on but glad its sorted . Thanks for the help. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation Post-Back help
I was able to fix the problem that I was having by changing my input for the action from the jsp that was being used to the action mapping. That way when the validation fails, it kicks back to the original mapping and runs through that action populating the necessary beans. That way I don't need to keep anything in session. Thanks for the help. On Fri, 31 Dec 2004 01:54:48 -, Cliff <[EMAIL PROTECTED]> wrote: > > I have faced this problem too. > > I tried to get back the previous form from the session and combine > all the field that you need. This logic will happen when validator > is finding an error and it do dynamically. So That is suitable for > all the cases in the App. > > The logic I'm using is simple. It is just cover all the null fields > from previous form which is saved in session. > > Cliff > > --- In [EMAIL PROTECTED], Daniel Kies <[EMAIL PROTECTED]> wrote: > > Greetings. I am using the Validation Framework and I am having > > problems when the validator is finding an error. When the post- > back > > kicks back to the input page, it is not finding the data that was > > previously found in the request. In order for the data to be > > available when kicked back to the calling jsp, I have to put the > data > > in the session instead of the request in the initial action. > > > > My question is this: > > What do I have to do to keep the data available in the request when > > the validator is called and errors are raised? I don't want to > have > > to put everything in the session just for validation purposes. > > > > Thanks in advance. > > > > --- > -- > > 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]
Re: LogFactory error with Struts and Tomcat
No joy. Same error. Richard Yee wrote: David, Put the commons-logging.jar in your E:\Program Files\Apache Group\Tomcat 4.1\common\lib directory. -Richard At 08:42 PM 1/1/2005, you wrote: (i tried sending this a few times from the wrong mail account - hope it only gets through once) Hi all, Apologies for this question. It is undoubtedly something fundamentally stupid on my part but I need some help. I have developed a Struts app programming with Java 1.4.2 (ie. writing my code with eclipse and java 1.4.2). I was having some problems linking eclipse to tomcat for remote debugging and after investigation noticed an earlier java version (1.4.1 was installed on another drive) was being used to run the main tomcat program. I'm sure that this conflict is pretty dodgy so I removed all traces of the 1.4.1 java from my classpath, path and Tomcat shortcuts. I uninstalled and reinstalled tomcat (not immediatlely.. but as part of due course). I'm at a point where Tomcat runs - the manager runs and Tomcat's various example apps (webdav etc) run. But when I put in the struts example .war files they give errors. Tomcat un-war's them and shows them as started applications with the appropriate display names (Struts Blank Application etc) but when I click on any of them for the first time, I get error 1 (below). If I reload the url I get error 2 (below). This hasn't happened to me before, I have installed Tomcat / struts on a few machines with no problems. I fear some residual problem with my old java version but I cannot find any traces. As an aside, if I run the tomcat app by command line and fully specify the OLD version of java, everything runs fine. my path is this: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;E:\Program Files\ATI Technologies\ATI Control Panel;E:\Program Files\Common Files\Ulead Systems\MPEG;%ANT_HOME%\bin;E:\Nokia\Tools\Nokia_Developers_Suite_for_J2ME\bin;E:\Nokia\Update_Manager\bin;E:\Nokia\Tools\Nokia_Developers_Suite_for_J2ME\Tools\Nokia_Developers_Suite_for_J2ME\bin;E:\Program Files\Apache Group\Tomcat 4.1\webapps\uscmarch\WEB-INF\lib;E:\jgenerator-2.2\bin;%JAVA_HOME%\bin my classpath is this .;E:\j2sdk1.4.2_03\jre\lib\ext\mysql-connector-java-3.0.11-stable-bin.jar;E:\j2sdk1.4.2_03\jre\lib\ext\servlet.jar;E:\j2sdk1.4.2_03\jre\lib\ext\struts.jar;E:\j2sdk1.4.2_03\jre\lib\ext\commons-dbcp-1.1.jarl;e:\jwsdp-1.3\jaxb\lib\jaxb-api.jar;e:\jwsdp-1.3\jaxb\lib\jaxb-impl.jar;e:\jwsdp-1.3\jaxb\lib\jaxb-libs.jar;e:\jwsdp-1.3\jaxb\lib\jaxb-xjc.jar;E:\Program Files\Apache Group\Tomcat 4.1\common\lib\naming-common.jar;E:\Program Files\Apache Group\Tomcat 4.1\common\lib\naming-resources.jar;E:\Program Files\Apache Group\Tomcat 4.1\common\lib\naming-factory.jar;E:\Program Files\Apache Group\Tomcat 4.1\webapps\uscmarch\WEB-INF\lib\jgen-1_3.jar;E:\jakarta-log4j-1.2.8\dist\lib\log4j-1.2.8.jar catalina home is this e:\Program Files\Apache Group\Tomcat 4.1 java home is this E:\j2sdk1.4.2_03 Any help would be much appreciated. David *ERROR 1 BELOW:* javax.servlet.ServletException: org/apache/commons/logging/LogFactory at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498) at org.apache.jsp.index_jsp._jspService(index_jsp.java:60) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) at org.apache.catalina.core.Standa
Re: (newbie) Error when installed Struts 1.2
Sudheer, Check your web.xml file. It appears that you are missing the servlet and servlet-mapping entries for the ActionServlet. action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml 1 action *.do Regards, Richard At 12:24 AM 1/2/2005, you wrote: Hi, My struts application shows the following two erros when I upgraded Struts 1.1 to 1.2. This was working fine under Struts 1.1. Also attached struts-config.xml and web.xml Please help. Thank you. Sudheer Error 1 --- type : Status report message : Servlet action is not available description : The requested resource (Servlet action is not available) is not available. Error 2 --- javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758) org.apache.jsp.general.users.login_jsp._jspService(login_jsp.java:114) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LogFactory error with Struts and Tomcat
David, Put the commons-logging.jar in your E:\Program Files\Apache Group\Tomcat 4.1\common\lib directory. -Richard At 08:42 PM 1/1/2005, you wrote: (i tried sending this a few times from the wrong mail account - hope it only gets through once) Hi all, Apologies for this question. It is undoubtedly something fundamentally stupid on my part but I need some help. I have developed a Struts app programming with Java 1.4.2 (ie. writing my code with eclipse and java 1.4.2). I was having some problems linking eclipse to tomcat for remote debugging and after investigation noticed an earlier java version (1.4.1 was installed on another drive) was being used to run the main tomcat program. I'm sure that this conflict is pretty dodgy so I removed all traces of the 1.4.1 java from my classpath, path and Tomcat shortcuts. I uninstalled and reinstalled tomcat (not immediatlely.. but as part of due course). I'm at a point where Tomcat runs - the manager runs and Tomcat's various example apps (webdav etc) run. But when I put in the struts example .war files they give errors. Tomcat un-war's them and shows them as started applications with the appropriate display names (Struts Blank Application etc) but when I click on any of them for the first time, I get error 1 (below). If I reload the url I get error 2 (below). This hasn't happened to me before, I have installed Tomcat / struts on a few machines with no problems. I fear some residual problem with my old java version but I cannot find any traces. As an aside, if I run the tomcat app by command line and fully specify the OLD version of java, everything runs fine. my path is this: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;E:\Program Files\ATI Technologies\ATI Control Panel;E:\Program Files\Common Files\Ulead Systems\MPEG;%ANT_HOME%\bin;E:\Nokia\Tools\Nokia_Developers_Suite_for_J2ME\bin;E:\Nokia\Update_Manager\bin;E:\Nokia\Tools\Nokia_Developers_Suite_for_J2ME\Tools\Nokia_Developers_Suite_for_J2ME\bin;E:\Program Files\Apache Group\Tomcat 4.1\webapps\uscmarch\WEB-INF\lib;E:\jgenerator-2.2\bin;%JAVA_HOME%\bin my classpath is this .;E:\j2sdk1.4.2_03\jre\lib\ext\mysql-connector-java-3.0.11-stable-bin.jar;E:\j2sdk1.4.2_03\jre\lib\ext\servlet.jar;E:\j2sdk1.4.2_03\jre\lib\ext\struts.jar;E:\j2sdk1.4.2_03\jre\lib\ext\commons-dbcp-1.1.jarl;e:\jwsdp-1.3\jaxb\lib\jaxb-api.jar;e:\jwsdp-1.3\jaxb\lib\jaxb-impl.jar;e:\jwsdp-1.3\jaxb\lib\jaxb-libs.jar;e:\jwsdp-1.3\jaxb\lib\jaxb-xjc.jar;E:\Program Files\Apache Group\Tomcat 4.1\common\lib\naming-common.jar;E:\Program Files\Apache Group\Tomcat 4.1\common\lib\naming-resources.jar;E:\Program Files\Apache Group\Tomcat 4.1\common\lib\naming-factory.jar;E:\Program Files\Apache Group\Tomcat 4.1\webapps\uscmarch\WEB-INF\lib\jgen-1_3.jar;E:\jakarta-log4j-1.2.8\dist\lib\log4j-1.2.8.jar catalina home is this e:\Program Files\Apache Group\Tomcat 4.1 java home is this E:\j2sdk1.4.2_03 Any help would be much appreciated. David *ERROR 1 BELOW:* javax.servlet.ServletException: org/apache/commons/logging/LogFactory at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498) at org.apache.jsp.index_jsp._jspService(index_jsp.java:60) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.
(newbie) Error when installed Struts 1.2
Hi, My struts application shows the following two erros when Iupgraded Struts 1.1 to 1.2. This was working fine underStruts 1.1. Also attached struts-config.xml and web.xml Please help. Thank you. Sudheer Error 1---type : Status report message : Servlet action is not available description : The requested resource (Servlet action is not available) is not available. Error 2--- javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758) org.apache.jsp.general.users.login_jsp._jspService(login_jsp.java:114) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]