integrating struts2 with a CMS
I have a request from my client to integrate a CMS into an existing application using Struts/Tiles2 or SiteMesh for presentation. Could I integrate a JCR compatible CMS into tiles2? For example, is it possible to have something like this? That means some of the pages, we use jsp and some of the pages, the contents are retrieved from CMS? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
How can I debug java.lang.NoSuchMethodException with Struts action?
It always happen that when I pass a string to an int of the variable of an action or the action throws an exception, Struts throws a NoSuchMethodException It is impossible to debug, is there anyway to make it at least the log gives the name of the variable of the action? java.lang.NoSuchMethodException: com.mycompany.myproduct.web.AirBookingAction$$EnhancerByCGLIB$$ccdc58d8.getPrices() at java.lang.Class.getMethod(Class.java:1665) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.processInputConfig(DefaultWorkflowInterceptor.java:190) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:160) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) 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:244) at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.in
Re: struts2-showcase-2.0.11 ajax is not working under IE 7
It's the autocompleter that doesn't work http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/ It is perfect under Firefox, but not under IE7 I have an existing written in S1 years ago using the dated ajaxtag (http://ajaxtags.sourceforge.net/) Since dojo's autocompleter doesn't work on IE7, I ended up rewriting BaseAjaxAction to Struts2BaseAjaxAction "Jeromy Evans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Christopher Cheng wrote: >> It seems that struts2-showcase-2.0.11 ajax under tomcat-5.5 doesn't work >> on >> IE 7 but IE6 and firefox only >> Is there a patch or a newer version of dojo will make it work? >> > What happens (or doesn't happen)? > > I apply only one work-around and one patch for IE7: > - work-around: in IE, an ajax form can't overwrite itself with its > result (this is a common mistake and likely to occur in the showcase) > - patch: there's a known Dojo 0.4 bug when using SSL in IE7 (the usual > page contains both secure and unsecure items rubbish) > > I've used all S2.0.x ajax tags except autocompleter in IE7 without > IE7-specific problems. > Note I always use strict mode (html 4 strict). > http://hsivonen.iki.fi/doctype/ begin 666 Struts2BaseAjaxAction.java M<&%C:V%G92!C;VTN<[EMAIL PROTECTED];#L-"@T*:6UP;W)T(&-O;2YO M<&5N'=O6UP:&]N>2YX=V]R:S(N4')E<&%R86)L93L-"FEM<&]R="!O&-E<'1I;VX@>PT*(" @('T-"@T*(" @("[EMAIL PROTECTED](" @(" J(%-T&5C=71E*"[EMAIL PROTECTED]&AR;W=S($E/17AC97!T:6]N('L-"@T*(" @(" @("!3 M=')I;F<@>&UL(#T@;G5L;#L-"B @(" @(" @=')Y('L-"B @(" @(" @(" @ M('AM;" ](&=E=%AM;$-O;G1E;G0H"D@>PT* M(" @(" @(" @(" @[EMAIL PROTECTED]"!B86-K(&[EMAIL PROTECTED] P(&5R&UL*3L-"B @(" @(" @<'&-E<'1I;VX-"B @ M(" @*B\-"B @("!P=6)L:6,@86)S=')[EMAIL PROTECTED]:6YG(&=E=%AM;$-O;G1E M;G0H#0H@(" @(" @(" @("!(='1P4V5R=FQE=%)E<75E&-E<'1I;VX[#0I]#0H` ` end - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts2-showcase-2.0.11 ajax is not working under IE 7
It seems that struts2-showcase-2.0.11 ajax under tomcat-5.5 doesn't work on IE 7 but IE6 and firefox only Is there a patch or a newer version of dojo will make it work? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles and waitAndExec working together?
JIRA Issue created: https://issues.apache.org/struts/browse/WW-2375 "Antonio Petrelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007/12/12, Christopher Cheng <[EMAIL PROTECTED]>: >> >> I have a problem of having tiles and waitAndExec working together. >> WaitAndExec and the tag cannot generate the action request >> correctly >> on the wait page. >> >> On the wait page "wait.jsp" uses the tiles template file >> "http://localhost:8080/jsp/layout/layout.jsp"; as the URL >> instead of http://localhost:8080/action1.action > > Mmm... it seems like a bug, probably in the Struts 2/Tiles 2 plugin. > Please open a JIRA issue for this: > https://issues.apache.org/struts/browse/WW > And, if you want, you can post a patch :-) > > Ciao > Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles and waitAndExec working together?
My success tiles is like this: "Antonio Petrelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007/12/12, Christopher Cheng <[EMAIL PROTECTED]>: >> >> success >> ... >> >> >> >> >> >> >> >> >> > > > > Where is the "success" Tiles definition? > > Ciao > Antonio > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
different tiles definition files for packages
Could I have a different tiles defintion file for different package like struts1? Is it possible to pass some parameters to TilesResult? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tiles and waitAndExec working together?
I have a problem of having tiles and waitAndExec working together. WaitAndExec and the tag cannot generate the action request correctly on the wait page. On the wait page "wait.jsp" uses the tiles template file "http://localhost:8080/jsp/layout/layout.jsp"; as the URL instead of http://localhost:8080/action1.action search.jsp: . struts.xml: 10 50 success wait tiles.xml: wait.jsp: <%@ taglib uri="/struts-tags" prefix="s" %> Please wait "/> Please wait while we process your request. Click ">Here if this page does not reload automatically. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
startup action in struts2
In struts1, I have a few plugin to preconfigure some services such as QuartzPlugIn during startup public void init(ActionServlet actionServlet, ModuleConfig moduleConfig) { try { SchedulerFactory sf = new StdSchedulerFactory(); Scheduler sched = sf.getScheduler(); sched.start(); } catch (Exception e) { e.printStackTrace(System.out); } } In strtus2, do I have to write a new plugin in a seperate jar? Is there a simpler way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: why hardcode the path of web.xml?
The reason is that I can use different configuraiton files for different instances. Anyway, I have modified ActionServlet myself and it is working fine. -- Christopher Cheng "Jerome Gagner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If you are using the resin-specific configuration options, you should > just separate that out into a resin-conf.xml. > > > What larry said, why do you want to do that? > > On 10/18/06, Christopher Cheng <[EMAIL PROTECTED]> wrote: >> I am using version 1.3.5 and found out that that path of web.xml is hard >> coded at line 1723 >> >> InputStream input = >> getServletContext().getResourceAsStream("/WEB-INF/web.xml"); >> >> In resin, I use to change the path of web.xml for example >> myapp-web.xml. As I start the application, the >> servlet crashes of course. >> In the mean time, I have added the following to ActionServlet to get >> around: >> >> String configWebXml = >> getServletConfig().getInitParameter("configWebXml"); >> >> if (input == null) { >> input = >> getServletContext().getResourceAsStream(configWebXml); >> } >> >> Could anybody fix this or everybody is already using Struts2? >> >> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
why hardcode the path of web.xml?
I am using version 1.3.5 and found out that that path of web.xml is hard coded at line 1723 InputStream input = getServletContext().getResourceAsStream("/WEB-INF/web.xml"); In resin, I use to change the path of web.xml for example myapp-web.xml. As I start the application, the servlet crashes of course. In the mean time, I have added the following to ActionServlet to get around: String configWebXml = getServletConfig().getInitParameter("configWebXml"); if (input == null) { input = getServletContext().getResourceAsStream(configWebXml); } Could anybody fix this or everybody is already using Struts2? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]