I think there's a property you need to set in webwork.properties to tell
it you want to use .jhtml as the extension...

> -----Original Message-----
> From: David Nielsen [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 28, 2003 3:59 AM
> To: webwork-list
> Subject: RE: [OS-webwork] webwork2 xwork.xml
> 
> 
> I have changed it to:
> 
> 
>     <servlet>
>         <servlet-name>jhtml</servlet-name>
>        
> <servlet-class>com.opensymphony.webwork.dispatcher.ServletDisp
> atcher</servlet-class>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
> 
> --------------------------
> 
>     <servlet-mapping>
>         <servlet-name>jhtml</servlet-name>
>         <url-pattern>*.jhtml</url-pattern>
>     </servlet-mapping>
> 
> so my extention is .jhtml instead of .action in the url.
> 
> 
> On Fri, 2003-11-28 at 08:18, Mathias Berg wrote:
> > Maybe you are missing this mapping in the web.xml
> > 
> >  <servlet-mapping>
> >         <servlet-name>webwork</servlet-name>
> >         <url-pattern>*.action</url-pattern>
> >     </servlet-mapping>
> > 
> > -----Original Message-----
> > From: David Nielsen [mailto:[EMAIL PROTECTED]
> > Sent: den 27 november 2003 17:16
> > To: webwork-list
> > Subject: [OS-webwork] webwork2 xwork.xml
> > 
> > 
> > i have configured webwork2 with this xwork.xml:
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <xwork>
> >     <package name="default">
> >             <result-types>
> >                     <result-type 
> > class="com.opensymphony.webwork.dispatcher.ServletDispatcherResult"
> > name="dispatcher"/>
> >                     <result-type 
> > class="com.opensymphony.webwork.dispatcher.ServletRedirectResult"
> > name="redirect"/>
> >                     <result-type 
> class="com.opensymphony.xwork.ActionChainResult"
> > name="chain"/>
> >                     <result-type
> > class="com.opensymphony.xwork.VelocityResult"
> > name="velocity"/>
> >             </result-types>
> >             <interceptors>
> >                     <interceptor
> > class="com.opensymphony.xwork.interceptor.TimerInterceptor"
> > name="timer"/>
> >                     <interceptor
> > class="com.opensymphony.xwork.interceptor.LoggingInterceptor"
> > name="logger"/>
> >                     <interceptor
> > class="com.opensymphony.xwork.interceptor.ParametersInterceptor"
> > name="params"/>
> >                     <interceptor-stack name="defaultStack">
> >                             <interceptor-ref name="timer"/>
> >                             <interceptor-ref name="logger"/>
> >                             <interceptor-ref name="params"/>
> >                     </interceptor-stack>
> >             </interceptors>
> >             <action name="artwork"
> > class="authenticated.frames.mainframe.ArtworkAction">
> >                     <result type="velocity" name="success">
> >                             <param
> > name="location">templates/mainframe/artwork.vm</param>
> >                     </result>
> >                     <result type="velocity" name="input">
> >                             <param
> > name="location">templates/mainframe/artwork.vm</param>
> >                     </result>
> >                     <result type="velocity" name="error">
> >                             <param
> > name="location">templates/mainframe/artwork.vm</param>
> >                     </result>
> >                     <interceptor-ref name="defaultStack"/>
> >             </action>
> >     </package>
> > </xwork>
> > 
> > 
> > 
> > and have this action class:
> > 
> > public class ArtworkAction extends ActionSupport implements 
> > ActionInterface  {
> >     public String doExecute() {
> >             return SUCCESS;
> >     }
> > }
> > 
> > 
> > and web.xml:
> > 
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web 
> > Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > <web-app>
> >     <servlet>
> >         <servlet-name>jhtml</servlet-name>
> >        
> > 
> <servlet-class>com.opensymphony.webwork.dispatcher.ServletDispatcher</
> > servle
> > t-class>
> >         <load-on-startup>1</load-on-startup>
> >     </servlet>
> >     <servlet>
> >         <servlet-name>velocity</servlet-name>
> >        
> > 
> <servlet-class>com.opensymphony.webwork.views.velocity.WebWorkVelocity
> > Servle
> > t</servlet-class>
> >         <load-on-startup>1</load-on-startup>
> >     </servlet>
> > 
> >     <servlet-mapping>
> >         <servlet-name>jhtml</servlet-name>
> >         <url-pattern>*.jhtml</url-pattern>
> >     </servlet-mapping>
> >     <servlet-mapping>
> >             <servlet-name>velocity</servlet-name>
> >             <url-pattern>*.vm</url-pattern>
> >     </servlet-mapping>
> > </web-app>
> > 
> > 
> > 
> > 
> > but jboos complains about not knowing the action class
> > 
> > com.opensymphony.xwork.config.ConfigurationException: There is no 
> > Action mapped for action name artwork
> > 
> > i am trying to migrate to webwork2 from webwork1, so im 
> pretty new in 
> > this xwork stuff , can anyone help me out here ??
> > 
> > Regards David.
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program. Does 
> > SourceForge.net help you be more productive?  Does it help 
> you create 
> > better code?  SHARE THE LOVE, and help us help YOU!  Click Here: 
> > http://sourceforge.net/donate/ 
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program. Does 
> > SourceForge.net help you be more productive?  Does it help 
> you create 
> > better code?  SHARE THE LOVE, and help us help YOU!  Click Here: 
> > http://sourceforge.net/donate/ 
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program. 
> Does SourceForge.net help you be more productive?  Does it 
> help you create better code?  SHARE THE LOVE, and help us 
> help YOU!  Click Here: http://sourceforge.net/donate/ 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to