Jason,

I've just now started trying this, but I'm having no luck.  Velocity is not
utilizing the namespace definition to find the template.  Suggestions?

XWORK.XML
===================
<?xml version="1.0" encoding="UTF-8"?>

<xwork>
        <package name="default">
                <result-types>
                        <result-type name="velocity"
class="com.opensymphony.webwork.dispatcher.VelocityResult"/>
                </result-types>
        </package>

        <package name="html" extends="default" namespace="/html">
                <action name="registration-form" class="x.x.registration.DisplayForm">
                        <result name="success" type="velocity">
                                <param name="location">Registration.vm</param>
                        </result>
                </action>
        </package>
</xwork>

ERROR
===================
Error executing action: Unable to find resource 'Registration.vm'

org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'Registration.vm'
        at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resour
ceManagerImpl.java:501)
        at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resourc
eManagerImpl.java:384)
        at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:814)
        at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:796)
        at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.ja
va:337)
        at org.apache.velocity.app.Velocity.getTemplate(Velocity.java:512)
        at
com.opensymphony.webwork.dispatcher.VelocityResult.execute(VelocityResult.ja
va:70)
        at
com.opensymphony.xwork.ActionInvocation.executeResult(ActionInvocation.java:
220)
        at
com.opensymphony.xwork.ActionInvocation.invoke(ActionInvocation.java:160)
        at com.opensymphony.xwork.ActionProxy.execute(ActionProxy.java:118)
        at
com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatc
her.java:153)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
        at com.evermind._hb.doFilter(.:59)
        at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(Unknown
Source)
        at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(Unknown
Source)
        at com.evermind._csb._phd(.:384)
        at com.evermind._csb._bkc(.:174)
        at com.evermind._ax._lpc(.:620)
        at com.evermind._ax._tzb(.:189)
        at com.evermind._bf.run(.:62)


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Jason Carreira
> Sent: Thursday, May 15, 2003 11:42 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] WW2: Themes/Skins/Whatever
>
>
> That's exactly what I was talking about. If you have an abstract
> package, then 2 packages which extend it with different namespaces, you
> can have different templates in the 2 different directories mapped by
> the namespaces. The namespace is still used to find the results (if
> they're mapped with a relative, and not absolute mapping).
>
> > -----Original Message-----
> > From: Pat Lightbody [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 15, 2003 11:24 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [OS-webwork] WW2: Themes/Skins/Whatever
> >
> >
> > Jason,
> > I think Michael is talking about how in WW 1.3 you could
> > execute the acton from any directory, thus having different
> > views in different directories. (correct me if I'm wrong).
> >
> > There are two ways to do this:
> >
> > 1) Create an action in no namespace and then you get the
> > behavior of WW 1.3
> >
> > 2) We make a DispatcherSkinResult that does what you need. I
> > know Chris Miller wrote a VelocitySkinResult to do that same
> > thing, but only for velocity.
> >
> > -Pat
> >
> > ----- Original Message -----
> > From: "Jason Carreira" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, May 15, 2003 8:11 AM
> > Subject: RE: [OS-webwork] WW2: Themes/Skins/Whatever
> >
> >
> > > You can have an abstract package with all of the action
> > definitions,
> > > then have two non-abstract packages which extend the parent package
> > > with different namespaces.
> > >
> > > Matt has done some work on making the UI widgets use
> > different themes,
> > > but I'm not sure where that is now...
> > >
> > > Jason
> > >
> > > > -----Original Message-----
> > > > From: Michael Blake Day [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, May 15, 2003 11:12 AM
> > > > To: Webwork Mailing List
> > > > Subject: [OS-webwork] WW2: Themes/Skins/Whatever
> > > >
> > > >
> > > > How are skins going to be handled in WebWork 2?  I need
> > the ability
> > > > to provide different view results based on the accessing client
> > > > (specifically, HTML and WAP).
> > > >
> > > > With the current codebase, I can perform a workaround where I map
> > > > "dual-map" actions in multiple namespaces.  The namespaces would
> > > > correspond to a skin's name in addition to the real
> > namespace.  This
> > > > is obviously not a good solution (I can already see my
> > configuration
> > > > file becoming an unmanageable beast with one mapping per action.)
> > > >
> > > > So, has anyone put any thought toward this yet?
> > > >
> > > > Also, does anyone have any ideas on how we would migrate existing
> > > > WW1.3 apps that already make extensive use of skins?
> > > >
> > > > Blake
> > > >
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa
> > > > Clara The only event dedicated to issues related to Linux
> > enterprise
> > > > solutions www.enterpriselinuxforum.com
> > > >
> > > > _______________________________________________
> > > > Opensymphony-webwork mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > > >
> > >
> > >
> > > -------------------------------------------------------
> > > Enterprise Linux Forum Conference & Expo, June 4-6, 2003,
> > Santa Clara
> > > The only event dedicated to issues related to Linux enterprise
> > > solutions www.enterpriselinuxforum.com
> > >
> > > _______________________________________________
> > > Opensymphony-webwork mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
> >
> >
> > -------------------------------------------------------
> > Enterprise Linux Forum Conference & Expo, June 4-6, 2003,
> > Santa Clara The only event dedicated to issues related to
> > Linux enterprise solutions www.enterpriselinuxforum.com
> >
> > _______________________________________________
> > Opensymphony-webwork mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
>
>
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux enterprise solutions
> www.enterpriselinuxforum.com
>
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
>
>



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to