This is what I'm using: <%@ include file="/WEB-INF/jsp-components/BaseCert/StockBucketCreateFormFields.jsp"%>
On Mon, May 4, 2009 at 8:35 PM, Richard Hauswald <[email protected]> wrote: > Why not using jsp:include ? > > On Fri, May 1, 2009 at 11:56 PM, Alex Brown <[email protected]> wrote: >> Hello, >> >> I am working on a project and I would like to have my form inside the >> template. However, if I do that, I get an exception that the >> “<stripes:text” field cannot be in outside a form... I got it working with >> one way but it is not pretty. Can anyone help? >> >> >> >> Here is the simple template I have: >> >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" >> "http://www.w3.org/TR/html4/strict.dtd"> >> >> <stripes:layout-definition> >> >> <html> >> >> <head> >> >> <title>${title}</title> >> >> <stripes:layout-component name="head" /> >> >> <link rel="SHORTCUT ICON" href="<bar:resource >> src="/img/favicon.ico"/>"> >> >> </head> >> >> <body> >> >> <stripes:form action="/Application.action"> >> >> <stripes:messages/> >> >> <stripes:errors globalErrorsOnly="true"/> >> >> <stripes:layout-component name="header"/> >> >> <stripes:layout-component name="contents"/> >> >> <stripes:layout-component name="footer"/> >> >> </stripes:form> >> >> </body> >> >> </html> >> >> </stripes:layout-definition> >> >> >> >> Here is the simple page: >> >> <stripes:layout-render name="/layout/landing-core.jsp" title="App"> >> >> <stripes:layout-component name="contents"> >> <bar:image id="logo" src="/img/logo.gif"/> >> <table> >> <tr> >> <td> >> <stripes:submit name="loadApplication" >> value="Apply"/> >> </td> >> </tr> >> </table> >> </stripes:layout-component> >> </stripes:layout-render> >> >> I was able to get it working by adding this to my page: >> >> <stripes:form action="/Application.action" partial="true"> >> >> Are there any other options I missed? I imagine there is another solution, >> but I am not sure how to get it working. >> >> Thanks! >> >> Alex >> >> ------------------------------------------------------------------------------ >> Register Now & Save for Velocity, the Web Performance & Operations >> Conference from O'Reilly Media. Velocity features a full day of >> expert-led, hands-on workshops and two days of sessions from industry >> leaders in dedicated Performance & Operations tracks. Use code vel09scf >> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf >> _______________________________________________ >> Stripes-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> >> > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
