Re: action - delegate - facade

2004-03-17 Thread HG
interfaces in the delegate? Do you cache them? Do you treat them like a logger object or a singleton? Or do you just instantiate them fresh each call? Thanks! Adam On 03/17/2004 09:22 AM HG wrote: Hi Robert and Adam... Guess I am paranoid or prepared.. :-) I use nearly the approach

Re: action - delegate - facade

2004-03-17 Thread HG
ehh..Correction to third answer... Actually the plugin caches the reference to the EJB Facade and the Service Locator caches the home looked up from JNDI... Is this really safe..?? :-) - Original Message - From: HG [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent

Re: action - delegate - facade

2004-03-17 Thread HG
12:34 PM HG wrote: ehh..Correction to third answer... Actually the plugin caches the reference to the EJB Facade and the Service Locator caches the home looked up from JNDI... Is this really safe..?? :-) - Original Message - From: HG [EMAIL PROTECTED] To: Struts Users

Re: pdf file open.

2004-03-10 Thread HG
Hi I don't know if this helps...But I have read somewhere, that you must set up the content-length header of your response, when doing PDF streaming. Just set it as the size of your FileStream (or another stream object) Try it out..and let me know.. - Original Message - From:

Re: constant url

2004-01-27 Thread HG
Hi Shankarr Your best choice will be frames...that way you can hide the details of your navigation to the end user. But frames has some disadvantages, tooIt is somehow a pro/con situation where you have to decide if you can live with request parameters or not... Regarding the

Re: Struts upload

2004-01-27 Thread HG
Hi Edgar Check out the demo applications in the Struts distribution (source code I guess). There is a wonderful simple example there dealing with uploads.. HTH /Henrik - Original Message - From: Edgar Silva [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 12:52

Re: monday morning theory question

2004-01-26 Thread HG
Hi Adam As I read your post you are doing business logic here. I used a design somehow similar to the Business Delegate pattern. The business delegate takes care of the whole purchase-workflow, except simple field validations on the values coming along with the ActionForm instance in progress.

Re: Storing uploaded files outside the root directory of a webapp

2004-01-12 Thread HG
Hi Patrick and my question is...relative to what...To the webapp dir? or to some fixed directory you know exists? First of all, to calculate a releative path, you must figure what the path must be relative to. If you choose the webapp dir, like some other on this group already pointed out, you

Re: Configuring Struts NOT to create (unauthentified) sessions

2004-01-09 Thread HG
Hi Nicolas Glad you figured it out, and thanks for sharing it, with the rest of us. Peace, Henrik - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January 09, 2004 9:41 AM Subject: Re: Configuring Struts NOT to

Re: Configuring Struts NOT to create (unauthentified) sessions

2004-01-08 Thread HG
Hi Manfred I think Nicolas is trying to find all places where Struts manipulates the session in some way.. Locale=True does indeed manipulate the session..thus resulting in the session being created, if not already there. When no one (action, object, tag, whatever) has requested attributes to

Re: forwarding request from select tag

2004-01-08 Thread HG
Hi there... JavaScript is your friend (or enemy !) here. Struts has no way to detect what is going on at the client (ie. the browser) Regards Henrik - Original Message - From: Namasivayam, Sudhakar (Cognizant) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

Re: Action Mapping - without formbean

2003-12-09 Thread HG
Hi Ravi The action attribute of your form tag points to the path for your action. By using this action path, Struts finds the action and then the form bean (subclass of ActionForm) (if any) associated with this action (through name attribute in struts-config.xml). So you can invoke your action

Re: Scheduler

2003-12-02 Thread HG
Hi Gurpreet I haven't tried this...but it came across my mind as I need something similar very soon. You could write a Struts plugin... init() method called on start of webapp and destroy() method called on shutdown of webapp. In the init() method you could start a thread that wakes up at

Re: Scheduler

2003-12-02 Thread HG
Please share your success with the rest of us... I am in need of similar functionality...very soon... - Original Message - From: Gurpreet Dhanoa [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 1:04 PM Subject: Re: Scheduler hi HG

Re: Scheduler

2003-12-02 Thread HG
Hi srinivas Nice, clean solutionAdoptable for sure.. Thanx, Henrik - Original Message - From: chekuri raju [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 2:50 PM Subject: Re: Scheduler Hi All, we are using a simple servlet

Re: Struts Exception Handling

2003-12-01 Thread HG
Hi Baljinder I use one common rule of thumb in regard to exception handling in Struts applications: Never throw an exception in action classes, always catch exceptions in action classes At lower layers (Business Delegate, EJB Facade, Data Access Object, etc) I COULD use exceptions to communicate

Re: ups - again: struts-user@jakarta.apache.org

2003-11-27 Thread HG
If I recall correctly the text tag does not support formatting... Strange though... I used an approach where my FormBean instance took care of formatting and converting between the string representation of a date and the Date object in a locale neutral way using Calendar class. [EMAIL

Re: Display Problem using Struts

2003-11-27 Thread HG
Hi Gurpreet Try setting the filter attribute on the bean:write tag to false. It is set to true default, and so filters all HTML sensitive characters... Regards Henrik - Original Message - From: Gurpreet Dhanoa [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: