Re: struts zero configuration limitations and s2.1 availlability question

2008-03-10 Thread Yenwen Feng
We have found the interceptors hard to use in zero configuration as well. The problem is, the @ParentPackage can't be configured per action based, it can only be applied at package level. (although it's configuration at Action class) In other words, once you have set @ParentPackage more than once

Re: [S2] Mapping a result string for all the actions

2008-03-10 Thread stanlick
Isn't it great when you can exactly what you need with exactly one message for exactly $0.0? Priceless! On Mon, Mar 10, 2008 at 10:00 AM, GF <[EMAIL PROTECTED]> wrote: > Thank you > It's exactly what I was looking for! > > On Mon, Mar 10, 2008 at 3:34 PM, Lukasz Lenart < > [EMAIL PROTECTED]> > w

Re: validation with annotation

2008-03-10 Thread Ealden EscaƱan
On Tue, Mar 11, 2008 at 7:10 AM, xianwinwin <[EMAIL PROTECTED]> wrote: > > assuming registration is composed of fname, lname, ss, dob and except dob > all fields are mandatory. > > Question: how do I make sure those fields will be input? should I have > something like: > > @RequiredStringValidator(

validation with annotation

2008-03-10 Thread xianwinwin
Hi there, I would like to create a validation with annotation. consider the following case: @Validation public class AddCaseAction { private Registration registration; . . . public String addNewRegistration() { //do something return "succ

Re: [S2] Multiple SUCCESS results?

2008-03-10 Thread Wes Wannemacher
On Mon, 2008-03-10 at 14:59 -0700, Dave Newton wrote: > --- "Kelly.Graus" <[EMAIL PROTECTED]> wrote: > > Is it possible to specify more than one SUCCESS result for an action? For > > example, when the user runs an action, it could prompt them to download a > > file (using the stream result type),

Re: [S2] Multiple SUCCESS results?

2008-03-10 Thread Dave Newton
--- "Kelly.Graus" <[EMAIL PROTECTED]> wrote: > Is it possible to specify more than one SUCCESS result for an action? For > example, when the user runs an action, it could prompt them to download a > file (using the stream result type), and then redirect them to another > page? Names should be uni

[S2] Multiple SUCCESS results?

2008-03-10 Thread Kelly.Graus
Hello, Is it possible to specify more than one SUCCESS result for an action? For example, when the user runs an action, it could prompt them to download a file (using the stream result type), and then redirect them to another page? Thanks! Kelly -- View this message in context: http://www.na

RE: ModelDriven CRUD validation failure still causes JPA update - RESOLVED

2008-03-10 Thread Fabiano Franz
I had the same issue regarding Struts 2 validations and Hibernate/JPA flush. My solution: Write an XWork Interceptor that is placed right after the validation interceptor on your stack. This interceptor checks the actionErrors and fieldErrors and, if any of them is not empty, performs a Hibernate

RE: How can I combine a result (tiles + xslt)?

2008-03-10 Thread Griffith, Michael *
Antonio, Thanks for your help. For some reason, it didn't register to me that the TILES_2_0_X branch would be the 2.0.6 branch... duh. I downloaded the Tiles 2.0.X source and built the 2.0.6 snapshot. It did not fix the IO Stream error previously reported, so I am unsure if the issue is related

Re: How can I combine a result (tiles + xslt)?

2008-03-10 Thread Antonio Petrelli
2008/3/10, Griffith, Michael * <[EMAIL PROTECTED]>: > I checked out the current branch from the Tiles SVN repository: > http://svn.apache.org/repos/asf/tiles/framework/trunk/ and built it. > Version is 2.1.0-SNAPSHOT. This appears to be incompatible with the > Struts2Tiles plugin? It is incom

Multiproject POM

2008-03-10 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello y'all, I'm facing a problem I cannot find a solution for, so I hope to get one here: When building a Project with parent entry struts2-apps org.apache.struts 2.0.11 build fails, because struts2-apps.2.0.11.pom contains entr

Re: ValueStack.findValue(...)

2008-03-10 Thread Chris Pratt
On Mon, Mar 10, 2008 at 11:33 AM, stanlick <[EMAIL PROTECTED]> wrote: > > I am working on a custom result type and a weird scenario. > > If I issue vs.findValue("employees"); > > the getEmployees() is called on my action just fine. > > However issuing vs.findValue("employee('e9874v')"); > > fo

ValueStack.findValue(...)

2008-03-10 Thread stanlick
I am working on a custom result type and a weird scenario. If I issue vs.findValue("employees"); the getEmployees() is called on my action just fine. However issuing vs.findValue("employee('e9874v')"); for a specific employee, I get a null value! If I change th syntax to vs.findValue("getEm

RE: How can I combine a result (tiles + xslt)?

2008-03-10 Thread Griffith, Michael *
Hi all, I checked out the current branch from the Tiles SVN repository: http://svn.apache.org/repos/asf/tiles/framework/trunk/ and built it. Version is 2.1.0-SNAPSHOT. This appears to be incompatible with the Struts2Tiles plugin? Has anyone run into this? The error is: Exception sending contex

Re: Clearing Action properties from ValueStack

2008-03-10 Thread Othon Reyes Sanchez
* - In 2.0+ isn't the default scope singleton?* Yes, the deafault scope is singleton (Only one instance for the class ). You can change the scope fo your beans to request or session but also you nedd to add some configuration to your web.xml. Are you using ModelDriven interface?. On Mon, Mar 10

Re: Clearing Action properties from ValueStack

2008-03-10 Thread Dave Newton
--- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote: > Not doing much in the applicationContext.xml file: > > > class="no.bbs.webservice.mapp.client.web.action.PutArchiveObject"> > > - Is that an action definition? - What version of Spring? - In 2.0+ isn't the default scop

Re: Clearing Action properties from ValueStack

2008-03-10 Thread Rushikesh Thakkar
Not doing much in the applicationContext.xml file: On Mon, Mar 10, 2008 at 5:50 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote: > > Yes, I am using Spring ObjectFactory. > > Okay. > > Are you configuring your actions in the

Re: Clearing Action properties from ValueStack

2008-03-10 Thread Dave Newton
--- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote: > Yes, I am using Spring ObjectFactory. Okay. Are you configuring your actions in the Spring config file? If so, *please* include how they're being configured. Dave - To unsubsc

Re: Clearing Action properties from ValueStack

2008-03-10 Thread Rushikesh Thakkar
sorry, missed out the second question: I mean, I have instantiated Action properties while declaring them. public class PutArchiveObject extends ActionSupport implements SessionAware { private Map session; private Head head = *new Head();* private String parentObjectRef *= new String

Re: Clearing Action properties from ValueStack

2008-03-10 Thread Rushikesh Thakkar
Yes, I am using Spring ObjectFactory. On Mon, Mar 10, 2008 at 5:13 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote: > > Can anyone tell me how long is the value of Action Property held on the > > ValueStack. I am asking this b'coz I am facing a problem

Re: Clearing Action properties from ValueStack

2008-03-10 Thread Dave Newton
--- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote: > Can anyone tell me how long is the value of Action Property held on the > ValueStack. I am asking this b'coz I am facing a problem: Normally an action is created for each request and pushed onto the stack. Without knowing more about how your appl

Re: struts + springs + action messages issue

2008-03-10 Thread Dave Newton
--- Sivaswamynatha K <[EMAIL PROTECTED]> wrote: > We are using struts 1.2.9 and springs. I have one issue. Action messages > (some error message and information to the user) of one user is > available to another user who is also working on the application. He may > do some other action. What's the

[OT] Re: subfolder in JSP directory

2008-03-10 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > public_html / jsp / jsp_file.jsp > > and I want : > > public_html / jsp / a_folder / jsp_file.jsp > > But I'm not able to set the forward int the struts-config.xml file, I > always get a 404 error, so the JSP file could not be found. > I have tried with the contex

Re: Clearing Action properties from ValueStack

2008-03-10 Thread mgainty
default scope you are using is short lived so implement the scope your action needs with a scope interceptor http://struts.apache.org/2.0.6/docs/scope-interceptor.html and if you use a key param you will be able to access either Action attribute via supplied 'key' (provided you have setup the mutat

Re: [S2] Mapping a result string for all the actions

2008-03-10 Thread GF
Thank you It's exactly what I was looking for! On Mon, Mar 10, 2008 at 3:34 PM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > Hi, > > You can use global-results > http://struts.apache.org/2.0.6/docs/result-configuration.html >

Re: [S2] Mapping a result string for all the actions

2008-03-10 Thread Lukasz Lenart
Hi, You can use global-results http://struts.apache.org/2.0.6/docs/result-configuration.html Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: Clearing Action properties from ValueStack

2008-03-10 Thread Adrian Ost
oh..forgot...set its value to 'none' Adrian Ost schrieb: hi, not sure if this is really what you're problem is about, but adding the parameter "includeParams" to the struts url-tag solved my problem of having the old value + my new value send on resubmitting. greets, adrian Rushikesh Thakkar

[S2] Mapping a result string for all the actions

2008-03-10 Thread GF
I've an action like this: ... /path/my.action I would like that, when any action method in my application returns "myResultName", a redirect to /path/my.action should be executed. Any idea about doing this? Thanks

Re: Clearing Action properties from ValueStack

2008-03-10 Thread Adrian Ost
hi, not sure if this is really what you're problem is about, but adding the parameter "includeParams" to the struts url-tag solved my problem of having the old value + my new value send on resubmitting. greets, adrian Rushikesh Thakkar schrieb: Hi Group, Can anyone tell me how long is the va

Re: Struts 2 IDE and Conspiration

2008-03-10 Thread Alex Choi
Yes,. WebWorks, Struts 2, and Struts 1 are community projects or open source projects. JSF was developed by an expert group lead by Sun Microsystems (under JSR-127) and available for anyone to use. When you mention JSF it sounds to me that you are interested in better understand how to render a p

struts + springs + action messages issue

2008-03-10 Thread Sivaswamynatha K
Hi, We are using struts 1.2.9 and springs. I have one issue. Action messages (some error message and information to the user) of one user is available to another user who is also working on the application. He may do some other action. Regards, Siva Regards, K. Siva Swamynatha. KAVNI

Clearing Action properties from ValueStack

2008-03-10 Thread Rushikesh Thakkar
Hi Group, Can anyone tell me how long is the value of Action Property held on the ValueStack. I am asking this b'coz I am facing a problem: Background: My action has 4 members (and getter,setter for them). One of them is a POJO with many properties. So my JSP has different fields for supplying va

Re: Struts 2 IDE and Conspiration

2008-03-10 Thread Frans Thamura
i am using struts2 also, since webwork 2.x but i can see, after joining struts, and struts become 2.0, the IDE still dont develop the struts2 thing is this mean after JSF, struts2 100% community project. F

Re: Struts 2 IDE and Conspiration

2008-03-10 Thread Alex Choi
I have experience in developing web applications in Struts 1 and Struts 2. IMHO, I think Struts 2 is an improved framework over Struts 1. Again, that is just me. You can take a look at the following available online resources to better understand about Struts 2: - http://struts.apache.org/2.x

RE: short-circuit="true" not working in field validator

2008-03-10 Thread Chamara Gunaratne
Dave: Thank you for your help and advice. That indeed was the problem. I changed my app to use server side validation and now it is functioning as expected. Best regards, Chamara -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 6:41 PM To: Strut

subfolder in JSP directory

2008-03-10 Thread thomas . perelle
Hi everybody, I have a web application using Struts and Struts-Layout. I have a lot of JSP in the root JSP directory : public_html/jsp , so I want to order them by fonctionnality each in his own folder. So actually I have : public_html / jsp / jsp_file.jsp and I want : public_html / jsp / a_f

Struts 2 IDE and Conspiration

2008-03-10 Thread Frans Thamura
hii all we know, all the vendor now try to develop a JSF, which i read in the struts2 website, that JSF is better for bizz application, and struts for web. but for me both are web based ... and JSF is tool driven so, for me, the vendor can sell 2 thing if they have IDE, the api and the IDE,