.html is the default extension for Struts, so if your action is named "pentaho", it'll be available at /pentaho.html (unless you have a custom namespace). I don't know what's going wrong in your application, but adding a new action should be similar to how its done in the Person Tutorial. Have you done that tutorial?
Matt On 4/25/07, nmall <[EMAIL PROTECTED]> wrote:
Thanks, Matt. How do I redirect all the stderr or a log file. I did the following but somehow it is redirecting the page to http://localhost:8080/pentaho.html and it hangs there with a blank screen and the repeating error logs are too huge, the first part runs out of my sight. The last part looks like this. Why is it going to pentaho.html. Do I need to have a default pentaho.html. Thanks again!! eFilter.java:125) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1041) at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.j ava:106) at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:92) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1041) at org.appfuse.webapp.filter.LocaleFilter.doFilterInternal(LocaleFilter. java:63) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR equestFilter.java:77) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1041) at com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFi lter.java:42) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1041) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.do FilterInternal(OpenSessionInViewFilter.java:183) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR equestFilter.java:77) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1041) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F ilterChainProxy.java:264) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt erSecurityInterceptor.java:107) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi lterSecurityInterceptor.java:72) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F ilterChainProxy.java:274) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra nslationFilter.java:110) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F ilterChainProxy.java:274) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil ter(AnonymousProcessingFilter.java:125) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F ilterChainProxy.java:274) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R ememberMeProcessingFilter.java:142) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F ilterChainProxy.java:274) at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF ilter(SecurityContextHolderAwareRequestFilter.java:81) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F ilterChainProxy.java:274) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces singFilter.java:217) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F ilterChainProxy.java:274) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte r(HttpSessionContextIntegrationFilter.java:229) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F ilterChainProxy.java:274) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav a:148) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j ava:98) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1041) at org.springframework.web.filter.CharacterEncodingFilter.doFilterIntern al(CharacterEncodingFilter.java:77) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR equestFilter.java:77) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1041) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3 54) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:2 26) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:6 21) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand lerCollection.java:149) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection. java:123) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1 41) at org.mortbay.jetty.Server.handle(Server.java:269) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:43 0) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio n.java:692) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339) at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.jav a:270) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool .java:475) [aclproject] DEBUG [btpool0-2] ActionContextCleanUp.cleanUp(122) | skipping clea nup counter=1 mraible wrote: > > Your <s:form action> should match the name of your action. So changing: > > action="Pentaho" > > to: > > action="pentaho" > > Should solve your problem. > > Matt > > On 4/25/07, nmall <[EMAIL PROTECTED]> wrote: >> >> Hi Matt >> >> But these are just names for my actions - Pentaho has not yet even been >> called or integrated here. All I want to do is call a method report() >> inside >> an PentahoAction.java class when a button is clicked. Will the folllowing >> jsp and struts.xml do it. Thanks so much for any help! >> >> >> mraible wrote: >> > >> > If you take Pentaho out of the mix, does it work? It sounds like >> > there may be issues getting Pentaho to work with Struts 2. I'd >> > simplify the problem, then try to fix it. >> > >> > Matt >> > >> > On 4/25/07, nmall <[EMAIL PROTECTED]> wrote: >> >> >> >> Thanks for this input. The strange thing is I am modifying the jsps so >> >> they >> >> should be newer than the appfuse files. >> >> >> >> Another question about struts forms: >> >> >> >> If I have something like this in my jsp, will it call the method >> >> PentahoAction.report() when I click on the button.report >> >> as I have specified action as Pentaho. The section related to this >> action >> >> from struts.xml follows below. Thanks for any helpful input. It gives >> me >> >> "Page not found". The verbose log gives "Found item:method report" " >> >> Item >> >> is a normal form field" >> >> >> >> <s:form action="Pentaho" method="post" validate="true" id="Pentaho"> >> >> <li class="buttonBar bottom"> >> >> <s:submit key="button.report" method="report" >> >> onclick="onFormSubmit(this.form)"/> >> >> <s:submit key="button.cancel" name="cancel" >> cssClass="button"/> >> >> </li> >> >> </s:form> >> >> >> >> <action name="pentaho" >> class="org.appfuse.webapp.action.PentahoAction"> >> >> <interceptor-ref name="fileUploadStack"/> >> >> <result >> >> name="input">/WEB-INF/pages/pentahoDisplay.jsp</result> >> >> <result >> >> name="success">/WEB-INF/pages/pentahoDisplay.jsp</result> >> >> <result name="cancel" >> type="redirect">displayReport</result> >> >> </action> >> >> <action name="displayReport" >> >> class="org.appfuse.webapp.action.PentahoAction" method="report"> >> >> <result >> name="input">/WEB-INF/pages/pentahoDisplay.jsp</result> >> >> <result name="success" >> >> type="redirect">/WEB-INF/pages/pentahoDisplay.jsp</result> >> >> </action> >> >> >> >> >> >> mraible wrote: >> >> > >> >> > If you have files that are getting overwritten by AppFuse, it's >> likely >> >> > because the files are newer in AppFuse. The overlay is >> >> > timestamp-based, so as long as your files are newer, you shouldn't >> >> > have any issues. When you do, there's two ways to solve the >> problem: >> >> > >> >> > 1. Run a touch script like the one below (note: this probably won't >> >> > work on Windows): >> >> > >> >> > touch src/main/webapp/* >> >> > touch src/main/webapp/WEB-INF/* >> >> > touch src/main/webapp/WEB-INF/pages/* >> >> > >> >> > 2. In pom.xml, modify the maven-war-plugins configuration so your >> >> > files aren't overwritten: >> >> > >> >> > <plugin> >> >> > <artifactId>maven-war-plugin</artifactId> >> >> > <version>2.0.2</version> >> >> > <configuration> >> >> > <dependentWarExcludes> >> >> > >> >> > >> >> >> **/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/** >> >> > </dependentWarExcludes> >> >> > </configuration> >> >> > </plugin> >> >> > >> >> > HTH, >> >> > >> >> > Matt >> >> > >> >> > On 4/25/07, nmall <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> This is true forsrc/main/webapp/WEB-INF/menu-config.xml as well. I >> >> >> changed >> >> >> it - did a mvn clean -e jetty:run-war. I still didn't have the ones >> in >> >> >> target/work/webapp/WEB-INF and >> >> >> target/wat/work/appfuse-struts-2.0-m4/WEB-INF/ reflecting the >> >> changes. >> >> >> >> >> >> Thanks for any pointers. >> >> >> >> >> >> >> >> >> nmall wrote: >> >> >> > >> >> >> > Hi, >> >> >> > >> >> >> > Couple of questions: >> >> >> > >> >> >> > In the struts-basic project, the jsps are packaged and not >> present >> >> in >> >> >> the >> >> >> > src directory. I pulled them in and put them in >> >> >> > src/main/webapp/WEB-INF/pages directory. Is this right. Now when >> I >> >> do >> >> >> mvn >> >> >> > -e compile or mvn -e jetty:run-war, it doesn't put them >> >> automatically >> >> >> in >> >> >> > the target directories. What is the right place to do it. And >> would >> >> we >> >> >> > have to do a complete mvn jetty:run-war to pick up the latest >> jsps. >> >> >> > >> >> >> > Next question is a jsp question - pardon my ignorance. Where is >> the >> >> >> > horizontal menu buttons ( containing Upload, Adminstration etc >> being >> >> >> > defined in this jsp). Is it the glasslist line. What does >> glasslist >> >> do. >> >> >> > Thanks so much for your help! >> >> >> > I searched all of the struts documentation but could not find >> this >> >> in >> >> >> the >> >> >> > tags. >> >> >> > >> >> >> > >> >> >> > <%@ include file="/common/taglibs.jsp"%> >> >> >> > >> >> >> > <head> >> >> >> > <title><fmt:message key="mainMenu.title"/></title> >> >> >> > <content tag="heading"><fmt:message >> >> >> key="mainMenu.heading"/></content> >> >> >> > <meta name="menu" content="MainMenu"/> >> >> >> > </head> >> >> >> > >> >> >> > <p><fmt:message key="mainMenu.message"/></p> >> >> >> > >> >> >> > <div class="separator"></div> >> >> >> > >> >> >> > <ul class="glassList"> >> >> >> > <li> >> >> >> > <c:url value= "><fmt:message key="menu.user"/> >> >> >> > </li> >> >> >> > <li> >> >> >> > <c:url value= "><fmt:message key="menu.selectFile"/> >> >> >> > </li> >> >> >> > </ul> >> >> >> > >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> http://www.nabble.com/maven-and-jsps-tf3641389s2369.html#a10182405 >> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> >> > >> >> > >> >> > -- >> >> > http://raibledesigns.com >> >> > >> >> > >> --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> > For additional commands, e-mail: [EMAIL PROTECTED] >> >> > >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/maven-and-jsps-tf3641389s2369.html#a10185867 >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > http://raibledesigns.com >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/maven-and-jsps-tf3641389s2369.html#a10186092 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/maven-and-jsps-tf3641389s2369.html#a10186741 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
