|
Re: parsing variable name in a velocity template: msg#00115jakarta.velocity.user
I understand your solution, but it is no what I mean. I was a *little bit* unclear about my problem, In fact, I don't want to read template variable from the context, but really from the template itself. So, how I do that? I need to create a html form that when submited, will be used to fill a context to generate another velocity template (the target template). So my html form need to include an input field for each variables contained in the target template. But, my problem is that i don't know in advance all variable names of the target template to create the appropriate html form because the target template is also submited by the user and it could be anything. So, if the user submit a template that contains a variable $foobar, I need to create dynamically a html form with an input field named "foobar". See my problem? At 03:07 PM 20/05/2003 -0500, Barbara Baughman wrote: Put the Velocity context in the Velocity context. Then use the getKeys |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: parsing variable name in a velocity template: 00115, Barbara Baughman |
|---|---|
| Next by Date: | Re: parsing variable name in a velocity template: 00115, Barbara Baughman |
| Previous by Thread: | Re: parsing variable name in a velocity templatei: 00115, Barbara Baughman |
| Next by Thread: | Re: parsing variable name in a velocity template: 00115, Barbara Baughman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |