Re: returning to the calling page

2004-06-30 Thread HG
Hi Bryan > . but it didn't seem to work, I believe I would have to specify the > input in the struts config > file and I intend for this page to be called from any page in the > application. Yeps, the input forward fetched by the method mapping.getInputForward() is the one defined in the Stru

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi there Now, it shouldn't be much slower. However, there is a performance tradeoff when using EJB, specially remote ones like you do. One thing, that really speeds up things is to cache the home interface, when looking it up, or when the applications starts up. First use will still be slow, but s

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Glad to help. I even optimized this further down the road, but it depends on your application if you can do that. I used the BusinessDelegate pattern to employ the concept of a BusinessPlugin. That is an interface to the EJB Session Facade, but implemented as a POJO. There's a one-to-one relation

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi Marco > I have questions coz I m interested in that approach.. I am happy that you find it interesting :-) > I assume u have a config file for telling the PlugIn Mgr what > To load, correct? The plugins, names and classed that implement the plugin interface are stored in a table in a databa

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi > 2. If the application scale up to cluster, this design seems can't deal with it > (because the client always invoke remote object that was downloaded to > cache, which is not dynamically locate by app. server in a cluster > environment.) Is this really an issue? Maybe I do not understand you

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
> isn't that in a cluster the app server 'replicates' the JNDI tree, so > that u won't have to bother if one of the servers in a cluster shuts > down? Se my other post. I think it's up to the J2EE Server to provide "cluster transparacy" to the clients. > I m no expert in cluster, and I was wande

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi Marco > right, so I assume every Action class that u write subclasses > PlugInManagerAction, correct? Correct > I don't like putting parenthesis :-) coz everything that I get > From ServletContext is an object > > It doesn't bother me much.. but I m still wandering if I can add > Let's s

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi Robert > This approach sounds similar to the Spring IoC framework. > Objects are defined in an xml file and a manager loads them > into memory. Your action class looks up beans using something > like: > MyBD bd = (MyBD)applicationContext.getBean("MyBD"); I wasn't aware of that. I have seen so

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi there > [To HG] > I said the problem deal with cluster means: > assume we have 3 servers (S1, S2, S3) form a cluster and one Struts > plugins deal with home object caching (P1) > > when the application start up, P1 with get all home interfaces from > the cluster and

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi Peng > Well just a shot in the dark but maybe a slight speed up maybe achieved by > pre-compiling jsps possibly. Do you have any link or so, that explains this. Thinking of adding a "precompile jsp task" to my ANT script..? Regards Henrik --

Re: About Struts + JBoss preference issue

2004-07-23 Thread HG
document somewhere > around their website which should be able to get you started, well if > not just try their forums. > > On Fri, 23 Jul 2004 08:53:16 +0200, HG <[EMAIL PROTECTED]> wrote: > > Hi Peng > > > > > Well just a shot in the dark but maybe a slight

Re: About Struts + JBoss preference issue

2004-07-23 Thread HG
task is also vaiable. - regards Raj (+91-11-31261821) -Original Message----- From: HG [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 1:18 PM To: Struts Users Mailing List Subject: Re: About Struts + JBoss preference issue Thanx Peng I will check it out.. - Original Message - From

Re: PDF & Email

2004-09-02 Thread HG
Hi Chris I used iText (http://www.lowagie.com/iText/) in the past to generate the PDF and then JavaMail API to send it as an attachment. Works great.. Regards Henrik - Original Message - From: "CRANFORD, CHRIS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 02,

Re: PDF & Email

2004-09-02 Thread HG
September 02, 2004 2:09 PM Subject: RE: PDF & Email > Have any code snippets you could share on how to pass the generated PDF to > javamail as an attachment. That would greatly expedite my coding efforts... > > > TIA > Chris > > -Original Message- > From: HG

Re: PDF & Email

2004-09-02 Thread HG
mmons-email"); > email.send(); > > > no painfull > > Storage and so on ... :-) > > it is easy... more than easy > > > Regards, > Matthias > > > -Original Message- > > From: HG [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 02, 2

Re: Transfer Data Objects between Actions and Views

2004-09-22 Thread HG
Hi.. Hmmm.. I do not see why (in the code you came across) one should both populate a form with the properties of the DTO + set the DTO as an attribute on the request object? It should be enough to populate the form with properties from the DTO. I have seen other solutions where Views (JSPs) alw

Re: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread HG
Hi Andy A session variable can be "expensive". Why not just put it on the request by using "request.setAttribute" in one action and getting it again using "request.getAttribute" in another action? What is your "parameter"? A simple type, object, graph of objects? - Original Message -

Re: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread HG
Forget my previous post. Was answering an answer... :-) Might need some sleep.. :-) - Original Message - From: "andy wix" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 30, 2004 1:03 PM Subject: NEWBIE: How to pass parameters between JSPs > Hi, > > It's probably b

Re: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread HG
e same instance that is passed into the login action. Hence he params are not present in the login action. The param I want to pass is a Map of name/value pairs. Maybe the standard solution is to just put it in the session? TIA -Adam -Original Message- From: HG [mailto:[EMAIL PROTE

Re: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread HG
If I later try to fish them out in the Login action they are not available - because the request instance has changed. I did not use the ActionForm to pass them from Login.jsp to Login Action. Is using the ActionForm like you suggest the normal way to handle this situation? (i.e. "passing

Re: Struts and Rational XDE

2004-11-30 Thread HG
Hi With Rose (pre XDE product from Rational), you cound reverse engineer the relevant Struts jar files and save it in a model/package for reuse. Evrytime you need it, you just apply the "Struts model" to your existing model. Dunno, if you can do something alike in XDE, but think so...If it support

Re: JBoss configuration for struts

2005-01-06 Thread HG
Hi It's no different from a Tomcat installation. Checkout http://struts.apache.org/userGuide/installation.html In JBoss (depending on version, I use 3.2.6) you find the web deployment descriptor in the deploy dir of you JBoss server. The directory is called something like "jbossweb-tomcat50.sar",