Re: 答复: How to invoke actions in different configuration packages

2007-06-21 Thread hezjing
Thank you, it works! However, we also required to move WEB-INF/pages/persons.jsp to WEB-INF/user/pages/persons.jsp and WEB-INF/pages/products.jsp to WEB-INF/product/pages/products.jsp Is there a way to keep all JSPs in WEB-INF/pages without moving them? On 6/21/07, chenshibing [EMAIL

答复: 答复: How to invoke actions in different configuration package s

2007-06-21 Thread chenshibing
I have no idea. Actually, Struts2 will prefix url with the namespace. 陈仕兵 GIMS, IT Application Development Great Eastern Life Assurance (China) Co. Ltd. Tel: 86-023-6805-3128 Fax: 86-023-68053154 Mbl: 86-023-66101533 -邮件原件- 发件人: hezjing [mailto:[EMAIL PROTECTED] 发送时间: 2007年6月21日 14:11

Re: javax.el.ExpressionFactory

2007-06-21 Thread GEDA
Besides the one in the WEB-INF/lib ... I am not using any other plugin. And no, I don't have the JSF plugin because I am not using JSF in my project. Here are xmls: beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: properties at times not found

2007-06-21 Thread Roberto Nunnari
Hello list. Going on with investigation on this strange misbehaviour, I found out that when the JSP page gets good data, in the value stack I see: key: com.opensymphony.xwork2.dispatcher.HttpServletRequest value: [EMAIL PROTECTED] while when I get no data I see: key:

[S2] Unable to access Model properties when using ModelDriven

2007-06-21 Thread Victor Neo
I have an Action class that implements ModelDriven. My DummyForm object will be used to store the user's input (just a userName attribute in this case). ValidateDummy ActionClass: public class ValidateDummy implements ModelDriven{ private DummyForm form; public String execute(){

integration of hibernate3 in struts2

2007-06-21 Thread Roberto Nunnari
Hello. I'd like to ask if anyone can share his experience in integrating hibernate3 in S2. I believe I should use the 'Open Session in View Pattern' but as I'm getting wierd behaviour from my S2 application I wonder if the way I'm integrating it is bad. I'm using a filter for hibernate in

Re: integration of hibernate3 in struts2

2007-06-21 Thread Toni Lyytikäinen
What kind of filter are you using? Have you made one yourself or is it the one from the Spring framework? If not, consider looking into Spring. Spring includes an OSIV filter that seems to work for me at least. I'm also using the Spring declarative transactions in my DAOs which makes writing

Re: integration of hibernate3 in struts2

2007-06-21 Thread Jeromy Evans
I'm using a filter for hibernate in web.xml.. should I instead use a S2 interceptor? I use an S2 interceptor as per the open-session in view pattern. Pass the SessionFactory or EntityManagerFactory (in stand-alone mode) to your interceptor through the ServletContext.

Re: integration of hibernate3 in struts2

2007-06-21 Thread Roberto Nunnari
Hi Toni. Thank you for your quick answer. I'm using a filter based on that described on the hibernate site: http://www.hibernate.org/43.html As I'm already new to S2, Tiles and Hibernate, and I have never used Spring, I tried to limit the new tecnologies in this project by lefting out Spring...

Re: integration of hibernate3 in struts2

2007-06-21 Thread Roberto Nunnari
Hello Jeromy. Jeromy Evans wrote: I'm using a filter for hibernate in web.xml.. should I instead use a S2 interceptor? I use an S2 interceptor as per the open-session in view pattern. Pass the SessionFactory or EntityManagerFactory (in stand-alone mode) to your interceptor through the

Tomcat wont start with commons-digester in lib

2007-06-21 Thread Søren Blidorf
Hi I am upgrading struts and have put the commons-digester in my common/lib. Then my tomcat wont start: Bootstrap: Create Catalina server Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException:

Re: javax.el.ExpressionFactory

2007-06-21 Thread Dave Newton
--- GEDA [EMAIL PROTECTED] wrote: Besides the one in the WEB-INF/lib ... I am not using any other plugin. And no, I don't have the JSF plugin because I am not using JSF in my project. I guess I was more asking what's in your WEB-INF/lib as compared to what your project is actually using.

Re: properties at times not found

2007-06-21 Thread Dave Newton
One thing I've done when weird things are happening for no apparent reason is include the context cleanup filter; you can always see if that helps; map it before the struts dispatcher. filter filter-namecontextCleanup/filter-name filter-class

Tiles jsf reponse already committed

2007-06-21 Thread Bengali Bengali
Hi, i know it's an issue which has been discussed many times but I still haven't found an answer for my special case. Actually, i am working on a project that uses jsf-ri 1.1 and struts tiles 1.1. The tiles view handler has been declared in the faces-config.xml and it works fine. Except that we

Re: Tiles jsf reponse already committed

2007-06-21 Thread Antonio Petrelli
The problem is that, in Tiles, if an exception happens during rendering a tile, the response will be *always* already committed. There is no hope to work around, except of resolving the exception :-) Antonio 2007/6/21, Bengali Bengali [EMAIL PROTECTED]: Hi, i know it's an issue which has been

Re: javax.el.ExpressionFactory

2007-06-21 Thread Antonio Petrelli
2007/6/21, Dave Newton [EMAIL PROTECTED]: --- GEDA [EMAIL PROTECTED] wrote: Besides the one in the WEB-INF/lib ... I am not using any other plugin. And no, I don't have the JSF plugin because I am not using JSF in my project. I guess I was more asking what's in your WEB-INF/lib as compared

s2: Base url in jsp's

2007-06-21 Thread Max Pimm
I am used to defining a base element in my pages but can't find the way to define this with struts 2. All suggestions welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

desparately need help finding a list component to use for Struts 2 application

2007-06-21 Thread Bill Johnson
Can anyone point me at an already available shuttle component that I can use with my Struts 2 application? Basically I need a component that has a list of available values on the left and selected values on the right. Users should be able to move things back and forth between the lists. Here is

Re: desparately need help finding a list component to use for Struts 2 application

2007-06-21 Thread Alexis Pigeon
Hi Bill, On 21/06/07, Bill Johnson [EMAIL PROTECTED] wrote: Can anyone point me at an already available shuttle component that I can use with my Struts 2 application? Basically I need a component that has a list of available values on the left and selected values on the right. Users should be

Re: properties at times not found

2007-06-21 Thread Roberto Nunnari
Hello Dave. Yes. That helps! Now the JSP always get good data.. But what does that mean? How can I find out what's going on? Do I have to keep the filter mapped? Dave Newton wrote: One thing I've done when weird things are happening for no apparent reason is include the context cleanup

Re: properties at times not found

2007-06-21 Thread Dave Newton
--- Roberto Nunnari [EMAIL PROTECTED] wrote: But what does that mean? I've just been chalking it up to magic. How can I find out what's going on? Do I have to keep the filter mapped? Probably. Are you using SiteMesh? In a nutshell, this filter tells the dispatcher filter not to clean up the

Re: properties at times not found

2007-06-21 Thread stanlick
Hey Scott -- I am using ModelDriven and Preparable so I can pass an ID along with the requests. I added an id attribute to my baseaction class and things are working with one exception. Since the prepare method is called before the getModel, when I post a form, and the prepare gets called, I

Re: properties at times not found

2007-06-21 Thread Roberto Nunnari
Dave Newton wrote: --- Roberto Nunnari [EMAIL PROTECTED] wrote: But what does that mean? I've just been chalking it up to magic. How can I find out what's going on? Do I have to keep the filter mapped? Probably. Are you using SiteMesh? In a nutshell, this No. But I'm using Tiles.

i18n for Enum values in s:select

2007-06-21 Thread sarat.pediredla
I have a s:select form element in my JSP that gets a list of enums to display in a drop down box. The following is my enum public enum Colour { WHITE, RED, BLACK; } The following is the action method that returns a List for my s:select public List getColourList() { return

RE: properties at times not found

2007-06-21 Thread Scott Trafton
Hi, I have been getting the same errors from the Parameter interceptor. So far I haven't found a way around that unless you put getters and setter for all the parameters in the action. (Which I don't want). However, the good news is that for better or worse, when/if you change the settings in the

RE: Updating a Map of data

2007-06-21 Thread jrtalley
I figured this one out. The key I was using was actually the canonical name of the MBean which contains some punctuation. This must have been causing some problems with the params interceptor being able to properly process the request. Jeff -Original Message- From: Talley Jeff (air2jrt)

[S2] short-circuit problem

2007-06-21 Thread Lucas Garcia
Hi, I'm working with 2.0.8 struts version, and I have a problem with the next validation file: validators field name=email field-validator type=requiredstring short-circuit=true message key=Sign.error_required / /field-validator field-validator type=email short-circuit=true message

Re: [S2] short-circuit problem

2007-06-21 Thread Dave Newton
--- Lucas Garcia [EMAIL PROTECTED] wrote: If I execute the form with the 3 fields (email, password and passwordRep) in blank, 3 error messages are returned. I was reading that when a validation short-circuited occurs, the next validations aren't executed. Nevertheless -as I said- 3 error

Re: [S2] short-circuit problem

2007-06-21 Thread Lucas Garcia
omg... As a lot of people says... rtfm, Lucas :) That's correct, Dave :) Thanks a lot for the appointment! ;) Cheers! On 6/21/07, Dave Newton [EMAIL PROTECTED] wrote: --- Lucas Garcia [EMAIL PROTECTED] wrote: If I execute the form with the 3 fields (email, password and passwordRep) in

[S2]Paging through a large list of things

2007-06-21 Thread Skip Hollowell
The power that be have dictated that a mega search against the DB will be fired off 1 time, and all the results will be returned to my Struts 2 app for me to deal with. (Rather than my suggestion of sending a request for 1 page worth of information as most people would suggest) So now my

[S2] Any example of using ScopeInterceptor to implement a wizard

2007-06-21 Thread Gabriel Belingueres
Hi, I need to implement a wizard that collects data in several forms, which fields are stored in a single session scoped object. The problem is I didn't found any working example of using ScopeInterceptor. Even this interceptor is not in the default stack, so I don't know if it is widely used

S2: updownselect not sending complete list

2007-06-21 Thread Scott Nesbitt
I am using the updownselect tag and things are almost working perfectly. The only problem I have is that the list that gets sent back to the server only includes the rows that have been selected. I patterned my code after the showcase example (which does work), but despite my best efforts I

best practices for passing long list of parameters across pages

2007-06-21 Thread temp temp
Is there any best practices to avoid long list of parameters . Thanks Miro - Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.

Re: [S2] Any example of using ScopeInterceptor to implement a wizard

2007-06-21 Thread Mark Menard
On 6/21/07 1:47 PM, Gabriel Belingueres [EMAIL PROTECTED] wrote: Hi, I need to implement a wizard that collects data in several forms, which fields are stored in a single session scoped object. The problem is I didn't found any working example of using ScopeInterceptor. Even this

No FormBeanConfig found under 'none'

2007-06-21 Thread Søren Blidorf
I have just upgraded to tomcat 6 and struts 1.2.9. I now get the error: No FormBeanConfig found under 'none' Any idears? Soren

Re: How to use the s:param tag with s:textfield?

2007-06-21 Thread Célio Cidral Junior
I have the same problem, but as far as I could see, formatting support in S2 is nasty. You can format something with s:text using the format defined in your resource bundle, but you can't do that with s:textfield. WTF?! Man, so far I've spent 3 hours trying to do make that work, but just

Re: S2: Formatting s:textfield values

2007-06-21 Thread Célio Cidral Junior
I'm having the same problem. I consider this an important issue, so why this thread got no response? Célio 2007/4/11, Sauli Ketola [EMAIL PROTECTED]: Hi, Is there a way to format the value of a s:textfield like it possible with s:text? For example what would be the equivalent of s:text

FileDownload Action in struts2-showcase

2007-06-21 Thread Vineet Chopra
Hello, I was trying to modify in struts2-showcase - FileDownload action to read a jpeg file located in the local machine, not in the webapp. First of all is it possible to read and display local file? when i changed i am getting this error :-- java.lang.IllegalArgumentException: Can not find a

Re: How to use the s:param tag with s:textfield?

2007-06-21 Thread Luiz Henrique Rossetti
I resolved the problem creating a class that extends a class StrutsTypeConverter. On 6/21/07, Célio Cidral Junior [EMAIL PROTECTED] wrote: I have the same problem, but as far as I could see, formatting support in S2 is nasty. You can format something with s:text using the format defined in

Html Option Tag - how to retrieve selected collection item?

2007-06-21 Thread Simon Pink
Hi there, I have a Collection (foodGroups) that I am displaying in a html:select tag via html:optionsCollection. So I have: nested:select property=foodGroupId html:option value=/ nested:optionsCollection property=foodGroups value=foodGroupId label=name/ /nested:select So far

What exactly the scope of instance variables and Action instances

2007-06-21 Thread tom tom
Hi, As we dont have ActionForms seperately as in Struts 1.X. We introduce member variables in the Action classes. All our jsp field elements are mapped to these member variables. The question we have is, What exactly the life cycle and scope of these Actions and Member variables, When it will

Re: [S2] Getting DAO from Spring in Struts Action

2007-06-21 Thread David Durham, Jr.
On 6/15/07, M. Bitner [EMAIL PROTECTED] wrote: That got it working - thank you all so much for your help. Turns out I was wrong, though, and it's the class attribute that has to match up. Been awhile since I looked at that. Good that you solved your problem, anyway. -Dave On 6/15/07,

Re: What exactly the scope of instance variables and Action instances

2007-06-21 Thread Dave Newton
--- tom tom [EMAIL PROTECTED] wrote: The question we have is, What exactly the life cycle and scope of these Actions and Member variables, When it will be released from the value stack, how long will it be there in the value stack. The following:

Re: Html Option Tag - how to retrieve selected collection item?

2007-06-21 Thread Michael Jouravlev
On 6/21/07, Simon Pink [EMAIL PROTECTED] wrote: ... What I want to do is, rather than send the id in the value field, send the actual bean. ... You cannot send a Java object from a browser. - To unsubscribe, e-mail: [EMAIL

RE: Html Option Tag - how to retrieve selected collection item?

2007-06-21 Thread Simon Pink
Thanks for the prompt response. I was hoping I could put in the value field myCollection[0], then on the server side struts would interpret which item in collection to store in the form. In other words struts would generate this html and interpret it: select name=myBean option

Re: s2: Base url in jsp's

2007-06-21 Thread Van Riper
On 6/21/07, Max Pimm [EMAIL PROTECTED] wrote: I am used to defining a base element in my pages but can't find the way to define this with struts 2. All suggestions welcome. I don't think you need struts 2 support to do this. I'm using webwork 2.2 currently and starting to monitor this list

Re: s2: Base url in jsp's

2007-06-21 Thread Musachy Barroso
Or the scriptletless version: base id=docBase href='s:property value=%{#context[@ [EMAIL PROTECTED]/' musachy On 6/21/07, Van Riper [EMAIL PROTECTED] wrote: On 6/21/07, Max Pimm [EMAIL PROTECTED] wrote: I am used to defining a base element in my pages but can't find the way to define this

Re: [S2]Paging through a large list of things

2007-06-21 Thread Jeromy Evans
Skip Hollowell wrote: So now my question is ... how? I have a list of 5000 records. I want to initially show them a 100 of these records, with a nice Prev / Next feature. 1. Where / how do I safely store this list for this user? Obviously it needs to be saved somewhere so it is not lost

Re: [S2]Paging through a large list of things

2007-06-21 Thread Musachy Barroso
I've always used displaytag for paginated results. It is really easy to use (and flexible at the same time) musachy On 6/21/07, Jeromy Evans [EMAIL PROTECTED] wrote: Skip Hollowell wrote: So now my question is ... how? I have a list of 5000 records. I want to initially show them a 100 of