[opencms-dev] (no subject)

Laurent Druart druart at ugr.be
Thu Oct 21 11:05:31 CEST 2021


Hi Jochen,

Thanks for these infos.

Do you have info related to Groovy in OpenCMS?

Thank you,

Laurent

Le 21-10-21 à 10:34, Jochen Graf a écrit :
> Hi Laurent,
>
> see the Mercury login form [1] as an example.
>
> - it is common practice to implement a form as a "dynamic function" 
> [2]; in this way, you can later drag and drop your form at any place 
> on any page
> - it is also common practice to handle the form action(s) and the form 
> itself with one JSP, i.e., the form action targets to the form itself
> - there is nothing special with writing the client-side part, it is 
> just writing a form with JSP
> - use <cms:secureparams> [3] for automatic parameter escaping
> - implement any server-side logic with a Java form handler extending 
> org.opencms.jsp.CmsJspActionElement [4]
>
> Best
>
> Jochen
>
> [1] 
> https://github.com/alkacon/mercury-template/blob/master/alkacon.mercury.template/resources/system/modules/alkacon.mercury.template/functions/login.jsp
> [2] 
> https://documentation.opencms.org/opencms-documentation/demos/dynamic-functions/index.html
> [3] https://documentation.opencms.org/javadoc/tld/
> [4] 
> https://documentation.opencms.org/javadoc/core/org/opencms/jsp/CmsJspActionElement.html
>
> Am 21.10.21 um 09:35 schrieb Laurent Druart:
>> Hello,
>>
>> I'm newbie with OpenCMS and I'm looking for a tutorial "how to create 
>> my own form in a page and the action of the form". I don't want to 
>> use the form generator in mercury template.
>>
>> Another question: can I use Groovy with OpenCMS (11 or 12)? I've seen 
>> this article:
>>
>> http://www.opencms-wiki.org/wiki/Scripting_language_integration_(Groovy/PHP) 
>>
>>
>> but it's related to version 8.
>>
>> Thanks for your help.
>>
>> Kind regards,
>>
>> Laurent
>>
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please 
>> visit
>> https://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>>
>>



More information about the opencms-dev mailing list