• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

"insert" vs. "inserSave" actions in net.jforum.view.forum.PostAction

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks, I'd like to have something clarified regarding creating new posts. My line of reasoning about this is below; please correct anything if it is wrong.

The insert() method in PostAction seems to handle the creation of new posts. Now after it does some checks (see if forum is read-only etc.), it puts a bunch of values into the FreshMarker template and sends it back to the client (via the code in JForum.service()).

Now the tricky bit is that the 'action' attribute saved is 'insertSave', and the 'moduleAction' is 'post_form.htm'. This seems to me to indicate that PostAction.insertSave() is executed afterwards, which would make sense based on the code inside of it.

My question is, how does this happen? Does the response go back out to the client before insertSave() is called?

Thanks for any help!
[originally posted on jforum.net by Vlad]
reply
    Bookmark Topic Watch Topic
  • New Topic