cancel
Showing results for 
Search instead for 
Did you mean: 

Help for my production/implementation scenario

lucbard
Champ in-the-making
Champ in-the-making
Hi all,

I have a special need, I read through the documentation and I am just not sure how to approach the problem.

I have a existing dynamic web site  (Linux, JSP/Struts/Oracle installed in Sun AS 9)


1.) I want to implement a blog and a news section that would be controlled by Alfresco (Alfresco would be the source).
2.) I want to be able to manage existing portion of my web site in Alfresco. (home page welcome message for example)
3.) I want Alfresco to run independently (on a different sever from my existing site)

- Was approach should I use. It there a taglib for jsp to access content of a remote Alfresco content server?
- I know there is a web script but I need the request to be encapsulated in a jsp/servlet page just in case I need to add a dynamic features.
- Do I need to use the WCM ?

I hope I am being clear.

Thank you so much for your help,
Luc
5 REPLIES 5

norgan
Champ in-the-making
Champ in-the-making
Hi Luc,
for a one way publishing, I can think of two approaches :
a) the "cleanest" way for a content syndication seems the RSS feed approach. Supply your space, which containts the content, with a proper RSS template. Commenting Function would not work within alfresco, though, but would have to be done by your frontend
b) deploying a "website", containing just the parts inquestion, in the path of you main application. Check with the WCM docs on a HowTo, i havent got around to that yet.

If you want to store the comments and stuff in Alfresco as well - you would need redirect your users to the alfresco server or write a webservice api, which reads & writes from/to alfresco.

Hope that helps,
Norgan

lucbard
Champ in-the-making
Champ in-the-making
Thank you for your reply.

My question is more about technology.

Here is a scenario:

My home page: home.jsp would have a place holder for a gretting message.

That greeting message would change regularly. I want that message segment to come from the Independent Alfresco repository.

Are the WebServices, Javascript or JSR 170 my only options or can I use WebScripts?

Thank again

norgan
Champ in-the-making
Champ in-the-making
Hi Luc,
for 2) so that means, your hello.jsp would be the frontend and you would need a importfunction, retrieving the contents, which is to be the greeting message.
THis is a oneway publishin path, so basically - you can use anything  😎 Even an RSS feed or even simple HTML with comment tags <!– greeting start –> Her is the welcome message : Yo Dude <!– greeting end –>,
its just a question your implementation of the importfunction and how much time you want to spend, which additional functionality you need, which performance,  amount of data, update cycles etc. you want.

Alfresco only would be the system, which provides the file, which is parsed then, if you use pure HTML with tags (as above), you could even use notepad, to edit it and store it on the network drive "Alfresco repository". transfer it into a publicly available space (guest space, for instance) and your www server can "import" the content.

for 1) For the blog, you can use the forum section and adapt your own templates for publishing. For news, you could build your own content type and still dont need WCM. You could also try the "alfresco-blog-integration.amp", which you can download on the sourceforge "module" section.

for 3) Do whatever pleases you Smiley Happy as long as the firewall & bandwith allow access between alfresco and your frontend www server.

Norgan

vijay_alfresco
Champ in-the-making
Champ in-the-making
Its very simple to use webscript. As part of webscript,

1. Create a javascript xxx.js to search for the new greetings.

2. Create a xxxx.get.html.ftl template which displays the message.

3. Call this webscript into your remote greetings jsp and display the return message.

Thanks,
Vijay

lucbard
Champ in-the-making
Champ in-the-making
Thank you vijay_alfresco !

That was the kind of strait  answer I was looking for.

Webscript is the solution to all my needs.

Thanks again,
Luc