Re: Struts 2 session problem

2009-01-21 Thread musomesa
SEAM does use a conversation id that is passed in the traffic to the client. The longer "business process context" stores data in a database so that another participant in the process on logging in can work on it. Chris -Original Message- From: Greg Lindholm To: user@struts.ap

@Result annotation (2.1.6) -- name does not default to 'success'

2009-02-18 Thread musomesa
I noticed while upgrading that the new @Result annotation [import org.apache.struts2.convention.annotation.Result] forces you to explicitly put in the name attribute. Is there a reason fro dropping the convention that it defaults to "success"? Chris Mawata

Re: @Result annotation (2.1.6) -- name does not default to 'success'

2009-02-19 Thread musomesa
Hi Pawel     agreed -- I was trying to dodge the massive renaming of the jsps to hyphenated names. Oh well... Cheers Chris -Original Message- From: Paweł Wielgus To: Struts Users Mailing List Sent: Thu, 19 Feb 2009 3:12 am Subject: Re: @Result annotation (2.1.6) -- name does not defaul

Re: WARNING: Could not find action or result There is no Action mapped for na...

2009-02-20 Thread Musomesa
In your index.jsp if seems you are saying so the framework is searching the default "/" namespace. Try ** A Good Credit Score is 700 or Above. See yours in just 2 easy steps! (http://pr.atwola.com/promoclk/100126575x1218822736x1201267884/aol?redir=http:%2F%2Fwww.freecreditreport

Re: @Result annotation (2.1.6) -- name does not default to 'success'

2009-02-20 Thread musomesa
Wasn't aware of it (the separator) and that any single character does the separation trick. Thanks for the pointer. Chris -Original Message- From: Dave Newton To: Struts Users Mailing List Sent: Thu, 19 Feb 2009 12:58 pm Subject: Re: @Result annotation (2.1.6) -- name does not defau

Re: Nested iterator struts 2.1.6 -- automatically rebuild the collection

2009-02-20 Thread musomesa
What do you have inside the iterator tag?? Hard to diagnose without knowing what you have. Some possible causes: A a possible OGNL expression error inside your iterator tag. If the Sample objects are not built-in java objects (String, Date..) you might be having type conversion problems? Are

Re: Nested iterator struts 2.1.6 -- automatically rebuild the collection

2009-03-01 Thread musomesa
Hi Phan, ??? I wrestled with this problem until I was out of my depth.? I tried it with an ArrayList> initialized as [[1.0, 2.0, 3.0], [7.0, 8.0, 9.0]] and on resubmission the data keeps getting flattened to [[[1.0]], [[2.0]], [[3.0]], [[7.0]], [[8.0]], [[9.0]]] :( Here is what I have dug u

Re: org.apache.jasper.JasperException: tag 'select', field 'list', name 'fieldTypeID'

2009-03-13 Thread musomesa
es you the Map and use the tag as you populate the select. Cheers Chris aka musomesa -Original Message- From: Muthu Velappan To: user@struts.apache.org Sent: Fri, 13 Mar 2009 2:12 pm Subject: org.apache.jasper.JasperException: tag 'select', field 'list', name '

Do all actions in an action class (struts 2.1) have to inherit definitions from the same package?

2009-03-13 Thread musomesa
Question on design intent: I noticed that the @Action annotation does not have attributes for a parent namespace so if you have multiple actions in the same class you only have the @ParentPackage class level annotation to indicate the location of definitions for custom inteceptors, results etc.

Re: Do all actions in an action class (struts 2.1) have to inherit definitions from the same package?

2009-03-14 Thread musomesa
Thanks for clarifying. Chris -Original Message- From: Musachy Barroso To: Struts Users Mailing List Sent: Fri, 13 Mar 2009 10:44 pm Subject: Re: Do all actions in an action class (struts 2.1) have to inherit definitions from the same package? yes On Fri, Mar 13, 2009 at 4:53 AM,

Re: Struts 2 instance creation in memorey

2009-03-16 Thread musomesa
Hi Sumit -- the two are different. Easiest to illustrate by example: Definitions: Interceptor stack: an ordered list of interceptors with pre/post processing logic. You have one. Value stack: a stack (in data structure sense) that holds javabeans including your current action. You have one *per

Re: Type conversion exceptions

2009-03-18 Thread musomesa
This line is the problem: com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.converter.SettingListConverter You only need to define the converter for a Setting object and not for SettingList Also, spaces around the '=' sign are mandatory Cheers Chris M? > >> com.rjssoft.webdocs.s

Re: Type conversion exceptions

2009-03-18 Thread musomesa
But then how do you plan to write a converter to convert a String[] to a SettingList? Also why is aggregation a bad design? Regards Chris M -Original Message- From: Lukasz Lenart To: Struts Users Mailing List Sent: Wed, 18 Mar 2009 5:50 pm Subject: Re: Type conversion exceptions 200

Re: Type conversion exceptions

2009-03-18 Thread musomesa
My bad -- I didn't realize SettingList extends ArrayList. Suggestion: make it aggregation so that SettingList has a property of type ArrayList and your type conversion problems will go away. Chris -Original Message- From: ryangr To: user@struts.apache.org Sent: Wed, 18 Mar 2009 6

Re: Type conversion exceptions

2009-03-18 Thread musomesa
I have downloaded your code and will study it so that I don't misunderstand. Can you also post the converter? If I see it I might?suggestions that fit what you are doing better. Chris -Original Message- From: Lukasz Lenart To: Struts Users Mailing List Sent: Wed, 18 Mar 2009 6:10 pm

Re: Type conversion exceptions

2009-03-18 Thread musomesa
9 Obviously it isn't doing anything other than outputting the values being passed in, but none of the values contain anything yet as the parameters are getting lost somewhere so there's no point in processing them yet. musomesa wrote: > > I have downloaded your code and will

Re: Type conversion exceptions

2009-03-20 Thread musomesa
! You get free drinks if I go to Japan or you come to the States... Cheers, Ryan musomesa wrote: > > > I got your code to run (paseted below). Just so I am sure I am doing what > you are trying to do: > > 1. I made no changes to Setter or SetterList so that I don't break

Config-browser properties tab broken (2.1.6)

2009-03-25 Thread musomesa
I find it doesn't matter which action you are looking at -- you get the same list of 38 key-value pairs which are clearly not the bean properties of your action. The list is pasted below: It looks very much like we are getting the bean properties of some Class object ...? Chris M annotation boo

Re: Config-browser properties tab broken (2.1.6)

2009-03-26 Thread musomesa
Here is an example and its struts.xml (you get the same result with convention plug-in) = package rain.actions.all; public class AddMusicRecordingAction{     private static final long serialVersionUID = 1L;     private String artist;     private String category;     private double price;

Re: Config-browser properties tab broken (2.1.6)

2009-03-26 Thread musomesa
Forgot the jsps -- sorry! = <%@ taglib prefix="s" uri="/struts-tags"%>             Add Music Recording                             Enter New Music Recording Details                                                                                                     C2          

Re: Config-browser properties tab broken (2.1.6)

2009-03-26 Thread musomesa
Here is a smaller more succinct example to show the config-browser misbehaving. (No xml -- using convention plugin) Jars in WEB-INF/lib: commons-collections-3.2.1.jar commons-fileupload-1.2.1.jar commons-logging-1.1.1.jar freemarker-2.3.13.jar log4j-1.2.15.jar ognl-2.6.11.jar struts2-config-br

ExecuteAndWaitInterceptor not working (2.1.6)

2009-03-26 Thread musomesa
execAndWait in 2.1.6 gives the following exception when it kicks in: (code pasted below) java.lang.UnsupportedOperationException ??? java.util.Collections$UnmodifiableMap.put(Collections.java:1285) ??? org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.doIntercept(ExecuteAndWaitIntercept

Re: ExecuteAndWaitInterceptor not working (2.1.6)

2009-03-30 Thread musomesa
Exactly -- used to work in 2.0.x but must have broken in the transition. Chris -Original Message- From: Dale Newfield To: Struts Users Mailing List Sent: Mon, 30 Mar 2009 3:51 pm Subject: Re: ExecuteAndWaitInterceptor not working (2.1.6) musom...@aol.com wrote:? > e

Re: ExecuteAndWaitInterceptor not working (2.1.6)

2009-04-01 Thread musomesa
Will do. Chris -Original Message- From: Musachy Barroso To: Struts Users Mailing List Sent: Tue, 31 Mar 2009 11:09 am Subject: Re: ExecuteAndWaitInterceptor not working (2.1.6) Add the full stack trace and as much information as possible. thanks musachy On Tue, Mar

Action an overused term?

2009-04-01 Thread musomesa
We are at the point where in many cases we will want an action to 1. implement Action (for configuration by convention purposes) and also 2. use the @Action annotation So we are faced with either using fully qualified names for one of the 'Action's or taking the route of extending ActionSupport

Re: Action an overused term?

2009-04-01 Thread musomesa
Maybe we should start calling them struts2 beans or something. It might also lessen the frequency of people thinking they are functionally the same as Struts 1 actions. Chris -Original Message- From: Musachy Barroso To: Struts Users Mailing List Sent: Wed, 1 Apr 2009 4:40 pm

Re: ExecuteAndWaitInterceptor not working (2.1.6)

2009-04-01 Thread musomesa
Thanks --? I think Struts 2.0.x had an earlier version of the interceptor that would create a wait page dynamically.? No problem as long as it is the expected behavior. That being the case, perhaps we should change the documentation at http://struts.apache.org/2.x/docs/execute-and-wait-int

Re: how to re-init / update parameter of an interceptor during runtime?

2009-04-03 Thread musomesa
Since interceptors are not thread safe I would look at manipulating fields from a given thread with a jaundiced eye. Chris M. -Original Message- From: Nils-Helge Garli Hegvik To: Struts Users Mailing List Sent: Fri, 3 Apr 2009 1:46 am Subject: Re: how to re-init / update param

Re: how to re-init / update parameter of an interceptor during runtime?

2009-04-03 Thread musomesa
An interceptor has access to application via ActionContext so it is easy to rig up. From anywhere in your application you can manipulate an entry in application and have the interceptor check if it matches the value it currently has. I still think it is an unorthodox approach though. It al

Re: Struts access static list

2009-04-13 Thread Musomesa
Why not write the code in its own action or pojo and use or wherever you want it? Chris M **The Average US Credit Score is 692. See Yours in Just 2 Easy Steps! (http://pr.atwola.com/promoclk/100126575x1221621489x1201450100/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefaul

Re: Struts access static list

2009-04-13 Thread Musomesa
Yes, in between the or tags the object is sitting on top of the value stack so you can access it with OGNL like you would a 'normal' action. Handy for things like populating combo boxes which crop up all over the place. Chris M **The Average US Credit Score is 692. See Yours in

Re: sample CRUD application question

2009-04-14 Thread musomesa
You might want to be cautious about that -- essentially you are allowing the client by typing a URL in their browser to delete material in your database in an adhoc fashion. Chris M -Original Message- From: Bhaarat Sharma To: Struts Users Mailing List Sent: Tue, 14 Apr 2009 11:03

Re: sample CRUD application question

2009-04-14 Thread musomesa
Sorry i was not very clear: when you configure your application to allow the bang (!) notation, the client gets to choose *any* of the public methods on your action and use them as action methods as opposed to you listing what your action methods are explicitly. So?the developer has to be cautiou

Re: Open an excel in Struts application

2009-04-26 Thread musomesa
When/if you use the JasperReports plugin use an older version of poi (3.0 is the latest I had success with). The new poi throws an exception which many have complained about but has not been fixed/ Chris -Original Message- From: renisha To: user@struts.apache.org Sent: Sun, 26 Apr 200

Re: Open an excel in Struts application

2009-04-27 Thread musomesa
Here is the link to the discussion on Jasperforge http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=47545 I wasn't aware of a poi-plugin for Struts2 -- can't see it in the registry. I used the JasperReports plugin and the poi jar. You must have a different approa

Re: S2 - s:submit method="value" has to be hard-coded?

2009-05-08 Thread Musomesa
There is bound to be some logic that determines what method the button would invoke. Why not put that logic in the action method and have it call appropriate helper methods? In other words move the fork from the view to inside the action method. Chris **Remember Mom this Mother's Da

Re: Converter trying to set String on int field

2009-05-11 Thread musomesa
I bet it has something to do with a null not being assignable to an int. Chris -Original Message- From: Richard Sayre To: Struts Users Mailing List Sent: Mon, 11 May 2009 11:44 am Subject: Re: Converter trying to set String on int field After some further investigatio

Re: Interceptor Trouble

2009-05-27 Thread musomesa
Jim, since it is the interceptor you are interested in testing why not test it without the Convention Plug-in (configuring the action by xml) to see if it is working, which is your aim. That way you don't have two things you are unsure of happening at once. Cheers Chris -Original Messag

Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

2009-05-27 Thread musomesa
Fernandes I had the same problem -- essentially I could not get it to work using the Convention plugin. Also, when you configure by xml you can't have dev mode on. The most I have gleaned off the internet, and there are people who should know better than me on this list the problem is to do with

Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

2009-05-27 Thread musomesa
Lukasz, it is JBoss specific -- actually JBoss 5. Apps that work on JBoss 4 with the Convention Plugin fail with JBoss 5. I can post the specific error messages when I get home next week (I am in Stockholm without my code. Cheers Chris -Original Message- From: Lukasz Lenart To: Struts U

Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

2009-05-27 Thread musomesa
Me again: here is a link with a discussion. Don't hold your breath as it does not give a work around. http://www.nabble.com/Problems-using-Struts2-on-JBoss-5.0.1GA-td22969807.html Chris -Original Message- From: Fernandes Celinio To: Struts Users Mailing List Sent: Wed, 27 May 2009 1:06

Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

2009-05-27 Thread musomesa
There is something new -- something to do with virtual classpaths that makes JBoss 5 reject apps with dev mode on or with the Convention plugin active while JBoss 4 accepts them. Chris -Original Message- From: Lukasz Lenart To: Struts Users Mailing List Sent: Wed, 27 May 2009 4:51 pm Su

Re: Cant find @Result type=? list in docs

2009-05-29 Thread musomesa
Are you using xml or annotations? Does your package extend struts-default? (the 'built-in' types are defined there) Chris -Original Message- From: Jim Collings To: Struts Users Mailing List Sent: Fri, 29 May 2009 2:57 pm Subject: Re: Cant find @Result type=? list in docs

Re: Update to Struts 2.1.7

2009-06-24 Thread musomesa
Are you saying you have a method called input() in the action or is it that you are getting a result code "input" which would imply a validation error? -Original Message- From: Pro1712 To: user@struts.apache.org Sent: Tue, Jun 23, 2009 9:34 am Subject: Update to Struts 2.1.7

Re: Struts2 static content

2009-06-24 Thread musomesa
I would think this is even more expensive that just doling out static content from Tomcat as Struts 2 is also creating a whole bunch of objects for the request cycle. Chris -Original Message- From: Wes Wannemacher To: Struts Users Mailing List Sent: Tue, Jun 23, 2009 12:11 pm

Re: Exceptions thrown by constructor different from those thown by execute() ?

2009-06-25 Thread musomesa
I am with the devs on this one -- typically the constructor of an object whose life cycle is managed by the framework is off limits -- you wouldn't write code to throw exceptions from a servlet or EJB etc. Chris -Original Message- From: Wes Wannemacher To: Struts Users Mailing Lis

Re: Struts1 or Struts2

2009-06-26 Thread musomesa
SInce you are comited to a re-write, go for it. Chris -Original Message- From: Mitchell, Steven To: Struts Users Mailing List Sent: Thu, Jun 25, 2009 5:17 pm Subject: RE: Struts1 or Struts2 Chris, My opinion is that you will take an initial productivity hit while the team gets

Re: Exceptions thrown by constructor different from those thown by execute() ?

2009-06-26 Thread musomesa
I see your point that there has to be some design to handle? that contingency (exceptions coming from the constructor) but with so many opportunities for us to do things via interceptors I would let the framework have a total monopoly on the constructors. Essentially we (application developers) s

Re: Action mapping documentation (and a security question)

2009-06-28 Thread musomesa
If you lecture your developers to be aware that any public method becomes fair game the security concern might be mitigated but you still have a maintainability issue. With explicit configuration someone inheriting the code can easily figure out how an action method is used by looking at annot

Re: Commercial framework based on struts2.

2009-07-08 Thread musomesa
Are you not mixing Struts 1 and Struts 2 concepts?  Chris -Original Message- From: Martin Gainty To: Struts Users Mailing List Sent: Tue, Jul 7, 2009 2:26 pm Subject: RE: Commercial framework based on struts2. majority of struts tags support ajax out of the box would

Re: Struts 2 Plug-in and JSP 404

2009-07-12 Thread musomesa
JSP tags wont't funtion inside jars -- the "JSP"s you might have spotted in jars are probably using Freemarker tags which will work in jars. Chris -Original Message- From: Dale Newfield To: Struts Users Mailing List Sent: Fri, Jul 10, 2009 5:06 am Subject: Re: Struts 2 Plug-in

Re: Actions are not Garbage Collected

2009-07-12 Thread musomesa
It is unlikely but if your actions have a finalize() method they won't be collected by minor GCs Chris -Original Message- From: Anselmo To: user@struts.apache.org Sent: Sat, Jul 11, 2009 2:55 am Subject: Re: Actions are not Garbage Collected The only references I hav

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-17 Thread musomesa
JWebUnit integrates? nicely with eclipse. I fall in the?'unit tests are for small? units' group. If your validation is configured wrong you won't fix it in the action so you are not really unit testing the action at that point. I prefer separate JUnit unit tests and JWebUnit tests to test the wh

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-19 Thread musomesa
[The standard?diclaimer that it is not a popularity contest and nothing that does the job for you is wrong.] Would you not agree that if you are going to mock up the framework the simulation of S2 of highest fidelity is S2 itself. IMHO?you are digging a swimming pool by the ocean to test your ya

Re: DebuggingInterceptor debug=console ?

2009-07-24 Thread Musomesa
I vaguely remember it working on some browsers and not on others ... I think it was IE that did not work. Try another browser. Chris **A Good Credit Score is 700 or Above. See yours in just 2 easy steps! (http://pr.atwola.com/promoclk/100126575x1222377105x1201454426/aol?redir=http:/

Re: struts 1.x, how to create package ?

2009-07-27 Thread musomesa
No offence intended, John but I would strongly counsel you to read some Tomcat documentation before trying to launch your shopping cart. At the very least the official Tomcat docs for you version of Tomcat (http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html) or some such url and a book

Re: getting listValue back to actionclass from s:select tag

2009-07-27 Thread musomesa
Not sure what you mean when you say it is dynamic -- Why not keep track of the original key-value pairs in the user session? You only need the key. Chris -Original Message- From: Bhaarat Sharma To: Struts Users Mailing List Sent: Mon, Jul 27, 2009 9:52 pm Subject: getting list

Re: Struts vs Other competitors

2009-07-28 Thread musomesa
It is not clear how one gets to help -- I have submitted bugs with fixes a few times and then wondered what to do next so they sit there and ferment ... Chris -Original Message- From: Musachy Barroso To: Struts Users Mailing List Sent: Tue, Jul 28, 2009 12:33 am Subject: Re: Str

Re: equivalent of request.getParameter();

2009-08-04 Thread musomesa
it possible to not click any url but still set a setter If you don't need any user interraction why not do it in the action? It is not clear what would be the point of a view that without any user input then proceeds to do further logic... Chris -Original Message- From:

Re: struts2 ognl confusion

2009-08-05 Thread musomesa
what type is questionId? You might have a problem with the equals() in it. Chris -Original Message- From: Wes Wannemacher To: Struts Users Mailing List Sent: Wed, Aug 5, 2009 1:09 pm Subject: Re: struts2 ognl confusion I would try to fiddle around with incorrectQs to

Re: param for action in struts.xml

2009-08-06 Thread musomesa
Looks more like the questioner is after StaticParams. I would check -- that you have the appropriate setter -- that your interceptor stack includes staticParams Chris -Original Message- From: Martin Gainty To: Struts Users Mailing List Sent: Thu, Aug 6, 2009 8:26 am Subject: RE:

Re: struts2 ognl confusion

2009-08-06 Thread musomesa
is it (questionId) human generated 9I am thinking leading/trailing white space etc). Really clutching at straws but somehow the questionid must occasionally be different ... Chris -Original Message- From: Bhaarat Sharma To: Struts Users Mailing List Sent: Wed, Aug 5, 2009 1:4

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
SiteMesh is just a decorator and not Struts 2 centric so you won't find what you want in its native configuration.? As far as it is concerned the view could have been generated by a CGI script of anything. I think the path of least effort it to have two essentially blank JSps that include the

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
You did understand me correctly and I see your dilema -- problem is the tags like are not aware of what action the view came from :( -Original Message- From: CS Wong To: Struts Users Mailing List Sent: Tue, Aug 11, 2009 1:03 pm Subject: Re: Configuring SiteMesh for specific

Re: [S2] Model Driven validation using xml?

2009-08-11 Thread musomesa
I think this is what you are after: http://struts.apache.org/2.x/docs/visitor-validator.html ...This allows you to use the ModelDriven development pattern ... -Original Message- From: James Carr To: Struts Users Mailing List Sent: Tue, Aug 11, 2009 1:43 pm Subject: [S2] Model

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
Are you able to put a parameter in your action URL -- something like .myAction.action@&printable=true because in that case you can configure different (or no) decoration based on the parameter chris -Original Message- From: CS Wong To: Struts Users Mailing List Sent: Tue,

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
I think your pattern is on the namespace rather than the action? C. -Original Message- From: Zoran Avtarovski To: Struts Users Mailing List ; CS Wong Sent: Tue, Aug 11, 2009 9:49 pm Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? I¹m cert

Re: Validating that two fields match?

2009-08-12 Thread musomesa
Check out http://struts.apache.org/2.x/docs/expression-validator.html If you are using annotations check out http://struts.apache.org/2.x/docs/expressionvalidator-annotation.html Your expression will be something like @ExpressionValidator(expression="email.equals(confirmEmail)",? message="Th

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-12 Thread musomesa
Hopefully it solves the OP's problem. Cheers Chris -Original Message- From: Zoran Avtarovski To: Struts Users Mailing List ; musom...@aol.com Sent: Wed, Aug 12, 2009 7:27 pm Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? I apologise, you’re

Re: How to prevent user invoke a method?

2009-08-13 Thread musomesa
Have dynamic method invocation off and be careful with wildcards. Another possibility is to have an interceptor veto calls to that method but that would get tedious if you have many of them. chris -Original Message- From: Louis Voo To: Struts Users Mailing List Sent: Thu, Aug

Re: Validation does not work on redirect result

2009-08-13 Thread musomesa
Check @Result(name="input",value="findUser",type=ServletActionRedirectResult.class) I think the attribute should be location rather than value in 2.1.x Chris -Original Message- From: spsarolkar To: user@struts.apache.org Sent: Thu, Aug 13, 2009 12:47 am Subject: RE: Valida

Re: Validating that two fields match?

2009-08-13 Thread musomesa
try the pattern etc -Original Message- From: James Carr To: Struts Users Mailing List Sent: Thu, Aug 13, 2009 9:53 am Subject: Re: Validating that two fields match? I have tried this and it doesn't seem to work at all. I am using ModelDriven and the model object has

Re: Validation does not work on redirect result

2009-08-13 Thread musomesa
But then look at http://struts.apache.org/2.1.6/docs/convention-plugin.html#ConventionPlugin-Resultannotation I am using location successfuly. C -Original Message- From: Martin Gainty To: Struts Users Mailing List Sent: Thu, Aug 13, 2009 9:34 am Subject: RE: Validation does n

Re: Validation does not work on redirect result

2009-08-13 Thread musomesa
Martin I think the docs you are looking at are for the old org.apache.struts2.config.Result  rather than org.apache.struts2.convention.annotation.Result. Chris -Original Message- From: musom...@aol.com To: user@struts.apache.org Sent: Thu, Aug 13, 2009 10:10 am Subject: Re: Validati

Re: URL Mappings

2009-08-15 Thread musomesa
Note that org.apache.struts2.dispatcher.FilterDispatcher is deprecated since 2.1.3 in favor of org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter. -Original Message- From: Martin Gainty To: Struts Users Mailing List Sent: Sat, Aug 15, 2009 9:29 am Subj

Re: struts 2.1.5 type conversion error

2009-08-17 Thread musomesa
OGNL properties are JavaBean properties. In your case you are trying to define the property stockAmount twice with two different types. Instead of overloading the setter give it a different name: public void setStockAmountStr(String stockAmount) { this.stockAmount = Integer.pars

Re: struts 2.1.5 type conversion error

2009-08-17 Thread musomesa
Glad it is working. Yes, in a JavaBean the setter/getter methods define the property. The type is derived from the arguments and return types of those methods. The actual data might not even be stored in the bean, e.g. it might be stored in a database or be a calculated value. OGNL follows th

Re: validation

2009-08-17 Thread musomesa
The names of the params for double validator are different from those of int validator. Instead of max and min your choices are minInclusive maxInclusive minExclusive maxExclusive Chris -Original Message- From: sandy.verfai...@roularta.be To: user@struts.apache.org Sent: Mon,

Re: validation

2009-08-17 Thread musomesa
In the products.jsp you assume the action? addProduct to be in the "/service" namespace but? "shop" package which contains the action is not in the "/service" namespace. Try -Original Message- From: sandy.verfai...@roularta.be To: user@struts.apache.org Sent: Mon, Aug 17, 200

Re: validation

2009-08-17 Thread musomesa
ok -- I used as much of your code as you have posted and put a working version at http://pastie.org/585837 Chris -Original Message- From: sandy.verfai...@roularta.be To: user@struts.apache.org Sent: Mon, Aug 17, 2009 2:09 pm Subject: RE: validation Requiredstring do

Re: validation

2009-08-17 Thread musomesa
For primitives and dates you don't need to do anything? -- the type conversion is automatic Chris -Original Message- From: sandy.verfai...@roularta.be To: user@struts.apache.org Sent: Mon, Aug 17, 2009 10:43 am Subject: RE: validation Chris, Your version doesn't work

Re: validation

2009-08-17 Thread musomesa
That looks like a question -- it is meant to be an assertion but somehow question marks crept in. C. -Original Message- From: musom...@aol.com To: user@struts.apache.org Sent: Mon, Aug 17, 2009 11:12 am Subject: Re: validation For primitives and dates you don't need

Re: struts 2.1.5 type conversion error

2009-08-18 Thread musomesa
That is because you are using Struts 2.1.5. There is a bug in the type conversion for doubles in XWork which is fixed in the current version (XWork 2.1.4). When you enter a zero it claims it is not a valid value. To use XWork 2.1.4 you need Struts 2.1.7. I have just sent the zips I promised an

Re: Why submit didn't support param

2009-08-20 Thread musomesa
You are kind, Wes. I saw that message and thought "I don't want anything to do with this person!" Chris -Original Message- From: Wes Wannemacher To: Struts Users Mailing List Sent: Thu, Aug 20, 2009 9:39 am Subject: Re: Re: Why submit didn't support param On Thu

Re: Problem with result returning from interceptor

2009-08-21 Thread musomesa
Check it out with the config-browser -- you should see on the results tab if your login result is really there. Chris -Original Message- From: ManiKanta G To: Struts-User Sent: Fri, Aug 21, 2009 3:36 am Subject: Problem with result returning from interceptor Hi

Re: How to register an ActionEventListener

2009-08-22 Thread musomesa
The action is instantiated before the interceptors fire so all your interceptors are processing the request after the action is created. after it is created Chris -Original Message- From: Karan Malhi To: user@struts.apache.org Sent: Fri, Aug 21, 2009 11:28 pm Subjec

Re: How to register an ActionEventListener

2009-08-22 Thread musomesa
Sorry -- I should have asked if you were using Struts 1 or 2! Struts 2 interceptors kick in after action creation. Chris -Original Message- From: Karan Malhi To: user@struts.apache.org Sent: Fri, Aug 21, 2009 11:28 pm Subject: How to register an ActionEventListener

Re: How to register an ActionEventListener

2009-08-22 Thread musomesa
Yes, the interceptors can tinker with the action before the action method executes . Chris -Original Message- From: Karan Malhi To: Struts Users Mailing List Sent: Sat, Aug 22, 2009 10:35 pm Subject: Re: How to register an ActionEventListener Struts 2. If inter

Re: Intermittent Session Problems in Strut2.

2009-08-23 Thread musomesa
where is the information they are sharing located? Chris -Original Message- From: Struts Two To: Struts Users Mailing List Sent: Sun, Aug 23, 2009 10:05 am Subject: Re: Intermittent Session Problems in Strut2. Do you log in to the system from two different client

Re: project running on local server but got page not found error while accessing it from godaddy server

2009-08-24 Thread musomesa
I would get a copy of the Tomcat version you are targeting from http://archive.apache.org/dist/tomcat/tomcat-5/ and see if it runs. That would answer you question much faster than us guessing. Cheers. Chris -Original Message- From: kalaimathi To: user@struts.apache.org Sent

Re: Intermittent Session Problems in Strut2.

2009-08-24 Thread musomesa
Where is the information that is being shared? Your problem might have nothing to do with authentication. Chris -Original Message- From: pankaj semwal To: Struts Users Mailing List Sent: Mon, Aug 24, 2009 10:15 am Subject: Re: Intermittent Session Problems in Strut2.

Re: Convention Plugin problem

2009-08-28 Thread musomesa
The OP is mapping the result by XML so the behavior (as someone pointed out) is what you would expect. Chris -Original Message- From: Paweł Wielgus To: Struts Users Mailing List Sent: Fri, Aug 28, 2009 2:58 am Subject: Re: Convention Plugin problem Hi all, my thi

Re: ActionForm is been called once only

2009-08-28 Thread musomesa
In the time between the first time you go to the page and the second time where in your application is the data supposed to be? Chris -Original Message- From: Paweł Wielgus To: Struts Users Mailing List Sent: Fri, Aug 28, 2009 5:34 am Subject: Re: ActionForm is been calle

Re: Struts 2

2009-08-28 Thread musomesa
His status is a char. Chris -Original Message- From: Luca To: Struts Users Mailing List Sent: Fri, Aug 28, 2009 11:58 am Subject: Re: Struts 2 Hi,? >? > i am using struts 2. i want to check some condition in my jsp and based on? > result i want to perform some task.?

Re: Struts 2

2009-08-28 Thread musomesa
Wasn't being picky -- the single versus double quote rules in OGNL for single character Strings versus chars often trip people up at places like Chris -Original Message- From: Luca To: Struts Users Mailing List Sent: Fri, Aug 28, 2009 1:07 pm Subject: Re: Struts 2 His

Re: Need to disable session interceptor

2009-09-01 Thread musomesa
JSP create sessions by default. It is servlets that don't create a session unless you call getSession(). Do you have something like <%@ page session="false"> at the top of your JSPs? Chris -Original Message- From: Rajeev Sharma To: Struts Users Mailing List Sent: Tue

Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread musomesa
1) Create a file called snippet.jsp with just:                     And this line is from the target action.         -                2) Change result in your struts.xml to read      /snippet.jsp     

Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread musomesa
Great. The trick is not to have an action's result contain a call to the action -- you set up an infinite recursion that way. Chris -Original Message- From: briannic...@aspca.org To: Struts Users Mailing List Sent: Wed, Sep 2, 2009 3:21 pm Subject: Re: Action Tag java.lan

Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread musomesa
Different tags do different things so I'm afraid you have to look at the documentation for a tag to see just what it does. This one was written for the purpose of allowing you to use the result of an action in the page you are currently rendering. Chris -Original Message

Re: Interceptor question

2009-09-09 Thread musomesa
By the way, Pawel, at that link some software seems to have severely butchered your xml in the struts.xml part. Chris -Original Message- From: Dale Newfield To: Struts Users Mailing List Sent: Wed, Sep 9, 2009 12:41 pm Subject: Re: Interceptor question Paweł Wiel

  1   2   >