Re: validation in struts2

2010-01-20 Thread musomesa
Also, the file should be LoginAction-validation.xml . Use the config-browser to see that you have the validators in place. Chris -Original Message- From: Gabriel Belingueres belingue...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Wed, Jan 20, 2010

Re: Forwarding to a Java Application

2009-12-29 Thread musomesa
The Object tag previously referred to is where you can launch a java app from a jsp (or even an ordinary html page). Check out Java Web Start. Your java app can be an ordinary swing app and the server sends a .jnlp file with instructions to the browser to download the necessary classes. Your

Re: SQL ExcuteQuery

2009-12-08 Thread musomesa
Your trouble is here: pstmtname = conn.prepareStatement(sql); sql = UPDATE tbl_content_admin_accounts SET CA_PASSWORD = ? WHERE ROW_ID = + UserID; When you call prepareStatement(sql) the sql string is sent to the database which prepares it (essentially does all the steps neccessary

Re: (clearly O/T) use of ThreadLocal vs Synchronized

2009-11-21 Thread musomesa
They are quite distinct -- ThreadLocal variables are not shared at all while synchronized permits sharing (but not concurrently). Suppose you have a background thread that does some calculation that you might need [in my case you have an abstract graph and a background thread is checking if

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread musomesa
I think the @OP's difficulty is with the name vs method attributes of the action element so (if I may be excused for borrow Musachy's example) if you have package name=survey namespace=/survey extends=struts-default action name=save class=survey.SurveyAction method=persist

Re: Performance issue using s:bean/ tag

2009-11-03 Thread musomesa
Since it is not happening consistently and seems to happen more under load it could well be that the instantiation of an object is triggering a garbage collection so it might be unrelated to the s:bean itself and more to hanging onto some other objects for too long. Chris -Original

Re: Please Help with struts2

2009-09-26 Thread musomesa
Do you also have an exception for the decorator tag library? The one you have in your post is for the page tag library. Check that you have the struts2-sitemesh-plugin jar in WEB-INF/lib because that is where those tag libraries are. Also check that your web.xml has the appropriate elements

Re: Switching Action between different modules...

2009-09-23 Thread musomesa
The name of the xml file is immaterial -- what is the namespace attribute on the package you defined inside of home.xml? I would use the config-browser to check that the configuration is what you intended. Chris -Original Message- From: Muthu Velappan

Re: Struts2 - OGNL - access bean property in model object

2009-09-21 Thread musomesa
JSP page: s:textfield name=CBookingFactorsBean.salesAfterDiscount size=13 cssClass=Input/ The c in CBookingFactorsBean should be lower case , I think. Chris -Original Message- From: Raghuveer.V raghuve...@infotechsw.com To: user@struts.apache.org Sent: Mon, Sep

Re: Hello Help please with Struts2

2009-09-19 Thread musomesa
When you say on the classpath do you mean the compile classpath of the project or is the jar physically in WEB-INF/lib? Chris -Original Message- From: Wes Wannemacher w...@wantii.com To: Struts Users Mailing List user@struts.apache.org Sent: Sat, Sep 19, 2009 6:55 pm

Re: Formatting in extended theme using Freemarker

2009-09-12 Thread musomesa
Try the pattern #.00. Chris -Original Message- From: ashwin ala ashwin...@gmail.com To: user@struts.apache.org Sent: Sat, Sep 12, 2009 2:30 pm Subject: RE: Formatting in extended theme using Freemarker Thank you for the prompt replies. The BigDecimal rounding

Re: Struts jsp access java class

2009-09-11 Thread musomesa
Check out s:bean http://struts.apache.org/2.1.6/docs/bean.html Chris -Original Message- From: deepannair deepann...@gmail.com To: user@struts.apache.org Sent: Fri, Sep 11, 2009 9:51 am Subject: Struts jsp access java class I have a properties class which has

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 d...@newfield.org To: Struts Users Mailing List user@struts.apache.org Sent: Wed, Sep 9, 2009 12:41 pm Subject: Re:

Re: Action Tag java.lang.StackOverflowError

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

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 user@struts.apache.org Sent: Wed, Sep 2, 2009 3:21 pm Subject:

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

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 rajeev1...@gmail.com To: Struts Users

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 poulw...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Fri, Aug 28, 2009 2:58 am Subject: Re:

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 poulw...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Fri, Aug 28, 2009 5:34

Re: Struts 2 s:if tag

2009-08-28 Thread musomesa
His status is a char. Chris -Original Message- From: Luca wittgen...@yahoo.it To: Struts Users Mailing List user@struts.apache.org Sent: Fri, Aug 28, 2009 11:58 am Subject: Re: Struts 2 s:if tag Hi, do you try to check that the methods in the Action class match the

Re: Struts 2 s:if tag

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 s:if test=%{status!='N'} Chris -Original Message- From: Luca wittgen...@yahoo.it To: Struts Users Mailing List

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 srp@gmail.com To:

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 semw...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Mon, Aug 24, 2009 10:15 am Subject: Re:

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 struts...@yahoo.ca To: Struts Users Mailing List user@struts.apache.org Sent: Sun, Aug 23, 2009 10:05 am Subject: Re: Intermittent Session Problems in Strut2. Do you log

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 karan.ma...@gmail.com To: user@struts.apache.org Sent: Fri, Aug

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 karan.ma...@gmail.com To: user@struts.apache.org Sent: Fri, Aug 21, 2009 11:28 pm Subject: How to register an

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 karan.ma...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Sat, Aug 22, 2009 10:35 pm Subject: Re: How to register an

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 go4m...@gmail.com To: Struts-User user@struts.apache.org Sent: Fri, Aug 21, 2009 3:36 am Subject: Problem with result

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 w...@wantii.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, Aug 20, 2009 9:39 am Subject: Re: Re: Why submit

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

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 =

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

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 package name=shop namespace=/service extends=struts-default -Original Message- From:

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

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

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: 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 mgai...@hotmail.com To: Struts Users Mailing List

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 jl...@yahoo.com To: Struts Users Mailing List

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 spsarol...@gmail.com To: user@struts.apache.org Sent: Thu, Aug 13, 2009 12:47 am

Re: Validating that two fields match?

2009-08-13 Thread musomesa
try the pattern field name=model.pointOfContact.emailAddress etc -Original Message- From: James Carr james.r.c...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, Aug 13, 2009 9:53 am Subject: Re: Validating that two fields match? I have tried

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 mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, Aug 13,

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:

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=The

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 zo...@sparecreative.com To: Struts Users Mailing List user@struts.apache.org; musom...@aol.com Sent: Wed, Aug 12, 2009 7:27 pm Subject: Re: Configuring SiteMesh for specific action

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 exclude are not aware of what action the view came from :( -Original Message- From: CS Wong lilw...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Tue, Aug 11, 2009 1:03 pm

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 quote...This allows you to use the ModelDriven development pattern ... /quote -Original Message- From: James Carr james.r.c...@gmail.com To: Struts Users Mailing List

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 lilw...@gmail.com To: Struts Users Mailing

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 zo...@sparecreative.com To: Struts Users Mailing List user@struts.apache.org; CS Wong lilw...@gmail.com Sent: Tue, Aug 11, 2009 9:49 pm Subject: Re: Configuring

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 mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org

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 bhaara...@gmail.com To: Struts Users Mailing List

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 w...@wantii.com To: Struts Users Mailing List user@struts.apache.org Sent: Wed, Aug 5, 2009 1:09 pm Subject: Re: struts2 ognl confusion I would

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-

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

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 bhaara...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Mon,

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!

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

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

Re: Struts 2 Plug-in and JSP 404

2009-07-12 Thread musomesa
JSP tags wont't funtion inside jars -- the JSPs you might have spotted in jars are probably using Freemarker tags which will work in jars. Chris -Original Message- From: Dale Newfield d...@newfield.org To: Struts Users Mailing List user@struts.apache.org Sent: Fri, Jul 10, 2009

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 anselm.ba...@googlemail.com To: user@struts.apache.org Sent: Sat, Jul 11, 2009 2:55 am Subject: Re: Actions are not Garbage Collected

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 mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Tue, Jul 7, 2009 2:26 pm Subject: RE: Commercial framework based on struts2. majority of

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

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 steven.mitch...@umb.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, Jun 25, 2009 5:17 pm Subject: RE: Struts1 or Struts2 Chris, My opinion is that you will take an

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)

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 w...@wantii.com To: Struts

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 pro1...@yahoo.de To: user@struts.apache.org Sent: Tue, Jun 23, 2009 9:34 am Subject: Update to

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 w...@wantii.com To: Struts Users Mailing List

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 jlistn...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Fri, 29 May 2009 2:57 pm Subject: Re:

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

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

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

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 cfernan...@sopragroup.com To: Struts Users Mailing List

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 lukasz.len...@googlemail.com To: Struts Users Mailing List

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 richardsa...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Mon, 11 May 2009 11:44 am Subject: Re: Converter trying to set String on int

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

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=102forumid=103topicid=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

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 renish...@gmail.com To: user@struts.apache.org

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 bhaara...@gmail.com To: Struts Users Mailing List

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

Re: Struts access static list

2009-04-13 Thread Musomesa
Why not write the code in its own action or pojo and use s:action or s:bean wherever you want it? Chris M **The Average US Credit Score is 692. See Yours in Just 2 Easy Steps!

Re: Struts access static list

2009-04-13 Thread Musomesa
Yes, in between the s:action or s:bean 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

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 nil...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Fri, 3 Apr 2009 1:46 am

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

Re: ExecuteAndWaitInterceptor not working (2.1.6)

2009-04-01 Thread musomesa
Will do. Chris -Original Message- From: Musachy Barroso musa...@gmail.com To: Struts Users Mailing List user@struts.apache.org 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

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

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 musa...@gmail.com To: Struts Users Mailing List

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

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 d...@newfield.org To: Struts Users Mailing List user@struts.apache.org Sent: Mon, 30 Mar 2009 3:51 pm Subject: Re: ExecuteAndWaitInterceptor not working

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

Re: Config-browser properties tab broken (2.1.6)

2009-03-26 Thread musomesa
Forgot the jsps -- sorry! = %@ taglib prefix=s uri=/struts-tags% html     head         titleAdd Music Recording/title     /head     body         h3             Enter New Music Recording Details         /h3         div             s:form action=add-music-recording.action                

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

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) ???

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

Re: Type conversion exceptions

2009-03-20 Thread musomesa
it as it was driving me nuts! 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

Re: Struts 2 instance creation in memorey

2009-03-17 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

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 musa...@gmail.com To: Struts Users Mailing List user@struts.apache.org 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?

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

2009-03-13 Thread musomesa
the Map and use the s:action tag as you populate the select. Cheers Chris aka musomesa -Original Message- From: Muthu Velappan muthu.velap...@aspiresys.com 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

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 ArrayListArrayListDouble 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

  1   2   >