velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "White, Tim" <Tim.Wh...@qwest.com>
Subject RE: design template based on user requirement
Date Wed, 02 Jul 2008 13:41:36 GMT
If I understand your question correctly, you have your own template, and
you want to let the user override it with their own customized version.

One way to do this is with resource loaders.

For example, if your templates are inside the .war file, you could set
the resource loader configuration to check a file system location first,
and then inside the .war.

If it finds a version of the template it's looking for (same exact name)
in the file system location, it will use that.  Otherwise, it will use
the version from the .war.

Hope this helps,

Tim 

-----Original Message-----
From: KumarE [mailto:srinil.kumar@gmail.com] 
Sent: Wednesday, July 02, 2008 3:32 AM
To: user@velocity.apache.org
Subject: design template based on user requirement


Hi,

     I am using velocity template, which i use to display output. But i
requires customization of existing template  and also  if user needs to
design a new template, he can design it according to his/her
requirement, is there any tool available along with the library so that
customization of an existing template  (or new template design) is
possible, or any one have idea regarding or is there any methods of
programming to be followed in order  to achieve  template customization.


thanks
Kumar E
--
View this message in context:
http://www.nabble.com/design-template-based-on-user-requirement-tp182336
09p18233609.html
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message