Re: accessing session variables in java Bean(In business logic Layer)

2005-04-13 Thread Corey Probst
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

Re: Struts 1.3

2005-03-30 Thread Corey Probst
> 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

Re: Load message resources from DB???

2005-03-29 Thread Corey Probst
> 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,

Re: MessageResources in ActionForm

2005-03-28 Thread Corey Probst
> 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/

Re: BeanUtils.copyProperties Cannot find...

2005-03-17 Thread Corey Probst
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

Re: BeanUtils.copyProperties Cannot find...

2005-03-17 Thread Corey Probst
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

Re: Validator with more than one module

2005-03-11 Thread Corey Probst
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

Re: why complicate? was: Eliminate Setup Actions

2005-03-07 Thread Corey Probst
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

Re: Eliminate Setup Actions

2005-03-05 Thread Corey Probst
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

Re: ActionError / ActionMessage

2005-02-03 Thread Corey Probst
> 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

Re: ActionError / ActionMessage

2005-02-03 Thread Corey Probst
> > 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

Re: TilesController perform() depreciated and required in v1.2????

2005-02-01 Thread Corey Probst
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

Re: TilesController perform() depreciated and required in v1.2????

2005-02-01 Thread Corey Probst
> 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

Re: message tag, resource bundle

2005-01-20 Thread Corey Probst
> 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