com/opensymphony/xwork2/util/finder
Good morning, After upgrade to 2.3.20, my logs says java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/finder. Could someone tell me which libs missing or version conflict please? ERROR util.finder.ClassFinder.error:42 - Unable to read class [com.jgeppert.struts2.jquery.views.freemarker.tags.DialogModel] java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingClassVisitor at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:718) at com.opensymphony.xwork2.util.finder.ClassFinder.init(ClassFinder.java:113) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:390) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:298) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:119) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1284) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1382) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642) at java.lang.Thread.run(Thread.java:662) Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: com/opensymphony/xwork2/util/finder
On 12/11/2014 09:59 AM, Dave Newton wrote: Since there's no action servlet in Struts 2 I'm not sure why this is part of the app at all, you're using Spring security or something? Main spring action related are: . db connection management . cronjob management Jquery version: struts2-jquery-plugin-3.7.0-20131215.191645-3.jar If you think jquery caused it, could you tell me which version I should use? And I will download new version and try again. Thanks, Emi On Thu, Dec 11, 2014 at 9:56 AM, Emi Lu em...@encs.concordia.ca wrote: On 12/11/2014 09:51 AM, Dave Newton wrote: Looks like the jQuery plugin needs to be updated. Also related to springFramework? Using springFramework3.0.5. If spring causes the problem, which springFramework should be used for 2.3.20? ERROR util.finder.ClassFinder.error:42 - Unable to read class [org.springframework.web.struts.ActionServletAwareProcessor] java.lang.IncompatibleClassChangeError: class com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:718) at com.opensymphony.xwork2.util.finder.ClassFinder.init(ClassFinder.java:113) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:390) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:298) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:119) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1284) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1382) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642) On Thu, Dec 11, 2014 at 9:45 AM, Emi Lu em...@encs.concordia.ca wrote: Good morning, After upgrade to 2.3.20, my logs says java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/finder. Could someone tell me which libs missing or version conflict please? ERROR util.finder.ClassFinder.error:42 - Unable to read class [com.jgeppert.struts2.jquery.views.freemarker.tags.DialogModel] java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingClassVisitor at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:718) at com.opensymphony.xwork2
Re: com/opensymphony/xwork2/util/finder
On 12/11/2014 10:13 AM, Lukasz Lenart wrote: 2014-12-11 16:07 GMT+01:00 Emi Lu em...@encs.concordia.ca: Jquery version: struts2-jquery-plugin-3.7.0-20131215.191645-3.jar If you think jquery caused it, could you tell me which version I should use? And I will download new version and try again. Looks like, can you try with 3.7.1 version? Updated to struts2-jquery-plugin-3.7.1.jar http://mvnrepository.com/artifact/com.jgeppert.struts2.jquery/struts2-jquery-plugin/3.7.1 And here are the updated messages. Cronjob still failed (done through springConfig). Any comments? util.finder.ClassFinder.error:42 - Unable to read class [org.apache.struts.Globals] java.lang.IncompatibleClassChangeError: class com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:718) at com.opensymphony.xwork2.util.finder.ClassFinder.init(ClassFinder.java:113) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:390) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:298) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:119) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1284) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1382) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642) at java.lang.Thread.run(Thread.java:662) 2014-12-11 10:41:07,921 ERROR util.finder.ClassFinder.error:42 - Unable to read class [org.apache.struts2.Main$1] java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingClassVisitor at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:718) at com.opensymphony.xwork2.util.finder.ClassFinder.init(ClassFinder.java:113) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:390) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2
Where to download xwork-core-2.3.20-sources.jar
Good morning, Can I know where to download xwork-core-2.3.20-sources.jar please? Thanks a lot! Emi On 12/08/2014 10:37 AM, Lukasz Lenart wrote: The Apache Struts group is pleased to announce that Apache Struts 2.3.20 is available as a General Availability release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. One medium security issue was solved with this release: S2-023 Generated value of token can be predictable * http://struts.apache.org/docs/s2-023.html Besides that, this release contains several fixes and improvements just to mention few of them: - merged security fixes from version 2.3.16.1, 2.3.16.2, 2.3.16.3 - extended existing security mechanism to block access to given Java packages and Classes - collection Parameters for RedirectResult - make ParametersInterceptor supports chinese in hash key by default - themes.properties can be loaded using ServletContext allows to put template folder under WEB-INF or on classpath - new tag datetextfield - only valid Ognl expressions are cached - custom TextProvider can be used for validation errors of model driven actions - datetimepicker's label fixed - PropertiesJudge removed and properties are checked in SecurityMemberAccess - resource reloading works in IBM JVM - default reloading settings were removed from default.properties - commons-fileupload library upgraded to version 1.3.1 to fix potential security vulnerability - the scheme attribute accepts expressions in s:url tag - solves problem with infinite loop in FastByteArrayOutputStream - LocalizedTextUtil supports many ClassLoaders - Bill of Materials pom was introduced - debug=browser|console was migrated to jQuery - struts_dojo.js was fixed - interface org/apache/struts2/views/TagLibrary was restored and marked as @Depreacted and many other small improvements, please careful read the version notes. The release notes are available online at: * http://struts.apache.org/docs/version-notes-2320.html All developers are strongly advised to update existing Struts 2 applications to Struts 2.3.20! Struts 2.3.20 is available in a full distribution, or as separate library, source, example and documentation distributions, from the releases page. * http://struts.apache.org/download.cgi#struts2320 The release is also available from the central Maven repository under Group ID org.apache.struts. The 2.3.x series of the Apache Struts framework has a minimum requirement of the following specification versions: * Java Servlet 2.4 and JavaServer Pages (JSP) 2.0 * Java 2 Standard Platform Edition (J2SE) 5 Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket.appropriate, file a tracking ticket: * https://issues.apache.org/jira/browse/WW - The Apache Struts group. Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN][SECURITY] Struts 1 - CVE-2014-0114 -Mitigation Advice Available, Possible RCE Impact
Thank you very much ! Patched struts1 projects based on [2] successfully. On 05/01/2014 02:59 PM, Rene Gielen wrote: As confirmed in our last announcement, the Apache Struts 1 framework in all versions is affected by a ClassLoader manipulation vulnerability (CVE-2014-0114) similar to a recently fixed vulnerability in Struts 2 (CVE-2014-0112, CVE-2014-0094) [1]. Thanks to the efforts of Alvaro Munoz and the HP Fortify team, the Apache Struts project team can recommend a first mitigation that is relatively simple to apply. It involves the introduction of a generic Servlet filter, adding the possibility to blacklist unacceptable request parameters based on regular expressions. Please see the corresponding HP Fortify blog entry [2] for detailed instructions. The HP Fortify team also informed us that the vulnerability may be exploited for Remote Code Execution (RCE) in certain environments. Based on this information, the Apache Struts project team recommends to apply the mitigation advice *immediately* for all Struts 1 based applications. Struts 1 has had its End-Of-Life announcement more than one year ago [3]. However, in a cross project effort the Struts team is looking for a correction or an improved mitigation path. Please stay tuned for further information regarding a solution. This is a cross-list posting. If you have questions regarding this report, please direct them to secur...@struts.apache.org only. [1] http://struts.apache.org/release/2.3.x/docs/s2-021.html [2] http://h30499.www3.hp.com/t5/HP-Security-Research-Blog/Protect-your-Struts1-applications/ba-p/6463188#.U2J7xeaSxro [3] http://struts.apache.org/struts1eol-announcement.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN] Struts 2 up to 2.3.16.1: Zero-Day Exploit Mitigation (security | critical)
On 04/25/2014 10:23 AM, Lukasz Lenart wrote: You can create one abstract package and all other packages can inherit from it - the same as you inherit from tiles-default So, another way to do the change would be: package name=top extends=tiles-default . //Coding for [1] /package package name=p1 namespace=/n1 extends=top .. package name=pN namespace=/nN extends=top Is it correct? Or, if I keep extends=tiles-default, by adding interceptors(coding for [1]) to p1...pN as shown below will do the job, right? Thanks a lot! Hello List, Need your confirmation for [1] mitigation. For example, package: p1, p2... pN, for each package, I should do the following, right? Do I miss anything or is there a way that can patch one place and cover all packages instead of doing p1... PN? (a) struts1.xml package name=p1 namespace=/n1 extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types interceptors interceptor-stack name=secureDefaultStack interceptor-ref name=defaultStack param name=params.excludeParams(.*\.|^|.*|\[('|))(c|C)lass(\.|('|)]|\[).*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^action:.*,^method:.*/param /interceptor-ref /interceptor-stack /interceptors default-interceptor-ref name=secureDefaultStack / action name= .. /package .. .. (N) strutsN.xml package name=pN namespace=/nN extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types interceptors interceptor-stack name=secureDefaultStack interceptor-ref name=defaultStack param name=params.excludeParams(.*\.|^|.*|\[('|))(c|C)lass(\.|('|)]|\[).*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^action:.*,^method:.*/param /interceptor-ref /interceptor-stack /interceptors default-interceptor-ref name=secureDefaultStack / action name= .. /package On 04/24/2014 02:39 PM, Rene Gielen wrote: Yes. Am 24.04.14 19:37, schrieb em...@cse.concordia.ca: Hello List, I am using tiles-default: struts package name=Example namespace=/Action/Example extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types action name=*ProcessExampleAction method={1} class=ExampleAction result name=success type=tilessuccess_gui/result result name=ajax_check /WEB-INF/pages/errorinfo/ajax_error_check.jsp /result /action Do I need this update below as well? Thank you! On 04/24/2014 11:32 AM, Rene Gielen wrote: In Struts 2.3.16.1, an issue with ClassLoader manipulation via request parameters was supposed to be resolved. Unfortunately, the correction wasn't sufficient. A security fix release fully addressing this issue is in preparation and will be released as soon as possible. Once the release is available, all Struts 2 users are strongly recommended to update their installations. * Until the release is available, all Struts 2 users are strongly recommended to apply the mitigation described [1] * Please follow the Apache Struts announcement channels [2][3][4][5] to stay updated regarding the upcoming security release. Most likely the release will be available within the next 72 hours. Please prepare for upgrading all Struts 2 based production systems to the new release version once available. - The Apache Struts Team. [1] http://struts.apache.org/announce.html#a20140424 [2] http://struts.apache.org/mail.html [3] http://struts.apache.org/announce.html [4] https://plus.google.com/+ApacheStruts/posts [5] https://twitter.com/TheApacheStruts - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN] Struts 2 up to 2.3.16.1: Zero-Day Exploit Mitigation (security | critical)
On 04/25/2014 10:56 AM, Lukasz Lenart wrote: You can create one abstract package and all other packages can inherit from it - the same as you inherit from tiles-default So, another way to do the change would be: package name=top extends=tiles-default . //Coding for [1] /package package name=p1 namespace=/n1 extends=top .. package name=pN namespace=/nN extends=top Is it correct? This is the preferred approach Or, if I keep extends=tiles-default, by adding interceptors(coding for [1]) to p1...pN as shown below will do the job, right? Yes, but package inheriting was designed to avoid such situations - you can also inherit from many packages eg. extends=top, tiles-default http://struts.apache.org/release/2.3.x/docs/package-configuration.html#PackageConfiguration-Inheritfrommorethanonepackage Got it and make the changes below ( I do not use struts-default, so extends tiles-default): package name=top extends=tiles-default abstract=true interceptors interceptor-stack name=secureDefaultStack interceptor-ref name=defaultStack param name=params.excludeParams(.*\.|^|.*|\[('|))(c|C)lass(\.|('|)]|\[).*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^action:.*,^method:.*/param /interceptor-ref /interceptor-stack /interceptors default-interceptor-ref name=secureDefaultStack / /package Reason do two: when new libs are ready, will just remove top and keep tiles-default. package name=p1 namespace=/n1 extends=tiles-default,top .. package name=pN namespace=/nN extends=tiles-default,top If there were anything should be updated, please let me know. Otherwise, I will adopt this approach and deploy to all config files. Thank you very much! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Need help for 2.3.16
Happy new year List! Thank you very much for all of your inputs and my projects are success with 2.3.16 + jquery3.7.0. As a sum: (1) 2.3.16 + jquery3.7.0 [success] (2) 2.3.15.x + jquery3.6.x [success] (3) 2.3.15.x + jquery3.7.0 [Not acceptable] On 01/03/2014 07:10 AM, Johannes Geppert wrote: If you are using MAVEN just add the Sonatype Snapshot Repository and change the Version of your Artifact. ... repositories ... repository idsonatype.oss.snapshots/id nameSonatype OSS Snapshot Repository/name urlhttp://oss.sonatype.org/content/repositories/snapshots http://oss.sonatype.org/content/repositories/snapshots/url releasesfalse/releases snapshotstrue/snapshots /repository /repositories ... But you can also simply download it from the Maven Repository. http://oss.sonatype.org/content/repositories/snapshots/com/jgeppert/struts2/jquery/ Best Regards Johannes # web: http://www.jgeppert.com twitter: http://twitter.com/jogep 2013/12/20 Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca Hello, Please try out Struts2 jQuery Plugin Version 3.7.0-SNAPSHOT. This Version is compatible with Struts 2.3.16. The latest is shown as 3.6.1 from: http://code.google.com/p/__struts2-jquery/downloads/list http://code.google.com/p/struts2-jquery/downloads/list Can you tell me where to download struts2-jquery-plugin-3.7.0-__snapshot.jar please? Thanks a lot! ##__### web: http://www.jgeppert.com twitter: http://twitter.com/jogep - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Need help for 2.3.16
Hello, Please try out Struts2 jQuery Plugin Version 3.7.0-SNAPSHOT. This Version is compatible with Struts 2.3.16. The latest is shown as 3.6.1 from: http://code.google.com/p/struts2-jquery/downloads/list Can you tell me where to download struts2-jquery-plugin-3.7.0-snapshot.jar please? Thanks a lot! # web: http://www.jgeppert.com twitter: http://twitter.com/jogep 2013/12/11 Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca On 12/11/2013 10:29 AM, Lukasz Lenart wrote: Here you have more details http://markmail.org/message/__lvrdf7zdrhatklyh http://markmail.org/message/lvrdf7zdrhatklyh Got it. My projects depend on jquery, and I will use 2.3.15.3 for now until a new version with jquery merged is released. Thanks a lot! 2013/12/11 Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca: Good morning, Upgraded to 2.3.16, exception when start project from tomcat: ==__==__= java.lang.__ClassNotFoundException: org.apache.struts2.views.__TagLibrary org.apache.catalina.core.__StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/__struts2-jquery-plugin-3.3.3.__jar!/struts-plugin.xml:27:125 web.xml filter filter-namestruts2/filter-__name filter-classorg.apache.__struts2.dispatcher.ng.filter.__StrutsPrepareAndExecuteFilter__/filter-class init-param param-nameactionPackages/__param-name param-valueapp.action/__param-value /init-param /filter Do I miss any jars or need to change config somewhere? Thanks a lot! -- Details are: SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/__struts2-jquery-plugin-3.3.3.__jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.__Dispatcher.init(Dispatcher.__java:501) at org.apache.struts2.dispatcher.__ng.InitOperations.__initDispatcher(InitOperations.__java:74) at org.apache.struts2.dispatcher.__ng.filter.__StrutsPrepareAndExecuteFilter.__init(__StrutsPrepareAndExecuteFilter.__java:57) at org.apache.catalina.core.__ApplicationFilterConfig.__getFilter(__ApplicationFilterConfig.java:__295) at org.apache.catalina.core.__ApplicationFilterConfig.__setFilterDef(__ApplicationFilterConfig.java:__422) at org.apache.catalina.core.__ApplicationFilterConfig.init__(ApplicationFilterConfig.java:__115) at org.apache.catalina.core.__StandardContext.filterStart(__StandardContext.java:4072) at org.apache.catalina.core.__StandardContext.start(__StandardContext.java:4726) at org.apache.catalina.manager.__ManagerServlet.start(__ManagerServlet.java:1276) at org.apache.catalina.manager.__HTMLManagerServlet.start(__HTMLManagerServlet.java:625) at org.apache.catalina.manager.__HTMLManagerServlet.doGet(__HTMLManagerServlet.java:136) at javax.servlet.http.__HttpServlet.service(__HttpServlet.java:617) at javax.servlet.http.__HttpServlet.service(__HttpServlet.java:717) at org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__290) at org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206) at org.apache.catalina.filters.__CsrfPreventionFilter.doFilter(__CsrfPreventionFilter.java:194) at org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__235) at org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206) at org.apache.catalina.core.__StandardWrapperValve.invoke(__StandardWrapperValve.java:233) at org.apache.catalina.core.__StandardContextValve.invoke(__StandardContextValve.java:191) at org.apache.catalina.__authenticator.__AuthenticatorBase.invoke(__AuthenticatorBase.java:563
Need help for 2.3.16
Good morning, Upgraded to 2.3.16, exception when start project from tomcat: = java.lang.ClassNotFoundException: org.apache.struts2.views.TagLibrary org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/struts2-jquery-plugin-3.3.3.jar!/struts-plugin.xml:27:125 web.xml filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class init-param param-nameactionPackages/param-name param-valueapp.action/param-value /init-param /filter Do I miss any jars or need to change config somewhere? Thanks a lot! -- Details are: SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/struts2-jquery-plugin-3.3.3.jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) -- jars from 2.3.15.3 to 2.3.16 are: struts2-config-browser-plugin-2.3.16.jar struts2-core-2.3.16.jar struts2-dojo-plugin-2.3.16.jar struts2-dwr-plugin-2.3.16.jar struts2-json-plugin-2.3.16.jar struts2-codebehind-plugin-2.3.16.jar struts2-convention-plugin-2.3.16.jar struts2-oval-plugin-2.3.16.jar xwork-core-2.3.16.jar struts2-embeddedjsp-plugin-2.3.16.jar struts2-jasperreports-plugin-2.3.16.jar struts2-javatemplates-plugin-2.3.16.jar struts2-jfreechart-plugin-2.3.16.jar struts2-junit-plugin-2.3.16.jar struts2-pell-multipart-plugin-2.3.16.jar struts2-plexus-plugin-2.3.16.jar struts2-sitegraph-plugin-2.3.16.jar struts2-sitemesh-plugin-2.3.16.jar struts2-spring-plugin-2.3.16.jar struts2-struts1-plugin-2.3.16.jar struts2-testng-plugin-2.3.16.jar struts2-tiles3-plugin-2.3.16.jar All other jars do not change (no remove, add, update). - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Need help for 2.3.16
On 12/11/2013 10:29 AM, Lukasz Lenart wrote: Here you have more details http://markmail.org/message/lvrdf7zdrhatklyh Got it. My projects depend on jquery, and I will use 2.3.15.3 for now until a new version with jquery merged is released. Thanks a lot! 2013/12/11 Emi Lu em...@encs.concordia.ca: Good morning, Upgraded to 2.3.16, exception when start project from tomcat: = java.lang.ClassNotFoundException: org.apache.struts2.views.TagLibrary org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/struts2-jquery-plugin-3.3.3.jar!/struts-plugin.xml:27:125 web.xml filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class init-param param-nameactionPackages/param-name param-valueapp.action/param-value /init-param /filter Do I miss any jars or need to change config somewhere? Thanks a lot! -- Details are: SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/struts2-jquery-plugin-3.3.3.jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) -- jars from 2.3.15.3 to 2.3.16 are: struts2-config-browser-plugin-2.3.16.jar struts2-core-2.3.16.jar struts2-dojo-plugin-2.3.16.jar struts2-dwr-plugin-2.3.16.jar struts2-json-plugin-2.3.16.jar struts2-codebehind-plugin-2.3.16.jar struts2-convention-plugin-2.3.16.jar struts2-oval-plugin-2.3.16.jar xwork-core-2.3.16.jar struts2-embeddedjsp-plugin-2.3.16.jar struts2-jasperreports-plugin-2.3.16.jar struts2-javatemplates-plugin-2.3.16.jar struts2-jfreechart-plugin-2.3.16.jar struts2-junit-plugin-2.3.16.jar struts2-pell-multipart-plugin-2.3.16.jar struts2-plexus-plugin-2.3.16.jar struts2-sitegraph-plugin-2.3.16.jar struts2-sitemesh-plugin-2.3.16.jar struts2-spring-plugin-2.3.16.jar struts2-struts1-plugin-2.3.16.jar struts2-testng-plugin-2.3.16.jar struts2-tiles3-plugin-2.3.16.jar All other jars do not change (no remove, add, update
Re: Action failed for Struts 2.3.15.3 GA release
On 10/21/2013 07:03 PM, Greg Lindholm wrote: If you use struts.mapper.action.prefix.enabled to enable action: prefix support are you opening up a security whole? What is the liability? No comments from users. Could consider no security issues, I guess? On Fri, Oct 18, 2013 at 12:28 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/10/18 Emi Lu em...@encs.concordia.ca: Good morning, Tried the new version15.3, but failed: login() method is not called at all. (1) login.jsp s:submit value=Login theme=simple action=loginProcessLoginAction / Struts 2.3.15.3 disables support for action: prefix by default [1], to enable it you must set struts.mapper.action.prefix.enabled to true. Instead action: you can use method: prefix (but you must enable struts.enable.DynamicMethodInvocation to true [2]) [1] http://struts.apache.org/release/2.3.x/docs/s2-018.html [2] http://struts.apache.org/release/2.3.x/docs/s2-019.html Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Action failed for Struts 2.3.15.3 GA release
Good morning, Tried the new version15.3, but failed: login() method is not called at all. (1) login.jsp s:submit value=Login theme=simple action=loginProcessLoginAction / (2) ProcessLoginAction.java public class ProcessLoginAction extends ActionSupport { private static final long serialVersionUID = -2334484448186776413L; public String login() throws Exception { .. return SUCCESS; } } (3) web.xml == filter filter-nameResponseOverrideFilter/filter-name filter-classorg.displaytag.filter.ResponseOverrideFilter/filter-class /filter filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern*.action/url-pattern /filter-mapping filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern*.jsp/url-pattern /filter-mapping filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class init-param param-nameactionPackages/param-name param-valueaction/param-value /init-param /filter filter-mapping filter-nameAuthenticatedFilter/filter-name url-pattern/Action/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping ... listener listener-classorg.springframework.web.util.Log4jConfigListener/listener-class /listener listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener ... listener listener-class org.apache.struts2.tiles.StrutsTilesListener /listener-class /listener (4) libs used shown in the attached libs.txt file === (5) struts.xml === package name=Login namespace=/Login extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types action name=*ProcessLoginAction method={1} class=ProcessLoginAction result name=success type=tileslogin_main_page/result .. /action . Can someone help why login() method is not called ? Thanks a lot! Emi antlr-2.7.7.jar hamcrest-core-1.3.jar slf4j-log4j12-1.7.5-sources.jar spring-jms-3.2.0.RELEASE-javadoc.jar struts2-dwr-plugin-2.3.15.3.jar aopalliance-1.0.jar hibernate-commons-annotations-4.0.1.Final.jar spring-aop-3.2.0.RELEASE.jar spring-jms-3.2.0.RELEASE-sources.jar struts2-embeddedjsp-plugin-2.3.15.3.jar aopalliance-alpha1.jar hibernate-core-4.2.1.Final.jar spring-aop-3.2.0.RELEASE-javadoc.jar spring-orm-3.2.0.RELEASE.jar struts2-jasperreports-plugin-2.3.15.3.jar asm-3.3.1.jar hibernate-core-4.3.0.Beta2.jar spring-aop-3.2.0.RELEASE-sources.jar spring-orm-3.2.0.RELEASE-javadoc.jar struts2-javatemplates-plugin-2.3.15.3.jar asm-4.0_RC1.jar hibernate-jpa-2.1-api-1.0.0.Draft-16.jar spring-aspects-3.2.0.RELEASE.jar spring-orm-3.2.0.RELEASE-sources.jar struts2-jfreechart-plugin-2.3.15.3.jar asm-commons-3.3.jar itextpdf-5.2.1.jar spring-aspects-3.2.0.RELEASE-javadoc.jar spring-oxm-3.2.0.RELEASE.jar struts2-jquery-plugin-3.3.3.jar asm-tree-3.3.jar itextpdf-5.2.1-sources.jar spring-aspects-3.2.0.RELEASE-sources.jar spring-oxm-3.2.0.RELEASE-javadoc.jar struts2-json-plugin-2.3.15.3.jar cglib-2.2.2.jar jandex-1.1.0.Alpha1.jar spring-beans-3.2.0.RELEASE.jar spring-oxm-3.2.0.RELEASE-sources.jar struts2-junit-plugin-2.3.15.3.jar cglib-src-2.2.2.jar javassist-3.16.1-GA.jar spring-beans-3.2.0.RELEASE-javadoc.jar spring-struts-3.2.0.RELEASE.jar struts2-oval-plugin-2.3.15.3.jar classworlds-1.1.jar jboss-logging-3.1.0.GA.jar spring-beans-3.2.0.RELEASE-sources.jar spring-struts-3.2.0.RELEASE-javadoc.jar struts2-pell-multipart-plugin-2.3.15.3.jar commons-beanutils-1.8.3.jar jboss-transaction-api_1.2_spec-1.0.0.Alpha1.jar spring-context-3.2.0.RELEASE.jar spring-struts-3.2.0.RELEASE-sources.jar struts2-plexus-plugin-2.3.15.3.jar commons-chain-1.2.jar jstl-api-1.2.jar spring-context-3.2.0.RELEASE-javadoc.jar spring-test-3.2.0.RELEASE.jar struts2-sitegraph-plugin-2.3.15.3.jar commons-collections-3.2.1.jar juli-6.0.18.jar spring-context-3.2.0.RELEASE-sources.jar spring-test-3.2.0.RELEASE-javadoc.jar struts2-sitemesh-plugin-2.3.15.3.jar commons-dbcp-1.4.jar junit-4.11.jar spring-context-support-3.2.0.RELEASE.jar spring-test-3.2.0.RELEASE-sources.jar struts2-spring-plugin-2.3.15.3.jar commons-digester-2.0.jar junit-4.11-sources.jar spring-context-support-3.2.0.RELEASE-javadoc.jar spring-tx-3.2.0.RELEASE.jar struts2-struts1-plugin-2.3.15.3.jar commons-digester3-3.0.jar lib_to_removespring-context-support-3.2.0.RELEASE-sources.jar spring-tx-3.2.0.RELEASE-javadoc.jar
Re: Action failed for Struts 2.3.15.3 GA release
One more comment: = Tiles 3.0.1 is used in the new struts package, but it will cause java.lang.NoClassDefFoundError: org/apache/tiles/web/startup/TilesListener exception. So, I could only use 2.2.2.2. login() method is not called in the action class - this is the problem. Any help? Good morning, Tried the new version15.3, but failed: login() method is not called at all. (1) login.jsp s:submit value=Login theme=simple action=loginProcessLoginAction / (2) ProcessLoginAction.java public class ProcessLoginAction extends ActionSupport { private static final long serialVersionUID = -2334484448186776413L; public String login() throws Exception { .. return SUCCESS; } } (3) web.xml == filter filter-nameResponseOverrideFilter/filter-name filter-classorg.displaytag.filter.ResponseOverrideFilter/filter-class /filter filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern*.action/url-pattern /filter-mapping filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern*.jsp/url-pattern /filter-mapping filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class init-param param-nameactionPackages/param-name param-valueaction/param-value /init-param /filter filter-mapping filter-nameAuthenticatedFilter/filter-name url-pattern/Action/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping ... listener listener-classorg.springframework.web.util.Log4jConfigListener/listener-class /listener listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener ... listener listener-class org.apache.struts2.tiles.StrutsTilesListener /listener-class /listener (4) libs used shown in the attached libs.txt file === (5) struts.xml === package name=Login namespace=/Login extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types action name=*ProcessLoginAction method={1} class=ProcessLoginAction result name=success type=tileslogin_main_page/result .. /action . Can someone help why login() method is not called ? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Action failed for Struts 2.3.15.3 GA release
On 10/18/2013 12:28 PM, Lukasz Lenart wrote: 2013/10/18 Emi Lu em...@encs.concordia.ca: Good morning, Tried the new version15.3, but failed: login() method is not called at all. (1) login.jsp s:submit value=Login theme=simple action=loginProcessLoginAction / Struts 2.3.15.3 disables support for action: prefix by default [1], to enable it you must set struts.mapper.action.prefix.enabled to true. Instead action: you can use method: prefix (but you must enable struts.enable.DynamicMethodInvocation to true [2]) [1] http://struts.apache.org/release/2.3.x/docs/s2-018.html [2] http://struts.apache.org/release/2.3.x/docs/s2-019.html Thank you very much for your help! Here are what I tried: (1) Success version (struts2.3.15.3 + tiles2.2.2 ) struts.xml constant name=struts.enable.DynamicMethodInvocation value=true/ constant name=struts.mapper.action.prefix.enabled value=true/ web.xml === listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class (2) Failed version(struts2.3.15.3 + tiles3.0.1) struts.xml constant name=struts.enable.DynamicMethodInvocation value=true/ constant name=struts.mapper.action.prefix.enabled value=true/ web.xml === listener-classorg.apache.tiles.extras.complete.CompleteAutoloadTilesListener/listener-class struts-login.xml == package name=Login namespace=/Login extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types action name=*ProcessLoginAction method={1} class=ProcessLoginAction result name=success type=tileslogin_main_page/result result name=error type=tileslogin_main_page/result result name=main_menu type=redirectAction param name=actionNameProcessMenuAction/param param name=namespace/Menu/param /result result name=ajax_check /WEB-INF/pages/errorinfo/ajax_error_check.jsp /result /action .. Got the following exception: java.lang.NoSuchMethodError: org.apache.tiles.access.** TilesAccess.getContainer(**Ljava/lang/Object;)Lorg/** apache/tiles/TilesContainer; at org.apache.struts2.views.**tiles.TilesResult.doExecute(** TilesResult.java:100) at org.apache.struts2.dispatcher.**StrutsResultSupport.execute(** StrutsResultSupport.java:186) at com.opensymphony.xwork2.**DefaultActionInvocation.** executeResult(**DefaultActionInvocation.java:**371) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**275) at org.apache.struts2.**interceptor.debugging.** DebuggingInterceptor.**intercept(**DebuggingInterceptor.java:256) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**interceptor.** DefaultWorkflowInterceptor.**doIntercept(**DefaultWorkflowInterceptor.** java:167) at com.opensymphony.xwork2.**interceptor.** MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**validator.**ValidationInterceptor.** doIntercept(**ValidationInterceptor.java:**265) at org.apache.struts2.**interceptor.validation.** AnnotationValidationIntercepto**r.doIntercept(** AnnotationValidationIntercepto**r.java:68) at com.opensymphony.xwork2.**interceptor.** MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**interceptor.** ConversionErrorInterceptor.**intercept(**ConversionErrorInterceptor.** java:138) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**interceptor.**ParametersInterceptor.* *doIntercept(**ParametersInterceptor.java:**239) at com.opensymphony.xwork2.**interceptor.** MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**interceptor.**ParametersInterceptor.* *doIntercept(**ParametersInterceptor.java:**239) at com.opensymphony.xwork2.**interceptor.** MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**interceptor.** StaticParametersInterceptor.**intercept(**StaticParametersInterceptor.** java:191
Re: [ANN] Struts 2.3.15.2 GA release available - security fix
Good morning, Upgraded from 2.3.15.1 to 15.2, but s:submit problem: (1) jsp: s:form name= loginForm namespace= /Login action = ProcessLoginAction method = post theme=simple s:submit value=Login theme=simple action=loginProcessLoginAction / --- never call loginProcessLoginAction (2) struts.xml package name=Login namespace=/Login extends=tiles-default action name=*ProcessLoginAction method={1} class=ProcessLoginAction result name=success type=tilesmain_menu/result result name=ajax_check /WEB-INF/pages/errorinfo/ajax_error_check.jsp /result /action (3) ProcessLoginAction.java public String login() throws Exception { try { .. }catch(Exception e) { log.error(login Error: + e.getMessage()); log.error(e); this.addActionError(login Error: + e.getMessage()); } return success; } The problem is that loginProcessLoginAction in jsp page is never be called. Could you help? Thanks, Emi On 09/21/2013 12:06 PM, Lukasz Lenart wrote: The Apache Struts group is pleased to announce that Struts 2.3.15.2 is available as a General Availability release.The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. This release includes important security fixes: - S2-018 - Broken Access Control Vulnerability in Apache Struts2 - S2-019 - Dynamic Method Invocation disabled by default All developers are strongly advised to update existing Struts 2 applications to Struts 2.3.15.2 Struts 2.3.15.2 is available in a full distribution, or as separate library, source, example and documentation distributions, from the releases page. * http://struts.apache.org/download.cgi#struts23152 The release is also available from the central Maven repository under Group ID org.apache.struts. The 2.3.x series of the Apache Struts framework has a minimum requirement of the following specification versions: * Java Servlet 2.4 and JavaServer Pages (JSP) 2.0 * Java 2 Standard Platform Edition (J2SE) 5 The release notes are available online at: * http://struts.apache.org/release/2.3.x/docs/version-notes-23152.html Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket.appropriate, file a tracking ticket: * https://issues.apache.org/jira/browse/WW - The Apache Struts group. Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN] Struts 2.3.15.2 GA release available - security fix
On 09/23/2013 10:38 AM, Volker Krebs wrote: Am 23.09.2013 16:23, schrieb Emi Lu: Good morning, Upgraded from 2.3.15.1 to 15.2, but s:submit problem: (1) jsp: s:form name= loginForm namespace= /Login action = ProcessLoginAction method = post theme=simple s:submit value=Login theme=simple action=loginProcessLoginAction / --- never call loginProcessLoginAction (2) struts.xml package name=Login namespace=/Login extends=tiles-default action name=*ProcessLoginAction method={1} class=ProcessLoginAction result name=success type=tilesmain_menu/result result name=ajax_check /WEB-INF/pages/errorinfo/ajax_error_check.jsp /result /action (3) ProcessLoginAction.java public String login() throws Exception { try { .. }catch(Exception e) { log.error(login Error: + e.getMessage()); log.error(e); this.addActionError(login Error: + e.getMessage()); } return success; } The problem is that loginProcessLoginAction in jsp page is never be called. Could you help? Thanks, Emi We have the same Problem. This relates to http://struts.apache.org/release/2.3.x/docs/s2-018.html But there it says Backward Compatibility After upgrading to Struts = 2.3.15.2, applications using the action: should still work as expected. I'm still trying to figure out what exactly the problem is. I don't like this Security through obscurity approach. The document does not say what 15.2 does not support related to s:submit action=loginAction in struts.xml. What causing cannot do action anymore? How to fix it ? Thanks a lot! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
JSP read value from ActionForm
Hello, May I know how to read a parameter value in JSP page for the following situation please? (1) Struts2Action.java ... String list_size = list.size(); ... getter/setter for list_size (2) result.jsp s:select ... size = %= list_size% / Is there a simple way to assign Struts2Action.list_size to s:select.size filed in the result.jsp file? Thanks a lot! EL - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
FKerberos + struts2 + SpringMVC
Hello, Could someone provide an example or online document about how struts2 + kerberos + tomcat7 + SpringFramework SSO login model works? E.g., == (1) User login to windows/unix within local network (2) Open: https://www.local_network_webapp1.com https://www.local_network_webapp2.com ... https://www.local_network_webappN.com Users have already login in (1). So, instead of going to login page, all weblinks in (2) show main menu page directly. Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Kerberos + struts2 + SpringMVC
Hello, Could someone provide an example or online document about how struts2 + kerberos + tomcat7 + SpringFramework SSO login model works? E.g., == (1) User login to windows/unix within local network (2) Open: https://www.local_network_webapp1.com https://www.local_network_webapp2.com ... https://www.local_network_webappN.com Users have already login in (1). So, instead of going to login page, all weblinks in (2) show main menu page directly. Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
how to generate TD title=tipinfo by display:column
Hello, May I know how to generate TD title=tipinfo here by using display:column please? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how to generate TD title=tipinfo by display:column
I believe so. I guess dislaytag is the simplest way to do struts2 pagination, is it right? Or there is a better way for struts2 pagination? E.g., http://www.simplecodestuffs.com/pagination-example-in-struts-2/ Thanks a lot, Emi On 04/30/2013 02:19 PM, Chris Pratt wrote: I think you're looking for the DisplayTag mailing list. Try looking at their documentation at http://displaytag.sourceforge.net/11/index.html and try their mailing list if you can't find the information there. (*Chris*) On Tue, Apr 30, 2013 at 11:10 AM, Dave Newton davelnew...@gmail.com mailto:davelnew...@gmail.com wrote: What's `display:column`? Dave On Tue, Apr 30, 2013 at 1:34 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello, May I know how to generate TD title=tipinfo here by using display:column please? Thanks a lot! Emi --**--**- To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org http://apache.orguser-unsubscr...@struts.apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- e: davelnew...@gmail.com mailto:davelnew...@gmail.com m: 908-380-8699 tel:908-380-8699 s: davelnewton_skype t: @dave_newton https://twitter.com/dave_newton b: Bucky Bits http://buckybits.blogspot.com/ g: davelnewton https://github.com/davelnewton so: Dave Newton http://stackoverflow.com/users/438992/dave-newton -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN] Struts 2.3.12 GA release available
Good morning list, To share with you the updates that I did for more than 300 jsp pages, in the new version, required=false has be removed. s:select name=search_info list=list_vlb listKey=bean_value listValue=bean_label multiple=true required=false -need to be removed!!! theme=simple size=6 cssStyle=color:#6677AA;font-weight:bold; / The highlighted red border is good. But it seems that required=false and required=true returns the same warning message now :-( All for now. Emi On 03/15/2013 04:16 AM, Lukasz Lenart wrote: The Apache Struts group is pleased to announce that Struts 2.3.12 is available as a General Availability release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. All developers are strongly advised to update existing Struts 2 applications to Struts 2.3.12. Struts 2.3.12 is available in a full distribution, or as separate library, source, example and documentation distributions, from the releases page. * http://struts.apache.org/download.cgi#struts2312 The release is also available from the central Maven repository under Group ID org.apache.struts. The 2.3.x series of the Apache Struts framework has a minimum requirement of the following specification versions: * Java Servlet 2.4 and JavaServer Pages (JSP) 2.0 * Java 2 Standard Platform Edition (J2SE) 5 The release notes are available online at: * http://struts.apache.org/development/2.x/docs/version-notes-2312.html Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket.appropriate, file a tracking ticket: * https://issues.apache.org/jira/browse/WW - The Apache Struts group. Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts1 struts2 used in the same web application.
Hello list, May I know is it possible that struts1 + struts2 can be configured and run in the same web application please? If allowed, could someone suggest/provide struts.xml + web.xml + spring-configure.xml examples please? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Java security issue vs. struts?
Thank you Chris. Moreover, if I call jfreechart to generate reports through web applications, it will not be affected, I believe? As long as you do not use Applets to output JFreechart data you should be fine (saying: if you generate images with JFreechart) (1) My jsp: img src=jfreechart_reportProcessReport.action (2) struts.xml action name=jfreechart_reportProcessReport method=jfreechart_report class=ProcessReport result name=success type=chart param name=chartchart/param param name=width1000/param param name=height500/param /result /action (3) My struts java action class (server side): do: ChartFactory.createBarChart3D(){... ...} As a result, due to (1) ~(3) I am safe I believe. Thanks a lot for all your comments! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Java security issue vs. struts?
Hello Martin, I did not find bug report under struts JIRA related to jfreechart. More details about how I use jfreechart: (1) jsp img src=.action (2) JAVA Action class, generated jsp (3) struts.xml specify img size Hope this info will help others have the same concern :-) Bon week-end! Emi On 01/16/2013 05:39 PM, Martin Gainty wrote: Hi Chris This issue came up on another apache users list I believe there was open access issue to Remote Context Object by OGNL (but i think Lukasz or Dave addressed the issue)..emi..did you see this in Struts Jira? Bon chance, Martin __ Note de déni et de confidentialitéCe message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Original Message Subject: Re: Java security issue vs. struts? Date: Fri, 18 Jan 2013 12:00:31 -0500 From: Emi Lu em...@encs.concordia.ca Reply-To: em...@encs.concordia.ca To: Christian Grobmeier grobme...@gmail.com CC: Struts Users Mailing List user@struts.apache.org, Chris Pratt thechrispr...@gmail.com Thank you Chris. Moreover, if I call jfreechart to generate reports through web applications, it will not be affected, I believe? As long as you do not use Applets to output JFreechart data you should be fine (saying: if you generate images with JFreechart) (1) My jsp: img src=jfreechart_reportProcessReport.action (2) struts.xml action name=jfreechart_reportProcessReport method=jfreechart_report class=ProcessReport result name=success type=chart param name=chartchart/param param name=width1000/param param name=height500/param /result /action (3) My struts java action class (server side): do: ChartFactory.createBarChart3D(){... ...} As a result, due to (1) ~(3) I am safe I believe. Thanks a lot for all your comments! Emi mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Java security issue vs. struts?
Hello, Does someone know how this java security issue related to struts framework? http://www.oracle.com/technetwork/topics/security/alert-cve-2013-0422-1896849.html Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Java security issue vs. struts?
On 01/16/2013 04:54 PM, Emi Lu wrote: Hello, Does someone know how this java security issue related to struts framework? http://www.oracle.com/technetwork/topics/security/alert-cve-2013-0422-1896849.html One more link: http://nakedsecurity.sophos.com/2013/01/15/disable-java-browsers-homeland-security/ For example, would struts2-jfreechart considered as java-app run through web browser? Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Java security issue vs. struts?
On 01/16/2013 05:02 PM, Chris Pratt wrote: I believe the description says it all. This Security Alert addresses security issues CVE-2013-0422 (US-CERT Alert TA13-010A - Oracle Java 7 Security Manager Bypass Vulnerability) and another vulnerability affecting Java running in web browsers. *These vulnerabilities are not applicable to Java running on servers,* standalone Java desktop applications or embedded Java applications. They also do not affect Oracle server-based software. Thank you Chris. Moreover, if I call jfreechart to generate reports through web applications, it will not be affected, I believe? Emi On Wed, Jan 16, 2013 at 1:54 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello, Does someone know how this java security issue related to struts framework? http://www.oracle.com/__technetwork/topics/security/__alert-cve-2013-0422-1896849.__html http://www.oracle.com/technetwork/topics/security/alert-cve-2013-0422-1896849.html Thanks a lot! Emi --__--__- To unsubscribe, e-mail: user-unsubscribe@struts.__apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
put ArrayList to s:hidden in jsp?
Good morning, Is there a way to put hidden ArrayList in JSP please? For example in a.jsp: s:hidden name=abean.arraylist1 / In action java class: private ArrayListBean2arraylist1 ; So that abean.arraylist1 could be retrieved by action java class. Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
put ArrayList to s:hidden in jsp?
Good morning, Is there a way to put hidden ArrayList in JSP please? For example in a.jsp: s:hidden name=abean.arraylist1 / In action java class: private ArrayListBean2arraylist1 ; So that abean.arraylist1 could be retrieved by action java class. Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts2.3.1.2 exception
.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2.3.1.2 exception
Thank you everyone! The problem is fixed. ognl3.0.4 is a must and can be the only ognl jar! The following are some background info: == . struts2.3.1.1 allows ognl3.0.2.jar + ognl3.0.2-source.jar + ognl3.0.1 at the same time . struts2.3.1.2 can only have ognl3.0.4, but remove other versions . user@struts.apache.org is very slow! I already got the author's replay but my question has not been shown in the mailing list yet! - still a very helpful list and i got almost got 100% answer for each my question :-) Happy new year all! Emi On 01/24/2012 03:08 PM, Dave Newton wrote: How did you upgrade? Looks like the wrong version of OGNL. On Tue, Jan 24, 2012 at 11:16 AM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Good morning, Upgraded to struts2.3.1.2, but got the following exception. Could someone tell me which jar I missed please? thanks a lot! Emi java.lang.NoSuchMethodError: ognl.SimpleNode.isEvalChain(__Lognl/OgnlContext;)Z at com.opensymphony.xwork2.ognl.__OgnlUtil.isEvalExpression(__OgnlUtil.java:223) at com.opensymphony.xwork2.ognl.__OgnlUtil.setValue(OgnlUtil.__java:214) at com.opensymphony.xwork2.ognl.__OgnlValueStack.trySetValue(__OgnlValueStack.java:186) at com.opensymphony.xwork2.ognl.__OgnlValueStack.setValue(__OgnlValueStack.java:173) at com.opensymphony.xwork2.ognl.__OgnlValueStack.setParameter(__OgnlValueStack.java:151) at com.opensymphony.xwork2.__interceptor.__ParametersInterceptor.__setParameters(__ParametersInterceptor.java:__292) at com.opensymphony.xwork2.__interceptor.__ParametersInterceptor.__doIntercept(__ParametersInterceptor.java:__203) at com.opensymphony.xwork2.__interceptor.__MethodFilterInterceptor.__intercept(__MethodFilterInterceptor.java:__98) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__ParametersInterceptor.__doIntercept(__ParametersInterceptor.java:__211) at com.opensymphony.xwork2.__interceptor.__MethodFilterInterceptor.__intercept(__MethodFilterInterceptor.java:__98) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__StaticParametersInterceptor.__intercept(__StaticParametersInterceptor.__java:190) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at org.apache.struts2.__interceptor.__MultiselectInterceptor.__intercept(__MultiselectInterceptor.java:__75) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at org.apache.struts2.__interceptor.__CheckboxInterceptor.intercept(__CheckboxInterceptor.java:90) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at org.apache.struts2.__interceptor.__FileUploadInterceptor.__intercept(__FileUploadInterceptor.java:__243) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__ModelDrivenInterceptor.__intercept(__ModelDrivenInterceptor.java:__100) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__ScopedModelDrivenInterceptor.__intercept(__ScopedModelDrivenInterceptor.__java:141) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__ChainingInterceptor.intercept(__ChainingInterceptor.java:145) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__PrepareInterceptor.__doIntercept(__PrepareInterceptor.java:171) at com.opensymphony.xwork2.__interceptor.__MethodFilterInterceptor.__intercept(__MethodFilterInterceptor.java:__98) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.I18nInterceptor.__intercept(I18nInterceptor.__java:176) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at org.apache.struts2.__interceptor.__ServletConfigInterceptor.__intercept(__ServletConfigInterceptor.java:__164) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke
Will xwork-core-2.2.3.1.jar works for commons-lang3-3.1.jar
Hello, I remembered that xwork2.2.3 does not support commons-lang3-3.0.1.jar, so use commons-lang-2.6.jar. Apache just published a new version lang jar. Does someone know for this newer version, will xwork-core-2.2.3.1.jar + common_lang_3.1 work together? Thanks a lot! Emi On 11/15/2011 04:02 PM, Henri Yandell wrote: The Apache Commons team is pleased to announce the release of Commons Lang 3.1. A list of the 8 changes and 5 bug fixes in this release are found in the release notes: https://commons.apache.org/lang/changes-report.html#a3.1 For general information on Commons Lang please visit the Lang website: http://commons.apache.org/lang/ The latest version may be downloaded from the following page: http://commons.apache.org/lang/download_lang.cgi For advice on upgrading from 2.x to 3.x, see the following page: http://commons.apache.org/lang/article3_0.html Thanks again to all involved in the release, both Commons users and Commons developers. Hen on behalf of the Apache Commons community -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Will xwork-core-2.2.3.1.jar works for commons-lang3-3.1.jar
On 11/17/2011 03:04 PM, Emi Lu wrote: Hello, I remembered that xwork2.2.3 does not support commons-lang3-3.0.1.jar, so use commons-lang-2.6.jar. Just want to remind the reason: depend on “org/apache/commons/lang/StringUtils”; while the new jar shows “org/apache/commons/lang3/StringUtils” Apache just published a new version lang jar. Does someone know for this newer version, will xwork-core-2.2.3.1.jar + common_lang_3.1 work together? For new version, does struts team use the new lang jar? Emi On 11/15/2011 04:02 PM, Henri Yandell wrote: The Apache Commons team is pleased to announce the release of Commons Lang 3.1. A list of the 8 changes and 5 bug fixes in this release are found in the release notes: https://commons.apache.org/lang/changes-report.html#a3.1 For general information on Commons Lang please visit the Lang website: http://commons.apache.org/lang/ The latest version may be downloaded from the following page: http://commons.apache.org/lang/download_lang.cgi For advice on upgrading from 2.x to 3.x, see the following page: http://commons.apache.org/lang/article3_0.html Thanks again to all involved in the release, both Commons users and Commons developers. Hen on behalf of the Apache Commons community -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:textfield / Beginner question
Why do I use Struts2/Tiles/openJPA? tiles: to work with layouts struts2: the action concept and the posibility to make mapping between html and the object in my action. Same for me. openJPA: to work with database entities I use mybatis for DB queries. Just curious to know, does someone know the performance between mybatis, openJPA, etc DB process tools? Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
displaytag CSV output throw Internet Explorer cannot display webpage Exception under IE9
Hello List, I know the question is not really related to struts, and I am asking just in case, people had similar problem and has the solution. I am using struts2 + displaytag. Under IE9, for CVS display output, when mouse over the link, it shows https://website?param1=1param2=2paramN=N If there are lots of search parameters para1... N, after clicking CSV output, IE will return Internet Explorer cannot display the webpage page. And the IE tab shows ieframe.dll! Does someone know how to fix this? Note: (1) firefox works fine (2) IE works fine when only param1... param5 , but IE does not accept too many parameters!!! Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:submit onclick=return false still call the action in IE 9!
On 10/08/2011 04:40 AM, Li Ying wrote: This page may help: http://www.ontola.com/en/javascript-onclick-return-false-does-not-work-in-i Thank you Ying! I fixed the problem. It seems that ajax firefox return str !='' but and a trim is needed. while IE it returns str ==''. But IE will not accept str.trim; but have to add a trim function. Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
s:submit onclick=return false still call the action in IE 9!
Hello, s:submit onclick=return check_func(); action=ProcessAction/ Firefox, when check_func() returns false, the action will not be called. But in IE9, although check_func() returns false, the action is still be called! Does someone know how to fix this issue? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
IE open excel file directly but not save as
Hello , I know its not really struts question. But maybe someone knows the answer. IE cannot open an excel file directly (IE8,9) res.reset(); res.setHeader(Cache-Control, private, must-revalidate); res.setHeader(Pragma,private); res.setContentType(application/vnd.ms-excel); res.setHeader(Content-Disposition, inline;filename=\+ fn.xls + \;); res.setContentLength(fileData.length); res.setHeader(Content-Transfer-Encoding, binary); If I save as a file, open it, excel shows: Office File Validation detected a problem while trying to open this file. Opening it may be dangerous Then I have to click open to open it. Does someone know how to open excel file directly but not have to save as under IE please? thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: IE open excel file directly but not save as
Hi Chris, thanks a lot! I updated to : res.setHeader(Cache-Control, private); res.setHeader(Cache-Control, private, must-revalidate); res.setHeader(Pragma,private); res.setContentType(application/vnd.ms-excel); res.setHeader(Content-Disposition, inline); res.setContentLength(fileData.length); res.setHeader(Content-Transfer-Encoding, binary); IE 9 works, but IE8 still did not open the file :( Do you know how to fix the problem for IE8. Emi On 09/26/2011 01:40 PM, Chris Pratt wrote: Try removing the filename from the Content-Disposition header. inline doesn't support this attribute and maybe IE is assuming you mean external because it's there. (*Chris*) On Mon, Sep 26, 2011 at 10:30 AM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello , I know its not really struts question. But maybe someone knows the answer. IE cannot open an excel file directly (IE8,9) res.reset(); res.setHeader(Cache-Control, private, must-revalidate); res.setHeader(Pragma,__private); res.setContentType(__application/vnd.ms-excel); res.setHeader(Content-__Disposition, inline;filename=\+ fn.xls + \;); res.setContentLength(fileData.__length); res.setHeader(Content-__Transfer-Encoding, binary); If I save as a file, open it, excel shows: Office File Validation detected a problem while trying to open this file. Opening it may be dangerous Then I have to click open to open it. Does someone know how to open excel file directly but not have to save as under IE please? thanks a lot! Emi --__--__- To unsubscribe, e-mail: user-unsubscribe@struts.__apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: IE open excel file directly but not save as
All right, after so many testing with diff IE versions, here comes the trick: res.setHeader(Content-Disposition, attachment;filename=\+ test.xls + \;); inline - attachment. Emi On 09/26/2011 02:05 PM, Emi Lu wrote: Hi Chris, thanks a lot! I updated to : res.setHeader(Cache-Control, private); res.setHeader(Cache-Control, private, must-revalidate); res.setHeader(Pragma,private); res.setContentType(application/vnd.ms-excel); res.setHeader(Content-Disposition, inline); res.setContentLength(fileData.length); res.setHeader(Content-Transfer-Encoding, binary); IE 9 works, but IE8 still did not open the file :( Do you know how to fix the problem for IE8. Emi On 09/26/2011 01:40 PM, Chris Pratt wrote: Try removing the filename from the Content-Disposition header. inline doesn't support this attribute and maybe IE is assuming you mean external because it's there. (*Chris*) On Mon, Sep 26, 2011 at 10:30 AM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello , I know its not really struts question. But maybe someone knows the answer. IE cannot open an excel file directly (IE8,9) res.reset(); res.setHeader(Cache-Control, private, must-revalidate); res.setHeader(Pragma,__private); res.setContentType(__application/vnd.ms-excel); res.setHeader(Content-__Disposition, inline;filename=\+ fn.xls + \;); res.setContentLength(fileData.__length); res.setHeader(Content-__Transfer-Encoding, binary); If I save as a file, open it, excel shows: Office File Validation detected a problem while trying to open this file. Opening it may be dangerous Then I have to click open to open it. Does someone know how to open excel file directly but not have to save as under IE please? thanks a lot! Emi --__--__- To unsubscribe, e-mail: user-unsubscribe@struts.__apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Share my Struts2 + displaytag note
Hello, To share struts2 + displaytag example: (1) Action1 to browse display all records - a.jsp (2) Button send-all in a.jsp (3) Click send-all If send-all action in Action1.java, displagtag next page will call send-all again So, send-all action should be put another Action Class. I paid for this pain :( My users get 7 mails because of this. Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Could struts2 use commons-lang3-3.0.1.jar ?
Hello, Could someone update struts*.jars to use org/apache/commons/lang3/StringUtils in commons-lang3-3.0.1.jar please? Please see https://commons.apache.org/lang/article3_0.html For struts2.2.3, if with the new lang jar, I got the following exception. Thanks a lot! Emi -- After I downloaded commons-lang.3.0.1, I got the following exceptions: java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:198) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) ... 34 more Aug 11, 2011 9:43:14 AM org.apache.catalina.core.StandardContext start - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
how to make onchange in s:select to submit a form and call a specific method in one action class
Good morning, In struts2.2.3, how to submit a form to a predefined action? For example, (1) a.jsp s:select onchange=changeProcess / (2) Process.java ... public String change() { get Form values from a.jsp database actions ... ... return a.jsp; } I'd like to know: === When values changed in s:select, how to submit the form and call change() method in Process.java Thanks lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how to make onchange in s:select to submit a form and call a specific method in one action class
Hello, The onchange attribute expects JavaScript. So you'd have to write a function to use ajax to make your request to /process_change.action. Or someone could provide more info will sj:select help satisfy the following requirement? (1) sj:select name=country onchange=to_change_region / (2) sj:select name=region onchange=to_change_city / (3) sj:select name=coutry / Actually, I prefer not to use complex javascript code to do change select1, select2 is updated, change select2, and select3 is updated. Thanks a lot! Emi In struts2.2.3, how to submit a form to a predefined action? For example, (1) a.jsp s:select onchange=changeProcess / (2) Process.java ... public String change() { get Form values from a.jsp database actions ... ... return a.jsp; } I'd like to know: === When values changed in s:select, how to submit the form and call change() method in Process.java Thanks lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
how web.xml load several tile files?
Good afternoon, Tiles2.2.2 + struts2.2.3. Web.xml = context-param param-name org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /param-name param-value /WEB-INF/tiles/t1.xml, /WEB-INF/tiles/t2.xml /param-value /context-param Only t1.xml is found; but t2.xml cannot be found. Can someone tell why? If this way does not work, how to load several tile files? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how web.xml load several tile files?
Hi Dave, Could you give an example? Emi On 07/28/2011 04:30 PM, Dave Newton wrote: Did you try the tiles list? Dave On Jul 28, 2011 4:28 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Good afternoon, Tiles2.2.2 + struts2.2.3. Web.xml = context-param param-name org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /param-name param-value /WEB-INF/tiles/t1.xml, /WEB-INF/tiles/t2.xml /param-value /context-param Only t1.xml is found; but t2.xml cannot be found. Can someone tell why? If this way does not work, how to load several tile files? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how web.xml load several tile files?
On 07/28/2011 04:36 PM, mmcken...@wernervas.com wrote: Try removing the return after t1.xml, No. That does not work! Still cannot find t2.xml! How! Emi From: Dave Newtondavelnew...@gmail.com To: Struts Users Mailing Listuser@struts.apache.org, em...@encs.concordia.ca Date: 07/28/2011 03:30 PM Subject:Re: how web.xml load several tile files? Did you try the tiles list? Dave On Jul 28, 2011 4:28 PM, Emi Luem...@encs.concordia.ca wrote: Good afternoon, Tiles2.2.2 + struts2.2.3. Web.xml = context-param param-name org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /param-name param-value /WEB-INF/tiles/t1.xml, /WEB-INF/tiles/t2.xml /param-value /context-param Only t1.xml is found; but t2.xml cannot be found. Can someone tell why? If this way does not work, how to load several tile files? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how web.xml load several tile files?
On 07/28/2011 04:36 PM, mmcken...@wernervas.com wrote: Try removing the return after t1.xml, Ok, it works. Sorry about the previous email. Hope it fix the whole thing. Thanks a lot! Strange, tile2.0.7 enter works. Anyhow, it works. Great! Emi From: Dave Newtondavelnew...@gmail.com To: Struts Users Mailing Listuser@struts.apache.org, em...@encs.concordia.ca Date: 07/28/2011 03:30 PM Subject:Re: how web.xml load several tile files? Did you try the tiles list? Dave On Jul 28, 2011 4:28 PM, Emi Luem...@encs.concordia.ca wrote: Good afternoon, Tiles2.2.2 + struts2.2.3. Web.xml = context-param param-name org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /param-name param-value /WEB-INF/tiles/t1.xml, /WEB-INF/tiles/t2.xml /param-value /context-param Only t1.xml is found; but t2.xml cannot be found. Can someone tell why? If this way does not work, how to load several tile files? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: SEVERE: Servlet.service() for servlet default threw exception, java.lang.IllegalStateException
On 07/27/2011 01:55 AM, Łukasz Lenart wrote: 2011/7/26 Emi Luem...@encs.concordia.ca: Did you try to call check_search_oprProcessAction.action directly ? And maybe it's better to JSON plugin instead of home made protocol ? I was thinking about JSON result plus jQuery. For people have similar questions, my solution for now based on ajax + jQuery is: = (1) In global tile template.jsp, added div id=ajax_error_div align=left /div (2) In script.js, defined: == function ajax_check(url) { var xmlhttp; var str = $(form).serialize(); //http://api.jquery.com/serialize/ var tmp_str = ; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject(Microsoft.XMLHTTP); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 xmlhttp.status==200) { document.getElementById(ajax_error_div).innerHTML = xmlhttp.responseText; } } xmlhttp.open(POST, url, false); xmlhttp.setRequestHeader(Content-type,application/x-www-form-urlencoded); xmlhttp.send(str); var str = document.getElementById(ajax_error_div).innerHTML; if(str == null || str.trim() == ) { return true; } return false; } (3) main_display.jsp === s:submit value=Search theme=simple onclick=return ajax_check('ajax_checkProcessAction') action=searchProcessAction / (4) struts.xml = action name=*ProcessAction method={1} class=ProcessAction result name=success type=tilesbrowse_main_page/result result name=error type=tilesbrowse_main_page/result result name=ajax_check /WEB-INF/pages/errorinfo/ajax_error_check.jsp /result /action (5) ajax_error_check.jsp == %@ taglib prefix=s uri=/struts-tags % s:if test=hasActionMessages() center div id=action_message_div style=width: 700px; border:thin solid black; background-color:#C5D1C0; padding-left: 10px; margin-bottom: 5px; align=left s:iterator value=actionMessages li Bs:property escape=false / /B /li /s:iterator /div /center /s:if s:if test=hasActionErrors() center div align=left style=width: 700px; border:thin solid black; background-color:#D0CCAE; padding-left: 10px; margin-bottom: 5px s:iterator value=actionErrors li Bs:property escape=false / /B /li /s:iterator /div /center /s:if Thank you for all inputs! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: SEVERE: Servlet.service() for servlet default threw exception, java.lang.IllegalStateException
filter-mapping filter-namestruts/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping Did you try to remove these dispatcher params ? Or add FORWARD ? I tried as well, but still got the following exceptions. The server did not die and it seems work fine. But each action returns such SEVERE exception. Why??? tomcat6 + struts2.2.3 + tiles2.2.2 + springframework3.05 + displaytag 1.2. I do need help what may cause this exception. From the outputs, I cannot see any hint! --- SEVERE: Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:819) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:519) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) --- Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: SEVERE: Servlet.service() for servlet default threw exception, java.lang.IllegalStateException
Hello, W dniu 26 lipca 2011 16:13 użytkownik Emi Luem...@encs.concordia.ca napisał: It seems that I found the problem. When I commented out ajax section onclick=return ajax_check_search_table('check_search_opr'), the error is gone. But I need ajax check support. Did you try to call check_search_oprProcessAction.action directly ? And maybe it's better to JSON plugin instead of home made protocol ? Situation is: = (1) a.jsp part1 - search form part2 = huge calculation in ActionClass.java; results are shown by using displaytag (2) Checks are needed in part1, but I need avoid calculation in part2. Moreover, a.jsp only part1 will be reloaded, but not the whole page. pa...@a.jsp calls method1 in ActionClass.java (3) JSON/jquery sj:submit seems does not support action parameter, it could not dispatch to another method, isn't ? sj:submit targets=result button=true validate=true validateFunction=customeValidation onBeforeTopics=removeErrors onSuccessTopics=removeErrors value=Submit indicator=indicator action=method1ProcessActionClass //does not dispatch! while s:submit works / Could you suggest a good way? (1) Do not reload whole jsp (2) Calculation must be done through ActionClass.java (extends ActionSupport) The calculation is through database queries, so have to be done through action class. According to the check results, display error message to users through pa...@a.jsp Only if no error return, part2 will be calculated and reloaded. Thanks alot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
SEVERE: Servlet.service() for servlet default threw exception, java.lang.IllegalStateException
Hello, I always get the following exception, does someone know why? web.xml filter filter-namestruts/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class init-param param-nameactionPackages/param-name param-valueaction/param-value /init-param /filter filter-mapping filter-namestruts/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping Thanks a lot! Emi -- SEVERE: Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:819) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:519) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: SEVERE: Servlet.service() for servlet default threw exception, java.lang.IllegalStateException
Hello, I tried dispatcher.ng.filter.StrutsPrepareAndExecuteFilter as well, but still got the following error. Could someone help? Thank you, Emi filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class init-param param-nameactionPackages/param-name param-valueaction/param-value /init-param /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping ---Exception --- org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:819) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:519) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) On 07/25/2011 04:15 PM, Emi Lu wrote: Hello, I always get the following exception, does someone know why? web.xml filter filter-namestruts/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class init-param param-nameactionPackages/param-name param-valueaction/param-value /init-param /filter filter-mapping filter-namestruts/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping Thanks a lot! Emi -- SEVERE: Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:819) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:519) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception
Hello List, I got the following exception, could someone tell me what cause it? I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + freemarker2.3.18 Thanks alot! Emi -- SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) ... 28 more Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary class:com.jgeppert.struts2.jquery.views.JqueryTagLibrary - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 30 more Caused by: Bean type interface org.apache.struts2.views.TagLibrary with the name sj has already been loaded by bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0-sources.jar!/struts-plugin.xml:27:125 - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216) ... 33 more - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception
Probably because of what the exception says; try removing the extra jar file. You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.jar and struts2-jquery-plugin-3.1.0-source.jar into the project. The system complained about this. After I remove the source jar. Compiled successfully. Normally, loaded both the .jar and the source jar should not be a problem, shouldn't it? Emi On Jul 19, 2011 12:12 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello List, I got the following exception, could someone tell me what cause it? I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + freemarker2.3.18 Thanks alot! Emi -- SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) ... 28 more Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary class:com.jgeppert.struts2.jquery.views.JqueryTagLibrary - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 30 more Caused by: Bean type interface org.apache.struts2.views.TagLibrary with the name sj has already been loaded by bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0-sources.jar!/struts-plugin.xml:27:125 - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216) ... 33 more
Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception
Probably because of what the exception says; try removing the extra jar file. You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.jar and struts2-jquery-plugin-3.1.0-source.jar into the project. The system complained about this. After I remove the source jar. Compiled successfully. Normally, loaded both the .jar and the source jar should not be a problem, shouldn't it? Emi On Jul 19, 2011 12:12 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello List, I got the following exception, could someone tell me what cause it? I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + freemarker2.3.18 Thanks alot! Emi -- SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) ... 28 more Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary class:com.jgeppert.struts2.jquery.views.JqueryTagLibrary - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 30 more Caused by: Bean type interface org.apache.struts2.views.TagLibrary with the name sj has already been loaded by bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0-sources.jar!/struts-plugin.xml:27:125 - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216) ... 33 more
Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception
Hi Chris, Depends whether the source jar contains just the source, or the source and binaries. Why do you feel the need to put the source files in the run-time directory? It just takes up more time and memory for the JVM to parse the indexes of useless jar files. To browse source codes and for simplification, I just loaded both jars into eclipse. I will probably pointing to my local source jars in eclipse. Thank you, Emi On Tue, Jul 19, 2011 at 10:57 AM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Probably because of what the exception says; try removing the extra jar file. You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.__jar and struts2-jquery-plugin-3.1.0-__source.jar into the project. The system complained about this. After I remove the source jar. Compiled successfully. Normally, loaded both the .jar and the source jar should not be a problem, shouldn't it? Emi On Jul 19, 2011 12:12 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca mailto:emilu@encs.concordia.__ca mailto:em...@encs.concordia.ca wrote: Hello List, I got the following exception, could someone tell me what cause it? I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + freemarker2.3.18 Thanks alot! Emi -- SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-__jquery-plugin-3.1.0.jar!/__struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.__Dispatcher.init(Dispatcher.__java:437) at org.apache.struts2.dispatcher.__ng.InitOperations.__initDispatcher(InitOperations.__java:69) at org.apache.struts2.dispatcher.__ng.filter.__StrutsPrepareAndExecuteFilter.__init(__StrutsPrepareAndExecuteFilter.__java:51) at org.apache.catalina.core.__ApplicationFilterConfig.__getFilter(__ApplicationFilterConfig.java:__295) at org.apache.catalina.core.__ApplicationFilterConfig.__setFilterDef(__ApplicationFilterConfig.java:__422) at org.apache.catalina.core.__ApplicationFilterConfig.init__(ApplicationFilterConfig.java:__115) at org.apache.catalina.core.__StandardContext.filterStart(__StandardContext.java:4071) at org.apache.catalina.core.__StandardContext.start(__StandardContext.java:4725) at org.apache.catalina.manager.__ManagerServlet.start(__ManagerServlet.java:1276) at org.apache.catalina.manager.__HTMLManagerServlet.start(__HTMLManagerServlet.java:625) at org.apache.catalina.manager.__HTMLManagerServlet.doGet(__HTMLManagerServlet.java:136) at javax.servlet.http.__HttpServlet.service(__HttpServlet.java:617) at javax.servlet.http.__HttpServlet.service(__HttpServlet.java:717) at org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__290) at org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206) at org.apache.catalina.filters.__CsrfPreventionFilter.doFilter(__CsrfPreventionFilter.java:186) at org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__235) at org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206) at org.apache.catalina.core.__StandardWrapperValve.invoke(__StandardWrapperValve.java:233) at org.apache.catalina.core.__StandardContextValve.invoke(__StandardContextValve.java:191) at org.apache.catalina.__authenticator.__AuthenticatorBase.invoke(__AuthenticatorBase.java:563) at org.apache.catalina.core.__StandardHostValve.invoke(__StandardHostValve.java:127) at org.apache.catalina.valves.__ErrorReportValve.invoke(__ErrorReportValve.java:102) at org.apache.catalina.core.__StandardEngineValve.invoke(__StandardEngineValve.java:109) at org.apache.catalina.connector.__CoyoteAdapter.service(__CoyoteAdapter.java:298) at org.apache.coyote.http11.__Http11Processor.process(__Http11Processor.java:859) at org.apache.coyote.http11.__Http11Protocol$__Http11ConnectionHandler.__process(Http11Protocol.java:__588
jstl.jar vs. jstl-api.jar for struts2.2.3
Hello, Could someone tell me the differences between jstl.jar vs. jstl-api.jar? It seems that jstl-api.jar cannot find: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % But from http://jstl.java.net/;, there is only jstl-api.jar. Can someone tell which jar should be used please? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: jstl.jar vs. jstl-api.jar for struts2.2.3
Hi Dave, One's an implementation, one's the api (I assume). http://jstl.java.net/ provides two jars: . jstl-api.jar . jstl-implementation.jar I thought jstl-api is the newer version of jstl.jar, no? Neither is related to Struts 2. Some app servers provide JSTL out-of-the-box, some you'll need to deploy, you shouldn't need to deploy the API jar, just the implementation. (There's also standard.jar, but I can never remember which impl that's for.) %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % standard.jar decides it! Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
addActionMessage does not show message after redirect (struts2.2.3)
Hello List, Struts2.2.3, it seems that addActionMessage does not show message after redirect. Someone knows why? Thank you, Emi Action.java this.addActionMessage(this.getText(UPDATE.SUCCESS)); return forward_str; action name=*Action method={1} class=Action result name=forward_str type=redirectAction param name=actionNameAction2/param param name=namespace/Action/param /result /action - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionMessage does not show message after redirect (struts2.2.3)
It works for 2.2.1, but the message does not shown for 2.2.3 anymore! Is it a bug? I have a lots classes depend on it. Thanks a lot! Emi On 07/12/2011 11:39 AM, Emi Lu wrote: Hello List, Struts2.2.3, it seems that addActionMessage does not show message after redirect. Someone knows why? Thank you, Emi Action.java this.addActionMessage(this.getText(UPDATE.SUCCESS)); return forward_str; action name=*Action method={1} class=Action result name=forward_str type=redirectAction param name=actionNameAction2/param param name=namespace/Action/param /result /action -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionMessage does not show message after redirect (struts2.2.3)
Hi Dave, Because it's a redirect, and things in the request go away when there's a new request. Not true for previous version. Previous version keeps the ActionMessage. Only ActionErrorMessage does not show. Only the new version does not show the message anymore after redirect, do you know why? Emi On Tue, Jul 12, 2011 at 11:39 AM, Emi Luem...@encs.concordia.ca wrote: Hello List, Struts2.2.3, it seems that addActionMessage does not show message after redirect. Someone knows why? Thank you, Emi Action.java this.addActionMessage(this.getText(UPDATE.SUCCESS)); return forward_str; action name=*Action method={1} class=Action result name=forward_str type=redirectAction param name=actionNameAction2/param param name=namespace/Action/param /result /action - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionMessage does not show message after redirect (struts2.2.3)
Thank you for all inputs! All right, I will have to change my codes. Emi On 07/12/2011 12:57 PM, stanl...@gmail.com wrote: Dave is right Emi. I have been working with other frameworks recently, and what Struts/2 needs is a simple FlashScope that allows a request to last two life-cycles. However, unless you were doing something OOTO, a request in Struts/2 lasts for one reqest/response trip. Peace, Scott On Tue, Jul 12, 2011 at 11:14 AM, Dave Newtondavelnew...@gmail.com wrote: On Tue, Jul 12, 2011 at 12:05 PM, Emi Lu wrote: Because it's a redirect, and things in the request go away when there's a new request. Not true for previous version. Previous version had a bug, then, because by default, anything relating to an action's instantiation should go away during a redirect--that's kind of the point of instantiating an action-per-request. Again, the only way this *should* be possible is by (incorrectly, IMO) using singleton actions (Bad Idea) or a scope intereptor (or equivalent). Are you using Spring? Please zip up a (maven-ized) minimal example showing the behavior; I'll change the S2 version to the two you mention and debug this--messages should *not* persist between requests. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionMessage does not show message after redirect (struts2.2.3)
On 07/12/2011 01:21 PM, Dave Newton wrote: Do you understand /why/ we're saying it? IMO it'd be beneficial to understand why you're seeing a change in behavior. There were a long discuss about this issue in several emails long time ago. I will try to find them and forwarded them to you. Users had provided reasons why addActionMessage words and why addActionError did not return the message. Emi On Jul 12, 2011 1:17 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Thank you for all inputs! All right, I will have to change my codes. Emi On 07/12/2011 12:57 PM, stanl...@gmail.com mailto:stanl...@gmail.com wrote: Dave is right Emi. I have been working with other frameworks recently, and what Struts/2 needs is a simple FlashScope that allows a request to last two life-cycles. However, unless you were doing something OOTO, a request in Struts/2 lasts for one reqest/response trip. Peace, Scott On Tue, Jul 12, 2011 at 11:14 AM, Dave Newtondavelnew...@gmail.com mailto:davelnew...@gmail.com wrote: On Tue, Jul 12, 2011 at 12:05 PM, Emi Lu wrote: Because it's a redirect, and things in the request go away when there's a new request. Not true for previous version. Previous version had a bug, then, because by default, anything relating to an action's instantiation should go away during a redirect--that's kind of the point of instantiating an action-per-request. Again, the only way this *should* be possible is by (incorrectly, IMO) using singleton actions (Bad Idea) or a scope intereptor (or equivalent). Are you using Spring? Please zip up a (maven-ized) minimal example showing the behavior; I'll change the S2 version to the two you mention and debug this--messages should *not* persist between requests. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca mailto:em...@encs.concordia.ca +1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Documentation styles missing some classes?
I think the code-section display in the 2.0.14 is better: http://struts.apache.org/2.0.14/docs/localization.html Emi On Mon, Jul 11, 2011 at 4:44 PM,struts@spamgourmet.com wrote: This could be intentional, but I believe the space.css style stylesheet lost the CSS class definition for .tipMacro. This makes the docs look a little less nice in v2.2.3 than in v2.0.14. Compare the green package heirarchy tip boxes between: http://struts.apache.org/2.0.14/docs/localization.html and http://struts.apache.org/2.2.3/docs/localization.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Call execAndWait but got NullPointerException ?
Good morning, your interceptor stack doesn't appear to be complete. By adding the following codes into struts.xml, no exception anymore. But the action page does *not* go to wait.jsp; but stays on the original action class page. interceptor name=execAndWait class=com.opensymphony.webwork.interceptor.ExecuteAndWaitInterceptor/ Do I need to explicit saying the following in struts.xml? interceptor-stack name=completeStack interceptor-ref name=prepare/ interceptor-ref name=servlet-config/ interceptor-ref name=chain/ interceptor-ref name=model-driven/ interceptor-ref name=component/ interceptor-ref name=fileUpload/ interceptor-ref name=static-params/ interceptor-ref name=params/ interceptor-ref name=conversionError/ interceptor-ref name=validation/ interceptor-ref name=workflow/ /interceptor-stack Thanks a lot! Emi Below is a code-frag from the following link: http://struts.apache.org/2.2.1/docs/execute-and-wait-interceptor.html action name=someAction class=com.examples.SomeAction interceptor-ref name=completeStack/ interceptor-ref name=execAndWait param name=delay1000param param name=delaySleepInterval50param interceptor-ref result name=waitlongRunningAction-wait.jsp/result result name=successlongRunningAction-success.jsp/result /action On 06/02/2011 03:40 PM, Dale Newfield wrote: You didn't add exec-and-wait, you replaced your entire interceptor stack with just the exec-and-wait interceptor. Can you provide more information please? http://www.mkyong.com/struts2/struts-2-execandwait-interceptor-example/ I setup almost the same example. The differences . my action class has bean from spring . use tiles for adm result Thanks a lot! Emi -Dale On Jun 2, 2011, at 3:35 PM, Emi Luem...@encs.concordia.ca wrote: Hello, One action class to send emails to 50 users. Before action is done, I'd like to show a waiting page. When I added execAndWait shown as the following: action name=*ProcessAction method={1} class=ProcessAction interceptor-ref name=execAndWait param name=delay2000/param param name=delaySleepInterval500/param /interceptor-ref result name=wait/wait.jsp/result result name=adm type=tilesbrowse_action1/result ... I got the following Error message returned. Could someone help what is missing? I found examples about progressbar + fileupload, but what about waiting for sending emails, is there a online doc about this? Thanks a lot! Emi java.lang.NullPointerException at org.apache.struts2.ServletActionContext.getRequest(ServletActionContext.java:112) at ProcessAction.execute(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291) at org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:57) at java.lang.Thread.run(Thread.java:662) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Call execAndWait but got NullPointerException ?
Hello, The completeStack should be whatever your normal stack is, I think. struts.xml interceptor name=execAndWait class=com.opensymphony.webwork.interceptor.ExecuteAndWaitInterceptor/ action name=*ProcessAction method={1} class=ProcessAction interceptor-ref name=completeStack / interceptor-ref name=execAndWait param name=delay2000/param param name=delaySleepInterval500/param /interceptor-ref result name=wait/wait.jsp/result result name=success type=tilesbrowse_action1/result Tiles.xml == browse_action1 = point to browse.jsp Till now, no running exception. But the page always stays browse.jsp while wait.jsp does not show at all. Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Call execAndWait but got NullPointerException ?
Hello, For people who would like to do similar action, my solution is by using the following: Issue: Send hundreds of emails (since our mail server, wait 50 seconds per 10 emails). Notify users that email action has not completed. Solution: == 1. Send All Button: s:submit value=Send All onclick=return confirmSubmit() ajax_check_search_table('check_send_all_opr') theme=simple action=send_allProcessAction /s:submit Onclick layer.display in jquery function 2. Action class Add: private Boolean email_finished = false; 3. jsp page div id=.. style=display:none s:if test=email_finished == false marquee width=60% behavior=scroll font color=RED B Please do not leave the page and wait for email sending to be completed... /B /font /marquee BR/ /s:if /div Emi On 06/03/2011 10:12 AM, Emi Lu wrote: Hello, The completeStack should be whatever your normal stack is, I think. struts.xml interceptor name=execAndWait class=com.opensymphony.webwork.interceptor.ExecuteAndWaitInterceptor/ action name=*ProcessAction method={1} class=ProcessAction interceptor-ref name=completeStack / interceptor-ref name=execAndWait param name=delay2000/param param name=delaySleepInterval500/param /interceptor-ref result name=wait/wait.jsp/result result name=success type=tilesbrowse_action1/result Tiles.xml == browse_action1 = point to browse.jsp Till now, no running exception. But the page always stays browse.jsp while wait.jsp does not show at all. Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Call execAndWait but got NullPointerException ?
Hello, One action class to send emails to 50 users. Before action is done, I'd like to show a waiting page. When I added execAndWait shown as the following: action name=*ProcessAction method={1} class=ProcessAction interceptor-ref name=execAndWait param name=delay2000/param param name=delaySleepInterval500/param /interceptor-ref result name=wait/wait.jsp/result result name=adm type=tilesbrowse_action1/result ... I got the following Error message returned. Could someone help what is missing? I found examples about progressbar + fileupload, but what about waiting for sending emails, is there a online doc about this? Thanks a lot! Emi java.lang.NullPointerException at org.apache.struts2.ServletActionContext.getRequest(ServletActionContext.java:112) at ProcessAction.execute(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291) at org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:57) at java.lang.Thread.run(Thread.java:662) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Call execAndWait but got NullPointerException ?
On 06/02/2011 03:40 PM, Dale Newfield wrote: You didn't add exec-and-wait, you replaced your entire interceptor stack with just the exec-and-wait interceptor. Can you provide more information please? http://www.mkyong.com/struts2/struts-2-execandwait-interceptor-example/ I setup almost the same example. The differences . my action class has bean from spring . use tiles for adm result Thanks a lot! Emi -Dale On Jun 2, 2011, at 3:35 PM, Emi Luem...@encs.concordia.ca wrote: Hello, One action class to send emails to 50 users. Before action is done, I'd like to show a waiting page. When I added execAndWait shown as the following: action name=*ProcessAction method={1} class=ProcessAction interceptor-ref name=execAndWait param name=delay2000/param param name=delaySleepInterval500/param /interceptor-ref result name=wait/wait.jsp/result result name=adm type=tilesbrowse_action1/result ... I got the following Error message returned. Could someone help what is missing? I found examples about progressbar + fileupload, but what about waiting for sending emails, is there a online doc about this? Thanks a lot! Emi java.lang.NullPointerException at org.apache.struts2.ServletActionContext.getRequest(ServletActionContext.java:112) at ProcessAction.execute(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291) at org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:57) at java.lang.Thread.run(Thread.java:662) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
How to allow s:submit to accept dynamic src image file?
Hello list, A question about s:submit in struts2.2.3 Icon is dynamic: % String pdf_icon= request.getContextPath() + /img/pdficon.png ; % s:submit type=image src=%= pdf_icon% action=preview_pdfProcessAction / But s:submit does not support src = %% Is there a way, can make s:submit accept dynamic src image location? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to allow s:submit to accept dynamic src image file?
On 05/30/2011 03:05 PM, Chris Pratt wrote: Argh, hit send too early. No, EL is disabled in the struts for security reasons. But OGNL should work fine. Something like src=%{#imageName} should do the trick. (*Chris*) Thank you very much Chris! It works. bean.java private String image_filename ; === show.jsp s:submit type=image src=%{image_filename} theme=simple action=methodnameProcessAction / Emi On May 30, 2011 12:01 PM, Chris Prattthechrispr...@gmail.com wrote: No, EL is disabled in the struts for security reasons. But src=%{#} On May 30, 2011 9:37 AM, Dave Newtondavelnew...@gmail.com wrote: On Mon, May 30, 2011 at 11:30 AM, Emi Luem...@encs.concordia.ca wrote: Buts:submit does not support src = %% Does normal EL work? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: When start tomcat6 always got java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor Error!
.ActionSupport; public class ActionClass extends ActionSupport { public String execute() throws Exception { HttpServletRequest req = ServletActionContext.getRequest(); HttpServletResponse res = ServletActionContext.getResponse(); return SUCCESS; } } == 2011-05-26 16:48:00,539 ERROR finder.ClassFinder.error:38 - Unable to read class [ActionClass] java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:780) at com.opensymphony.xwork2.util.finder.ClassFinder.init(ClassFinder.java:165) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:376) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:334) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:195) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Cordialement Mohamed -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: When start tomcat6 always got java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor Error!
Are you really using all of those S2 plugins? You should not deploy plugins you are not using, as they may change fundamental S2 behavior. If nothing else it is almost certainly a bad idea to include both the codebehind (deprecated) and convention plugins. I use both struts1(history libs for some tags) + struts2. I removed codebehind convention jars. It seems no error for now. It's unusual to use both the Dojo and jQuery plugins simultaneously. Confirmed. Two tags are used in jsp for now: %@ taglib prefix=sj uri=/struts-jquery-tags % %@ taglib prefix=sx uri=/struts-dojo-tags % Is dojo deprecated? Thank you, Emi Dave On Fri, May 27, 2011 at 10:03 AM, Emi Luem...@encs.concordia.ca wrote: Good morning, Thank you very much for your inputs! To figure out which jar is missing, I downloaded the xwork-core.jar and complied it. The following files fixed the problem: = . lib/asm-4.0_RC1.jar . lib/asm-commons-4.0_RC1.jar For people might see the same error, a summary list of my libs (some libs for my other feature only, E.g., quartz, jdbc driver, etc) --- activation.jar antlr-3.2.jar aopalliance-1.0.jar asm-4.0_RC1.jar asm-commons-4.0_RC1.jar cglib-2.2.jar commons-beanutils-1.8.3.jar commons-collections-3.2.1.jar commons-dbcp-1.2.2.jar commons-digester-2.0.jar commons-fileupload-1.2.2.jar commons-io-2.0.1.jar commons-lang-2.5.jar commons-logging-1.1.1.jar commons-logging-api-1.1.1.jar commons-pool-1.5.4.jar displaytag-1.2.jar displaytag-export-poi-1.2.jar dom4j-1.6.1.jar freemarker.jar iText-5.0.6.jar javassist.jar jcommon-1.0.16.jar jfreechart-1.0.13.jar jstl.jar junit-4.8.1.jar log4j-1.2.16.jar mail.jar mybatis-3.0.3.jar mybatis-spring-1.0.0-RC3.jar mysql-connector-java-5.1.13-bin.jar ognl-3.0.1.jar org.springframework.aop-3.0.5.RELEASE.jar org.springframework.asm-3.0.5.RELEASE.jar org.springframework.aspects-3.0.5.RELEASE.jar org.springframework.beans-3.0.5.RELEASE.jar org.springframework.context-3.0.5.RELEASE.jar org.springframework.context.support-3.0.5.RELEASE.jar org.springframework.core-3.0.5.RELEASE.jar org.springframework.expression-3.0.5.RELEASE.jar org.springframework.instrument-3.0.5.RELEASE.jar org.springframework.instrument.tomcat-3.0.5.RELEASE.jar org.springframework.jdbc-3.0.5.RELEASE.jar org.springframework.jms-3.0.5.RELEASE.jar org.springframework.orm-3.0.5.RELEASE.jar org.springframework.oxm-3.0.5.RELEASE.jar org.springframework.spring-library-3.0.5.RELEASE.libd org.springframework.test-3.0.5.RELEASE.jar org.springframework.transaction-3.0.5.RELEASE.jar org.springframework.web-3.0.5.RELEASE.jar org.springframework.web.portlet-3.0.5.RELEASE.jar org.springframework.web.servlet-3.0.5.RELEASE.jar org.springframework.web.struts-3.0.5.RELEASE.jar poi-3.8-beta1-20110307.jar poi-ooxml-3.8-beta1-20110307.jar poi-ooxml-schemas-3.8-beta1-20110307.jar postgresql-9.0-801.jdbc4.jar quartz-1.8.5.jar slf4j-api-1.6.1.jar spring-tx-3.0.5.RELEASE.jar standard.jar stax-api-1.0.1.jar struts2-codebehind-plugin-2.2.3.jar struts2-config-browser-plugin-2.2.3.jar struts2-convention-plugin-2.2.3.jar struts2-core-2.2.3.jar struts2-dojo-plugin-2.2.3.jar struts2-jasperreports-plugin-2.2.3.jar struts2-jfreechart-plugin-2.2.3.jar struts2-jquery-plugin-3.0.0.jar struts2-spring-plugin-2.2.3.jar struts2-tiles-plugin-2.2.3.jar tiles-api-2.0.7.jar tiles-core-2.0.7.jar tiles-jsp-2.0.7.jar xbean.jar xwork-core-2.2.3.jar On 05/27/2011 06:04 AM, Maurizio Cucchiara wrote: I don't think that the exception is referring to the xwork library, the xwork library is present (see the stacktrace). It seems rather that the xwork ClassFinder is not able to find your ActionClass. On 27 May 2011 09:56, Mohamed SIDImhm.s...@gmail.comwrote: You have to copy the jar in your classpath and redeploy your application after, it should work 2011/5/27 Martin Gaintymgai...@hotmail.com copy xwork-core-2.2.1.jar to WEB-INF\lib Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le
Re: Pagination using Struts library
displaytag1.2 + struts2 + tiles works good for me. displaytag is a very good tool for pagination. http://www.displaytag.org/1.2/ Emi On 05/11/2011 07:47 AM, Pankaj Gupta wrote: Hi, But I am looking for Pagination in Struts framework specifically. Thanks, Pankaj On Wed, May 11, 2011 at 3:51 PM, Kushan Jayathilakekusha...@gmail.comwrote: Well.. if you are going with JSF, there are tags with pagination support builtin. you just need to pass the collection and the page size for that On Wed, May 11, 2011 at 3:25 PM, Pankaj Guptapankaj.hug...@gmail.com wrote: Hi All, Is there any way Jaakata /SUN library or any api in struts which can be used to implement pagination. I suggested Display tag and Page Loader, but since they are not open source, not ssociated with Jakarta/Sun, user is not agreeging to it? Any suggestions would be appreciated? Thanks, Pankaj -- Regards Kushan Jayathilake -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Pagination using Struts library
displaytag1.2 + struts2 + tiles works good for me. displaytag is a very good tool for pagination. http://www.displaytag.org/1.2/ Another paging feature I found just recently is: DataTables http://www.datatables.net/index The online doc shows good features, but I have not done production app based on it yet. while for displaytag, I do use it a lot with struts2 + displaytag + tiles. Displaytag does good with paging for struts2. Emi On 05/11/2011 07:47 AM, Pankaj Gupta wrote: Hi, But I am looking for Pagination in Struts framework specifically. Thanks, Pankaj On Wed, May 11, 2011 at 3:51 PM, Kushan Jayathilakekusha...@gmail.comwrote: Well.. if you are going with JSF, there are tags with pagination support builtin. you just need to pass the collection and the page size for that On Wed, May 11, 2011 at 3:25 PM, Pankaj Guptapankaj.hug...@gmail.com wrote: Hi All, Is there any way Jaakata /SUN library or any api in struts which can be used to implement pagination. I suggested Display tag and Page Loader, but since they are not open source, not ssociated with Jakarta/Sun, user is not agreeging to it? Any suggestions would be appreciated? Thanks, Pankaj -- Regards Kushan Jayathilake -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 and tiles
Hello, If I remember struts2.2.1 cannot only be with tiles2.0.7. Please try tiles*-2.0.7.jar I had the same problem when using struts2.2.x + tiles2.2 Regards, Emi Thank you for your answer. I would like to know if tiles work with struts2 in a portlet environment. This has been done countless times with struts 1.x versions, and as you point out (with irony I suppose), there are documentations on it. The thing is I can't seem to get it to work with struts2 I can see my portlet and the tiles are working, but after submitting the form I am getting the following error : Jsr168Dispatc E com.opensymphony.xwork2.util.logging.commons.CommonsLogger error Could not execute action java.lang.IllegalStateException: Not allowed in event phase at org.apache.struts2.portlet.servlet.PortletServletResponse.isCo mmitted(PortletServletResponse.java:178) Did anyone manage to deploy a struts2 portlet using tiles? On Fri, May 6, 2011 at 9:35 PM, Jason Pyeronjpye...@pdinc.us wrote: -Original Message- From: Bertrand [mailto:bertran...@gmail.com] Sent: Friday, May 06, 2011 2:53 To: user@struts.apache.org Subject: Re: WELCOME to user@struts.apache.org Hi, I am building a poc using Struts2 and tiles2 on Websphere portal 7.0. I created a JSR-168 portlet using struts2 quite easily, but adding tiles to the picture is not as straightforward. In short, tiles does not support portlets. You may want to look at this (http://lmgtfy.com/?q=tiles+portlet). For the addition of tiles, config-wise: In web.xml, I have listener listener-classorg.apache.struts2.tiles.StrutsTilesListener/ listener-class /listener In struts.xml, I have result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types I defined my actions using the result-type specified above, here they are: action name=index class=struts2Poc.HelloWorld result name=SUCCESS type=tilesyourName/result /action action name=HelloWorld class=struts2Poc.HelloWorld result name=SUCCESS type=tilessuccess/result /action I can see my portlet and the tiles are working, but after submitting the form I am getting the following error : [6/05/11 16:20:59:677 EST] 0034 Jsr168Dispatc E com.opensymphony.xwork2.util.logging.commons.CommonsLogger error Could not execute action java.lang.IllegalStateException: Not allowed in event phase at org.apache.struts2.portlet.servlet.PortletServletResponse.isCo mmitted(PortletServletResponse.java:178) The overridden servlet response will just throw exceptions if you call those methods. This is because of how portlets work with regards to the view rendering. See: http://www.jarvana.com/jarvana/view/org/apache/struts/struts2-portlet-plugin/2.1 .8/struts2-portlet-plugin-2.1.8-sources.jar!/org/apache/struts2/portlet/servlet/ PortletServletResponse.java?format=ok http://www.jcp.org/en/jsr/detail?id=168 at org.apache.tiles.servlet.context.ServletTilesRequestContext.di spatch(ServletTilesRequestContext.java:219) at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write (TemplateAttributeRenderer.java:44) at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.r ender(AbstractBaseAttributeRenderer.java:103) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesCon tainer.java:659) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesCon tainer.java:678) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesCon tainer.java:633) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesCon tainer.java:322) at org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResu lt.java:105) at org.apache.struts2.dispatcher.StrutsResultSupport.execute(Stru tsResultSupport.java:186) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult( DefaultActionInvocation.java:362) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(Default ActionInvocation.java:266) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor .doIntercept(DefaultWorkflowInterceptor.java:165) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.in tercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(Default ActionInvocation.java:237) at com.opensymphony.xwork2.validator.ValidationInterceptor.doInte rcept(ValidationInterceptor.java:252) at org.apache.struts2.interceptor.validation.AnnotationValidation Interceptor.doIntercept(AnnotationValidationInterceptor.java:68) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.in tercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(Default ActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor .intercept(ConversionErrorInterceptor.java:122) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(Default ActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIn tercept(ParametersInterceptor.java:195) at
Re: [ANN] Struts2 jQuery Plugin Version 3.0.0 is available
Thank you very much for all teams! If I upgrade from struts2-jquery-plugin-2.5.3.jar to 3.0, I just reload struts2-jquery-plugin-3.0.0.jar is good enough, right? Thanks a lot! Emi On 05/06/2011 10:54 AM, Frans Thamura wrote: dont forget our work :0 the template has been done , email to u shortly :0 -- Frans Thamura Chief of Advisory Meruvian. Integrated Hypermedia Java Solution Provider. Mobile: +628557888699 Blog: http://blogs.mervpolis.com/roller/flatburger (id) FB: http://www.facebook.com/meruvian TW: http://www.twitter.com/meruvian / @meruvian Website: http://www.meruvian.org We grow because we share the same belief. On Fri, May 6, 2011 at 9:50 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: Great job Johannes! -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/5/6 Johannes Geppertjo...@apache.org: The new version 3.0.0 is out now. Please read the Release Notes[1] and the Changelog [2] to read more about the new features like support for mobile development with jQuery Mobile and the new Tree Tag. [1] http://www.jgeppert.com/2011/05/whats-new-in-struts2-jquery-plugin-3-0-0/ [2] http://code.google.com/p/struts2-jquery/wiki/Changelog Best Regards Johannes Geppert --- web: http://www.jgeppert.com twitter: http://twitter.com/jogep - -- web: http://www.jgeppert.com twitter: http://twitter.com/jogep -- View this message in context: http://struts.1045723.n5.nabble.com/ANN-Struts2-jQuery-Plugin-Version-3-0-0-is-available-tp4375901p4375901.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionError() caused Page not found (404).
I'm still guessing it's a validation thing--put an input result in there and check. Also, by naming the results the same as the actions you're actually circumventing one of the reasons for abstracting the result names from everything else. Even for test apps it's just not a good habit, IMO. So, what is the reason? I did not put input :-( I am looking for the answer.. Emi On Wed, Apr 13, 2011 at 4:43 PM, Emi Luem...@encs.concordia.ca wrote: Depends on where you added the addActionError() call, at the very least--an action error indicates a validation problem, so it may be trying to go to the input result. Not enough information to help. It seems that I may get my answer soon! More info comes: = (1) Action1.java public class Action1 extends ActionSupport { .. public String execute() throws Exception { HttpServletRequest req = ServletActionContext.getRequest(); HttpServletResponse res = ServletActionContext.getResponse(); /* paging method for display tag */ process_paging(req); return SUCCESS; } ... } (2) Action1 in struts.xml action name=*Action1 method={1} class=Action1 result name=success type=tilesbrowse_action1/result /action (3) tiles for browse_action1 definition name= browse_action1 template=t.jsp put-attribute name=body value=browse_action1.jsp / /definition (4) browse_action1.jsp ... ... s:form id=Action1Form name=Action1Form action=Action1 validate=true theme=simple display:table id=row_rec name=alist_paging_bean export=true class=simple cellspacing=0 cellpadding=5 requestURI=Action1 keepStatus=true pagesize=%=bean_display.getPageSize() % partialList=true size=%=bean_display.getTotalRecNum() % sort=external display:column property=c1 title=c1 sortName=c1 sortable=true/ ... ... /display:table s:submit value=Update theme=simple action=update_guiAction2 /s:submit /s:form (5) Action2.java public class ProcessThesis extends ActionSupport { public String update_gui() throws Exception { HttpServletRequest req = ServletActionContext.getRequest(); HttpServletResponse res = ServletActionContext.getResponse(); String[]error_arr= new String[2]; String[] checkbox_value =req.getParameterValues(checkbox_value); if(Utils.isEmpty(checkbox_value)) { addActionError(this.getText(at.least.one.rec.error)); return view_action1; //Step_Q1 - Page not found()404 } return view_action1 ; //Step_Q2 - no error at all } } If remove addActionError(this.getText(at.least.one.rec.error)), return successfully! Otherwise, Page not found 404returned! (6) struts.xml for Action2 action name=*Action2 method={1} class=Action2 result name=view_action1 type=redirectAction param name=actionNameAction1/param /result /action I tried also the following, but it does not work either: action name=*Action2 method={1} class=Action2 result name=view_action1 type=tilesbrowse_action1/result /action Thanks a lot! Emi On Wed, Apr 13, 2011 at 3:19 PM, Emi Luem...@encs.concordia.cawrote: Hello, addActionError() caused Page not found (404) Error. (1) Action1.java browsing all records using displaytag (2) Action2.java if just say: return view; go to Action1 successfully if: addActionError(...); //then return view; Got an Page not found (404) exception. Does anyone know what cause the problem? Thanks a lot! Emi -- result name=view type=redirectAction param name=actionNameProcessAction1/param param name=namespace/Action/param /result -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionError() caused Page not found (404).
Hello, All right, put input. I found this: http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/ But no one ever provide an example of where to set input feature. My situation is: (part1) action name=*Action1 method={1} class=Action1 result name=success type=tilesbrowse_action1/result /action (part2) !-- want to go to view Action1 with action messages displayed -- action name=*Action2 method={1} class=Action2 result name=view_action1 type=redirectAction param name=actionNameAction1/param /result /action Input should be added to (part1) or (part2)? Thanks a lot! Emi On Thu, Apr 14, 2011 at 12:18 PM, Aner Pereza...@ncstech.com wrote: It's annoying because it uses a side effect to figure out if validation failed. Instead of setting some flag when any validation fails and using that flag to determine if the INPUT result should be displayed, it is using the number of error messages to determine if there were any validation errors. A flag is a side-effect too; any non-local phenomenon is a side-effect by definition. It violates the principle of least surprise because the action method got called and it returned a result. This is the result the programmer expects to be rendered. Especially if there were no validation errors, only error messages added by the application code. I have some sympathy for this argument and will update the documentation to make the behavior clearer. Ultimately, if errors are detected, IMO the workflow interceptor is doing the right thing: how the errors are indicated seems to be a non-issue, other than a need to clarify that errors are indicated by the presence of error messages. I haven't had a use-case where the presence of errors means that processing should continue as normal (and the framework provides a trivial workaround when it does), but I agree it should be spelled out. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionError() caused Page not found (404).
Hi Aner, This is an annoying feature of the Workflow interceptor. If ValidationAware.hasErrors() returns true, the interceptor chain is stopped and Action.INPUT is returned. If you put error messages on your action, it will make hasErrors return true which will force the input result to be returned. Your options are: 1. Add an input result to your config as previously stated Do not know where/what should be set in struts.xml :-( 2. use addActionMessage() instead This solution I tried, and it works fine! 3. Override this behavior (override hasErrors() or muck with the interceptor config) this is takes more time; I may not pick this one. If I could not make (1) works, I will probably pick (2). Till now, I am already very satisfied with the answer! Thanks you very much! Emi On 04/14/2011 10:12 AM, Emi Lu wrote: I'm still guessing it's a validation thing--put an input result in there and check. Also, by naming the results the same as the actions you're actually circumventing one of the reasons for abstracting the result names from everything else. Even for test apps it's just not a good habit, IMO. So, what is the reason? I did not put input :-( I am looking for the answer.. Emi On Wed, Apr 13, 2011 at 4:43 PM, Emi Luem...@encs.concordia.ca wrote: Depends on where you added the addActionError() call, at the very least--an action error indicates a validation problem, so it may be trying to go to the input result. Not enough information to help. It seems that I may get my answer soon! More info comes: = (1) Action1.java public class Action1 extends ActionSupport { .. public String execute() throws Exception { HttpServletRequest req = ServletActionContext.getRequest(); HttpServletResponse res = ServletActionContext.getResponse(); /* paging method for display tag */ process_paging(req); return SUCCESS; } ... } (2) Action1 in struts.xml action name=*Action1 method={1} class=Action1 result name=success type=tilesbrowse_action1/result /action (3) tiles for browse_action1 definition name= browse_action1 template=t.jsp put-attribute name=body value=browse_action1.jsp / /definition (4) browse_action1.jsp ... ... s:form id=Action1Form name=Action1Form action=Action1 validate=true theme=simple display:table id=row_rec name=alist_paging_bean export=true class=simple cellspacing=0 cellpadding=5 requestURI=Action1 keepStatus=true pagesize=%=bean_display.getPageSize() % partialList=true size=%=bean_display.getTotalRecNum() % sort=external display:column property=c1 title=c1 sortName=c1 sortable=true/ ... ... /display:table s:submit value=Update theme=simple action=update_guiAction2 /s:submit /s:form (5) Action2.java public class ProcessThesis extends ActionSupport { public String update_gui() throws Exception { HttpServletRequest req = ServletActionContext.getRequest(); HttpServletResponse res = ServletActionContext.getResponse(); String[] error_arr = new String[2]; String[] checkbox_value =req.getParameterValues(checkbox_value); if(Utils.isEmpty(checkbox_value)) { addActionError(this.getText(at.least.one.rec.error)); return view_action1; //Step_Q1 - Page not found()404 } return view_action1 ; //Step_Q2 - no error at all } } If remove addActionError(this.getText(at.least.one.rec.error)), return successfully! Otherwise, Page not found 404returned! (6) struts.xml for Action2 action name=*Action2 method={1} class=Action2 result name=view_action1 type=redirectAction param name=actionNameAction1/param /result /action I tried also the following, but it does not work either: action name=*Action2 method={1} class=Action2 result name=view_action1 type=tilesbrowse_action1/result /action Thanks a lot! Emi On Wed, Apr 13, 2011 at 3:19 PM, Emi Luem...@encs.concordia.ca wrote: Hello, addActionError() caused Page not found (404) Error. (1) Action1.java browsing all records using displaytag (2) Action2.java if just say: return view; go to Action1 successfully if: addActionError(...); //then return view; Got an Page not found (404) exception. Does anyone know what cause the problem? Thanks a lot! Emi -- result name=view type=redirectAction param name=actionNameProcessAction1/param param name=namespace/Action/param /result - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionError() caused Page not found (404).
Especially if there were no validation errors, only error messages added by the application code. By the way, I agree with this very much! Emi - Aner On 04/14/2011 12:00 PM, Dave Newton wrote: On Thu, Apr 14, 2011 at 11:54 AM, Aner Pereza...@ncstech.com wrote: This is an annoying feature of the Workflow interceptor. If ValidationAware.hasErrors() returns true, the interceptor chain is stopped and Action.INPUT is returned. If you put error messages on your action, it will make hasErrors return true which will force the input result to be returned. How is it annoying? That's the interceptor's purpose in life, to handle workflow. Errors usually change flow. Mucking with the interceptor is as simple as changing the inputResultName property for the specific action, although in this case I don't really see why it'd be worth it. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionError() caused Page not found (404).
Hi Dave, On Thu, Apr 14, 2011 at 2:43 PM, Emi Lu wrote: Especially if there were no validation errors, only error messages added by the application code. By the way, I agree with this very much! So you're basically saying that you want to differentiate between two different types of errors, or at the very least have two different workflows based on the error type? That would require a custom interceptor and (at least two) collections of error messages. Or you could set the workflow.inputResultName for the action you don't want to add an input to. it is using the number of error messages to determine if there were any validation errors. I mean that I agree with Aner. If I just addActionErrorMessage, but not a real ActionError, I would not expect the interceptor stop the workflow :-( Or, as you suggested that if it could be specified in the online document, it will help as well. Dave, could you provide an example, what should I put input for my case? in Struts.xml, I have: (part1) action name=*Action1 method={1} class=Action1 result name=success type=tilesbrowse_action1/result /action (part2) !-- want to go to view Action1 with action messages displayed -- action name=*Action2 method={1} class=Action2 result name=view_action1 type=redirectAction param name=actionNameAction1/param /result /action Input should be added to (part1) or (part2), how? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 + spring3.05 + Quartz = IncompatibleClassChangeError
Good morning all, Thank you very much for the information! I tried the following, and it works now: === (1) Use quartz-1.8.5.jar instead 2.0 (2) Added slf4j-api-1.6.1.jar Emi On 04/12/2011 09:24 PM, Haroon Rafique wrote: Disclaimer, I didn't read the whole thread, just saw your last email. As Dave said, this is unrelated to Struts2. Its a Spring issue. AFAIK, quartz 2 is not supported by spring 3 (or spring 2.5) yet. Is it an option for you to downgrade to quartz 1.8.4? Hope that helps, otherwise sorry for wasting bandwidth. Cheers, -- Haroon Rafiqueharoon.rafi...@utoronto.ca \Enterprise Apps Solutions Integration, University of Toronto On 2011-04-12, at 5:01 PM, Emi Lu wrote: I'd look for class loading issues. Maybe you have a couple jars with quartz? Maybe an incompatible version combination? Two jars: === . quartz-2.0.0.jar . org.springframework.context.support-3.0.5.RELEASE.jar But I cannot find other places contains the class. Still got the error :-( Emi org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.scheduling.quartz.JobDetailBean] nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.scheduling.quartz.JobDetailBean has interface org.quartz.JobDetail as super class - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
addActionError() caused Page not found (404).
Hello, addActionError() caused Page not found (404) Error. (1) Action1.java browsing all records using displaytag (2) Action2.java if just say: return view; go to Action1 successfully if: addActionError(...); //then return view; Got an Page not found (404) exception. Does anyone know what cause the problem? Thanks a lot! Emi -- result name=view type=redirectAction param name=actionNameProcessAction1/param param name=namespace/Action/param /result - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionError() caused Page not found (404).
Depends on where you added the addActionError() call, at the very least--an action error indicates a validation problem, so it may be trying to go to the input result. Not enough information to help. It seems that I may get my answer soon! More info comes: = (1) Action1.java public class Action1 extends ActionSupport { .. public String execute() throws Exception { HttpServletRequest req = ServletActionContext.getRequest(); HttpServletResponse res = ServletActionContext.getResponse(); /* paging method for display tag */ process_paging(req); return SUCCESS; } ... } (2) Action1 in struts.xml action name=*Action1 method={1} class=Action1 result name=success type=tilesbrowse_action1/result /action (3) tiles for browse_action1 definition name= browse_action1 template=t.jsp put-attribute name=body value=browse_action1.jsp / /definition (4) browse_action1.jsp ... ... s:form id=Action1Form name=Action1Form action=Action1 validate=true theme=simple display:table id=row_rec name=alist_paging_bean export=true class=simple cellspacing=0 cellpadding=5 requestURI=Action1 keepStatus=true pagesize=%=bean_display.getPageSize() % partialList=true size=%=bean_display.getTotalRecNum() % sort=external display:column property=c1 title=c1 sortName=c1 sortable=true/ ... ... /display:table s:submit value=Update theme=simple action=update_guiAction2 /s:submit /s:form (5) Action2.java public class ProcessThesis extends ActionSupport { public String update_gui() throws Exception { HttpServletRequest req = ServletActionContext.getRequest(); HttpServletResponse res = ServletActionContext.getResponse(); String[]error_arr= new String[2]; String[] checkbox_value =req.getParameterValues(checkbox_value); if(Utils.isEmpty(checkbox_value)) { addActionError(this.getText(at.least.one.rec.error)); return view_action1; //Step_Q1 - Page not found()404 } return view_action1 ; //Step_Q2 - no error at all } } If remove addActionError(this.getText(at.least.one.rec.error)), return successfully! Otherwise, Page not found 404returned! (6) struts.xml for Action2 action name=*Action2 method={1} class=Action2 result name=view_action1 type=redirectAction param name=actionNameAction1/param /result /action I tried also the following, but it does not work either: action name=*Action2 method={1} class=Action2 result name=view_action1 type=tilesbrowse_action1/result /action Thanks a lot! Emi On Wed, Apr 13, 2011 at 3:19 PM, Emi Luem...@encs.concordia.ca wrote: Hello, addActionError() caused Page not found (404) Error. (1) Action1.java browsing all records using displaytag (2) Action2.java if just say: return view; go to Action1 successfully if: addActionError(...); //then return view; Got an Page not found (404) exception. Does anyone know what cause the problem? Thanks a lot! Emi -- result name=view type=redirectAction param name=actionNameProcessAction1/param param name=namespace/Action/param /result - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts2 + spring3.05 + Quartz = IncompatibleClassChangeError
Hello, Struts2 + spring3.05 + Quartz. Tomcat6 cannot be started showing the following exception message: == org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.scheduling.quartz.JobDetailBean] for bean with name 'schedulerJob' defined in ServletContext resource [/WEB-INF/applicationContext-ibatis.xml]: problem with class file or dependent class; nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.scheduling.quartz.JobDetailBean has interface org.quartz.JobDetail as super class = Does someone know what may cause this exception? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 + spring3.05 + Quartz = IncompatibleClassChangeError
I'd look for class loading issues. Maybe you have a couple jars with quartz? Maybe an incompatible version combination? Two jars: === . quartz-2.0.0.jar . org.springframework.context.support-3.0.5.RELEASE.jar But I cannot find other places contains the class. Still got the error :-( Emi org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.scheduling.quartz.JobDetailBean] nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.scheduling.quartz.JobDetailBean has interface org.quartz.JobDetail as super class - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts2 + itext5 + pdf generation
Good morning list, A question about struts2 + PDF. Struts2 + itext5.x. In action class: == HttpServletResponse res = ServletActionContext.getResponse(); res.setContentType(application/pdf); Document document = new Document(); PdfWriter.getInstance(document, res.getOutputStream()); document.open(); ... document.close(); Always got the following errors: ERROR tags.BaseSimpleTag.doEndTag:? - ERROR: getOutputStream() has already been called for this response org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response Is there a way to fix it and is there any good online doc about how struts2 + itext pdf file generation? Also, how do you setup the default PDF file name? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 + itext5 + pdf generation
A question about struts2 + PDF. Struts2 + itext5.x. In action class: == HttpServletResponse res = ServletActionContext.getResponse(); res.setContentType(application/pdf); Document document = new Document(); PdfWriter.getInstance(document, res.getOutputStream()); document.open(); ... document.close(); Always got the following errors: ERROR tags.BaseSimpleTag.doEndTag:? - ERROR: getOutputStream() has already been called for this response org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response Also, how do you setup the default PDF file name? I fixed the above by trying the following: (1) Change action class to void (2) Added response.setHeader(Content-disposition,attachment; filename=\ + reportName + .pdf\ ); Is there a way to fix it and is there any good online doc about how struts2 + itext pdf file generation? I'd like to get some good online docs about struts2 + jsperreport, or struts2 + itext pdf generation. Thanks alot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
jquery + struts2 = autocompleter example?
Good morning, Does someone know where I can find a good: jquery + struts2 = autocompleter example? Since dojo deprecated, I am thinking using jquery + struts2. Basically, autocompleter's value list needs to be calculated by struts2 action class to retrieve from Database. Thanks a lot! Lu Ying - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: RE : jquery + struts2 = autocompleter example?
Thank you very much all! If I did not get your help, I will almost do this way: http://viralpatel.net/blogs/2009/06/tutorial-create-autocomplete-feature-with-java-jsp-jquery.html I think if the two websites can link each other, it will help users like me a lot!!! (1) http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag (2) http://docs.jquery.com/Plugins/autocomplete I strongly hope that (1) can be added to (2). Or at least, when I google struts2 + jquery + autocomplete, (1) returns first. But not: ... ...! Thank you again, Lu Ying On 03/10/2011 09:18 AM, matthieu.m...@ensam.eu wrote: Hi, You can find example in the two showcases war (the bin for jsp and the source one if you want to see action java class) of the struts2-jquery plugins : http://code.google.com/p/struts2-jquery/downloads/list And on the wiki : http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag Be carefull, there are 2 jquery plugins for struts2 : http://code.google.com/p/struts2-jquery/ http://code.google.com/p/struts2-jquery-plugin/ Cordialy, Matthieu MARC Matthieu MARC Service Informatique Arts et Métiers ParisTech - Centre d'Angers matthieu.m...@ensam.eu De : Emi Lu [em...@encs.concordia.ca] Date d'envoi : jeudi 10 mars 2011 15:13 À : user@struts.apache.org Objet : jquery + struts2 = autocompleter example? Good morning, Does someone know where I can find a good: jquery + struts2 = autocompleter example? Since dojo deprecated, I am thinking using jquery + struts2. Basically, autocompleter's value list needs to be calculated by struts2 action class to retrieve from Database. Thanks a lot! Lu Ying - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
jquery + struts2 + form validation
Good morning, A question about struts2 + jquery form validation: in jsp: = form ... ... lots of tags s:submit action1 onclick=return check_action() s:submit action2 s:submit action3 /form If check_action returns false, action1 will never be called! JAVA action private InputStream inputStream; check_action() { check tag1 against DB; //whether dup, wrong info etc check tag2 against DB; ... ... PrintWriter out = res.getWriter(); res.setContentType(text/html); if(error) { out.println(liError info/li); ... } else { out.println(1); } out.flush(); return SUCCESS; } The part gives me headache is that how to submit hundreds of tags in the form in JSP? I do not want to use action?tag1=..tag2=.. ... tag300= Is there a way, form values can be submit automatically? Thanks a lot! -- Lu Ying - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts2 + dojo + ajax for confirm button
Good afternoon, I found very good examples for ajax + asp: http://www.asp.net/ajax/ajaxcontroltoolkit/samples/ConfirmButton/ConfirmButton.aspx For example, confirm button May I know where I can find similar examples for Struts2 + dojo + ajax for confirm button please? Thanks a lot! -- Lu Ying - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 + dojo + ajax for confirm button
On 02/16/2011 03:13 PM, Dave Newton wrote: Please, please be aware that the S2 Dojo plugin is *deprecated*, for good reasons. If you're just using raw Dojo, your best bet is the Dojo documentation/samples. Ok. If dojo is deprecated, then how struts2 supports ajax? -- Lu Ying On Wed, Feb 16, 2011 at 2:52 PM, Emi Luem...@encs.concordia.ca wrote: Good afternoon, I found very good examples for ajax + asp: http://www.asp.net/ajax/ajaxcontroltoolkit/samples/ConfirmButton/ConfirmButton.aspx For example, confirm button May I know where I can find similar examples for Struts2 + dojo + ajax for confirm button please? Thanks a lot! -- Lu Ying - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 + dojo + ajax for confirm button
Either via the jQuery plugin, or by simply using whatever JS library/framework you want. Thank you Dave! -- Lu Ying On Wed, Feb 16, 2011 at 3:37 PM, Emi Luem...@encs.concordia.ca wrote: On 02/16/2011 03:13 PM, Dave Newton wrote: Please, please be aware that the S2 Dojo plugin is *deprecated*, for good reasons. If you're just using raw Dojo, your best bet is the Dojo documentation/samples. Ok. If dojo is deprecated, then how struts2 supports ajax? -- Lu Ying On Wed, Feb 16, 2011 at 2:52 PM, Emi Luem...@encs.concordia.cawrote: Good afternoon, I found very good examples for ajax + asp: http://www.asp.net/ajax/ajaxcontroltoolkit/samples/ConfirmButton/ConfirmButton.aspx For example, confirm button May I know where I can find similar examples for Struts2 + dojo + ajax for confirm button please? Thanks a lot! -- Lu Ying - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse
then try to work out which one is causing the issue. Date: Thu, 10 Feb 2011 14:53:52 +0530 Subject: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse From: abhishek.netj...@gmail.com To: user@struts.apache.org Hi, Can anyone forward me to a good tutorial or a working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse. Maybe a project i can import in myeclipse or so, any simple skeleton will do, I tried my hand directly but cannt get through i get some exceptions everytime i add struts and hibernate with tiles capabilities in myeclipse. I think some libraries default in Myeclipse are conflicting each other . thanks -- Thanks and kind Regards, Abhishek jain -- Fail again. Fail better With Regards , Nuwan Arambage -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
displaytag1.2 + struts2.2.1.1 + jfreechart. Graph did not update based on displaytag sortable column
Good afternoon, displaytag1.2 + struts2.2.1.1 + jfreechart. img src=jfreechartReport.action Can display the graph, but when using displaytag to order by a specific column , the graph does not refresh automatically. Some clues? thanks a lot! -- Lu Ying GUI is like the following: col1| col 2 | ... -- value1 | value2 | ... value11 | value22 | ... ... Graph result shown correctly. Now clicking col1(sortable displaytag generated column), The graph did not refresh at all! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org