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
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
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
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
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:
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.
--
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
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
--- 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
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
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 ?
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
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 ?
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--- 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
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
--- 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
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
--- 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.)
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
--- 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
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
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
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,
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
--- 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
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
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
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,
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
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.
---
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
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
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
-
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
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
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
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
53 matches
Mail list logo