Jasha Joachimsthal wrote:
Hi Reinier,
I don't have JSP code for you, but maybe you can "translate" the
attachment into JSP. It's flowscript (serverside Javascript, Rhino).
As input it uses a submitted form with "name", "email", a hidden field
for "htmlversion". If there is only 1 mailgroup for the website that
allowes subscription by users it has a hidden field for this mailgroup,
otherwise it has checkboxes for each mailgroup.
To get a list of mailgroups, use
(nl.hippo.hca.newsletter.services.impl.NewsletterServiceImpl)
listMailGroups(int offset, int limit) (returns a List)
Filter this result with:
(nl.hippo.hca.newsletter.impl.MailGroupImpl)
getAllowSubscriptionsByUser() (returns a boolean)
and
(nl.hippo.hca.newsletter.impl.MailgroupImpl) getDomain() (returns an
integer, values: 0 for internet, 1 for intranet and 2 for extranet).
Correct! Actually you should try to use the interfaces and not the
implementations directly ;)
Regards,
Bart
I hope this helps you a bit.
Regards,
Jasha Joachimsthal
www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Reinier van den Born
Sent: woensdag 23 april 2008 16:24
To: Hippo CMS development public mailinglist
Subject: [HippoCMS-dev] Manipulating newsletter subscriptions
from thefrontend
Hi all,
Forgot to adjust subject. Sorry,
Reinier
Reinier van den Born wrote:
Hi,
I would like to check/add newsletter subscribers from the frontend
(result of submitting a form).
Frontend is implemented in JSP.
I guess I can mess in the DB tables, but...
Regards,
Reinier van den Born
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
------------------------------------------------------------------------
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
--
Hippo B.V. - Amsterdam
Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466
Hippo USA Inc. - San Francisco
101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
-----------------------------------------------------------------
http://www.onehippo.com - [EMAIL PROTECTED]
-----------------------------------------------------------------
********************************************
Hippocms-dev: Hippo CMS development public mailinglist