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

2008-10-14 Thread Haulyn R. 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

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

2008-10-14 Thread Haulyn R. 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

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

2008-10-14 Thread Haulyn R. 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

How to configurate struts2 based on Struts2-REST-Showcase app?

2008-10-14 Thread Haulyn R. 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

Re: Upgrade from 2.0.11 to 2.1.2Beta with REST and zero configuration

2008-10-09 Thread Haulyn R. Jason
Dave Newton 写道: --- On Thu, 10/9/08, Haulyn R. Jason wrote: 1.I have many user-defined Interceptors, How can I set up them without configuration? How to change the default Inteceptors-stack? AFAIK you still need to do that in XML, but it's pretty minimal. Could be wrong, t

Upgrade from 2.0.11 to 2.1.2Beta with REST and zero configuration

2008-10-09 Thread Haulyn R. Jason
Hi, all I tried the sample : struts2-rest-showcase-2.1.2.war, it looks cool, so, I think it's the time to upgrade my application from 2.0.11 to 2.1.2Beta, but, Hmm, with code-behind and rest-plugin, when I replace the jars, my application does not work. After reading the "upgrade tutorial", I have

How to retrieve data from ognl in common jsp tags?

2008-09-11 Thread Haulyn R. Jason
Hi,all I design a tag, it's very common and it's a jsp tag, the code is like: --- public class NewsCommentTag extends TagSupport { /** * */ private static final long serialVersionUID = 2

Re: Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Haulyn R. Jason
Dave Newton : --- On Tue, 8/19/08, Haulyn R. Jason wrote: When our client login our system, I can create a List contains privilege objects, it includes properties:action name and namespace, without a custom tag, how can I check whether this member should see the link? I mean, I do not

Re: Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Haulyn R. Jason
Dave Newton : --- On Tue, 8/19/08, Haulyn R. Jason wrote: And, where should I find something about how to create a custom tag for struts2? I think I need to create a custom tag for struts2 because I need to access the value stack. I would have guessed you kept your user object in

Re: Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Haulyn R. Jason
Jeromy Evans : > Haulyn R. Jason wrote: > >> Hi,all >> I have an Authentication problem. I use Interceptor to authenticate >> actions and methods, based on different member and different role. >> Everything works well.But my client can not access some resource,

Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Haulyn R. Jason
Hi,all I have an Authentication problem. I use Interceptor to authenticate actions and methods, based on different member and different role. Everything works well.But my client can not access some resource, for example a url, so they should not see the url. I think maybe I can re-write tag or usi

Re: How to resolve list property for ModelDriven Action?

2008-08-11 Thread Haulyn R. Jason
Dave Newton : Oh. So what are you asking then? How to create a select list? How to use the tag? Dave --- On Mon, 8/11/08, Haulyn R. Jason <[EMAIL PROTECTED]> wrote: From: Haulyn R. Jason <[EMAIL PROTECTED]> Subject: Re: How to resolve list property for ModelDriven Action?

Re: How to resolve list property for ModelDriven Action?

2008-08-11 Thread Haulyn R. Jason
Dave Newton : --- On Mon, 8/11/08, Haulyn R. Jason <[EMAIL PROTECTED]> wrote: I implement ModelDriven interface, but I have a list in my model. It looks like: public class Role(){ private String id; private String name ; private List privilegeList; } In my action, I have a set/get

How to resolve list property for ModelDriven Action?

2008-08-11 Thread Haulyn R. Jason
Hi, I implement ModelDriven interface, but I have a list in my model. It looks like: public class Role(){ private String id; private String name ; private List privilegeList; } In my action, I have a set/get method for Role Object, but what about the list? I am confused for retrieve data from my

Re: Issue with Url mapping with struts-action-extension=""

2008-08-06 Thread Haulyn R. Jason
Jeromy Evans 写道: > Haulyn R. Jason wrote: > >>> > In case it is a, I would try the following settings: >>> > >>> > struts.action.extension=,,action >>> > >>> >>> >>> >> 2.If I use

Re: Issue with Url mapping with struts-action-extension=""

2008-08-05 Thread Haulyn R. Jason
that should make > them bypass struts as you want. > (*Chris*) > > 2008/8/4 Haulyn R. Jason <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> > > Jeromy Evans 写道: > > Haulyn R. Jason wrote: > > > >> Hi,all > >>

Re: Issue with Url mapping with struts-action-extension=""

2008-08-04 Thread Haulyn R. Jason
other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Mon, 4 Aug 2008 17:23:45 +0800 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: Issue with Url mapping with struts-action-extension="" &

Re: Issue with Url mapping with struts-action-extension=""

2008-08-04 Thread Haulyn R. Jason
Jeromy Evans 写道: > Haulyn R. Jason wrote: > >> Hi,all >> I set struts-action-extension="" for no extension as "action" or "do" by >> default for struts2, and mapping all url to struts2 dispatcher as "/*". >> But, the p

Issue with Url mapping with struts-action-extension=""

2008-08-02 Thread Haulyn R. Jason
Hi,all I set struts-action-extension="" for no extension as "action" or "do" by default for struts2, and mapping all url to struts2 dispatcher as "/*". But, the problem is I can not access any jsp, html,css and js files. The page display:there are no action mapping for XXX.jsp action. Should any on