Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

RE: Issue with registering/lookup of converters in ConvertUtils

Nitin Paul Dsilva

2007-01-31

Replies:


Hi,
Thanks for the reply Thorsten. But the problem here is that such an implementation is already being used. But now we need to support multiple formats for different users who login to the system. Is there any other workaround for it other than copying parts of the implementation?


Will it help if we move onto a higher version of Struts?

Regards,
Nitin


-----Original Message-----
From: Thorsten Schäfer [mailto:Uni@(protected)]

Sent: Wednesday, January 31, 2007 10:00 PM
To: 'Struts Users Mailing List'
Subject: RE: Issue with registering/lookup of converters in ConvertUtils

Hi,

> Is there a problem with the registering/lookup of multiple converters
in
> ConvertUtils on a single server instance?
I think this is not possible. The converters are stored in a static
hashmap, so all classes sharing a single classloader have to use the
same converters. I consider this a bad design decision, but I don't
think that there's a workaround but "copying" parts of the
implementation...

Cheers,

Thorsten


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.