Thanks for the responses. Why would I not use the stripes templating functionality? I need to do this in a somewhat generic way. I have hundreds of pages that need to submit to the same form and each has generic info that is necessary for the form. I am trying not to hack this new application out of the box.
Is this simply a limitation of the framework? Perhaps I will dig through the code to see what is going on. Thanks -----Original Message----- From: Richard Hauswald [mailto:[email protected]] Sent: Monday, May 04, 2009 2:38 PM To: Stripes Users List Subject: Re: [Stripes-users] Stripes form in templates? 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 Barclays www.barclaycardus.com This e-mail and any files transmitted with it may contain confidential and/or proprietary information. It is intended solely for the use of the individual or entity who is the intended recipient. Unauthorized use of this information is prohibited. If you have received this in error, please contact the sender by replying to this message and delete this material from any system it may be on. ------------------------------------------------------------------------------ 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
