Form in existing web page
Hello,
I would have another very basic question - I will excuse for that but it would be a very important question for me.
I have the task to add a form (name, surename, ..., submit- button) to an existing web page (the web page was developed by an external company) - actually a very basic task. Currently I have done some basic things with AEM 5.6. I did the tutorial http://helpx.adobe.com/experience-manager/using/first-osgi.html (thanks to smacdonald2008). So I know how to:
1. get a Node in a Bundle and get the properties of that bundle: ((JackrabbitSession) session).getNode("Path/to/node"); ...
2. get all users over a UserManager- object: ((JackrabbitSession) session).getUserManager();...
3. how to install a bundle and access the methods of a bundle over sling.getService(...) in a JSP (e.g. /apps/firstOSGI/components/page/keyTemplate/keyTemplate.jsp)
All the above things work fine. But I also have a lack of knowledge concerning how to implement my simple issue mentioned above. Our AEM environment has one Author- Instance and two Publish- Instances - so the Author- Instance replicates/pusblishes to the two Publish- Instances (and I work at our test environment)
My questions would be:
1. Where should I do the developing stuff (at Author- Instance and or at Publishing instances), Sorry for that question but I am not sure if it is developed in Author- Instance, than packaged and than installed in publish- instance or if i should develop this in the publish- instance?
2. How is the best practice to implement this form, the form should not live by its own - my current knowledge is that it can/should be a "content component" and that component must be added to the right page component - is that correct?
3. The content component than is a JSP with the HTML code (without head and body) and scriptlets for Java- Code. With the Java- Code I pick up the content I need for the form (e.g. for a combo box in the form) and fill it - is that correct?
4. after pressing the submit button of the form, an email should be send. Actually I know it with Spring MVC and in the Backend to send the email but I don't know how to do it with AEM. Is there something out of the box?
5. In the existing applications (/app) under /apps/projectName/components/ are "par" folders with "cq:Component"'s in it. I havnt' read about this folder. Maybe someone could explain what it should contain.
I know this are a lot of questions but I would need only (hompefully) the basic hints how to do it with AEM. So I say thanks a lot for your help!!!