Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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]
 
reply
    Bookmark Topic Watch Topic
  • New Topic