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]
