VelocityTools 2 has an XmlTool. Even if that doesn't fit your
particular need, the source code for it shows how to load an xml file
into a dom object and use the data that way.
On Wed, Feb 4, 2009 at 5:26 AM, Sathish Jayapal wrote:
> I have an application that uses struts actions rendering some
I have an application that uses struts actions rendering some
information and template's body content is from a XML file. I'm not
sure how to go about merging XML information along with struts
actionform. I tried various examples to get some information.
I was able to velocity working for
hmed Hamad <[EMAIL PROTECTED]> wrote:
> > Dears
> > I'm trying to run the *Velocity Struts Example* on WebSphere application
> > server 6.0 I'm getting the following exception:
> >
> > [1/23/08 8:42:31:015 AST] 002c ViewToolInfo E Exception when
'm trying to run the *Velocity Struts Example* on WebSphere application
> server 6.0 I'm getting the following exception:
>
> [1/23/08 8:42:31:015 AST] 002c ViewToolInfo E Exception when calling
> init(Object) on [EMAIL PROTECTED]
> [1/23/08 8:42:31:030 AST]
Dears
I'm trying to run the *Velocity Struts Example* on WebSphere application
server 6.0 I'm getting the following exception:
[1/23/08 8:42:31:015 AST] 002c ViewToolInfo E Exception when calling
init(Object) on [EMAIL PROTECTED]
[1/23/08 8:42:31:030 AST] 002c ViewT
:
>
> Are you still using Velocity 1.4? I'm pretty sure that it's not
> possible to get that same error with Velocity 1.5-beta2. Also, can
> you send the log output? And have you tried running the
> velocity-struts example app?
>
> On 2/21/07, janbrito <[EMAIL
Are you still using Velocity 1.4? I'm pretty sure that it's not
possible to get that same error with Velocity 1.5-beta2. Also, can
you send the log output? And have you tried running the
velocity-struts example app?
On 2/21/07, janbrito <[EMAIL PROTECTED]> wrote:
Hi Nathan,
#x27;
>>
>> java.lang.NullPointerException
>> at
>> org.apache.velocity.io.VelocityWriter.write(VelocityWriter.java:319)
>> at
>
> i don't remember the exact trigger for this, but this is a bug which
> has been fixed in Velocity 1.5-
ue);
then, in your template, just do:
$myDBValue
Thanks
--
View this message in context:
http://www.nabble.com/Velocity-Struts-tf3263441.html#a9071152
Sent from the Velocity - User mailing list archive at Nabble.com.
-
To unsu
va.lang.Thread.run(Thread.java:595)
So I pretty sure I've missed a step or two when setting Velocity up :)
Also, I would like to know how do I replace velocity tags with database
values I retrieve on my action classes.
Thanks
--
View this message in context:
http://www.nabble.com/Velocity-
10 matches
Mail list logo