[opencms-dev] how to manage jsp
Alexander Wallace
aw at avatartechnology.com
Tue Aug 23 16:47:32 CEST 2005
it really doesn't matter where you put it as long as you use the right thing
to point to it from the form... For example, i create a module for my site,
and it has a directory called "actions", so there is a:
/system/modules/com.mysite.site/actions/mailer.jsp
and your template is in:
/system/modules/com.mysite.site/templates/mytemplate
It has a form that has a tag like:
<form action="<cms:link>../actions/mailer.jsp</cms:link>" method="POST"
name="emailForm">
... your form here
</form>
So, when the form posts to the jsp, the jsp needs to also take them to the
right place...
And this is just one way to do it... you could have the jsp code in the same
form and have the form submit to itself or whatever..
Hope this helps..
On Tuesday 23 August 2005 09:16 am, Aleksandra wrote:
> Ola,
> thanks for replaying bit can u be more precise Alexander.
> You are sugesting me to create a temlate that has form
> inside and that the action is mailer.jsp right?
> But where i should put mailer.jsp(the scroplet for sending
> emails)?
> Thank u,
> and what properties should i put for it
> Aleksandra
> =========================================================
> Zastedi 70% na razgovorite so stranstvo.
> 15 denari minuta za bilo koja zemja vo svetot.
> http://www.ozone.net.mk
> info telefon (02)3100.800 24h na den
> =========================================================
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list