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

using JForum as part of a larger site questions

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this is my first post, and I have read through a large part of this forum for information but I have a specific need and would like to address it to get ideas and possibly guidance.

I am a graduate student. An assignment has been made to replicate www.facebook.com functionality for our sememster project. My idea is to have picture albums, a personal forum, and a few other things.

Jforum is written in the form I need for the over all project(servlets/JSP) but to add the other functionality I have tossed around a few ideas. The things I would like to use are these.
-the login for jforum to be the login for the entire site.
-a layout much like the jforum.net site... which seems to be a coding change to the header.htm and footer.htm.
-usage of the jforum .page servlet mapping to handle the new actions I will create that will include album creation, picture upload and so on.

In looking through the code, the URLs are parsed in the jforum.java servlet and the conversions of those words is done using the config and globals classes and text files. How would I add my own module(not forum related) and still use the engine designed in the servlet?

What strings need to be in what files along with what classes need to be written to be able to click a link that I might place in the footer or header and it runs a call through the jforum servlet, checks auth, and then forwards the requestor to a pictures module?

I understand that I would need to add something to determine if the current user is the admin if this page or not... like in facebook, I can edit my pages but only view someone elses.

Any help is greatly appreciated and your forum application is very nice code.

Also, if my questions or assertions are off, please let me know and accept my apologizes

I am using NetBeans 5.5 on windows XP for development with mysql 5.0. so far, that is working perfectly. I just want to augment and add to the design.

Thanks.
[originally posted on jforum.net by asellon]
 
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
Look at the config/moduleMapping.properties and the templateMapping.properties files.

Of course, you might want to consider using a more industry standard MVC tool like Struts 2.0 or vRaptor (what JForum3 is using) for your stuff and just figuring out the SSO function. This way you'd be learning a tool that looks good on the resume.

But on the other hand, figuring out how JForum's MVC model works by messing around in the internals isn't bad training either. Often today it's not what you know/code but how fast you can understand/modify/build on someone else' code (which may or may not have documentation).

But then again, being an ancient that learned his first programming language using punch cards and printout, I also think every new programmer should have to use a batch processing system for one course. I'm not wishing punch cards on anyone, just something that requires you to enter your code, then submit it to be compiled/run, and then wait 15 minutes to get the results. Having to work in this environment teaches you to think thru logic ahead of time and better debugging skills that today's instant results tools.
[originally posted on jforum.net by monroe]
 
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
Thank you for your response.

I will look at the files you have listed.

As I understand it, the module is java code to handle the action. The template is the frontend htm file for display based on the action.

This course has covered servlets and JSP, but not struts. I, being a Microsoft coder by trade, just want to keep to the things covered and add further knowledge later when there is no timeline to adhere to.

Once I have looked at the things you mention and follw through code some more, I will possibly post again. I hope that is ok.

Again, thanks for your time.




[originally posted on jforum.net by asellon]
 
permaculture is giving a gift to your future self. After reading this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic