How can I debug java.lang.NoSuchMethodException with Struts action?

2015-10-27 Thread Christopher Cheng
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.NoSuchMethodE

integrating struts2 with a CMS

2017-02-03 Thread Christopher Cheng
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 j

startup action in struts2

2007-12-03 Thread Christopher Cheng
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

tiles and waitAndExec working together?

2007-12-11 Thread Christopher Cheng
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://localh

different tiles definition files for packages

2007-12-12 Thread Christopher Cheng
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] F

Re: tiles and waitAndExec working together?

2007-12-12 Thread Christopher Cheng
My success tiles is like this: "Antonio Petrelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007/12/12, Christopher Cheng <[EMAIL PROTECTED]>:

Re: tiles and waitAndExec working together?

2007-12-12 Thread Christopher Cheng
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 wor

struts2-showcase-2.0.11 ajax is not working under IE 7

2007-12-12 Thread Christopher Cheng
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 addition

Re: struts2-showcase-2.0.11 ajax is not working under IE 7

2007-12-13 Thread Christopher Cheng
er 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

why hardcode the path of web.xml?

2006-10-18 Thread Christopher Cheng
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 servle

Re: why hardcode the path of web.xml?

2006-10-20 Thread Christopher Cheng
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