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
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
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
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:
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
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
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.
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
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
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
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:
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
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
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
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
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
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
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:
18 matches
Mail list logo