RE: Actions which create sessions seem to hang

2003-11-21 Thread Brian McSweeney
Thanks for the tips guys. Will have a look at these.

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED] 
Sent: 21 November 2003 15:01
To: Struts Users Mailing List
Subject: RE: Actions which create sessions seem to hang

All that will do is get you the names of the attributes bound to a
*single*
session. A common approach to session counting in a Servlet 2.3
container is to
use javax.servlet.http.HttpSessionListener. For either Servlet 2.2 or
2.3, you
can make use of javax.servlet.http.HttpSessionBindingListener, but it's
more of
a manual process.

Alternatively, JBoss might provide some sort of admin console or JMX
access to
the current sessions.

Quoting chekuri raju <[EMAIL PROTECTED]>:

> hi brian ,
>  
> java.util.Enumeration  enum = session.getAttributeNames();
>  
> may be this will help u find out how many sessions are there.
>  
> cheers
> srinivas
> 
> Brian McSweeney <[EMAIL PROTECTED]> wrote:
> Hi Mike,
> 
> Thanks very much for the reply. I think in jboss there is a standard
> session timeout anyway of 30 minutes. I've changed this now to 10
> minutes. Is there a way to tell how many sessions you have running on
an
> application server?
> 
> Cheers,
> 
> Brian
> 
> 
> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
> Sent: 21 November 2003 13:48
> To: 'Struts Users Mailing List'
> Subject: RE: Actions which create sessions seem to hang
> 
> Perhaps you don't have a session timeout set in JBoss and you are
> hitting an
> upper limit (65K sessions or something)?
> 
> worse is better 
> 
> -Original Message-
> From: Brian McSweeney [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 21, 2003 6:11 AM
> To: 'Struts Users Mailing List'
> Subject: Actions which create sessions seem to hang
> 
> 
> Hi guys,
> 
> This is a bit of a vague question I know, but perhaps someone can
help.
> It
> may be a struts issue or a jboss issue. I'm not sure.
> 
> I'm using JBoss 3.2.2 and struts. After about 24 hours of my
application
> running, struts actions which create a http session seem to hang. I
have
> no
> idea why this would be. If I restart jboss the behaviour goes away. Is
> there
> anything I can do to see why this would be? Or what I could do about
it?
> Any
> help would be so greatly appreciated.
> 
> Thanks very much,
> 
> Brian

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Actions which create sessions seem to hang

2003-11-21 Thread Brian McSweeney
Hey Mike,

Tomcat is the standard servlet runner that now comes bundled with Jboss.


-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
Sent: 21 November 2003 14:03
To: 'Struts Users Mailing List'
Subject: RE: Actions which create sessions seem to hang

Are you using Tomcat as the servlet runner (I don't know a lot about
Jboss)
or is there a built-in one in Jboss?


worse is better 

-Original Message-----
From: Brian McSweeney [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 21, 2003 8:54 AM
To: 'Struts Users Mailing List'
Subject: RE: Actions which create sessions seem to hang


Hi Mike,

Thanks very much for the reply. I think in jboss there is a standard
session
timeout anyway of 30 minutes. I've changed this now to 10 minutes. Is
there
a way to tell how many sessions you have running on an application
server?

Cheers,

Brian


-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
Sent: 21 November 2003 13:48
To: 'Struts Users Mailing List'
Subject: RE: Actions which create sessions seem to hang

Perhaps you don't have a session timeout set in JBoss and you are
hitting an
upper limit (65K sessions or something)?

worse is better 

-----Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 21, 2003 6:11 AM
To: 'Struts Users Mailing List'
Subject: Actions which create sessions seem to hang


Hi guys,
 
This is a bit of a vague question I know, but perhaps someone can help.
It
may be a struts issue or a jboss issue. I'm not sure.
 
I'm using JBoss 3.2.2 and struts. After about 24 hours of my application
running, struts actions which create a http session seem to hang. I have
no
idea why this would be. If I restart jboss the behaviour goes away. Is
there
anything I can do to see why this would be? Or what I could do about it?
Any
help would be so greatly appreciated.
 
Thanks very much,
 
Brian
 

-
This message and its contents (to include attachments) are the property
of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you
should
delete this message immediately.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
This message and its contents (to include attachments) are the property
of Kmart Corporation (Kmart) and may contain confidential and
proprietary information. You are hereby notified that any disclosure,
copying, or distribution of this message, or the taking of any action
based on information contained herein is strictly prohibited.
Unauthorized use of information contained herein may subject you to
civil and criminal prosecution and penalties. If you are not the
intended recipient, you should delete this message immediately.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Actions which create sessions seem to hang

2003-11-21 Thread Brian McSweeney
Hi Mike,

Thanks very much for the reply. I think in jboss there is a standard
session timeout anyway of 30 minutes. I've changed this now to 10
minutes. Is there a way to tell how many sessions you have running on an
application server?

Cheers,

Brian


-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
Sent: 21 November 2003 13:48
To: 'Struts Users Mailing List'
Subject: RE: Actions which create sessions seem to hang

Perhaps you don't have a session timeout set in JBoss and you are
hitting an
upper limit (65K sessions or something)?

worse is better 

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 21, 2003 6:11 AM
To: 'Struts Users Mailing List'
Subject: Actions which create sessions seem to hang


Hi guys,
 
This is a bit of a vague question I know, but perhaps someone can help.
It
may be a struts issue or a jboss issue. I'm not sure.
 
I'm using JBoss 3.2.2 and struts. After about 24 hours of my application
running, struts actions which create a http session seem to hang. I have
no
idea why this would be. If I restart jboss the behaviour goes away. Is
there
anything I can do to see why this would be? Or what I could do about it?
Any
help would be so greatly appreciated.
 
Thanks very much,
 
Brian
 

-
This message and its contents (to include attachments) are the property
of Kmart Corporation (Kmart) and may contain confidential and
proprietary information. You are hereby notified that any disclosure,
copying, or distribution of this message, or the taking of any action
based on information contained herein is strictly prohibited.
Unauthorized use of information contained herein may subject you to
civil and criminal prosecution and penalties. If you are not the
intended recipient, you should delete this message immediately.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Actions which create sessions seem to hang

2003-11-21 Thread Brian McSweeney
Thanks Paul,

I'll email you some of these questions to your private address because
they're JBoss specific. Appreciate the help very much.

Brian

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
Sent: 21 November 2003 12:02
To: 'Struts Users Mailing List'
Subject: RE: Actions which create sessions seem to hang

I've had my Struts application running on JBOSS 3.2.2/Tomcat for a
couple of
weeks with hundreds of simulated users at a time, so I don't think there
is
any inherent issue with the architecture.

Tools I've found useful in tracking issues like this in past are:
Running JBOSS with the JVM set to allow remote debugging so I can see
what's
going on.
Borland OptimiseIt, so that I can look for resource leaks.

Other things to look at may be the number of request processors and the
accept count of the Tomcat connector.

If all else fails I'd try and re-create the problem with a simple,
single
servlet system. This will remove any Struts, JSP etc. concerns.

Another idea would be to see if the same issue occurs in Tomcat
standalone,
or is related to Tomcat under JBOSS. This will allow you to direct your
questions to the most specific user community.

HTH,

Paul



> -----Original Message-
> From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> Sent: 21 November 2003 11:11
> To: 'Struts Users Mailing List'
> Subject: Actions which create sessions seem to hang
> 
> 
> Hi guys,
>  
> This is a bit of a vague question I know, but perhaps someone 
> can help.
> It may be a struts issue or a jboss issue. I'm not sure.
>  
> I'm using JBoss 3.2.2 and struts. After about 24 hours of my 
> application
> running, struts actions which create a http session seem to 
> hang. I have
> no idea why this would be. If I restart jboss the behaviour goes away.
> Is there anything I can do to see why this would be? Or what 
> I could do
> about it? Any help would be so greatly appreciated.
>  
> Thanks very much,
>  
> Brian
>  
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver
this message to anyone. In such case, you should destroy this message,
and notify us immediately. If you or your employer does not consent to
Internet email messages of this kind, please advise us immediately.
Opinions, conclusions and other information expressed in this message
are not given or endorsed by my Company or employer unless otherwise
indicated by an authorised representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from
being transmitted via electronic mail attachments we cannot guarantee
that attachments do not contain computer virus code.  You are therefore
strongly advised to undertake anti virus checks prior to accessing the
attachment to this electronic mail.  Axios Systems Ltd grants no
warranties regarding performance use or quality of any attachment and
undertakes no liability for loss or damage howsoever caused.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Actions which create sessions seem to hang

2003-11-21 Thread Brian McSweeney
Hi guys,
 
This is a bit of a vague question I know, but perhaps someone can help.
It may be a struts issue or a jboss issue. I'm not sure.
 
I'm using JBoss 3.2.2 and struts. After about 24 hours of my application
running, struts actions which create a http session seem to hang. I have
no idea why this would be. If I restart jboss the behaviour goes away.
Is there anything I can do to see why this would be? Or what I could do
about it? Any help would be so greatly appreciated.
 
Thanks very much,
 
Brian
 


RE: Help setting up sslext

2003-10-20 Thread Brian McSweeney

Thanks for the reply Adam.
I'll address your tips one by one.

>> I don't use the sslext form tags. I don't mention sslext anywhere in
my 
>> code or my JSP. It's purely a configuration thing.

Ok, this I did differently. I followed the examples downloaded with
sslext 
And used



Now the weird thing is - I changed this back to  to try to do

what you do, but now it doesn't even use ssl at all! 

If I change back to sslext, it uses ssl but never switches back to plain
http.

>> Are you setting up the SecurePlugin in struts-config?

Yes.

>> Also are sure that you are not specifying in the web.xml that the
page 
>> should be protected by SSL?

Yes.


>> Do you have the latest version of sslext? They brought out 1.10-3
recently.

Yes, that's the version I have.

>> Are you sure there are no exceptions buried in your logs anywhere?

Checked that, everything looks ok

>> I don't follow your hotmail example either. Are you talking about 
container-managed logins or roll-your-own?

Login or some other action, it doesn't matter. I used the hotmail
example 
because it allows you to call an action  over https, but the resulting
html page gets displayed over http. This is because the flow of hotmail
is 

login page (over http) --> run login action (over https) --> display my
account.html page (over http again). So it switches back out of ssl for
the result of the action.

Now if I've understood what you have said to me correctly, this couldn't
happen with sslext. Because we would have to invoke a second action
which had the parameter



in order to get out of ssl after invoking any secure action.

Hope you understood this, 
And thanks very much for all your help,
Brian




-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: 20 October 2003 11:43
To: Struts Users Mailing List
Subject: Re: Help setting up sslext



Hi Brian,
I don't use the sslext form tags. I don't mention sslext anywhere in my 
code or my JSP. It's purely a configuration thing.

Are you setting up the SecurePlugin in struts-config?

Also are sure that you are not specifying in the web.xml that the page 
should be protected by SSL?

Do you have the latest version of sslext? They brought out 1.10-3
recently.

Are you sure there are no exceptions buried in your logs anywhere?

I don't follow your hotmail example either. Are you talking about 
container-managed logins or roll-your-own?


Adam

On 10/20/2003 12:41 PM Brian McSweeney wrote:
> It still isn't switching back to http for other actions when 
> I specify 
> 
>   
> 
> Perhaps I have to replace all  
>  
>   
> 
> At any rate, it doesn't seem to work the way I thought it would.
> For example, if you log into hotmail, it sends the username and 
> password over ssl, and then switches back to http for the resulting 
> pages. This it would seem is impossible to do with sslext because 
> in order to switch back to http, you must call another action which 
> has:
> 
>   
> 
> Correct me if I'm wrong with any of this.
> 
> Thanks for all the help,
> Brian
> 
> 
> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED] 
> Sent: 18 October 2003 09:29
> To: Struts Users Mailing List
> Subject: Re: Help setting up sslext
> 
> The only time the protocol switches automatically (read: tomcat
switches
> 
> it automatically) is when you specify SSL in the web.xml for a URL.
> 
> To get it to switch back from SSL into unencrypted, putting
> 
> 
> 
> in the action mapping is necessary.
> 
> HTH
> Adam
> 
> On 10/17/2003 04:53 PM Brian McSweeney wrote:
> 
>>I've put in the change in the action-mappings in the
>>struts-config.xml file
>>
>>
>>
>>but the problem is, ssl doesn't seem to be switching at all. The
>>action runs in https when I say it should, but all other actions then
>>continue to run in https. I was under the impression that they'd
>>switch back to normal http. Is this not correct?
>>
>>-Original Message- From: Adam Hardy
>>On 10/16/2003 05:13 PM Brian McSweeney wrote:
>>
>>>a) Change the action-mappings in the struts-config.xml file 
>>>>>type="org.apache.struts.config.SecureActionConfig">
>>>
>>>b) Change the web.xml file as follows:
>>>action
>>>
>>>org.apache.struts.action.ActionServlet
>>>   
>>>config 
>>>/WEB-INF/struts-config.xml 
>>>  mapping
>>>
>
org.apache.struts.action.SecureActionMapping
> 
>>>
>>>
>>>could someone tell me if either of these 

RE: Help setting up sslext

2003-10-20 Thread Brian McSweeney
Thanks Adam,

However, unfortunately no joy :-(

It still isn't switching back to http for other actions when 
I specify 

  

Perhaps I have to replace all 

At any rate, it doesn't seem to work the way I thought it would.
For example, if you log into hotmail, it sends the username and 
password over ssl, and then switches back to http for the resulting 
pages. This it would seem is impossible to do with sslext because 
in order to switch back to http, you must call another action which 
has:

  

Correct me if I'm wrong with any of this.

Thanks for all the help,
Brian


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: 18 October 2003 09:29
To: Struts Users Mailing List
Subject: Re: Help setting up sslext

The only time the protocol switches automatically (read: tomcat switches

it automatically) is when you specify SSL in the web.xml for a URL.

To get it to switch back from SSL into unencrypted, putting



in the action mapping is necessary.

HTH
Adam

On 10/17/2003 04:53 PM Brian McSweeney wrote:
> I've put in the change in the action-mappings in the
> struts-config.xml file
> 
> 
> 
> but the problem is, ssl doesn't seem to be switching at all. The
> action runs in https when I say it should, but all other actions then
> continue to run in https. I was under the impression that they'd
> switch back to normal http. Is this not correct?
> 
> -Original Message- From: Adam Hardy
> On 10/16/2003 05:13 PM Brian McSweeney wrote:
>> a) Change the action-mappings in the struts-config.xml file 
>> > type="org.apache.struts.config.SecureActionConfig">
>> 
>> b) Change the web.xml file as follows:
>> action
>> 
>> org.apache.struts.action.ActionServlet
>>
>> config 
>> /WEB-INF/struts-config.xml 
>>   mapping
>>
org.apache.struts.action.SecureActionMapping
>> 
>> 
>> could someone tell me if either of these steps are necessary, or
>> what else is necessary?
> 
> Hi Brian, your (a) is definitely necessary to enable this:
> 
>  forward="/WEB-INF/general/staticjavascript.jsp">  property="secure" value="true"/> 
> 
> I have not used, or heard of before, your (b). Perhaps it has the
> same effect as (a).

-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help setting up sslext

2003-10-17 Thread Brian McSweeney
Hi Adam, 
thanks for the help.
I've put in the change in the action-mappings in the struts-config.xml
file



but the problem is, ssl doesn't seem to be switching at all. The action 
runs in https when I say it should, but all other actions then continue
to 
run in https. I was under the impression that they'd switch back to
normal 
http. Is this not correct?

Cheers,
Brian


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: 17 October 2003 08:09
To: Struts Users Mailing List
Subject: Re: Help setting up sslext

On 10/16/2003 05:13 PM Brian McSweeney wrote:
> a) Change the action-mappings in the struts-config.xml file
> 
> 
> b) Change the web.xml file as follows:
> 
> action
>  
> org.apache.struts.action.ActionServlet
> 
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
>   mapping
>  
>
org.apache.struts.action.SecureActionMapping
> 
> 
> could someone tell me if either of these steps are necessary, or what
> else is necessary?

Hi Brian,
your (a) is definitely necessary to enable this:

 
   
 

I have not used, or heard of before, your (b). Perhaps it has the same 
effect as (a).

So what's not working?

Adam


-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help setting up sslext

2003-10-16 Thread Brian McSweeney
Hi all,

Searched the archives, but couldn't quite get a good simple explanation
of how to set up sslext.

Here's my progress so far:

1) Hook up ssl with your keystore etc on your container

2) Download sslext from sourceforge.

3) Install the sslext.jar in my WEB-INF/lib folder

4) Install the taglibrary in WEB-INF/

5) Tell the web.xml file about the tld, ie 


/WEB-INF/sslext.tld
/WEB-INF/sslext.tld


6) In my jsps import the taglibrary, eg:

<%@ taglib uri="/WEB-INF/sslext.tld" prefix="sslext" %>

7) Use the taglibrary tags when posting - eg:



9) Add sslext as a plugin to the struts-config.xml file
  

   
  
  

9) In the struts-config.xml file, for the "whatever" action add the
property "secure", eg:


  
  


Now, I've done all these, but I know there's something missing because
it's not quite working.
I've read a few posts and see these possible things I might have to do
aswell:

a) Change the action-mappings in the struts-config.xml file


b) Change the web.xml file as follows:

action
 
org.apache.struts.action.ActionServlet


  config
  /WEB-INF/struts-config.xml


  mapping
 
org.apache.struts.action.SecureActionMapping


could someone tell me if either of these steps are necessary, or what
else is necessary?

Thanks very much,
Brian


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: No getter method

2003-10-16 Thread Brian McSweeney

Sorry! Wrong recipient! 


-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED] 
Sent: 16 October 2003 12:02
To: 'Struts Users Mailing List'
Subject: RE: No getter method

Dad, 

Don't ring that guy yet, I know him myself pretty well so I'd prefer to
tell him you'll give him a call. I was talking to him briefly but he was
busy at work so he said he'd give me a ring back.

Cheers,
Brian


-Original Message-
From: Mariano García [mailto:[EMAIL PROTECTED] 
Sent: 16 October 2003 10:44
To: 'Struts Users Mailing List'
Subject: No getter method

Hi all,

I have an ActionForm, an Action class and a bean. In struts-config.xml I
have this:


[...]

[...]








When I call /editConnection.do, I receive this error:
No getter method available for property device for bean under
name org.apache.struts.taglib.html.BEAN

My ActionForm class has an attribute called 'device', and I have
implemented getDevice() and setDevice().

What is my error?

Thanks,
Mariano.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: No getter method

2003-10-16 Thread Brian McSweeney
Dad, 

Don't ring that guy yet, I know him myself pretty well so I'd prefer to
tell him you'll give him a call. I was talking to him briefly but he was
busy at work so he said he'd give me a ring back.

Cheers,
Brian


-Original Message-
From: Mariano García [mailto:[EMAIL PROTECTED] 
Sent: 16 October 2003 10:44
To: 'Struts Users Mailing List'
Subject: No getter method

Hi all,

I have an ActionForm, an Action class and a bean. In struts-config.xml I
have this:


[...]

[...]








When I call /editConnection.do, I receive this error:
No getter method available for property device for bean under
name org.apache.struts.taglib.html.BEAN

My ActionForm class has an attribute called 'device', and I have
implemented getDevice() and setDevice().

What is my error?

Thanks,
Mariano.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT]formatting line breaks and tabs in emails?

2003-10-15 Thread Brian McSweeney
Hmm, very strange. I had the exact same error as Mick yesterday. 
I'm also using \n and I was pulling it in from resource bundles but 
the breaks were being ignored.

Perhaps it has to do with the mailer. My mailer is setting the type of 
message to "text/html" as you can see by my send method below.


public static void send( String replyTo, String to, String subject,
String body )
throws NamingException, AddressException, MessagingException {

InitialContext ic = new InitialContext(  );
Session session = ( Session ) ic.lookup( JNDINames.MAIL_SESSION
);
javax.mail.Message msg = new MimeMessage( session );

msg.setReplyTo( InternetAddress.parse(replyTo,false) );
msg.setRecipients( javax.mail.Message.RecipientType.TO,
InternetAddress.parse( to, false ) );
msg.setSubject( subject );

msg.setDataHandler( new DataHandler( body, "text/html" ) );
msg.setHeader( "X-Mailer", "JavaMailer" );
msg.setSentDate( new Date(  ) );

Transport.send( msg );
}


The way I fixed this Mick was by using  tags instead of /n, so 
this perhaps indicates that it's because our mails are set to type html.

However it would be nice to find out if this is the reason!
Hth,
Brian

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2003 15:09
To: 'Struts Users Mailing List'
Subject: AW: [OT]formatting line breaks and tabs in emails?

Yes, I use it in property-files.

-Ursprüngliche Nachricht-
Von: Brian McSweeney [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 15. Oktober 2003 18:08
An: 'Struts Users Mailing List'
Betreff: RE: [OT]formatting line breaks and tabs in emails?


Are the "\n" values being pulled in from resource bundles?

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2003 14:57
To: 'Struts Users Mailing List'
Subject: AW: [OT]formatting line breaks and tabs in emails?

I using \n as line breaks in mails and it functions.

-Ursprüngliche Nachricht-
Von: Mick Knutson [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 15. Oktober 2003 16:51
An: struts
Betreff: [OT]formatting line breaks and tabs in emails?


I am trying to format email messages that need to contain line breaks,
and tabs. But when I add \n\r or \t, they just seems to be ignored.
Is there a way to do this?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert
& Contact System" can help you Play Smart. 

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT]formatting line breaks and tabs in emails?

2003-10-15 Thread Brian McSweeney
Are the "\n" values being pulled in from resource bundles?

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2003 14:57
To: 'Struts Users Mailing List'
Subject: AW: [OT]formatting line breaks and tabs in emails?

I using \n as line breaks in mails and it functions.

-Ursprüngliche Nachricht-
Von: Mick Knutson [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 15. Oktober 2003 16:51
An: struts
Betreff: [OT]formatting line breaks and tabs in emails?


I am trying to format email messages that need to contain line breaks,
and tabs. But when I add \n\r or \t, they just seems to be ignored.
Is there a way to do this?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert
& Contact System" can help you Play Smart. 

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Converting to Struts, where to put Servlet init() code?

2003-10-15 Thread Brian McSweeney
Cool :-) Glad to be of help!
Brian

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2003 14:36
To: Struts Users Mailing List
Subject: RE: Converting to Struts, where to put Servlet init() code?

Brian wrote:
> Easier still, you don't have to write a servlet, just a class that 
> implements ServletContextListener, eg something like:

THIS is the class I was looking for.  I kept coming up with Filter but
knowing that wasn't right.  I've used ServletContextListener before,
too!

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Converting to Struts, where to put Servlet init() code?

2003-10-15 Thread Brian McSweeney

Easier still, you don't have to write a servlet, just a class that 
implements ServletContextListener, eg something like:

public class StartupListener implements ServletContextListener {
private Log log = LogFactory.getLog(StartupListener.class);
ServletContext servletContext;

public void contextInitialized(ServletContextEvent sce) {
servletContext = sce.getServletContext();

// run your startup code in here!
}

// implement other methods here

}

How simple is that!

Brian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: 15 October 2003 12:12
To: [EMAIL PROTECTED]
Subject: RE: Converting to Struts, where to put Servlet init() code?

You dont need to subclass the action servlet just for the init code...

Write u r own servlet(InitializationServlet)and put it in the init
method of this servlet.

When configuring the servlets in web.xml have somethign like this.


InitializationServlet
InitializationServlet
com.urapp.InitializationServlet
1


And for all other servlets , the load-on-startupvalue should be
greater than 1.This ensures that when the servlets are
initialized(Loaded), the initialization servlet is loaded first which
means also the init method will be called before any requests are
received.


Additionally u can have any startup code called from the init method of
this servlet.

Hope this helps.
Regards,
Shirish

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 2:04 PM
To: Struts Users Mailing List
Subject: RE: Converting to Struts, where to put Servlet init() code?


subclass ActionServlet and put your inits there.

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 7:43 PM
To: [EMAIL PROTECTED]
Subject: Converting to Struts, where to put Servlet init() code?



I'm converting an existing webapp to Struts.  I have some code in a
Servlet init() method, and I don't immediately see where I should put
it.  This is an authentication/authorization webapp, and the code in
question sets up an authentication handler object to be used by every
subsequent request.

What's guaranteed to get executed before the Action code?  (I'm almost
thinking Filter, and to put the object in Application scope, but I'm not
sure yet.)

Any advice?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Slightly OT] Where/how to start?

2003-10-14 Thread Brian McSweeney
I reckon you should try to read the source code of a good open source
j2ee app. Furthermore, J2EE is big - there's a lot of stuff you could
use. 
I would recommend sticking to standards. Struts is good for this, so why

not look at the struts examples that come with the struts download.
Another large part of J2EE is ejb etc. There is quite a lot to learn
there, so a good example of a project that puts it all together is 

http://sourceforge.net/projects/xpetstore

This uses more standards that you'll probably have to learn,

For example

Ant - your project build system
Junit - for testing
Xdoclet - for code generation
Struts - for your web mvc part

Learning all these by reading how someone else did it is far, far easier
than trying yourself from scratch.

Hth,
Brian


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: 14 October 2003 14:07
To: Struts Users Mailing List
Subject: RE: [Slightly OT] Where/how to start?

and you may want to subscribe to other lists that are more J2EE-centric,
like [EMAIL PROTECTED]

Mark

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 9:53 AM
To: 'Struts Users Mailing List'
Subject: RE: [Slightly OT] Where/how to start?


Here's what I did at my last job: I was mostly a C, JAM, Oracle
developer
but wanted to learn Java and J2EE. Try to find an approach that will let
you
learn J2EE while benefiting the company in some way.

Let your managers know that you want to learn the technology. They'll
know
that you aren't content just doing the same old thing every day, and
they
might start to look for training opportunities, whether it is sending
you to
class or putting you on newer J2EE projects.

Another way is to take a few hours each week learning a new technology
and
incorporating that into some sort of prototype that your company might
be
interested in. Take an existing application and prototype a Java/J2EE
version of it. Show it off to your managers, then move on and do some
more
prototypes. Even if it doesn't go into production, you have built real
applications in a real work environment.



-Original Message-
From: Andy Engle [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 6:27 PM
To: [EMAIL PROTECTED]
Subject: [Slightly OT] Where/how to start?


Hi all,

I have a strong Perl/CGI background, but my JSP/Servlet/J2EE experience
is related only to what I did in college. My job entails C development,
but I really want to get more into this J2EE stuff.  It's so much more
enjoyable than this C work I am doing, but I can't seem to get my foot
in the door.  In looking for a J2EE development job, I keep hearing
that I need more experience, which is perfectly understandable.   But,
I can't get experience without getting a job doing it first.  My
question is, how do I get my foot in the door so I can split my boring
job and do what I really want to do?  Do I need to go full tilt and get
a certification or something like that?  Any ideas would be most
helpful.  Even more helpful would be a J2EE job in the Chicago area
where I could develop my professional career in this area.

Thanks very much!


Best Regards,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ejb's and tomcat

2003-10-10 Thread Brian McSweeney
"the only reason I posted that msg was for baiting purposes"

Look, I just don't think that is helpful to anyone. If you are
deliberately saying stuff in order to bait people into a reaction then
IMHO this is the wrong place to do it. I also think that stating this on
the list is a valid enough place to state this. People responded to your
comment in order to advise others that they thought your assessment of
JBoss was incorrect. If it is your true assessment, fair enough, but you
refused to back it up when asked to, and replied that your comment was
just to bait people.

I'm not going to labor the point anymore. No offence meant at all, and
sorry if any was caused. I find this list exceptionally helpful and
pleasant.


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: 10 October 2003 11:36
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

Apparently more than 20 people believed it was important enough to spark
a
discussion of the issue, so if it was a waste of your time, perhaps you
are
just too important for this list?  As far as bad advice goes, most of
the
people I know in the *real* world agree with my assessment: JBoss is not
worth the trouble.  In short, it's crap.

Oh yeah...and thanks for the waste of bandwidth with your useless msg;
next
time, practice what you supposedly believe and email your criticism
privately.

Marko Sharko


-----Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 8:19 AM
To: 'Struts Users Mailing List'
Subject: RE: ejb's and tomcat


Well congrats on

a) wasting other people's time
b) giving bad advice

perhaps you should consider fishing elsewhere.


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: 10 October 2003 10:51
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

Yeah, but the only reason I posted that msg was for baiting
purposes...and
apparently I caught a lot of fish...   ;-P

Mark

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 9:37 AM
To: 'Struts Users Mailing List'
Subject: RE: ejb's and tomcat


I agree, but I was responding to your "jboss is crap" statement, which
also has little to do with entity beans.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: 09 October 2003 11:41
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

That's an improvement, but really has little to do with EJB entity
beans.

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 8:33 AM
To: 'Struts Users Mailing List'
Subject: RE: ejb's and tomcat


Can't really agree with that. Besides, jboss have just employed the
creator of hibernate and its CMP layer is going to be powered by
hibernate in the near future anyway. So if you're a fan of hibernate,
you'll get the same thing under the hood with jboss and CMP ejbs.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: 09 October 2003 11:08
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

JBoss is crap, anyway.

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 7:44 AM

This isn't the case for jboss at least. You gain major performance
increases.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: 09 October 2003 10:35

Yes, the advantage of using local interfaces in EJBs is avoiding the
creation of stubs and skeletons, use of RMI and serialization.  But what
many people don't realize is that all the major containers have been
doing
this since 1.1 anyway, abeit in proprietary ways.  You really gain no
performance advantage by explicitly declaring an EJB interface local -
you
merely adhere to the specification.

Mark

-Original Message-
From: Kunal H. Parikh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 8:20 PM

The CMP2.x spec allows declaring EJBs as local objects.

The advantage of the local EJB objects is that they don't get
serialized/deserialized(I think) and pass-by-reference and not by-value.

Effectively, If you use a LocalEJB, you have the flexibitly of making
the REMOTE with very few changes to code.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-

RE: ejb's and tomcat

2003-10-10 Thread Brian McSweeney
Well congrats on 

a) wasting other people's time
b) giving bad advice

perhaps you should consider fishing elsewhere.


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: 10 October 2003 10:51
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

Yeah, but the only reason I posted that msg was for baiting
purposes...and
apparently I caught a lot of fish...   ;-P

Mark

-Original Message-----
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 9:37 AM
To: 'Struts Users Mailing List'
Subject: RE: ejb's and tomcat


I agree, but I was responding to your "jboss is crap" statement, which
also has little to do with entity beans.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: 09 October 2003 11:41
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

That's an improvement, but really has little to do with EJB entity
beans.

-----Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 8:33 AM
To: 'Struts Users Mailing List'
Subject: RE: ejb's and tomcat


Can't really agree with that. Besides, jboss have just employed the
creator of hibernate and its CMP layer is going to be powered by
hibernate in the near future anyway. So if you're a fan of hibernate,
you'll get the same thing under the hood with jboss and CMP ejbs.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: 09 October 2003 11:08
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

JBoss is crap, anyway.

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 7:44 AM

This isn't the case for jboss at least. You gain major performance
increases.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: 09 October 2003 10:35

Yes, the advantage of using local interfaces in EJBs is avoiding the
creation of stubs and skeletons, use of RMI and serialization.  But what
many people don't realize is that all the major containers have been
doing
this since 1.1 anyway, abeit in proprietary ways.  You really gain no
performance advantage by explicitly declaring an EJB interface local -
you
merely adhere to the specification.

Mark

-Original Message-
From: Kunal H. Parikh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 8:20 PM

The CMP2.x spec allows declaring EJBs as local objects.

The advantage of the local EJB objects is that they don't get
serialized/deserialized(I think) and pass-by-reference and not by-value.

Effectively, If you use a LocalEJB, you have the flexibitly of making
the REMOTE with very few changes to code.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ejb's and tomcat

2003-10-09 Thread Brian McSweeney
I agree, but I was responding to your "jboss is crap" statement, which
also has little to do with entity beans.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: 09 October 2003 11:41
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

That's an improvement, but really has little to do with EJB entity
beans.

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 8:33 AM
To: 'Struts Users Mailing List'
Subject: RE: ejb's and tomcat


Can't really agree with that. Besides, jboss have just employed the 
creator of hibernate and its CMP layer is going to be powered by 
hibernate in the near future anyway. So if you're a fan of hibernate,
you'll get the same thing under the hood with jboss and CMP ejbs. 

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: 09 October 2003 11:08
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

JBoss is crap, anyway.

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 7:44 AM

This isn't the case for jboss at least. You gain major performance
increases.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: 09 October 2003 10:35

Yes, the advantage of using local interfaces in EJBs is avoiding the
creation of stubs and skeletons, use of RMI and serialization.  But what
many people don't realize is that all the major containers have been
doing
this since 1.1 anyway, abeit in proprietary ways.  You really gain no
performance advantage by explicitly declaring an EJB interface local -
you
merely adhere to the specification.

Mark

-Original Message-
From: Kunal H. Parikh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 8:20 PM

The CMP2.x spec allows declaring EJBs as local objects.

The advantage of the local EJB objects is that they don't get
serialized/deserialized(I think) and pass-by-reference and not by-value.

Effectively, If you use a LocalEJB, you have the flexibitly of making
the REMOTE with very few changes to code.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ejb's and tomcat

2003-10-09 Thread Brian McSweeney
Can't really agree with that. Besides, jboss have just employed the 
creator of hibernate and its CMP layer is going to be powered by 
hibernate in the near future anyway. So if you're a fan of hibernate,
you'll get the same thing under the hood with jboss and CMP ejbs. 

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: 09 October 2003 11:08
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

JBoss is crap, anyway.

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 7:44 AM

This isn't the case for jboss at least. You gain major performance
increases.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: 09 October 2003 10:35

Yes, the advantage of using local interfaces in EJBs is avoiding the
creation of stubs and skeletons, use of RMI and serialization.  But what
many people don't realize is that all the major containers have been
doing
this since 1.1 anyway, abeit in proprietary ways.  You really gain no
performance advantage by explicitly declaring an EJB interface local -
you
merely adhere to the specification.

Mark

-Original Message-
From: Kunal H. Parikh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 8:20 PM

The CMP2.x spec allows declaring EJBs as local objects.

The advantage of the local EJB objects is that they don't get
serialized/deserialized(I think) and pass-by-reference and not by-value.

Effectively, If you use a LocalEJB, you have the flexibitly of making
the REMOTE with very few changes to code.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ejb's and tomcat

2003-10-09 Thread Brian McSweeney
This isn't the case for jboss at least. You gain major performance
increases.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: 09 October 2003 10:35
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

Yes, the advantage of using local interfaces in EJBs is avoiding the
creation of stubs and skeletons, use of RMI and serialization.  But what
many people don't realize is that all the major containers have been
doing
this since 1.1 anyway, abeit in proprietary ways.  You really gain no
performance advantage by explicitly declaring an EJB interface local -
you
merely adhere to the specification.

Mark

-Original Message-
From: Kunal H. Parikh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 8:20 PM
To: 'Struts Users Mailing List'
Subject: RE: ejb's and tomcat


Hi Andrew, Mark, and ALL!

The CMP2.x spec allows declaring EJBs as local objects.

The advantage of the local EJB objects is that they don't get
serialized/deserialized(I think) and pass-by-reference and not by-value.

Effectively, If you use a LocalEJB, you have the flexibitly of making
the REMOTE with very few changes to code.

People, please correct me if I am wrong.


Kunal
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 8 October 2003 21:20
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat

Nonsense!
In the same way acronyms look great on resumes, they also look just
super on
product brochures.
If you use EJBs you can proudly proclaim that your application is "based
on
J2EE EJB technology"!
This is useful for impressing clueless manager types even if EJBs confer
no
actual technical advantage (and often many disadvantages) to what your
trying to do.

btw: afaik its not just distributed stuff but also transaction type
stuff
its good for (but lets face it - most dbs do enough in that regards for
most
apps transaction needs already)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 8 October 2003 19:04
To: Struts Users Mailing List
Subject: RE: ejb's and tomcat


If you are asking these questions, you probably should not be using EJB.
The ONLY reason to use EJB is if you are developing a distributed
application; anything else is overkill.  If you simply need data
persistence, use JDBC and use DAO, or one of the persistence frameworks:
Ibatus, Hibernate, or Kodo-JDO.

Mark

-Original Message-
From: ajay brar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 9:51 PM
To: [EMAIL PROTECTED]
Subject: ejb's and tomcat


Hi!
does tomcat support ejb's. I'm building a web app which uses struts. i'm
using  ejb's  for the model part.
can i deploy the ejb component on tomcat?
what other alternate ways are there to do so?

thanks
cheers
ajay

_
ninemsn Premium transforms your e-mail with colours, photos and animated
text. Click here  http://ninemsn.com.au/premium/landing.asp


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ejb's and tomcat

2003-10-08 Thread Brian McSweeney
The answer to your problems lie here:

www.sourceforge.net/projects/xpetstore

-Original Message-
From: ajay brar [mailto:[EMAIL PROTECTED] 
Sent: 08 October 2003 12:56
To: [EMAIL PROTECTED]
Subject: RE: ejb's and tomcat

hi!
its actually for my software project at university. i am in uni. and the
aim 
of the project is to use ejb with struts.
we are developing a transaction/payment gateway.
the ejb's will be implementing the model, ie, the actual transaction and

also merchant support functions.
since me and my group are still in uni(and learning among other things 
groupwork), we divided the tasks. so while i developed the web tier
using 
struts someone else developed the ejb's
and ofcourse now we have to integrate the two sides and hence my
question. 
we are currently experimenting with openEJB; any alternative
recommendations 
will be most welcome.

thanks
cheers
ajay




>From: "Mark Galbreath" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: ejb's and tomcat
>Date: Wed, 8 Oct 2003 07:03:51 -0400
>
>If you are asking these questions, you probably should not be using
EJB.
>The ONLY reason to use EJB is if you are developing a distributed
>application; anything else is overkill.  If you simply need data
>persistence, use JDBC and use DAO, or one of the persistence
frameworks:
>Ibatus, Hibernate, or Kodo-JDO.
>
>Mark
>
>-Original Message-
>From: ajay brar [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 07, 2003 9:51 PM
>To: [EMAIL PROTECTED]
>Subject: ejb's and tomcat
>
>
>Hi!
>does tomcat support ejb's. I'm building a web app which uses struts.
i'm
>using  ejb's  for the model part.
>can i deploy the ejb component on tomcat?
>what other alternate ways are there to do so?
>
>thanks
>cheers
>ajay
>
>_
>ninemsn Premium transforms your e-mail with colours, photos and
animated
>text. Click here  http://ninemsn.com.au/premium/landing.asp
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Use Validator for two actions on same jsp

2003-10-02 Thread Brian McSweeney
It's the best I've ever found :-)
Whe-hey for struts-users!
Thanks very much again, really appreciate it.
Brian


-Original Message-
From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2003 14:49
To: Struts Users Mailing List
Subject: RE: Use Validator for two actions on same jsp

Great to be of some help. This is a wonderful community, isn't?

Cheers,
Saul



> -Original Message-----
> From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 02, 2003 11:30 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Use Validator for two actions on same jsp
> 
> 
> 
> 
> 
> Thanks  Saul,
> 
> You're solving all my problems :-)
> 
> Cheers,
> Brian
> 
> -Original Message-
> From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED]
> Sent: 02 October 2003 14:05
> To: Struts Users Mailing List
> Subject: RE: Use Validator for two actions on same jsp
> 
> 
> Havn't tried that though, but if you put the following in your jsp:
> 
> 
>  dynamicJavascript="true" staticJavascript="false" />
> 
>  dynamicJavascript="true" staticJavascript="false" />
> 
> 
> 
> 
> The staticJavascript.jsp file is the same as in my previous post
> regarding validation.
> 
> I think it may work, assuming you've defined the rest properly in your
> validation.xml file.
> 
> 
> 
> Saul
> 
> 
> 
> 
> > -Original Message-
> > From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 02, 2003 6:58 AM
> > To: 'Struts Users Mailing List'
> > Subject: Use Validator for two actions on same jsp
> >
> >
> >
> >
> >
> > Hi all,
> >
> > Didn't really get any clear response on this before.
> >
> > Is it possible to validate two actions from one jsp using the
> validator.
> > This is easiest to explain with a short bit of code:
> >
> >
> > 
> > 
> > 
> >  > key="label.email"/>:
> > 
> >   
> > 
> > 
> >
> >   
> >
> >   
> >
> > 
> > 
> >
> >
> > 
> > 
> > 
> >  > key="label.creditcard"/>:
> > 
> >   
> > 
> > 
> >
> >   
> >
> >   
> >
> > 
> > 
> >
> > Now normally I'd just put in
> >
> > 
> >
> > to validate the first form. But I wonder can I validate the two from
> the
> > same page depending on which button gets pressed?
> >
> > If this is impossible, then I'd like to add it as a feature request.
> >
> > Cheers,
> > Brian
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Use Validator for two actions on same jsp

2003-10-02 Thread Brian McSweeney
Thanks  Saul,

You're solving all my problems :-)

Cheers,
Brian

-Original Message-
From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2003 14:05
To: Struts Users Mailing List
Subject: RE: Use Validator for two actions on same jsp


Havn't tried that though, but if you put the following in your jsp:


  

  




The staticJavascript.jsp file is the same as in my previous post
regarding validation.

I think it may work, assuming you've defined the rest properly in your
validation.xml file.



Saul




> -Original Message-----
> From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 02, 2003 6:58 AM
> To: 'Struts Users Mailing List'
> Subject: Use Validator for two actions on same jsp
> 
> 
> 
> 
> 
> Hi all,
> 
> Didn't really get any clear response on this before.
> 
> Is it possible to validate two actions from one jsp using the
validator.
> This is easiest to explain with a short bit of code:
> 
> 
> 
> 
> 
>  key="label.email"/>:
> 
>   
> 
> 
>
>   
>
>   
>
> 
> 
> 
> 
> 
> 
> 
>  key="label.creditcard"/>:
> 
>   
> 
> 
>
>   
>
>   
>
> 
> 
> 
> Now normally I'd just put in
> 
> 
> 
> to validate the first form. But I wonder can I validate the two from
the
> same page depending on which button gets pressed?
> 
> If this is impossible, then I'd like to add it as a feature request.
> 
> Cheers,
> Brian
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: newbie: Best Practice Struts/Value-Objects?

2003-10-02 Thread Brian McSweeney
Hi Darren,
I was under the impression that it works exactly the way you hope it
does.
Actually I'm pretty sure it does.
Also what might be worth looking at ( I have to look at it myself ), is 
Light-value-objects where you only populate the initial value object
with the 5 fields rather than the whole 20. This is obviously more
optimal in 
terms of db queries.

This is all pre-supposing you are using xdoclet and EJBs and xdoclet,
which
perhaps you are not.

HTH,
Brian

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2003 13:41
To: [EMAIL PROTECTED]
Subject: newbie: Best Practice Struts/Value-Objects?

Hi all!
Been working with struts and value-objects, and I am beginning to
understand the power of these two in combination. I did however run into
a snag that may be either on purpose or just ignorance on my part.

If I pass a 20-field value-object to an ActionForm (let's say an
EmployeeVO), and I only show the employee's name and address for editing
(only 5 or so fields).  They make the necessary changes and submit the
form.  What I understand is the form will populate a NEW EmployeeVO and
not make the changes to the original EmployeeVO, thereby creating an
EmployeeVO populated only from the 5 fields on the form and nulling the
other 15 fields.

I was hoping to take an existing Value-Object, only make necessary
changes from the submitted form (i.e. 0-5 changed fields and the other
15 stay the way they are), and then re-submit the Value-Object for
updating the DB, but that does not seem possible.  Am I doing something
wrong and/or mis-understanding the best utilization of Value-Objects
with Struts?  Again, I'm a newbie so any pointers, help, or examples
would be great!

thanky in advance!
-D

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Question about minimizing javascript loaded into web page

2003-10-02 Thread Brian McSweeney
Helps very much Saul. Cheers.

Final dumb question: 

So is the result of this that only the javascript methods pertaining to 
each jsp gets loaded into the page?

If so, do you know why this isn't the default behaviour?

Thanks,
Brian


-Original Message-
From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2003 13:46
To: Struts Users Mailing List
Subject: RE: Question about minimizing javascript loaded into web page

> 
> Hi Saul,
> Could you explain this a little more. I'm interested too.
> 
> For example, at the moment I'm just using the tag:
> 
>  
> 
> This brings down all the validator javascript in the page.
> 
> 1) Is this what you mean by "static javascript"?

yes


> 
> 2) What exactly would you put in the staticJavascript.jsp page?

Pulled from the struts example application, basically it's setting 
dynamicJavascript="false" staticJavascript="true"

staticJavascript.jsp:
-

<%@ page language="java" %>
<%-- set document type to Javascript (addresses a bug in Netscape
according to a web resource --%>
<%@ page contentType="application/x-javascript" %>

<%@ taglib uri="/WEB-INF/lib/struts-html.tld" prefix="html" %>



-
> 
> 3) What's the difference between static and dynamic javascript?
> (Probably a
> real dumb question :-) )

dynamic javascripts are generated based on the particular fields of your
jsp page, say, the validation error messages etc. The static javascripts
are those validation javascript functions as defined in the
validator-roles.xml file.


Hope this helps.

Saul


> 
> Am a bit confused :-)
> Thanks,
> Brian
> 
> 
> -Original Message-
> From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED]
> Sent: 01 October 2003 21:09
> To: Struts Users Mailing List
> Subject: RE: Question about minimizing javascript loaded into web page
> 
> If you don't want static javascript rendered inside your jsp page, you
> can set:
> 
> staticJavascript="false" and have  reference the static part.
> 
> Something like below:
> 
>  dynamicJavascript="true" staticJavascript="false" />
> 
>