hi please check this war

2010-07-14 Thread Salish S
HI please checjk this war on clicking the edit it will ask for input what all changes has to add ther for add hibernate is this the right formate to do hibernate in the same appliction how can i do the crud appliction by the same please check this war and tell what changes that has to do to work it

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: class="org.chrismiles.sentiments.struts2.shop.GetProductAction"> name="success">/shop.jsp?content=/jsp/shopview/getProduct.jsp sho

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 actions

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 wor

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" %> Menu Login The html produced is (produces tags instead of tags...): menu Loginmenu Login I am using Netbeans 6.9 RC2 with Glassfish Prelude... What's causing this? I've

Re: Accessing scoped variables via 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=14052&originalId=23332622 -Dale -

Accessing scoped variables via tags

2010-07-14 Thread mailtolouis2020-struts
Hi, In this document https://cwiki.apache.org/WW/application-session-request-objects-in-jsp.html That is not work But and this are work. I think the doc need to update.

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 ex

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 objects

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,

Re: Model Driven & Preparable

2010-07-14 Thread Amol Ghotankar
My interceptor stack is as below Please guide. On Tue, Jul 13, 2010 at 4:27 PM, Amol Ghotankar wrote: > Dear List members, > > > I have implemented model driven & prepare able interface in S2, also > included interceptor stac

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 writ

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

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 wrote: > 2010/7/14 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. >> Li

Re: Session error while loading an object

2010-07-14 Thread abhishek jain
2010/7/14 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. > Hi, I h

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 : > Hi, > thanks for the

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 : > I don't think I can use in my requirement. The checkbo

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 : > The problem is: When he pass through interceptor and go to action > "cadastrarOrdemServico"  my va

Re: Struts2 validation

2010-07-14 Thread kisja
Thanks for the answer. I'm trying this, but it is not working properly eeei I have two numeric textfields any idea?? jake-65 wrote: > > You can use the fieldexpression validator. See > http://struts.apache.org/2.

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-

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(..) metho

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 : > H

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 globall

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 wrote: > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.or