Re: How to modify Struts2 start up process.

2010-07-14 Thread satyanarayana katta
See if ur web.XML has the spring configuration configured twice. We faced the same issue before Sent from my iPhone On Jul 13, 2010, at 11:42 AM, hisameer cool_sameer_fo...@yahoo.com wrote: - To unsubscribe, e-mail:

Datasource object in any class

2010-07-14 Thread abhishek jain
Hi friends, I have an application in which there is a Cart object which i need to save in session, as it is to be saved in session, i cannt store a reference of datasource in the Cart. (as i believe it is not serializable). I need to know is there a way by which the datasource is available

Re: Created a struts2 application but getting odd results

2010-07-14 Thread Paweł Wielgus
Hi John, i would say that there is some kind of cache problem, it looks like You are asking for a url and get an answear, then You ask again about exactly same url and get exactly same answear. Maybe some Websphere configuration issue? Best greetings, Paweł Wielgus. 2010/7/12 John L. Longo

Struts 2 custom JSP-tags encoding

2010-07-14 Thread Carljohan Carlsson
Hi, Have an encoding problem when writing custom struts 2 (jsp) tags. We have all our source file UTF-8 encoded and get strange outputs from our tags when using ie. ÅÄÖ. Traced it down to JspTemplateEngine which is using org.apache.struts2.components.Include.include(..). The include(..)

RE: Currency Formatting

2010-07-14 Thread James Cook
Ooo, didn't know I could use an iterator like that, I have always defined the var. Thanks for the tip, however do you not find that other way easier for readability? Just thinking an outsider might be left wondering where price came from.. Maybe I am missing the point. -Original Message-

Re: Struts2 validation

2010-07-14 Thread kisja
Thanks for the answer. I'm trying this, but it is not working properly field name=telefonos field-validator type=fieldexpression ![CDATA[#paciente.telefonoMobil = 0 || #paciente.telefonoFixo = 0 ]] messagi/message

Re: Help Struts2 + interceptor

2010-07-14 Thread Paweł Wielgus
Hi all, You can try this way: http://poulwiel.blogspot.com/2009/01/intercepting-all-actions-inside-my-app.html Best greetings, Paweł Wielgus. 2010/7/13 Fabio Alves de Araujo Ebner - DnaSolution fabio.eb...@dnasolution.com.br: The problem is: When he pass through interceptor and go to action

Re: Pre-selected s:checkbox problem.

2010-07-14 Thread Paweł Wielgus
Hi Sharath, do You have getSelected_rows() method in action? s:checkbox need to know what values are present somehow, and it asks the action for the field value that it generates. Best greetings, Paweł Wielgus. 2010/7/13 sharath karnati karna...@yahoo.com: I don't think I can use

Re: Session error while loading an object

2010-07-14 Thread Paweł Wielgus
Hi all, You get this error every time when tomcat tries to save someone's session and object of class com.cart.Customer is in it. Like Robert said, add Serializable to com.cart.Customer and the problem will go away. Best greetings, Paweł Wielgus. 2010/7/13 abhishek jain

Re: Session error while loading an object

2010-07-14 Thread abhishek jain
2010/7/14 Paweł Wielgus poulw...@gmail.com Hi all, You get this error every time when tomcat tries to save someone's session and object of class com.cart.Customer is in it. Like Robert said, add Serializable to com.cart.Customer and the problem will go away. Best greetings, Paweł Wielgus.

Re: Session error while loading an object

2010-07-14 Thread Ernesto Reinaldo Barreiro
Just the same problem: BasicDataSource is not serializable. Ernesto On Wed, Jul 14, 2010 at 11:15 AM, abhishek jain abhishek.netj...@gmail.com wrote: 2010/7/14 Paweł Wielgus poulw...@gmail.com Hi all, You get this error every time when tomcat tries to save someone's session and object of

Re: Session error while loading an object

2010-07-14 Thread Robert Taylor
Greetings, I think that you might want to separate your functional concerns into different objects. One common pattern in multi-level architectures is to have a model object like Customer which would contain domain information for the Customer and a Service object like CustomerService which

Advice on new Project

2010-07-14 Thread Greg Akins
I've got a couple things that are requirements for a new project I'm starting. If anyone has any advice for some clean/simple way so to do this in Struts2, I'd very much appreciate pointers to more information. First.. I'm new to Struts2, but have done a fair amount with Struts. The app I'm

Re: Model Driven Preparable

2010-07-14 Thread Amol Ghotankar
My interceptor stack is as below interceptor-ref name=exception/interceptor-ref interceptor-ref name=prepare/interceptor-ref interceptor-ref name=model-driven/interceptor-ref interceptor-ref name=params/interceptor-ref Please guide.

Re: S2 validation without API ties

2010-07-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wes, Sorry for the delay in replying... I hadn't noticed that your reply was here. On 4/28/2010 11:49 AM, Wes Wannemacher wrote: I can understand your desire to remove the dependency of struts, making your actions reusable. But at the same time,

Reloading MessageResources without context reload

2010-07-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I've looked through the archives to see if there's a way to do this, and I feel like there must be an easier way, so I'll ask again. I'm using Struts 1.3.8 in a webapp deployed on Tomcat 6.0, and I'd like to reload my own MessageResource

Struts2/Ajax Help

2010-07-14 Thread CRANFORD, CHRIS
I have a form that uses the select tag to retrieve a list of values from my action when the JSP is rendered. What I would like to do is use the built in AJAX support so that I could populate another dropdown with a set of values that depends on that initial selection. Can someone post a simple

Re: Accessing scoped variables via s:property.../ tags

2010-07-14 Thread Dale Newfield
On 7/14/10 1:22 PM, mailtolouis2020-str...@yahoo.com wrote: https://cwiki.apache.org/WW/application-session-request-objects-in-jsp.html I think the doc need to update. Done, thanks: https://cwiki.apache.org/confluence/pages/diffpages.action?pageId=14052originalId=23332622 -Dale

Struts2: JSP vs JSPF issue

2010-07-14 Thread Ken
The following is in a file called menu.jspf %@ page pageEncoding=UTF-8 % %@ taglib prefix=s uri=/struts-tags % h2Menu/h2 s:a action=loginLogin/s:a The html produced is (produces s:a tags instead of a tags...): h2menu/h2 s:a action=loginLogin/s:a The exact same code is now placed in a file

Re: Struts2: JSP vs JSPF issue

2010-07-14 Thread Chris Pratt
My bet would be that the .jspf extension is not mapped to be processed by the JSP Processor in your Servlet Container. I think .jspf is just a naming convention, it doesn't have any intrinsic meaning to the container, so if you want to continue putting your fragments in .jsp files, they should

ParentPackage annotation not applying to subpackages

2010-07-14 Thread JP Cafaro
I'm using struts 2 with convention plugin. The convention plugin page states for the ParentPackage annotation, To apply this annotation to all actions in a package (and subpackages), add it to package-info.java. I have two packages, my-default and my-secure. I have a package called

Re: Currency Formatting

2010-07-14 Thread Chris Miles
On further digging I have found out some more info. My action is /shop/getProduct.action?productId=61 The action is defined as follows: action name=getProduct class=org.chrismiles.sentiments.struts2.shop.GetProductAction result