Problem in creating JSP pages using webforms

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2007 01:25 AM
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2007 06:27 AM
Yes it is.
You need to associate a template with your XSD.
It's easiest to create your JSP first as normal,
and then change the extension to '.ftl' and associate it as a freemarker template, with an output path that has '.jsp' as the extension.
When you submit a newly created web-form, a new rendition will be created that represents your JSP. If this works, you can go back and modify the ftl template to include freemarker codes that include data from the web-form's fields.
Also see this: http://forums.alfresco.com/viewtopic.php?t=9279
You need to associate a template with your XSD.
It's easiest to create your JSP first as normal,
and then change the extension to '.ftl' and associate it as a freemarker template, with an output path that has '.jsp' as the extension.
When you submit a newly created web-form, a new rendition will be created that represents your JSP. If this works, you can go back and modify the ftl template to include freemarker codes that include data from the web-form's fields.
Also see this: http://forums.alfresco.com/viewtopic.php?t=9279

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2007 07:49 AM
Thanks for your reply.
But I couldn't able to understand it as I am very new to alfresco.
Can u plz tell the solution in clearly so that I can understand it.
Thanks for your help..
But I couldn't able to understand it as I am very new to alfresco.
Can u plz tell the solution in clearly so that I can understand it.
Thanks for your help..

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2008 01:21 AM
Hi JoeU,
I have tried this. The steps i followed to generate a jsp using web form are:
create your xsd and jsp files.
In your jsp use ftl syntax to include the components from your xsd as normal eg.if your xsd is index.xsd use ${index.top_logo}
Companyhome–>Datadictionary–>webform–>create new webform–>browse and select your xsd–>next–>browse and select your jsp,make the Output path pattern:${name}.jsp–>give next and finally finish.
when you create content using this webform a .jsp file is generated.
Hope this helps,
Lakshmi
I have tried this. The steps i followed to generate a jsp using web form are:
create your xsd and jsp files.
In your jsp use ftl syntax to include the components from your xsd as normal eg.if your xsd is index.xsd use ${index.top_logo}
Companyhome–>Datadictionary–>webform–>create new webform–>browse and select your xsd–>next–>browse and select your jsp,make the Output path pattern:${name}.jsp–>give next and finally finish.
when you create content using this webform a .jsp file is generated.
Hope this helps,
Lakshmi
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2008 09:19 AM
Hi,
If you are new to Alfresco, i strongly recommend that you work through the WSF example. It will give you a good idea. It is at http://wiki.alfresco.com/wiki/WSF
A
If you are new to Alfresco, i strongly recommend that you work through the WSF example. It will give you a good idea. It is at http://wiki.alfresco.com/wiki/WSF
A

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2008 02:01 AM
I saw the link and started to work on it.
I want to change header.jsp to make it suitable as per our requirement.
I saw the code and unable to understand.
like:
<c:set var="headerXml" value="${ds:getConfiguration(pageContext,'Header')}"/>
<jsp:include page="${headerXml}"/>
Can u plz tell me what is ds:getConfiguration and from where this header value comes?
Thanks..
I want to change header.jsp to make it suitable as per our requirement.
I saw the code and unable to understand.
like:
<c:set var="headerXml" value="${ds:getConfiguration(pageContext,'Header')}"/>
<jsp:include page="${headerXml}"/>
Can u plz tell me what is ds:getConfiguration and from where this header value comes?
Thanks..
