Re: Using Struts forms inside a Jahia request
tom * <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.devel |
|---|---|
| Message-ID | <[email protected]> |
Have you tried to just put <form action="/jahia/MyTest.do"></form> as a form tag? And not to use the html:form tag. Depends on what you want to do with your struts form, but this worked out for us. regards, Tom On 25/01/06, Robert Gacki <[email protected]> wrote: > > Hello, > > I have to use Struts actions to process forms. These forms must be defined > within templates, surrounded by Jahia content. It is mandatory too, that I > am > able to pass values to the action defined within the CMS (e.g. e-mail > addresses > for a mail form). For testing, I defined an action mapping and created a > form. > But when I use the Strut's html:form tag within the template, the path to > the > action is not valid: > > <html:form action="/MyTest"></html:form> > > Will render: > > <form action="/jahia/Jahia/MyTest"></form> > > And not: > > <form action="/jahia/MyTest(.do)"></form> > > I searched the documentation and mailing list for this issue, but found > nothing. > > Neither am I allowed to do the form handling using scriptlets, nor have > time to > build a workaround for the action handling (including form validation, > returning > to the Jahia content page after submitting (with errors)). > > Is it possible to use Jahia with Struts this way, at all? What is best > practice > if it is possible? > > Greetings > Robert Gacki > > -------------------------[Robert Gacki]------------------------ > mail: [email protected] tel: +49 09131 97792-0 > web : http://www.spiritlink.de fax: +49 09131 9779257 > ---- SPIRIT LINK GMBH::PAUL-GORDAN-STR. 13::91052 ERLANGEN ---- > >