Re: [S2] + Spring - WebApplicationContext?

2007-06-22 Thread Shibing . Chen
Let your Action implements ApplicationContextAware interface. On 6/22/07, Paul <[EMAIL PROTECTED]> wrote: Probably a dumb question but does anyone have an example of the best way of obtaining the web application context within a Struts 2 action? I need to lookup and get a bean that I've config

Re: URL Parameters not working in Struts 2.0.6

2007-06-15 Thread Shibing . Chen
rks has the same issue as Struts 2.0, but when I sue the servletdispatcher everything is working just fine. I have submitted a but to apache. I wish they would bring back the servlet dispatcher code in struts 2.0 so that my apps would work. On 6/15/07, Shibing. Chen <[EMAIL PROTECTED]> wro

Re: URL Parameters not working in Struts 2.0.6

2007-06-15 Thread Shibing . Chen
I use tag and have this problem also. I have coded a DebugFilter and applied it before FilterDispatcher. In DebugFilter I output HttpServletRequest.getQueryString(), but it's always null. I'm so confused, is it a oc4j bug? On 6/15/07, tom tom <[EMAIL PROTECTED]> wrote: What exactly the tag you

Re: [s2] Can't get to work

2007-05-26 Thread Shibing . Chen
Actually, struts2(version 2.0.6) don't support , check the file struts-tag.tld, instead, you may have a try with , setting the type attribute to date or time (date is d default). works the same as in WebWork. The problem is, cant's work in AppFuse 2.xx but works well independently. Matt, any i

Re: Forward Action to Action

2006-10-23 Thread ShiBing Chen
Action chain can do that. On 10/21/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first first action to my second formbean (second action). I tried to do a setattribute in my first action befo

Re: Access ApplicationResource from java code

2006-10-18 Thread ShiBing Chen
Actually you can do that in your action class with getText() methods. On 10/19/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: Hi , I want to obtain the value of a key from ApplicationResource.properties file in my java code. Should i access the properties file directly or can i use some classes i

Re: init param in web.xml

2006-10-07 Thread ShiBing Chen
@dependency.struts.config@ just a placeholder, it will be replace by something related. On 10/7/06, meena <[EMAIL PROTECTED]> wrote: Hi I have the following lines in web.xml config /WEB-INF/[EMAIL PROTECTED]@ Here struts-config.xml is ok.But what is the meaning of @d

Re: [Struts 2] dynamic mapping in struts.xml config file

2006-09-21 Thread Shibing . Chen
I think struts2 can achieve that cos WebWork result type has a parse param. Check out WebWork doc for details. On 9/22/06, Garner Shawn <[EMAIL PROTECTED]> wrote: Is there any wat to map to dynamic results? /product/%{dynamic_product}/default.jsp --