I'm slowly integrating Velocity into my webwork pages, so know that I've got
*lots* of files that are *.jsp's, and some that are *.vm's. But the
questions themselves are more webwork related.

Q. #1
---
Is it possible for a form (extended from ActionSupport) to return a velocity
template (or ... return "new.success") which is mapped in the action.xml
file as ...

<action name="forms.InitForm" alias="init">
   <view name="new.success">newform.vm</view>
   <view name="new.error">newform.vm</view>
</action>

If so, which file (actions.xml or views.properties) overrides which? I have
been using views.properteis and am moving over gradually to actions.xml.
Meaning, I guess I can't have entries in both, or just in views.properties
if I want the ones in actions.xml to take effect, cause it seems views.props
overrides what's in actions.xml. Just want to clarify that. Problem w/ what
I've got above is the following ...

[Default] DEBUG [ServletDispatcher] Action:forms.InitForm
[Default] DEBUG [ServletDispatcher] Result:new.success
[Default] DEBUG [ServletDispatcher] No view found for action forms.InitForm

And I've got nothing mapped in views.properties for this Action ...
forms.InitForm.

Q. #2
---
I really like the webwork tables, and being new to velocity, is there a way
to use both webwork tags and velocity within the same page. I hope not to
have to rewrite the <webwork:table's as velocity templates.

Any help much appreciated.



_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to