Re: Struts2 2.1.8 MD5 not found

2009-10-09 Thread Wes Wannemacher
On Monday 05 October 2009 07:37:25 am mailtolouis2020-str...@yahoo.com wrote: > Hi Wes, > > I just notice that I can select mirror from the download page, I tried many > different mirrors site, but still the MD5 and PGP link still not work. > Could you give me the mirror you use which is working fo

Re: Overriding default action mapper

2009-10-09 Thread Musachy Barroso
this is how you do it: musachy On Fri, Oct 9, 2009 at 2:59 PM, RogerV wrote: > > I've followed the instructions at > http://struts.apache.org/2.0.14/docs/actionmapper.html and defined my custom > mapper that extends DefaultActionMapper in struts.xml, but it won't load > because the mapper h

Overriding default action mapper

2009-10-09 Thread RogerV
I've followed the instructions at http://struts.apache.org/2.0.14/docs/actionmapper.html and defined my custom mapper that extends DefaultActionMapper in struts.xml, but it won't load because the mapper has already been loaded. I've never tried anything like this before so I'm at a total loss to k

Re: More Convention Confusion.

2009-10-09 Thread RogerV
Greg Lindholm-2 wrote: > > > I have thought about extending the DefaultActionMapper to accept a name > parameter with a syntax sorta like: > >name="action:myAction:method:MyMethod:param:name=value" > > I think this would be a useful enhancement. (Maybe someone with more time > on > there

Re: Prevent request filter invocation when struts action tag is invoked

2009-10-09 Thread Musachy Barroso
Use the "dispatcher" element in the "filter-mapping" element in web.xml, like: MyFilter /* REQUEST On Fri, Oct 9, 2009 at 10:16 AM, Pancham wrote: > > I have a request filter that needs to be executed only once during processing > of a request. Unfortunately, whene

Re: Error 500 problem.

2009-10-09 Thread Musachy Barroso
It seems like ajaxtags is doing something that xerces doesn't like: On Fri, Oct 9, 2009 at 10:44 AM, Bruno wrote: > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) >    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) >    at > net.sourceforge.ajaxtags.tags.BaseAja

Prevent request filter invocation when struts action tag is invoked

2009-10-09 Thread Pancham
I have a request filter that needs to be executed only once during processing of a request. Unfortunately, whenever another action is included within the same request using "action" tag, my request filter is invoked. How can I prevent invocation of request filter when an action is included using

Re: Weblogic and annotations

2009-10-09 Thread Musachy Barroso
search the mailing list, I vaguely remember this came up before. musachy On Fri, Oct 9, 2009 at 9:16 AM, Gregor Marinšek wrote: > Hi there! > > Well finally got the problem Weblogic when exploding WAR does not put > classes in WEB-INF/classes. That's why ClassFinder (via ClassLoader) does >

RE: Do something based on existence of action error - How?

2009-10-09 Thread Mike Baranski
I put the following in a DIV at the top of every page: <%@ taglib prefix="s" uri="/struts-tags" %>

Do something based on existence of action error - How?

2009-10-09 Thread james billa
Hi , I am using Struts 2.1.6. I want to show the content a only if action error exists. If not I don't want to show the content of my . How do I check whether action error exists or not in my page? The action error is set by my action class if there is an error. I have done to coding (CSS) to s

Weblogic and annotations

2009-10-09 Thread Gregor Marinšek
Hi there! Well finally got the problem Weblogic when exploding WAR does not put classes in WEB-INF/classes. That's why ClassFinder (via ClassLoader) does not find the actions if they are annotated. Does anybody has workaround for this issue or am I stuck to struts.xml? The first idea i g

Wanted: Custom id="something" parameter in rendered html:error

2009-10-09 Thread sinkpen
I am currently using struts' built in validation functionality but need to extend it somewhat. Currently I have the following error tag: When there is an error, some html is rendered which tells the user that the username is incorrect. The html rendered is something like this. The username i

Re: More Convention Confusion.

2009-10-09 Thread Greg Lindholm
>From what I can tell you cannot pass extra parameters with the 'method' attribute > method="display?templateId=%{#status.index}" /> Whatever you specify for method will be taken as the method name. So it is looking for a method named "display?templateId=0" which is invalid and not found. The

Re: Why Struts 2 if we configure Struts 2 and spring

2009-10-09 Thread nani2ratna
Hi Wes, Simple and very imp information Wes. Thank you very much. We chat in emails 2 years back regarding Struts2 when i was working in YODLEE. Any how nice to meet you again. Thanks and Regards Ratna Wes Wannemacher wrote: > > It's mostly a matter of preference. I prefer Struts 2 over Sprin

Re: Why Struts 2 if we configure Struts 2 and spring

2009-10-09 Thread Wes Wannemacher
It's mostly a matter of preference. I prefer Struts 2 over Spring Web Flow. There are many people who would choose Spring Web Flow thinking that it will provide better integration with Spring, but Struts 2's Spring support is top-notch, so it's easy to use Spring DI along with Struts 2's feature se

upload file problem

2009-10-09 Thread 纪晓曦
When I upload file I got ava.lang.IllegalArgumentException: Cannot invoke mov.plant.form.MovieOperationAddForm.setFile on bean class 'class mov.plant.form.MovieOperationAddForm' - argument type mismatch - had objects of type "java.lang.String" but expected signature "org.apache.struts.upload.FormF

Re: Looping problem

2009-10-09 Thread tobias.schoessler
I get this same phenomenon. running tomcat6. Is there any solution to this problem? This issue was filed in struts2's JIRA http://issues.apache.org/struts/browse/WW-2921 and closed as not a problem. Then what is the solution? -- View this message in context: http://www.nabble.com/Looping-pr

Why Struts 2 if we configure Struts 2 and spring

2009-10-09 Thread nani2ratna
Hi, I got one doubt. Why do we need struts 2 as UI, if we want to have spring as business layer. Becuase spring also have gud web framework. Can anybody explain. Thanks and Regards Ratna -- View this message in context: http://www.nabble.com/Why-Struts-2-if-we-configure-Struts-2-and-spring-tp

Re: Unit Testing Actions with Annotation based validation in Struts 2.1.6

2009-10-09 Thread bloodredsun
Well I've managed to create something that tests annotation based validations but it isn't pretty! This does not work for ModelDriven actions as it falls over with the VisitorFieldValidator not having a config. Here's an example. First we have the Action to test and then the Unit Test with all th