You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Evgeniy Strokin <ev...@yahoo.com> on 2007/12/02 15:29:57 UTC
Form submit to the roller
Hello.. I need to submit form roller. I wanted to submit form to the same page and in the template call my castom method based on $model.getRequestParameter(...) value. But sometime roller doesn't even go to the template, I guess it takes the page from cache.
What is the right way to submit forms to the roller?
Thank you
Gene
Re: Form submit to the roller
Posted by Dave <sn...@gmail.com>.
On Dec 2, 2007 9:29 AM, Evgeniy Strokin <ev...@yahoo.com> wrote:
> Hello.. I need to submit form roller. I wanted to submit form to the same page and in the template call my castom method based on $model.getRequestParameter(...) value. But sometime roller doesn't even go to the template, I guess it takes the page from cache.
> What is the right way to submit forms to the roller?
The best way is to add a new servlet to process the post, then either
1) have that servlet either act as a rendering servlet (i.e. see the
CommentServlet as an example) or 2) redirect or forward to the page
servlet.
- Dave