I don't know of a way to access the session from your business logic
other than passing it in as a parameter (which I would *NOT*
recommend). Even if you could access it, you would be tying the
business layer to the servlet api, which is what you are trying to
avoid by not passing the session dire
> But I can't find a link on where to download it..
The nightly builds are located here.
http://svn.apache.org/builds/struts/maven/nightly/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
> Even if I could just get some general directions on what method to pull the
> data in, and what method to put the data into what type of container.
> Just something would be good.
I think I remember reading a post about this before.
Start by looking at the PropertyMessageResources source code,
> That said, I don't know how you differentiate between
> messages and errors if you do that...
This two links on the Wiki explain a lot about ActionErrors and
ActionMessages usage...
http://wiki.apache.org/struts/ActionErrorsAndActionMessages?highlight=%28actionerrors%29
http://wiki.apache.org/
Sorry Scott... I wasn't thinking correctly.
BeanUtils.copyProperties is in 1.7. It's also in 1.6.
http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.7.0/docs/api/org/apache/commons/beanutils/BeanUtils.html
Corey
On Thu, 17 Mar 2005 09:44:45 -0600, Corey Probst <[EM
There's a method in the static PropertyUtils class. Also, look at the
same method in PropertyUtilsBean.
The javadocs will explain the differences.
http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.7.0/docs/api/
-
T
By adding a comma separated list of struts config files, you are not
specifying multiple *modules*, just multiple config files.
ValidatorResources are stored in the ServletContext after being read
by the plugin. So, when struts-config-two is read, it overwrites the
info stored for struts-config-o
I really like the idea of adding the *setup_definitions* (whatever
they are eventually called) to the forward elements in struts-config.
To me, this would be the most logical place to add them. This means
that they (the setup methods) would only be processed when it's 100%
sure that we are going
If your app is using tiles, take a look at Tile controllers.
http://struts.apache.org/api/org/apache/struts/tiles/Controller.html
The controller will get called right before rendering the jsp,
allowing you to put your info into the request.
Corey
> If so does anyone know why locale is now deprecated?
A locale attribute of true stores a Locale object in the session and
creates that session if it doesn't exist. This is not a good thing
for apps that don't support them.
Use the lang attribute to correctly accomplish this.
http://struts.apa
>
> Does this mean I should always use the ActionMessage, or does the
> ActionError come in useful for certain situations?
>
ActionError was deprecated in version 1.2.0. Even if you are using a
version prior to this you should still use ActionMessage for future
considerations. ActionErrors wou
On Tue, 1 Feb 2005 19:53:52 -0600, Jason Long
<[EMAIL PROTECTED]> wrote:
> Thank you for your reply. This tip let me remove the perform method from my
> base class, but this is actually equivalent to what I was doing. The method
> perorm() is simply implemented exactly the way I had done it. Why
> I would appreciate any help with the following problem. I just upgraded one
> of my applications from v1.1 to v1.2.4. I have resolved all upgrade issues
> except the following. The Controller interface has depreciated the
> perform() in favor of the execute(), but I am forced to implement both
> 1) Why does the globalResources.properties live under /WEB-INF/classes? Is
> there a way to configure this differently?
I'm not an expert but I'll try to help...
The properties file is loaded using a ClassLoader. So the short
answer is that the /WEB-INF/classes folder is on the class path by
d
14 matches
Mail list logo