cancel
Showing results for 
Search instead for 
Did you mean: 

Single web form to create multiple pages on diff location

daxter123
Champ in-the-making
Champ in-the-making
Hi,

Can i use one web forum to generate more than one JSP pages on different location? Like

One page should be generated at /mysite/one/one.jsp
Sec. page should be generated atl /mysite/two/two.jsp

remember only one web form should be use for page generation.

Please tell me step-by-step.


Thanks.
3 REPLIES 3

daxter123
Champ in-the-making
Champ in-the-making
Any Alfresco Guru.

tommorris
Champ in-the-making
Champ in-the-making
The short answer is "Yes you can".

I think this might be what you're looking for: http://wiki.alfresco.com/wiki/Forms_Developer_Guide

A single webform generates a single XML file containing the content complying with your defined XSD. Alongside this same webform you can assign more than one rendition template (XSL or FTL), which can generate more files associated with the web-form instance you just created (e.g. HTML, JSP, or even more XSDs an XMLs). The way you name these renditions is the same as naming (and locating) the main content XML file: Using the 'output path' expression.
This output path is effectively a freemarker template, and so is quite powerful.

So one of the templates could have the expression: /${webapp}/one/one.jsp
whilst the other one could have the expression:  /${webapp}/two/two.jsp

More examples: http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Output_Path_Pattern_Examples

Tom
http://www.ixxus.com

daxter123
Champ in-the-making
Champ in-the-making
Thanks Tom, I was looking the same thing.