This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
Hi All,
I have created simple template and component and
<%@include file="/libs/foundation/global.jsp"%>
<%--
<%@page session="false" %>
--%>
<
<
<
</
<
<h1>Hello Sling Servlet!!!</h1>
<h2>This page will post data to an Adobe CQ Sling Servlet</h2>
</
</
I could able to create page with this
Can someone help me in fixing this issue.
Thanks,
Kishore
Solved! Go to Solution.
Views
Replies
Total Likes
That happens when you make a typo or mistake when creating the template. Create the template and page component again. Try following:
To create an application folder structure:
Note:
You have to click the Save All button when working in CRXDELite for the changes to be made.
You can create a template by using CRXDE Lite. A CQ template enables you to define a consistent style for the pages in your application. A template comprises of nodes that specify the page structure.
To create a template, perform these tasks:
1. To view the CQ welcome page, enter the URL http://[host name]:[port] into a web browser. For example, http://localhost:4502.
2. Select CRXDE Lite.
3. Right-click the template folder (within your application), select Create, Create
Template.
4. Enter the following information into the Create Template dialog box:
5. Add a path to Allowed Paths. Click on the plus sign and enter the following value: /content(/.*)?.
6. Click Next for Allowed Parents.
7. Select OK on Allowed Children.
Components are re-usable modules that implement specific application logic to render the content of your web site. You can think of a component as a collection of scripts (for example, JSPs, Java servlets, and so on) that completely realize a specific function. In order to realize this functionality, it is your responsibility as a CQ developer to create scripts that perform specific functionality.
By default, a component has at least one default script, identical to the name of the component. To create a render component, perform these tasks:
1. To view the CQ welcome page, enter the URL http://[host name]:[port] into a web browser. For example, http://localhost:4502.
2. Select CRXDE Lite.
3. Right-click /apps/firstOSGI/components/page, then select Create, Create Component.
4. Enter the following information into the Create Component dialog box:
5. Select Next for Advanced Component Settings and Allowed Parents.
6. Select OK on Allowed Children.
7. Open the slingTemplateJCR.jsp located at:/apps/firstOSGI/components/page/keyTemplate/keyTemplate.jsp.
8. Enter the following JSP code.
1 2 3 4 5 6 7 8 9 | <html> <head> <title>Hello World !!!</title> </head> <body> <h1>Hello Key Service!!!</h1> <h2>This page will post data to a Key Service</h2> </body> </html> |
Views
Replies
Total Likes
That happens when you make a typo or mistake when creating the template. Create the template and page component again. Try following:
To create an application folder structure:
Note:
You have to click the Save All button when working in CRXDELite for the changes to be made.
You can create a template by using CRXDE Lite. A CQ template enables you to define a consistent style for the pages in your application. A template comprises of nodes that specify the page structure.
To create a template, perform these tasks:
1. To view the CQ welcome page, enter the URL http://[host name]:[port] into a web browser. For example, http://localhost:4502.
2. Select CRXDE Lite.
3. Right-click the template folder (within your application), select Create, Create
Template.
4. Enter the following information into the Create Template dialog box:
5. Add a path to Allowed Paths. Click on the plus sign and enter the following value: /content(/.*)?.
6. Click Next for Allowed Parents.
7. Select OK on Allowed Children.
Components are re-usable modules that implement specific application logic to render the content of your web site. You can think of a component as a collection of scripts (for example, JSPs, Java servlets, and so on) that completely realize a specific function. In order to realize this functionality, it is your responsibility as a CQ developer to create scripts that perform specific functionality.
By default, a component has at least one default script, identical to the name of the component. To create a render component, perform these tasks:
1. To view the CQ welcome page, enter the URL http://[host name]:[port] into a web browser. For example, http://localhost:4502.
2. Select CRXDE Lite.
3. Right-click /apps/firstOSGI/components/page, then select Create, Create Component.
4. Enter the following information into the Create Component dialog box:
5. Select Next for Advanced Component Settings and Allowed Parents.
6. Select OK on Allowed Children.
7. Open the slingTemplateJCR.jsp located at:/apps/firstOSGI/components/page/keyTemplate/keyTemplate.jsp.
8. Enter the following JSP code.
1 2 3 4 5 6 7 8 9 | <html> <head> <title>Hello World !!!</title> </head> <body> <h1>Hello Key Service!!!</h1> <h2>This page will post data to a Key Service</h2> </body> </html> |
Views
Replies
Total Likes
Thanks You So much and now the page is rendering properly.
I am new to components/templates designing and implementing
If you have any pointers please share with me that information.
Thanks Once Again
Views
Replies
Total Likes
One resource is How to Create a Fully Featured Internet Website.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies