Re: Interceptors and thread-safety

2007-04-15 Thread Laurie Harper
Shahak Nagiel wrote: The "Writing Interceptors" guide pretty clearly states that "Interceptors are shared between requests and must be thread-safe." However, there are some Interceptors--such as execAndWait and roles--which accept parameters (e.g. "delay" and "allowedRoles") and which, ostens

Re: tiles-defs.xml and extended attributes...

2007-04-15 Thread Antonio Petrelli
2007/4/13, Rod Bollinger <[EMAIL PROTECTED]>: Is there a way to define these extended attributes in my TLD file or would this require an extension to the tiles-config_1_3.dtd (not really preferable)? What is the correct procedure for declaring these "extra" attributes such that they are considere

Re: [S2] Date validator error!

2007-04-15 Thread Laurie Harper
Note that what is logged is not and error; it's logged as a WARNING. These warnings are usually noise (I have my logging configuration set up to suppress them, so I never see them). Are you seeing a problem other than the warning in the logs? L. Telmo Costa wrote: Hi everyone, I have th

Re: Posting Java 5 Enum values

2007-04-15 Thread Laurie Harper
Adam Ruggles wrote: I have an object that contains a Java 5 enum class. I'm having problems getting this to post back to my action. Is there any documentation on how to do this? Do I need to create a custom type converter/annotation/properties file? I'm not sure what you mean by 'getting t

Re: [Struts2] How to right align the label for a text field?

2007-04-15 Thread Laurie Harper
Neil Aggarwal wrote: Hello: I am sure this has been asked before, but I am just not finding the answer. I have searched the web and the archives of this list to no avail. I want to make some labels of an input form align to the right instead of the left. Here is an example:

Re: validwhen not working

2007-04-15 Thread Laurie Harper
Dave Newton wrote: --- Glenn Wilson <[EMAIL PROTECTED]> wrote: [client-side validwhen] IIRC there is no client-side validation for validwhen, but you'd want to confirm that (although you may have already ;) Dave is correct. The validwhen rule is server-side only. Just to confirm ;-) L. --

Re: Struts testing

2007-04-15 Thread Laurie Harper
puchacz wrote: Hi I would like to ask if You (as Struts programmers) see some + or - of testing Struts? I know JSF where I can test all components as a standalone programs. How it looks in Struts? If in Struts are a lot of dependencies which make Struts testing hard to test? It depends somew

Re: intercept return, and Interceptor implementing ServletRequestAware

2007-04-15 Thread Mansour
Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: What's the point then of having an action, if the intercept method is going to execute the action. Why don't I just put the action code in an interceptor ? Because interceptors are normally called for *groups* of acti

Re: intercept return, and Interceptor implementing ServletRequestAware

2007-04-15 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > What's the point then of having an action, if the > intercept method is going to execute the action. Why > don't I just put the action code in an interceptor ? Because interceptors are normally called for *groups* of actions, not just one... just like it s

Re: [OT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Mansour
I have one more question related to this thread. Let's say I need to write a web app to access and configure a server, and these app has to modify the configuration files on this server. How would you deal with this ? Write a persistence code so that you can hold a reference for each file, or y

Re: intercept return, and Interceptor implementing ServletRequestAware

2007-04-15 Thread Mansour
Musachy Barroso wrote: http://struts.apache.org/2.x/docs/interceptors.html http://struts.apache.org/2.x/docs/writing-interceptors.html What 's the point then of having an action, if the intercept method is going to execute the action. Why don't I just put the action code in an interceptor ?

Re: intercept return, and Interceptor implementing ServletRequestAware

2007-04-15 Thread Musachy Barroso
http://struts.apache.org/2.x/docs/interceptors.html http://struts.apache.org/2.x/docs/writing-interceptors.html On 4/15/07, Mansour <[EMAIL PROTECTED]> wrote: I can not figure out how to configure an interceptor. What does the returned string represents ? I mean if I have an action that has o

intercept return, and Interceptor implementing ServletRequestAware

2007-04-15 Thread Mansour
I can not figure out how to configure an interceptor. What does the returned string represents ? I mean if I have an action that has one or more interceptors, how would the returned string of the interceptor affects the execution of this action ? Any examples ? -

Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Mansour
Adam Ruggles wrote: As far as interceptors look at the docs/source code. If your writing your own interceptor then you can control when it is executed. So here is a scenario for you. Two users are working on the same account. User 1 updates the address. Now user 2 updates the address. Si

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Mansour
I am not familiar with Oracle, but in mysql it allows you to set constraints. :) Martin Gainty wrote: Musachy- I just created this DB under Oracle #so I re-configed the pfile (path/initDBNAME.ora) with these params #MCG change UNDO_MANAGEMENT to AUTO UNDO_MANAGEMENT = AUTO #either repla

RE: How to change "targets" attribute for submit button from java script?

2007-04-15 Thread Shekhar Yadav
Thanks, using targetsArray works. I was not sure if it safe and future safe, so I was bit hesitant in using targetsArray. Regards, Shekhar -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 3:25 PM To: Struts Users Mailing List Subject: Re: H

[Struts2] How to right align the label for a text field?

2007-04-15 Thread Neil Aggarwal
Hello: I am sure this has been asked before, but I am just not finding the answer. I have searched the web and the archives of this list to no avail. I want to make some labels of an input form align to the right instead of the left. Here is an example: H

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Dave Newton
Please start new threads for new topics. --- Martin Gainty <[EMAIL PROTECTED]> wrote: > I noticed at the end of SQL I see ENGINE=InnoDB > Could you indicate what ENGINE=InnoDB is supposed to > accomplish??? InnoDB is one of the MySQL engines (contrast with MyISAM, for example) that handles refere

Re: Struts testing

2007-04-15 Thread Martin Gainty
Puchacz-- I would suggest using MockStrutsTestCase http://strutstestcase.sourceforge.net/api/servletunit/struts/MockStrutsTestCase.html dziekuje, Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email messa

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Martin Gainty
Musachy- I just created this DB under Oracle #so I re-configed the pfile (path/initDBNAME.ora) with these params #MCG change UNDO_MANAGEMENT to AUTO UNDO_MANAGEMENT = AUTO #either replace "%AVAILABLE_SID%" with your database name OR hardcode as you see here db_name=%AVAILABLE_SID% sql>shu

Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Adam Ruggles
As far as interceptors look at the docs/source code. If your writing your own interceptor then you can control when it is executed. So here is a scenario for you. Two users are working on the same account. User 1 updates the address. Now user 2 updates the address. Since you are not re-fe

Re: tks for help, but more question for html:javascript

2007-04-15 Thread john lee
tks frank, it works. john "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: Hmm, I've never actually used the html:javascript tag, so I'm not sure what its intended purpose is, or how it works... seems like the docs is talking about validation, so yeah, maybe it's not applicable... althoug

Re: Struts 2.0.6 != Shale?

2007-04-15 Thread Craig McClanahan
On 4/15/07, Nicolas Lanquetin <[EMAIL PROTECTED]> wrote: So, question: Are these the same frameworks? Is Shale a codename for Struts 2? No, they are not the same. No, it is not a codename. The Shale codebase started in a sandbox of the Struts project, and was proposed to the Struts committer

Parameters Not Set

2007-04-15 Thread Zach Calvert
I think there is a problem with struts 2 relating to the ParametersInterceptor . On random occasion, I will receive Apr 15, 2007 11:47:32 AM com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception catched: Erro

Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Mansour
Adam Ruggles wrote: The problem with the store in session solution is what if two people are working on the same account at the same time? Hummm, Good point. But wait ! what's wrong with this ? they don't have access to each other sessions. May be store it in the request ? Now how do I get a

Re: [s2] eclipse plugin

2007-04-15 Thread Angelo zerr
Ok thank you for your answer. It's shame for me. But if you are interested by Akrogen, don't hesitate to write me. Regards Angelo 2007/4/15, Musachy Barroso <[EMAIL PROTECTED]>: I haven't really seen it working (just saw the website). I wrote eclipse plugins in another life so I don't want to

Re: [s2] eclipse plugin

2007-04-15 Thread Musachy Barroso
I haven't really seen it working (just saw the website). I wrote eclipse plugins in another life so I don't want to feel the temptation of wanting to contribute :) musachy On 4/15/07, Angelo zerr <[EMAIL PROTECTED]> wrote: hi musachy, thank you for having given the information about Eclipse p

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Adam Ruggles
The problem with the store in session solution is what if two people are working on the same account at the same time? Mansour wrote: Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: I see what you mean now. and after I call update, then I have to populate it again to redisplay the

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Mansour
Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: I see what you mean now. and after I call update, then I have to populate it again to redisplay the modified account. There's now not to re-select form the DB. Unless it's stored in session or the form contained all the data y

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > I see what you mean now. and after I call update, > then I have to populate it again to redisplay the > modified account. There's now not to re-select form > the DB. Unless it's stored in session or the form contained all the data you needed to re-display

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Mansour
Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: The Account data is to be populated the view, through AccountAction. Now how do I update (get my hand on the Account) that needs to be updated. If you are attempting to update an account and you have an ID, as we've already sai

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > The Account data is to be populated the view, > through AccountAction. Now how do I update (get my > hand on the Account) that needs to be updated. If you are attempting to update an account and you have an ID, as we've already said, S2 *instantiates an Ac

Re: [OT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Mansour
Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: I was looking to encapsulate all the behavior of the account in an account object. So the object updates its self. There's no reason you *can't* do that, but the architecture overlords will not be pleased. S2 doesn't care abou

[OT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > So I have to get away from OO in order to do this. Nope. Nobody is saying you *can't* do it like you are describing. And it'll work great, until you want to: (a) Change how your objects are persisted (say, switching to iBatis, or Spring-based JDBC, etc.)

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Mansour
Musachy Barroso wrote: I see. So I have to get away from OO in order to do this. I have to create a class called services, that has methods like: That's arguable, but it would be outside the scope of this mailing list. I know it pays of, but do I have to learn and use many frameworks to

[OT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > I was looking to encapsulate all the behavior of the > account in an account object. So the object updates > its self. There's no reason you *can't* do that, but the architecture overlords will not be pleased. S2 doesn't care about what else is in the obj

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Musachy Barroso
I see. So I have to get away from OO in order to do this. I have to create a class called services, that has methods like: That's arguable, but it would be outside the scope of this mailing list. I know it pays of, but do I have to learn and use many frameworks to get a simple application

Re: [s2] eclipse plugin

2007-04-15 Thread Angelo zerr
hi musachy, thank you for having given the information about Eclipse plugin. Have you seen Akrogen plugin? Do you find the idea is good? Akrogen plugin is not finished, but I think today we can use for generate simple component. But if you want another features, tell me, and I will try to devel

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Mansour
Musachy Barroso wrote: I was looking to encapsulate all the behavior of the account in an account object. So the object updates its self. I'd say must people don't use that pattern anymore. I see. So I have to get away from OO in order to do this. I have to create a class called services,

Re: [s2] eclipse plugin

2007-04-15 Thread Musachy Barroso
that was it :) musachy On 4/15/07, Angelo zerr <[EMAIL PROTECTED]> wrote: Hi Today, I don't think there is Eclipse plugin which exist for struts2. But I'm developping Eclipse plugin Akrogen http://akrogen.sourceforge.net/for generate any component of framework. With Akrogen you can create yo

Re: validwhen not working

2007-04-15 Thread Dave Newton
--- Glenn Wilson <[EMAIL PROTECTED]> wrote: > [client-side validwhen] IIRC there is no client-side validation for validwhen, but you'd want to confirm that (although you may have already ;) d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the

Re: [s2] eclipse plugin

2007-04-15 Thread Angelo zerr
Hi Today, I don't think there is Eclipse plugin which exist for struts2. But I'm developping Eclipse plugin Akrogen http://akrogen.sourceforge.net/for generate any component of framework. With Akrogen you can create your own components catalog. So you can write your Wizard page with XML/XUL desc

Re: [s2] eclipse plugin

2007-04-15 Thread Musachy Barroso
Search the mail archives, I think somebody mentioned a plugin some time ago musachy On 4/15/07, Pedro Herrera <[EMAIL PROTECTED]> wrote: Is there an eclipse plugin for Struts 2 ? Thks Pedro Herrera -- View this message in context: http://www.nabble.com/-s2--eclipse-plugin-tf3579536.html#a10

validwhen not working

2007-04-15 Thread Glenn Wilson
Hi all, new to using validator. I have validator working on most of my applicaiton but having a problem doing a "validwhen". I've been using the examples in the "Jakarta Struts Cookbook". Here is my question(s): I've noticed that javascript code is generated unique to the form name. However,

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Musachy Barroso
I was looking to encapsulate all the behavior of the account in an account object. So the object updates its self. I'd say must people don't use that pattern anymore. That was my question. I have to go through all this coding and write all these extra classes to be able to update info. rig

[s2] eclipse plugin

2007-04-15 Thread Pedro Herrera
Is there an eclipse plugin for Struts 2 ? Thks Pedro Herrera -- View this message in context: http://www.nabble.com/-s2--eclipse-plugin-tf3579536.html#a10002404 Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Mansour
Adam Ruggles wrote: Based on your posts I get the idea you don't understand how the MVC pattern works. I'll try to describe what should be happening. On the browser a user submits the data he/she wishes to update. That information is then passed to the action, I prefer to do this with an ob

Re: Tiles 2 Lifecycycle

2007-04-15 Thread Antonio Petrelli
2007/4/13, stanlick <[EMAIL PROTECTED]>: Antonio -- Can you explain this using this example? I am sorry, I did not understand you and gave you a bad answer. But I am wondering what you exactly wanted: do you want to inject beans in Tiles definitions, or JSP pages? Or possibly in the view prep

Re: Struts 2.0.6 != Shale?

2007-04-15 Thread Antonio Petrelli
2007/4/15, Nicolas Lanquetin <[EMAIL PROTECTED]>: So, question: Are these the same frameworks? Is Shale a codename for Struts 2? Absolutely not! Shale is a component-based framework, based on JSF. Struts 2 is an MVC framework based on WebWork. Antonio -

Re: Validation Random Failures

2007-04-15 Thread Zach Calvert
Actually no. I'm simply using "Required" validation on text boxes (simple string input). On 4/15/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: I haven't tracked it down yet, but I think it is in the type converters. Are you using dates or decimal values on your forms? Zach Calvert wrote: > Has

Struts 2.0.6 != Shale?

2007-04-15 Thread Nicolas Lanquetin
I always though Shale was a codename for the new Struts 2.0. However, I am a little bit confused now that I've seen that there a two different websites: 1) http://struts.apache.org/2.0.6/ 2) http://shale.apache.org/ I also see two download section for both, Struts 2 and Shale: 1) http://stru

Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Dave Newton
Just to add on a bit to Adam's detailed explanation... --- Adam Ruggles <[EMAIL PROTECTED]> wrote: > So in your action you would have a public void > setAccount(Account account); method. On your form > you would have fields with names like account.id, > account.description, ... S2 will create a

Struts testing

2007-04-15 Thread puchacz
Hi I would like to ask if You (as Struts programmers) see some + or - of testing Struts? I know JSF where I can test all components as a standalone programs. How it looks in Struts? If in Struts are a lot of dependencies which make Struts testing hard to test? Thanx -- View this message in c