JUnit in Struts

2011-07-12 Thread Udhay
Hi, Please help me how to perform JUnit testing in Struts 1.1 applications. Kindly share me any links and other information that will help me a lot. Thanks in advance. GoodWill, Udhay

Re: Documentation styles missing some classes?

2011-07-12 Thread Łukasz Lenart
Could you check now ? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands,

Re: JUnit in Struts

2011-07-12 Thread Dave Newton
Depends on what you're trying to test. For integration/functional testing I wouldn't use JUnit, I'd use easyb, jwebunit, or whatever. I've never bothered unit testing S1 actions because it's so irritating sure to the servlet spec dependencies, but if you search the web there's quite a few

addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Emi Lu
Hello List, Struts2.2.3, it seems that addActionMessage does not show message after redirect. Someone knows why? Thank you, Emi Action.java this.addActionMessage(this.getText(UPDATE.SUCCESS)); return forward_str; action name=*Action method={1} class=Action

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dave Newton
Because it's a redirect, and things in the request go away when there's a new request. Dave On Tue, Jul 12, 2011 at 11:39 AM, Emi Lu em...@encs.concordia.ca wrote: Hello List, Struts2.2.3, it seems that addActionMessage does not show message after redirect. Someone knows why? Thank you,

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Emi Lu
It works for 2.2.1, but the message does not shown for 2.2.3 anymore! Is it a bug? I have a lots classes depend on it. Thanks a lot! Emi On 07/12/2011 11:39 AM, Emi Lu wrote: Hello List, Struts2.2.3, it seems that addActionMessage does not show message after redirect. Someone knows why?

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dave Newton
I'll need to be convinced that using a stock interceptor stack, and prototype-scope actions (if using Spring), will keep something in the request across requests. Dave On Tue, Jul 12, 2011 at 11:45 AM, Emi Lu em...@encs.concordia.ca wrote: It works for 2.2.1, but the message does not shown for

Struts2 Development Quick Turnaround

2011-07-12 Thread mmckenzie
Hello, I'm look for a solution that will allow me to make significant changes to action classes (change method signatures, add new methods etc.) but not have to redploy the application. I was curious if anyone is using anything other than jrebel or hotswap(running in debug mode, very limited)

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Emi Lu
Hi Dave, Because it's a redirect, and things in the request go away when there's a new request. Not true for previous version. Previous version keeps the ActionMessage. Only ActionErrorMessage does not show. Only the new version does not show the message anymore after redirect, do you

RE: Struts2 Development Quick Turnaround

2011-07-12 Thread Martin Gainty
assuming you are refactoring one of the webapp configuration files you can deploy the refactored webapp to a container which supports 'hot-deploy' http://www.mulesoft.com/tomcat-deploy#host-auto Martin __ Verzicht und Vertraulichkeitanmerkung/Note de

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Chris Pratt
That is definitely not my experience. As Dave said, the Action/Field Errors/Messages have always been stored in the request and lost across a redirect. There have been several interceptors that have been talked about on this list to bridge that problem, but they are not on the stack by default.

RE: Struts2 Development Quick Turnaround

2011-07-12 Thread mmckenzie
We use jboss eap 5.0.1. The problem is we have to deploy our struts2 application along with a coldfusion application in the same container. I need something that can monitor the class files for changes and reload them automatically. Mitch From: Martin Gainty mgai...@hotmail.com To:

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dave Newton
On Tue, Jul 12, 2011 at 12:05 PM, Emi Lu wrote: Because it's a redirect, and things in the request go away when there's a new request. Not true for previous version. Previous version had a bug, then, because by default, anything relating to an action's instantiation should go away during a

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread stanlick
Dave is right Emi. I have been working with other frameworks recently, and what Struts/2 needs is a simple FlashScope that allows a request to last two life-cycles. However, unless you were doing something OOTO, a request in Struts/2 lasts for one reqest/response trip. Peace, Scott On Tue, Jul

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Emi Lu
Thank you for all inputs! All right, I will have to change my codes. Emi On 07/12/2011 12:57 PM, stanl...@gmail.com wrote: Dave is right Emi. I have been working with other frameworks recently, and what Struts/2 needs is a simple FlashScope that allows a request to last two life-cycles.

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dave Newton
Do you understand /why/ we're saying it? IMO it'd be beneficial to understand why you're seeing a change in behavior. Dave On Jul 12, 2011 1:17 PM, Emi Lu em...@encs.concordia.ca wrote: Thank you for all inputs! All right, I will have to change my codes. Emi On 07/12/2011 12:57 PM,

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Emi Lu
On 07/12/2011 01:21 PM, Dave Newton wrote: Do you understand /why/ we're saying it? IMO it'd be beneficial to understand why you're seeing a change in behavior. There were a long discuss about this issue in several emails long time ago. I will try to find them and forwarded them to you.

Struts2 with Chart drill downs

2011-07-12 Thread CRANFORD, CHRIS
I am needing to find a way to integration JFreeChart with my Struts2 application to render image graphics with drill down functionality. I do believe the framework offers a way to create image maps for the graphics, but I haven't been able to find a way to get the ChartPlugin to support these so

struts 2.2.3 not reloading changes made to xml config

2011-07-12 Thread mmckenzie
http://struts.apache.org/2.2.3/docs/how-can-we-force-the-action-mappings-strutsxml-to-reload.html According to the link above struts should reload config changes automatically when in devMode. I have config files that are included in the struts.xml file. ( include file=common/common-struts.xml

Using string literals or references to objects in @s.url?

2011-07-12 Thread struts . rgm
Which of these is more correct when using Struts2 freemarker tag dynamic attributes for @s.url: @s.url action=viewitem itemid=${item.itemid?c} / or @s.url action=viewitem itemid=item.itemid / I've been favoring the second example, since it doesn't require me to remember to do

Re: Using string literals or references to objects in @s.url?

2011-07-12 Thread Dave Newton
On Tuesday, July 12, 2011, struts@spamgourmet.com wrote: Which of these is more correct when using Struts2 freemarker tag dynamic attributes for @s.url:        @s.url action=viewitem itemid=${item.itemid?c}  / or        @s.url action=viewitem itemid=item.itemid / I've been favoring

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dale Newfield
On 7/12/11 12:57 PM, stanl...@gmail.com wrote: what Struts/2 needs is a simple FlashScope that allows a request to last two life-cycles. Unfortunately most pages are a result of many requests (images, stylesheets, ajax requests, scripts, etc.), so that constant number (2, 7, 99, whatever)

Error 404: com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException:

2011-07-12 Thread sivaks75
Hi, I am using struts 1.3 and running my application in WAS7. When I try to access my application(http://localhost:9080/dashboard/index.html where dashboard is context root), I get the below error. Error 404: com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException:No target servlet

Re: struts 2.2.3 not reloading changes made to xml config

2011-07-12 Thread Łukasz Lenart
How do you deploy your application ? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For