How to setup exceptions with zero-configuration?

2008-10-17 Thread Haulyn Jason
Hi,all before I use codebehind and rest plugin in struts2.1.2Beta, I can solve exceptions as the follow code: SQLExceptionAction /DataAccess.jsp But,Now I use rest plugin and codebehind, no xml configuration. I know I can setup globle exception in my xml, but how to implement the same functi

Re: How to access actionMessage and actionError in with freemarker

2008-10-17 Thread Haulyn Jason
enmotel.cn http://www.vvthumb.com GTalk:[EMAIL PROTECTED] Skype:saharabear Haulyn Runner Jason - Original Message ---- From: Haulyn Jason <[EMAIL PROTECTED]> To: struts-mail-list Sent: Friday, October 17, 2008 3:12:13 PM Subject: How to access actionMessage and actionError in with freemarker H

Re: Is it a bug for

2008-10-17 Thread Haulyn Jason
<[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Friday, October 17, 2008 3:29:50 PM Subject: Re: Is it a bug for tag On Thu, Oct 16, 2008 at 5:00 PM, Haulyn Jason <[EMAIL PROTECTED]> wrote: > Hi, all > When I use , everything > works well, struts2 generate the html as

How to access actionMessage and actionError in with freemarker

2008-10-17 Thread Haulyn Jason
Hi,all I want to write a custom tag to display and in different style, so I write some freemarker page like this: <@s.if test="%{actionMessages}"> <@s.actionmessage /> <@s.if test="%{actionErrors}"> <@s.actionerror /> without the if logic, error messages ca

Re: How to setup Interceptor when using struts2.1.2 rest plugin with codebehind?

2008-10-16 Thread Haulyn Jason
ECTED] Skype:saharabear Haulyn Runner Jason - Original Message From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Thursday, October 16, 2008 7:53:03 PM Subject: Re: How to setup Interceptor when using struts2.1.2 rest plugin with codebehind? --- On Wed, 10/15

Is it a bug for

2008-10-16 Thread Haulyn Jason
Hi, all When I use , everything works well, struts2 generate the html as below: But when I want to add some parameters, and change the code as:,struts looks lost the namespace param. It generates the html as below: When I change the code to , it generates what I need as below: Can anybody t

Re: How to setup Interceptor when using struts2.1.2 rest plugin with codebehind?

2008-10-15 Thread Haulyn Jason
rest plugin? Thanks. --- Thanks! Mobile: +086-15864011231 Website:http://www.openmotel.cn http://www.vvthumb.com GTalk:[EMAIL PROTECTED] Skype:saharabear Haulyn Runner Jason - Original Message From: Haulyn Jason <[EMAIL PROTECTED]> To:

Re: How to setup Interceptor when using struts2.1.2 rest plugin with codebehind?

2008-10-15 Thread Haulyn Jason
12:51:03 AM Subject: Re: How to setup Interceptor when using struts2.1.2 rest plugin with codebehind? What do you mean by "application breaks"? Could it be that codebehind is not picking up the default interceptor (I doubt it anyway)? musachy On Wed, Oct 15, 2008 at 10:12 AM, Haulyn Ja

Re: How to setup Interceptor when using struts2.1.2 rest plugin with codebehind?

2008-10-15 Thread Haulyn Jason
to setup Interceptor when using struts2.1.2 rest plugin with > codebehind? > > Can you post the definition of your "newpackage" package? > > musachy > > On Wed, Oct 15, 2008 at 9:58 AM, Haulyn Jason <[EMAIL PROTECTED]> wrote: > > > Hi,all >

Re: How to setup Interceptor when using struts2.1.2 rest plugin with codebehind?

2008-10-15 Thread Haulyn Jason
ou post the definition of your "newpackage" package? musachy On Wed, Oct 15, 2008 at 9:58 AM, Haulyn Jason <[EMAIL PROTECTED]> wrote: > Hi,all > My application is running on struts2.1.2 with rest plugin and codebehind. > The code is like Struts2.1.2-rest-showcase.

How to setup Interceptor when using struts2.1.2 rest plugin with codebehind?

2008-10-15 Thread Haulyn Jason
Hi,all My application is running on struts2.1.2 with rest plugin and codebehind. The code is like Struts2.1.2-rest-showcase.war. But when I want to add my own Interceptors, something broken. I add a new package extends "struts-default" and re-defined the interceptor-stack as below:

Re: How to setup package based on Struts2-REST-Showcase app?

2008-10-14 Thread Haulyn Jason
e email every 10 mins, this is the 5th I get. musachy On Tue, Oct 14, 2008 at 10:20 AM, Haulyn Jason <[EMAIL PROTECTED]> wrote: > Hi, all > > I test my application based on Struts2-REST-Showcase.2.1.2Beta app. > Without any changes, it works well and looks pretty good. But I

How to setup package based on Struts2-REST-Showcase app?

2008-10-14 Thread Haulyn Jason
Hi, all I test my application based on Struts2-REST-Showcase.2.1.2Beta app. Without any changes, it works well and looks pretty good. But I need to do something more, so I create struts.xml and set up some new Interceptors and packages. I want to reset the package of OrdersController. I mean I cre