|
Re: parsing variable name in a velocity template: msg#00114jakarta.velocity.user
Put the Velocity context in the Velocity context. Then use the getKeys method to get an array of all the context keys. Check the javadoc for this at http://jakarta.apache.org/velocity/api/index.html. It is possible to have $something in a template without it referring to any context field, so regex won't work in all cases. Barbara Baughman X2157 On Tue, 20 May 2003, Normand Gagnon wrote: > Hi, > > Is there a way to know the names of all templates variable (I.E: > $variableName or ${variableName} ) used in a template? I want to create a > HTML form that will let the user fill-in the velocity context but key names > will vary depending on the velocity template selected by the user. > > The only way i'm thinking now, is using a Regex engine. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: velocity-user-unsubscribe@xxxxxxxxxxxxxxxxxx > For additional commands, e-mail: velocity-user-help@xxxxxxxxxxxxxxxxxx > > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | parsing variable name in a velocity template: 00114, Normand Gagnon |
|---|---|
| Next by Date: | Re: parsing variable name in a velocity template: 00114, Normand Gagnon |
| Previous by Thread: | parsing variable name in a velocity templatei: 00114, Normand Gagnon |
| Next by Thread: | Re: parsing variable name in a velocity template: 00114, Normand Gagnon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |