Not doing it myself, so I hope this is enough to work with.
Thanks both of you,
Reinier
Bart van der Schans wrote:
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
begin:vcard
fn:Reinier van den Born
n:van den Born;Reinier
org:HintTech B.V.
adr:;;Rotterdamseweg 183c;Delft;;2629HD;Netherlands
email;internet:[EMAIL PROTECTED]
tel;work:+31-15-268 2573
tel;fax:+31-15-268 2567
tel;cell:+31-6 494 171 36
note;quoted-printable:KvK Den Haag nr. 27242282 | BTW nr. NL8062.16.396.B01=0D=0A=
=0D=0A=
HintTech levert specialisten op het gebied van softwareontwikkeling (.NET=
en Java), projectmanagement, informatiebeveiliging en business consulting=
.=0D=0A=
=0D=0A=
url:www.hinttech.com
version:2.1
end:vcard
********************************************
Hippocms-dev: Hippo CMS development public mailinglist