• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

work-flow of this project : how to send response ?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to get the work-flow of this project.

say , user type http://.../forum/list.page, it will go to central servlet, JForum.java , parse the url, use command pattern to invoke the forumAction's list function, save data into FreeMarker context, then it route back to response.

I got lost the last step: how to send response, which page it route the response to ? forum_show.htm or forum_list.htm ? how we know it ?

In what URL it will use " JForum.getResponse().sendRedirect(redirectTo)" ?�?�

I did learn a lot from this project.
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The html template JForum will use is set by the template context variable "moduleAction", set like



or, in the CVS version,




"forum_show.htm" is for "forums/show/<id>.page" and "forum_list.htm" is for "forums/list.page".

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Villains always have antidotes. They're funny that way. Here's an antidote disguised as a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic