RE: automatic periodic execution of code

2005-02-16 Thread McCormack, Chris
You could 'roll your own' using the TimerTask class.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: 16 February 2005 05:54
To: Struts Users Mailing List
Subject: Re: automatic periodic execution of code


I think Quartz has been the general consensus most times this has been 
debated on the list.

Sng Wee Jim wrote:

> Hi,
> 
> 
> 
> 
> What would be the recommended way to execute some code periodically on
> tomcat/appserver?
> 
> 
> 
> 
> 
> Should I
> 
> 
> 1.start a thread (not recommended in appserver and tomcat?) and do
> it in the run method
> 
> 2.use third party tool like Quartz
> 3.or is there existing struts plugin to do it?
> 
> 
> 
> 
> 
> 
> 
> - Jim
> 
> 
> 
> 
> 
> 
> 
> 
> The information in this email is confidential and is intended solely
> for the addressee(s).
> Access to this email by anyone else is unauthorized. If you are not
> an intended recipient, please notify the sender of this email
> 
> immediately. You should not copy, use or disseminate the
> 
> information contained in the email.
> Any views expressed in this message are those of the individual
> sender, except where the sender specifically states them to be
> the views of Capco.
> 
> http://www.capco.com/
> 
> 


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



 Click https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==  to report this 
email as spam.

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



RE: Construting HTML Email from Struts

2005-02-15 Thread McCormack, Chris
http://article.gmane.org/gmane.comp.jakarta.taglibs.user/6038

I helped someone a while back with a similar requirement. Hope its useful.

Chris McCormack

-Original Message-
From: Todd Nine [mailto:[EMAIL PROTECTED]
Sent: 15 February 2005 12:50
To: Struts Users Mailing List
Subject: Construting HTML Email from Struts


Hi all,
   Does anyone know of a way to construct an HTML formatted email
using a struts jsp and a DynaForm?  I want our visual designers to be
able to updload an email "template", which is just a Struts jsp with
the dynabean properties.  We would then upload a mapping (something
like hql in nature), that would query our database, and fill in the
dynabean.  The batch job would fire and create the html from the
struts jsp, inserting into the body.  We would then email that text.

Any Ideas?
Todd

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



 


*
This e-mail and its attachments are confidential and are intended for the above 
named recipient only. If this has come to you in error, please notify the 
sender immediately and delete this e-mail from your system. You must take no 
action based on this, nor must you copy or disclose it or any part of its 
contents to any person or organisation. Statements and opinions contained in 
this email may not necessarily represent those of Littlewoods. Please note that 
e-mail communications may be monitored. The registered office of Littlewoods 
Limited and it's subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. 
Registered number of Littlewoods Limited is 262152.
*




This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com

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



RE: Applicaton-specific logging in Struts

2004-11-26 Thread McCormack, Chris
log4j.logger.com.myapp=DEBUG,A1
log4j.logger.org.apache.struts=FATAL,A2

where A1 and A2 are different console or file appenders.

-Original Message-
From: Nicholas Hemley [mailto:[EMAIL PROTECTED]
Sent: 26 November 2004 12:29
To: [EMAIL PROTECTED]
Subject: Applicaton-specific logging in Struts


Hello,

I have implemented a plugin to configure the logging for my application
but my application debug log is getting swamped by the struts debug
logging.

As I understand it, struts uses the common logging based on log4j but I
cannot find an example of how to separate struts logging from
application logging.

Essentially, what I would like to do is configure the logging so that
classes in my packages go to a different file!

Any help would be appreciated for this [not so major] problem...

Cheerio,
Nic.

>>> [EMAIL PROTECTED] 26/11/2004 11:59:57 >>>
Hi,

I get the same results when Tomcat is not run as a service.  Does this
mean 
it must be the Tomcat security policy?

Cheers
Andy

_
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger 


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



**
The information contained in this message may be confidential or legally 
privileged and is intended for the addressee only, If you have received this 
message in error or there are any problems please notify the originator 
immediately. The unauthorised use, disclosure, copying or alteration of this 
message is strictly forbidden.
**


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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: multiThread, action and Database access

2004-11-16 Thread McCormack, Chris
Set a HTTP header to refresh the request every 30 seconds.

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: 16 November 2004 08:45
To: Struts Users Mailing List
Subject: Re: multiThread, action and Database access


You need to be more specific, I think.  See below:

Jack

On Tue, 16 Nov 2004 07:33:40 +0100 (CET), Ryan julius
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have in my project, an action /ReadDataBaseData.do and the corresponding 
> handler :
> public ActionForward accessDatabase(ActionMapping, ActionForm, ...) ;
> This action forwards to the page displayData.jsp
> 
> Problem: The database is populated each 30 seconds by an external server.

Why is this a "Problem"?

> Question : How can I setup my action and implementation in order to access 
> the database each 30 seconds.

Do you mean that you want a client to "access the database" via an
"action"?  You can set the response object to refresh each 30 seconds
if you want.  This is a fairly simple and old semi-push in the HTTP
pull technology.

Jack

> 
> Thanks in advance.
> 
> 
> -
> Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
> Créez votre Yahoo! Mail
> 
> Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour 
> dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !
> 


-- 
"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: JNDI

2004-11-12 Thread McCormack, Chris
Then deploy a your_webapp_name_here.xml file along with your app that contains 
the context settings.

Chris McCormack

-Original Message-
From: Jonathan Wright [mailto:[EMAIL PROTECTED]
Sent: 11 November 2004 23:22
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: JNDI


Craig,

Thanks for the prompt reply. I have in the past set up DataSources in
Tomcat's server-config.xml. However, due to the nature of our production
environment I don't want to edit this file. It's relatively important that
my web apps are completely self contained.

Jonathan Wright

- Original Message -
From: "Craig McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 12, 2004 11:57 AM
Subject: Re: JNDI


> On Fri, 12 Nov 2004 11:46:22 +1300, Jonathan Wright
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Just a quick question about JNDI in a Struts setting. I want to reduce
the
> > dependencies between objects in my app. Some objects that are not
servlet
> > aware need access to the ServletContext and DataSources. However rather
than
> > complicating matters and increasing the number of arguments I need to
pass
> > around I'm thinking of putting references to DataSources and the
> > ServletContext into a JNDI context.
> >
> > Which JNDI SPI would you recommend for a simple object registry/store?
What
> > are the issues regarding the Referenceable interface?
>
> Why not use the JNDI naming context provided by your container?  You
> shouldn't have to be worried about implementing this -- just configure
> the JNDI resources that you want to make available to your
> application.
>
> For example, the instructions for using the naming context provided by
Tomcat:
>
>
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html
>
> and specific info about using a data source provided by Tomcat:
>
>
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
to.html
>
> Other servers will have their own mechanisms for configuring these things.
>
> Craig
>
> -
> 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 e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: How to use layouts included with Tiles?

2004-11-01 Thread McCormack, Chris
John -
To use the schs82DefaultDef tile layout you would need to insert that definition in to 
a jsp (or forward to the tile def from an action).


This would insert the "/layout.jsp" as defined in the path= part of your tiles-def.xml.
To insert the "name" attributes, within the "/layout.jsp" you would have the relevant 
inserts for the put elements i.e. :





etc

Hope that helps
Chris McCormack

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
>
>
> I can't find documentation on how to use the layouts included with Tiles.
> For example, here is one of my Tiles Defs:
>
> 
> 
> 
> 
> 
> 
>
> In order to use one of the layouts included with Tiles, I tried
 name="Center"...> but this doesn't work.
> 1) How do I reference this Tiles layout?
> 2) If I can then reference it, anyone know where documentation is
available
> that would indicate what values this layout expects in the "Name"
> attributes of put elements, in order to properly insert content into the
> layout?
>
> Thanks very much for any help?

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Serious performance impact with iterator

2004-10-26 Thread McCormack, Chris
<
  logic:iterate id="rowArray" name="batchForm"
property="rowBatchDetails" indexId="rowCount"
><
   logic:iterate id="colArray" name="rowArray" indexId="colCount"
  > 

  
  
 




   


Check where I have placed the < and > on the tags. I haven't checked the above 
compiles but basically you need to put your <> on the same line as the next line of 
code ie :



Chris McCormack

-Original Message-
From: JoAnn Lemm [mailto:[EMAIL PROTECTED]
Sent: 26 October 2004 00:08
To: [EMAIL PROTECTED]
Subject: FW: Serious performance impact with iterator
Importance: High


 
Hey All,

I'm wondering if anyone else is seeing this impact.
I've got an iterator within an iterator thusly:



  

   

  
  

  
  
 




  
   






The resulting html looks like the following. Note all the empty spaces.
Needless to say, this has impacted performance on the website
significantly by increasing the size of the page to something ludicrous
when I have more than 20 rows of data to display!
Anyone have a solution for this?  A patch somewhere?


  


   
  

 
  Aiken
  

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   
 

   

   


  Glenda
   



JoAnn Lemm

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Exposing ActionForm and MVC fields

2004-10-15 Thread McCormack, Chris
Nice rewording there, you in Law by any chance ;)

-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: 15 October 2004 15:33
To: Struts Users Mailing List
Subject: Re: Exposing ActionForm and MVC fields


> ***
> This e-mail and its attachments are not confidential
> and are intended for anyone who will believe what 
> I've written without holding me liable. 
> If this has come to you in error, please
> don't notify me at any given time and just delete this
> e-mail from your system.
> You must take no action that you will blame me for
> later, though if you want you can copy or disclose 
> it or any part of its contents to any person or organisation.
> Statements and opinions contained in this email may
> not necessarily represent those people who 
> pay me. Please note that e-mail 
> communications may be monitored by those
> who have nothing better to do than read other people's e-mail.
> 

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Exposing ActionForm and MVC fields

2004-10-15 Thread McCormack, Chris
Like this:

MainDataObj implements ISeller, IBuyer

Seller implements ISeller

Buyer implements IBuyer

Seller seller = (ISeller)mainDataObj;

then add seller to the request and populate your form from that for the Seller view 
and vice versa for the Buyer view.

Friday pub lunch may have tarred my brain but I think that will work :)

Chris

-Original Message-
From: Leandro Melo [mailto:[EMAIL PROTECTED]
Sent: 15 October 2004 14:49
To: Struts Users Mailing List
Subject: RE: Exposing ActionForm and MVC fields


Hi Chris, what do you mean by "interfaces to filter"
(sorry for the stupidness)???
Is it an ordinary Servlet filter??
If so, i remember once using a few filters but i
coulnd`t get a reference to the request it self, only
to the context as a whole. Could you give an example?



 --- "McCormack, Chris"
<[EMAIL PROTECTED]> escreveu: 
> Look at using interfaces to filter the sensitive
> data away from each user when putting the data
> object in the request.
> 
> Chris McCormack
> 

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Exposing ActionForm and MVC fields

2004-10-15 Thread McCormack, Chris
Look at using interfaces to filter the sensitive data away from each user when putting 
the data object in the request.

Chris McCormack

-Original Message-
From: Leandro Melo [mailto:[EMAIL PROTECTED]
Sent: 15 October 2004 13:53
To: Struts Users Mailing List
Subject: RE: Exposing ActionForm and MVC fields


Hi guys, thanks for  your opinions, it seems that both
of you stick with approach 2.

However, none of you mentioned that "exposing
ActionForm fields" problem.

Suppose if build then 2 different pages (as you
adviced me). I guess my Action for this both pages
would still be the same, it will only send the request
to 2 different pages depending the type of the
company. Usually, i set the jsps pages form`s inside
this Action (normally with BeanUtils), what will force
me to give the correct names for the jsp form fields
(even if they are labels for the case the user cannot
alter them). In this case, i`m still suceptible to be
hacked by javascript, because of the ActionForm fields
exposure.
What about that???



 --- "McCormack, Chris"
<[EMAIL PROTECTED]> escreveu: 
> +1
> 
> You could still create common elements to both pages
> which will help maintain a look and feel and reuse
> existing code, look at using different tile layouts
> for each user type but the elements in the page are
> common jsp/tile definitions.
> If the spec for one user changes then you could
> simply just copy the tile fragment that was changing
> to a new location and work on it, then change the
> tile definition for that user to point to the
> updated fragement.
> You would still maintain a majority of common code
> and in the long run even if both user views totally
> change you can deal with it as and when the changes
> happen by copying and altering each tile fragment
> that is changing and updating the tile definition to
> point to the new fragment.
> 
> Chris McCormack
> 
> -Original Message-
> From: Freddy Villalba A.
> [mailto:[EMAIL PROTECTED]
> Sent: 15 October 2004 11:54
> To: Struts Users Mailing List
> Subject: RE: Exposing ActionForm and MVC fields
> 
> 
> Hi,
> 
> I'd go for approach #2. After all, they are
> different VIEWS of the same
> Model.
> 
> I've faced this situation in a couple of projects
> before, and in both cases
> buyer's and seller's views differed in the long run.
> The more complex your
> business rules / model gets, the higher is the
> chance for that happening. It
> may seem the right way to go at first (specially if
> the differences are
> insignificant), but after a few meetings with the
> corporate managers, you'll
> realize it was not such a smart move after all! :P
> 
> My humble oppinion,
> Freddy.
> 
> -Mensaje original-
> De: Leandro Melo [mailto:[EMAIL PROTECTED]
> Enviado el: viernes, 15 de octubre de 2004 3:30
> Para: struts jakarta
> Asunto: Exposing ActionForm and MVC fields
> 
> 
> Hi,
> i'd like to hear some opinions.
> 
> I got a b2b application. I'm facing a desing
> problem.
> This problems is associated basically to 2 themes:
> - MVC
> - Exposing AcfionForm fields.
> 
> I got a page where the BUYER fills a form to buy an
> specific item. The steps are very simple.
> 
> 1 - He sends a request for a quotation.
> 2 - After the quotation, he sends a request for an
> order.
> 
> The point is...
> When the SELLER goes to make the quotation he's
> supposed to see a very similar page to the one the
> BUYER filled the information. This is obvious as the
> information is the same for both parts. So, should i
> implement the page for the SELLER:
> 
> ==>>>>>>> APPROACH 1 - using the same exact page
> as the BUYER for the SELLER. Then i'd make the
> fields
> the BUYER filled disabled (or just make them labels)
> using some kind o scriptlet like this.
> 
>.../> ,
> 
>where sellerVisibility would be something =
>"disabled=true"
> 
> This approach seems nice to but i'd say that it's
> just
> not that cool!!! It doesn't look nice from an MVC
> point of view. I'll take the risk of having a lot of
> this kind of scripts in pages as the times goes by.
> I know that the Action (control layer) is actually
> responsible for setting the "sellerVisibility", what
> means that it's also not that bad from the MVC point
> of view.
> But any way, the major problem with this approah is
> that i use BeanUtils to copy data from the
> ActionForms
> to the VOs and vice-versa. So even with the fields
> disabled, i would take the risk of some smart guy
> cheatting and setting via javascript the fields he's
> no

RE: Exposing ActionForm and MVC fields

2004-10-15 Thread McCormack, Chris
+1

You could still create common elements to both pages which will help maintain a look 
and feel and reuse existing code, look at using different tile layouts for each user 
type but the elements in the page are common jsp/tile definitions.
If the spec for one user changes then you could simply just copy the tile fragment 
that was changing to a new location and work on it, then change the tile definition 
for that user to point to the updated fragement.
You would still maintain a majority of common code and in the long run even if both 
user views totally change you can deal with it as and when the changes happen by 
copying and altering each tile fragment that is changing and updating the tile 
definition to point to the new fragment.

Chris McCormack

-Original Message-
From: Freddy Villalba A. [mailto:[EMAIL PROTECTED]
Sent: 15 October 2004 11:54
To: Struts Users Mailing List
Subject: RE: Exposing ActionForm and MVC fields


Hi,

I'd go for approach #2. After all, they are different VIEWS of the same
Model.

I've faced this situation in a couple of projects before, and in both cases
buyer's and seller's views differed in the long run. The more complex your
business rules / model gets, the higher is the chance for that happening. It
may seem the right way to go at first (specially if the differences are
insignificant), but after a few meetings with the corporate managers, you'll
realize it was not such a smart move after all! :P

My humble oppinion,
Freddy.

-Mensaje original-
De: Leandro Melo [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 15 de octubre de 2004 3:30
Para: struts jakarta
Asunto: Exposing ActionForm and MVC fields


Hi,
i'd like to hear some opinions.

I got a b2b application. I'm facing a desing problem.
This problems is associated basically to 2 themes:
- MVC
- Exposing AcfionForm fields.

I got a page where the BUYER fills a form to buy an
specific item. The steps are very simple.

1 - He sends a request for a quotation.
2 - After the quotation, he sends a request for an
order.

The point is...
When the SELLER goes to make the quotation he's
supposed to see a very similar page to the one the
BUYER filled the information. This is obvious as the
information is the same for both parts. So, should i
implement the page for the SELLER:

==>>> APPROACH 1 - using the same exact page
as the BUYER for the SELLER. Then i'd make the fields
the BUYER filled disabled (or just make them labels)
using some kind o scriptlet like this.

   .../> ,

   where sellerVisibility would be something =
   "disabled=true"

This approach seems nice to but i'd say that it's just
not that cool!!! It doesn't look nice from an MVC
point of view. I'll take the risk of having a lot of
this kind of scripts in pages as the times goes by.
I know that the Action (control layer) is actually
responsible for setting the "sellerVisibility", what
means that it's also not that bad from the MVC point
of view.
But any way, the major problem with this approah is
that i use BeanUtils to copy data from the ActionForms
to the VOs and vice-versa. So even with the fields
disabled, i would take the risk of some smart guy
cheatting and setting via javascript the fields he's
not supposed to set. And as i copy the data with
BeanUtils, my data will be changed when it's not
supposed to do so.


> APPROACH 2 - just create another page
for the BUYER. This page would look exactly the same
for the BUYER and the SELLER, but they'll be different
pages. This way, i can build this other very similar
page without exposing my ActionForma attributes. This
approach seems to me allright from the MVC point of
view.
But the problem of this approach is that i'd start
building some kind of redundant and duplicated code.


Any opinions...

Leandro.





___
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.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]


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods 

RE: help : creating own ActionForm

2004-10-15 Thread McCormack, Chris
You shouldn't have to make any configuration changes to use and extended ActionForm 
with your Actions.

Just extend ActionForm with your own base implementation and then create your beans by
extending your base implementation. Make sure to include each bean declaration in the 
 
section of struts-config.xml

Chris McCormack

-Original Message-
From: sachin [mailto:[EMAIL PROTECTED]
Sent: 15 October 2004 11:38
To: Struts Users Mailing List
Subject: help : creating own ActionForm


hi , 

I want to crete my own ActionForm and let all the bean extend it instead of 
default ActionForm . 
For this what configuration and changes i will have to make ? 

Regards,
Sachin Hegde



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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: help : chaining actions in Struts

2004-10-15 Thread McCormack, Chris
Set the bean on the request in the first action and retrieve it in the second action.

Chris McCormack

-Original Message-
From: sachin [mailto:[EMAIL PROTECTED]
Sent: 15 October 2004 11:11
To: Struts Users Mailing List
Subject: RE: help : chaining actions in Struts



> Have the first action's success forward on to the next action in 
> struts config.

but will the same bean be populated ?

Regards , 
sachin


-- Original Message ---
From: "McCormack, Chris" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Fri, 15 Oct 2004 10:42:04 +0100
Subject: RE: help : chaining actions in Struts

> Have the first action's success forward on to the next action in 
> struts config.
> 
> Chris McCormack
> 
> -Original Message-
> From: sachin [mailto:[EMAIL PROTECTED]
> Sent: 15 October 2004 10:46
> To: Struts Users Mailing List
> Subject: help : chaining actions in Struts
> 
> hi all ,
> 
> i have a common bean , which i need to use for two Actions classes 
> which will execute one after another and populate the bean.
> 
> Now how can i configure the struts so that both the action will run 
> one after another ?
> 
> Any help is welcome . .
> 
> Regards,
> Sachin Hegde
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ***
> This e-mail and its attachments are confidential
> and are intended for the above named recipient
> only. If this has come to you in error, please 
> notify the sender immediately and delete this 
> e-mail from your system.
> You must take no action based on this, nor must 
> you copy or disclose it or any part of its contents 
> to any person or organisation.
> Statements and opinions contained in this email may 
> not necessarily represent those of Littlewoods.
> Please note that e-mail communications may be monitored.
> The registered office of Littlewoods Limited and its
> subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
> Registered number of Littlewoods Limited is 262152.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--- End of Original Message ---


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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: help : chaining actions in Struts

2004-10-15 Thread McCormack, Chris
Have the first action's success forward on to the next action in struts config.

Chris McCormack

-Original Message-
From: sachin [mailto:[EMAIL PROTECTED]
Sent: 15 October 2004 10:46
To: Struts Users Mailing List
Subject: help : chaining actions in Struts


hi all ,

i have a common bean , which i need to use for two Actions classes which will 
execute one after another and populate the bean.

Now how can i configure the struts so that both the action will run one after 
another ? 

Any help is welcome . . 

Regards,
Sachin Hegde

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: mechanism to clear objects in the session

2004-10-15 Thread McCormack, Chris
I haven't tried this yet, but maybe any objects that you intend to put in the session 
should have a nice finalize section to tidy themselves up before being removed by GC. 
You could then effectively force GC on these objects by System.runFinalization() when 
you needed without keeping track of what you are putting in the session.

Just having a muse over morning coffee, don't know how practical/viable this solution 
is :)

Chris McCormack

-Original Message-
From: lixin chu [mailto:[EMAIL PROTECTED]
Sent: 15 October 2004 10:05
To: Struts Users Mailing List
Subject: Re: mechanism to clear objects in the session


thanks. it indeed helps me, in fact the points are
critical - i need to think my use cases twice, and you
have also pointed out a couple of choices. i will try
to come out a cleaner implementation in my system.
thanks again !



--- Erik Weber <[EMAIL PROTECTED]> wrote:

> There was no common solution discussed that I
> recall. But, the idea is, 
> put a class to work in a place where it can monitor
> every request. For 
> example, in a Servlet Filter, or in a Struts
> RequestProcessor subclass, 
> or an Action base class. As far as I know, there is
> no existing 
> framework or common utility for doing this sort of
> thing. I have found 
> that using a common naming convention (or even a
> common key) for these 
> types of session attributes makes programming the
> cleanup easier. 
> Tracking page flow and deciding what's going with
> the flow and what's 
> going against the flow is up to you.
> 
> A real simple first implementation might be to clean
> out all session 
> attributes (such as forms) that are considered
> "working" attributes (not 
> those, such as "user" objects, that are needed for
> the lifetime of the 
> session) whenever the user returns to the "home"
> page (in your "home" 
> Action).
> 
> It is worth noting that good navigation design
> inherently makes this 
> sort of thing easier. Applications should have
> "home" views, and 
> sections of the application should have their own
> "home" views. When the 
> user finishes a task, he returns to the home view
> for the section he's 
> using, or to the main home view. This is where you
> can do cleanup (while 
> you are preparing the home view).
> 
> Or not. The particular design isn't really relevant.
> The point is to 
> design *something*, to think it through ahead of
> time, instead of just 
> drawing pages and making them "work".
> 
> Sorry I didn't help much.
> 
> Erik
> 
> 
> 
> lixin chu wrote:
> 
> >Hi,
> >I saw an ealier thread discussing this but still
> can
> >not fully understand the solution.
> >
> >appreciate if any one can provide some more
> detailed
> >info on this. basically if the current page flow is
> >terminated for some reason, how the Struts
> application
> >can clear the objects stored in the session ?
> >
> >thanks
> >li xin
> >
> >__
> >Do You Yahoo!?
> >Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> >http://mail.yahoo.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]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Where Is the Best Place To Store Files?

2004-10-14 Thread McCormack, Chris
Why not have have your httpd serve the static content and leave the application to be 
handled by your app server (if you have this configuration).

This is what the httpd was designed for :) 
This gives you the independence of leaving your static content to reside on a disk 
server (or seperate box etc) and the application code to live inside the app server 
which can be deployed to without effecting the static content.

Chris McCormack

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 14 October 2004 09:49
To: [EMAIL PROTECTED]
Subject: RE: Where Is the Best Place To Store Files?


Hi, guys.

Calm down a bit. The original question never said that these files need to be uploaded 
by the client, or did I miss that bit?
All I know is there are readonly files that need to be served via HTTP without access 
restriction and are already there at deployment time so a database is not the option 
to store them. And the superior said a database is not the option to store them.

If it's just static content, the answer has already been given: place it anywhere 
inside the webapp but outside WEB-INF.
The rest is speculation.

Hiran

-
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax   +49-89-54 74 21 99


 

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED] 
> Sent: Mittwoch, 13. Oktober 2004 21:42
> To: Struts Users Mailing List
> Subject: Re: Where Is the Best Place To Store Files?
> 
> Durham David R Jr Contr 805 CSPTS/SCE wrote:
> 
> >I personally opt to store uploaded files outside of the web-app's 
> >file-system altogether.  This has to do with how easy it is 
> to serve up 
> >content with Java (and other languages, I'm sure) and the need to 
> >physically separate the application's persistent data from the 
> >application code.  This has to do with deployment and backup 
> processes, 
> >though.
> >
> >
> >- Dave
> >
> 
> There is a lot of sense in doing this, as well. 
> 
> 
> I don't do it and opt for inside WEB-INF because of business 
> reasons having to do with operating system independence that 
> are special requirements.  This might be your most sensible 
> option.  I am fairly clear in my mind that, if you have gone 
> far enough to use a framework like Struts, that you don't 
> want to expose any resources outside your control.  Others, 
> maybe Dave, would disagree, and maybe they are right.
> 
> Michael McGrady
> 
> 
> -
> 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 e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: new to Struts

2004-10-01 Thread McCormack, Chris
$2,900 or $29.00 ?

-Original Message-
From: Sandro Duarte [mailto:[EMAIL PROTECTED]
Sent: 01 October 2004 15:33
To: Struts Users Mailing List
Subject: Re: new to Struts


I use MyEclipse, wich costs me $29,00 a year and do the job beautifully

Sandro


On Fri, 1 Oct 2004 15:57:12 +0200, WOLips <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> is Exadel Struts Studio plug-in for Eclipse a good tool?
> 
> do you use another one?
> 
> Exadel Pro costs $400 what is the good free alternative?
> 
> Regards.
> 
> Sako.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-- 
Sandro Duarte
Analista de Sistemas
TRE-RS/SI

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Need Help: exporting oracle database records to excel files

2004-09-28 Thread McCormack, Chris
/pat on the back for Paul for answering so many questions today :)

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: 28 September 2004 10:14
To: 'Struts Users Mailing List'
Subject: RE: Need Help: exporting oracle database records to excel files


http://www.displaytag.org/example-export.jsp

Paul

> -Original Message-
> From: Kranti Parisa [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 9:56 AM
> To: [EMAIL PROTECTED]
> Subject: Need Help: exporting oracle database records to excel files
> 
> 
> Hi eveybody,
> 
> need some information .
>  
> the prob goes like this...
>  
> we have a jsp page with some select boxes n all...its a 
> search criteria
> the contects of the select boxes should be dynamically changed
>  
> after user clicks on go button... the report has to be generated with
> that serach criteria...
>  
> actually the prob is...
>  
> there will be a "export to excel" button...if user clicks 
> that button ...
>  
> the generated report, based on the search criteria, should be exported
> as an excel file at the server end and rendered to the user..
>  
> the generated excel file should be freezed one.. means the first
> column should remains constant irrespective of the no of records
> fetched...
>  
> so that the user can see the report properly...
>  
>  
> can anynody tell me some way to think for the solution .
>  
> waiting for the reply 
> 
> 
> -- 
> -- 
> Kranti Kiran Kumar Parisa
> Software Engineer [ e-Biz ],
> Patni Computer Systems Ltd.,
> India
> Mobile: +91 98504 45977
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
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]


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Compilation of JSP at time of deployment?

2004-09-28 Thread McCormack, Chris
Look at jspc for pre-compiling your JSPs when building the archive for deployment.

-Original Message-
From: Mike Elliott [mailto:[EMAIL PROTECTED]
Sent: 28 September 2004 00:50
To: Struts Users Mailing List
Subject: Compilation of JSP at time of deployment?


I have a neglected Ultra 1, now running Solaris 9, which I've rescued
to use as a web application server.  It's running JBoss just fine and
when my web application is loaded and run the response time, while
slow (on the order of a second or two per page) is still reasonable.

The problem comes about after redeploy, or reboot, or JBoss restart,
or whatever, which causes JBoss to forget all the compiled servlets
for the application.  When the first user encounters such a page the
page is, of course, compiled and made ready for use -- but this can
take tens of seconds to accomplish, leaving a less than sparkling
impression for the user.

Is there a way to force all the JSPs and ActionForms, etc., to be
compiled and ready to go at the time of deployment?  Even if it takes
several minutes to achieve this, it would be worth it rather than
delaying until the first user/victim accesses the page.

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: [OT] Virus checking uploaded files

2004-08-12 Thread McCormack, Chris
http://uk.trendmicro-europe.com/consumer/products/housecall_pre.php

Only tested it on windows. Let me know if it works on linux.

Chris McCormack

-Original Message-
From: Sean Radford [mailto:[EMAIL PROTECTED]
Sent: 12 August 2004 16:17
To: Struts Users Mailing List
Subject: [OT] Virus checking uploaded files


Hi,

Anyone know of a good (cheap) way to virus check uploaded files for viruses?

I'm mainly needing to check Word documents for macro style viruses. What 
would make the problem worse is that our servers run linux... (but open 
to hear about Windows options)

Regards,

Sean

-- 
Dr. Sean Radford, MBBS, MSc
[EMAIL PROTECTED]
http://bladesys.demon.co.uk/ 


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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: html:file

2004-08-10 Thread McCormack, Chris
It is a little OT to try and explain how to alter the button and not the textfield 
which would involve giving some sort of css tutorial. It may be easier for you to post 
a code snippet of the button and text field jstl that someone could add the style 
sheet references to.

Chris

-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: 10 August 2004 11:11
To: Struts Users Mailing List
Subject: Re: html:file


Hmm well I'll give that a try. I am confused because there are actually 
two objects involved -- the text field and the "browse" button, and the 
attributes seem to apply to the text field . . . But, maybe I just don't 
know enough about CSS. How can I refer to the button and not the text 
field? How can I do things like change the font in the button but not 
the field, put space between the field and the button, etc.? Sorry, I 
guess I'm off topic.

Thanks,
Erik

McCormack, Chris wrote:

>According to the tld for (I think all) html elements :
>
>style
>false
>true
>
>
>styleClass
>false
>true
>
>
>styleId
>false
>true
>
>
>you can alter the style using css till your hearts content :)
>
>Chris
>
>-Original Message-
>From: Erik Weber [mailto:[EMAIL PROTECTED]
>Sent: 10 August 2004 10:23
>To: Struts Users Mailing List
>Subject: html:file
>
>
>The "browse . . ." button that is rendered by html:file is sticking out 
>like a sore thumb. How can I change the text and/or style of this 
>particular button?
>
>Erik
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>***
>This e-mail and its attachments are confidential
>and are intended for the above named recipient
>only. If this has come to you in error, please 
>notify the sender immediately and delete this 
>e-mail from your system.
>You must take no action based on this, nor must 
>you copy or disclose it or any part of its contents 
>to any person or organisation.
>Statements and opinions contained in this email may 
>not necessarily represent those of Littlewoods.
>Please note that e-mail communications may be monitored.
>The registered office of Littlewoods Limited and its
>subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
>Registered number of Littlewoods Limited is 262152.
>
>
>
>-
>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 e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: html:file

2004-08-10 Thread McCormack, Chris
According to the tld for (I think all) html elements :

style
false
true


styleClass
false
true


styleId
false
true


you can alter the style using css till your hearts content :)

Chris

-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: 10 August 2004 10:23
To: Struts Users Mailing List
Subject: html:file


The "browse . . ." button that is rendered by html:file is sticking out 
like a sore thumb. How can I change the text and/or style of this 
particular button?

Erik


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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: About Struts + JBoss preference issue

2004-07-22 Thread McCormack, Chris
Depening on how you are obtaining a connection to the database, you may be seeing 
overhead in creating/destroying the object each time rather than poor SQL.
Try running an ExplainPlan(I use the EP built in to Toad by Quest software) over each 
SQL statement that does any table joins, you may be missing a join etc.

Chris

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich
Sent: 22 July 2004 12:10
To: [EMAIL PROTECTED]
Subject: Re: About Struts + JBoss preference issue


Because Struts is a layered application, you can stress test the 
performance of your data layer by itself. If the DAO is slow, or the SQL 
is slow,  then Struts can't serve it fast.

So, test the performance of DAO layer.
.V

Koon Yue Lam wrote:
> Hi ! My application has change from Struts + Tomcat to Struts + Jboss 3.X
> 
> I create various struts Actions to deal with incoming request, in the
> Action class, it preform remote lookup of session bean's home
> interface and create, destory ... it.
> 
> My session bean has an DAO attach to it to preform database related stuffs
> NO entiy beans in my application since transaction is not a problem
> and most DB query are read only
> 
> The question is the speed, it is much slower when I request an Action
> instead of directly request a servlet. Is it normal ? I don't mind a
> little bit preformance tradeoff but I want to know the delay is caused
> by Struts or something else.
> 
> Any help?
> 
> Regards


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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Validate at least one check box is checked

2004-07-21 Thread McCormack, Chris
yes thanks. How it relates to struts thought is another matter.

-Original Message-
From: Mazen, Tamer S [mailto:[EMAIL PROTECTED]
Sent: 21 July 2004 14:25
To: '[EMAIL PROTECTED]'
Subject: FW: Validate at least one check box is checked


> Dears,
> Does any one know how to implement 'at least one check box is checked' validation on 
> a list of checkboxes.
> Thanks 
> 
> Tamer Mazen
> Information Analyst
>  
> E  
> Egypt Solution Center (CMM L2 Organization)
> Commercial Professionals Syndicate Building, 5th floor
> 29 Emtedad Ramsis st., Nasr City, Cairo, Egypt
>  
> Phone:*   (202) 4882-897
> Fax:  1   (202) 3425-130
> Email:*   [EMAIL PROTECTED]
> 

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Best practice request - dynamic link to redraw page

2004-07-16 Thread McCormack, Chris
If you use this method, I would advise that you cross check the itemid to be removed, 
with the user attempting to remove the item session identifier. 
There is potential otherwise for a script kiddie to write a simple script that counts 
from 0-n and submit's each iteration to the remove action, in theory this would remove 
every item from every users basket if it run quick enough.
 
Either that or encrypt the itemkey that is written to the page.
 
Chris McCormack

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 July 2004 12:12
To: Struts Users Mailing List
Subject: Re: Best practice request - dynamic link to redraw page



Jon, 
The way it is managed is, while you paint the "delete" links in your HTML, you add a 
query string like this 

?itemid=xyz 

and then in your action class method obtain the value of this variable itemid ( 
obviously through form-bean) 
and this is how single statement can do the work 

Hope this answeres your query. 

Regards, 
Puneet Agarwal
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com 



"Jon Barber" <[EMAIL PROTECTED]> 


07/16/2004 04:22 PM 



Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>



To
"Struts Users Mailing List" <[EMAIL PROTECTED]> 

cc

Subject
Best practice request - dynamic link to redraw page






Dear All,

Trawled through the archive with no luck, but then I couldn't work out
the best search terms for this question, so...

I'm writing a shopping basket app with the usual requirements, and using
tiles which has made things a lot less painful. However, I have this one
problem that I can't work out a nice way to solve.

On every page of the basket the contents of the basket are shown in a
panel at the bottom of the page, and against each product is a 'delete'
hyperlink.  When the user clicks on this link the product should be
removed and the page refreshed to show the modified info.

My question is - how to code the logic to do the deletion of the product
in such a way that the refreshing of the page is handled in a nice way ?
I have the usual way of using an Action to populate the contexts to
render the page, and then an Action to process the users response. When
a product is removed I will have to delete the product & then redirect
the user back to the Action to populate the page all over again.

As far as I can see I have 2 options :

1. Have one Action that performs the product removal and that accepts a
URL as a parameter that then redirects the user using that URL. I will
have to place the necessary URL in the context so that when the page is
rendered the redirect URL is set correctly for wherever the user is.
Painful & not very nice - every populate Action will have to put the
correct URL for itself into the context.

2. Have a seperate Action for every single delete page so that each
instance knows where to send the user back to. Not much different from 1
& leads to a lot of Actions.

Any ideas ? 

Am I missing the obvious ? For example, for 1 can I simply use the
present request URL as the URL to redirect the user to to redraw the
page ?

Jon.

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


ForwardSourceID:NT20A6 



***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.




RE: How to Disable "open" button on "File Download" dialogue box. ...please urgent

2004-07-16 Thread McCormack, Chris
Maybe a change of career or invest some time reading up the technologies that appear 
on your CV ? Just a thought

-Original Message-
From: ganesh gadi [mailto:[EMAIL PROTECTED] 
Sent: 16 July 2004 09:52
To: [EMAIL PROTECTED]
Subject: How to Disable "open" button on "File Download" dialogue
boxplease urgent


Hi Friends,

i'm very happy to tell u my problems and get answers.

i need a solution how to disable "open" button on 
"File Download" dialog box.i want control on it.
Pls don't say no solution.Bcox i saw that type of
dialogue box...Now i require that feature.
pls let me know the solution asap.

I used the following code to appear "File Download
box"

httpServletResponse.setContentLength((int) f.length));
  
httpServletResponse.setContentType(mimeType);
   
httpServletResponse.setHeader("Content-Disposition","attachment;filename="+f
.getName());

os =httpServletResponse.getOutputStream();
stream = new FileInputStream(f);
bis = new BufferedInputStream(stream);
is = new BufferedInputStream(bis);
int count;
byte buf[] = new byte[4096];
while ((count = is.read(buf)) > -1)
os.write(buf, 0, count);


i'm using 
tomcat 5.0.19
Struts 1.1
IE 6.0
Windows 2000server

Thanks
Ganesh





__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: some best practices questions

2004-07-08 Thread McCormack, Chris
>users will fail over to another box with nothing in their session.

In some applications this is an acceptable risk if you have high uptime servers and 
very few code releases. 
If you however want a solid insurable "customer session" then using sticky sessions is 
not an option unfortunately.

Chris McCormack

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 14:54
To: 'Struts Users Mailing List'
Subject: RE: some best practices questions


The solution to this problem is to use a load balancer which knows about
sessions. mod_jk2 for Apache does this very well. 

With sticky sessions enabled the first request in a session goes, as you
say, to a low load box. All subsequent requests in that session will be sent
to the same box.

You don't have to make *any* changes to your application to support this.
The only downside (vs a 'real' cluster) is that in the event of a box dying
users will fail over to another box with nothing in their session.

Paul

> -----Original Message-
> From: McCormack, Chris [mailto:[EMAIL PROTECTED]
> Sent: 08 July 2004 14:09
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: some best practices questions
> 
> 
> >3) Users session is on that machine. The url for that 
> machine is machine123.msn.com.
> 
> You missed a few steps which outlines the problem with 
> clustered servers not being able to use session scope for a user :
> 
> -a user types in their login details on www.msn.com and hits "GO".
> 
> -the request hits www.msn.com and the load balancer assigns 
> the request to a low load box and rewrites 
> the url and forwards the request on ie serv1.msn.com
> 
> -the request lands at serv1.msn.com and the application on 
> serv1.msn.com services the request and pops a few things in 
> session scope for use later now it knows who the user is 
> because they just logged on, it then sends back a valid 
> response with the users page.
> 
> -the user gets his response and decides to click their 
> personalised news link www.msn.com/news
> 
> - we are then submitting a new request to www.msn.com. The 
> load balancer(front processor) may decide that serv1.msn.com 
> is under load or is not available for this request and sends 
> to serv24.msn.com. 
> 
> - The users session is not on this machine so the application 
> cannot obtain the info it needs about the user to proceed 
> with the request. The application has to :
>  a, get the user to relogin
>  b, fail horribly or with a nice smiley message :P
> 
> The ways around this have been to :
> 
>  c, use black magic to retrieve the users session
> 
> by black magic I mean cookies with a state id in/a sessionid 
> in the httpheader/session id in a url parameter/hidden form 
> field on a page that matches to a database/file/static 
> storage record containing the users session information.
> 
> The point is if you use load balanced application server 
> clustering its not straight forward to implement session 
> handling and everyone does it differently subject to their 
> applications needs.
> 
> Chris McCormack
> 
> -Original Message-
> From: Bryan Hunt [mailto:[EMAIL PROTECTED]
> Sent: 08 July 2004 13:00
> To: Struts Users Mailing List
> Subject: Re: some best practices questions
> 
> 
> The main arguments that people have against session storage 
> is the following
> 
> a) Excessive memory consumption limits scallability.
> True, just don't go crazy storing whole db's and stuff in there.
> 
>  b) Sessions can not be shared by webservers in clustered environment.
> 
> Clustered webservers with shared sessions are such a myth/stupid idea.
> Do it like hotmail.
> 
> 1) Request comes in to one of the front processor 
> machines selected by
> DNS server with multiple resolves for the same address.
> 
> 2) Choose a machine that that has resources to spare.
> 
> 3) Users session is on that machine. The url for that machine is
> machine123.msn.com.
> 
> 4) User logs off, the next time they come back their session is on
> some other machine.
> 
> I fail to see what the point of sharing sessions between machines is ?
> Even if the machine crashes, they just enter in the initial 
> address (ie
> hotmail.com ) and get sent to a working machine.
> 
> So my point is ... what's so bad about sessions ? 
> 
> Also if session ties you to a machine then file storage is 
> twice as bad.
> 
> --b
> 
> 
> 
> 
> 
> ***
> This e-mail and its attachments are confidential
> and are intended for the above named recipient
> only. If thi

RE: java.util.ConcurrentModificationException

2004-07-08 Thread McCormack, Chris
Without looking deeper in to this could it be a case of :

  while(it.hasNext()){
 MembershipTypeForm form = (MembershipTypeForm)it.next();
 value[count] = new MembershipTypeBeanValue();
 BeanUtils.copyProperties(value[count],form);   
 count++; // <-- this 
   }

-Original Message-
From: Richard Aukland [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 14:08
To: [EMAIL PROTECTED]
Subject: RE: java.util.ConcurrentModificationException


Thankyou Andrew,

I am probably being a total java kook as I am fairly new, but here is
my code;

//need to go through the membershipTypeForm and build array of value
objects which we update with data tier
Iterator it = membershipTypesForm.getMembershipTypes_().iterator();

MembershipTypeBeanValue value[] = new
MembershipTypeBeanValue[membershipTypesForm.getMembershipTypes_().size
()]; 

int count=0;
while(it.hasNext()){
MembershipTypeForm form = (MembershipTypeForm)it.next();
value[count] = new MembershipTypeBeanValue();
BeanUtils.copyProperties(value[count],form);
}


It is the Class cast which causes the exception, I assume that this
must not be possible then?

many thanks

Richard



When you iterate the vector in your action are you modifying its
contents in
any way (ie: using add or remove, etc...)?

-Original Message-
From: Richard Aukland [mailto:[EMAIL PROTECTED]
Sent: Thursday, 8 July 2004 20:46
To: [EMAIL PROTECTED]
Subject: java.util.ConcurrentModificationException


Dear All,

I am having problems with java.util.ConcurrentModificationException.

I have a FormBean memberForm which contains a Vector of
membershipTypeForms.

Whenever I try and access the membershipTypeForms through an iterator
in my Action, (Data Access class) I get the exception.

In my jsp I use  to iterate through the vector and
apart from this I dont seem to have any other iterators using the
collection.

Is the iterator tag likely to be the problem, if so does anybosy have
any idea how to fox this? or should I be searching through the rest
of my code for some kind of reference?

Many thanks for any help

Richard



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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: some best practices questions

2004-07-08 Thread McCormack, Chris
>3) Users session is on that machine. The url for that machine is machine123.msn.com.

You missed a few steps which outlines the problem with clustered servers not being 
able to use session scope for a user :

-a user types in their login details on www.msn.com and hits "GO".

-the request hits www.msn.com and the load balancer assigns the request to a low load 
box and rewrites 
the url and forwards the request on ie serv1.msn.com

-the request lands at serv1.msn.com and the application on serv1.msn.com services the 
request and pops a few things in session scope for use later now it knows who the user 
is because they just logged on, it then sends back a valid response with the users 
page.

-the user gets his response and decides to click their personalised news link 
www.msn.com/news

- we are then submitting a new request to www.msn.com. The load balancer(front 
processor) may decide that serv1.msn.com is under load or is not available for this 
request and sends to serv24.msn.com. 

- The users session is not on this machine so the application cannot obtain the info 
it needs about the user to proceed with the request. The application has to :
 a, get the user to relogin
 b, fail horribly or with a nice smiley message :P

The ways around this have been to :

 c, use black magic to retrieve the users session

by black magic I mean cookies with a state id in/a sessionid in the httpheader/session 
id in a url parameter/hidden form field on a page that matches to a 
database/file/static storage record containing the users session information.

The point is if you use load balanced application server clustering its not straight 
forward to implement session handling and everyone does it differently subject to 
their applications needs.

Chris McCormack

-Original Message-
From: Bryan Hunt [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 13:00
To: Struts Users Mailing List
Subject: Re: some best practices questions


The main arguments that people have against session storage is the following

a) Excessive memory consumption limits scallability.
True, just don't go crazy storing whole db's and stuff in there.

 b) Sessions can not be shared by webservers in clustered environment.

Clustered webservers with shared sessions are such a myth/stupid idea.
Do it like hotmail.

1) Request comes in to one of the front processor machines selected by
DNS server with multiple resolves for the same address.

2) Choose a machine that that has resources to spare.

3) Users session is on that machine. The url for that machine is
machine123.msn.com.

4) User logs off, the next time they come back their session is on
some other machine.

I fail to see what the point of sharing sessions between machines is ?
Even if the machine crashes, they just enter in the initial address (ie
hotmail.com ) and get sent to a working machine.

So my point is ... what's so bad about sessions ? 

Also if session ties you to a machine then file storage is twice as bad.

--b





***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: application configuration

2004-07-08 Thread McCormack, Chris
I have coded something similar to this but rather than pop the properties object in to 
the context I attached it to ThreadLocal.

Chris McCormack

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 12:26
To: Struts Users Mailing List
Subject: RE: application configuration


I tend to put such things in XML files rather than properties files
nowadays.

When the app starts up I have a plugin read the files and create
configuration objects (using Digester), and put these objects into the
servlet context (application scope) where my code can get at them easily.


-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of j h
Sent: Thursday, 8 July 2004 19:23
To: [EMAIL PROTECTED]
Subject: application configuration


If there are specific properties that need to be configured on deployment,
where should these be put? you could put these in the application.properties
file and read these in from an Action class every time they are needed:
MessageResources mr = getResources(request);
String config = mr.getMessage("configuration.detail");

This seems inefficient. Is there a way to read these into some global
variables?




-
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 e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: [Fwd: Lock Problem with Database]

2004-07-08 Thread McCormack, Chris
In that case : 
http://archives.java.sun.com/cgi-bin/wa?A2=ind9811&L=jserv-interest&F=&S=&P=18647

Chris McCormack

-Original Message-
From: Shailender Jain [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 12:11
To: [EMAIL PROTECTED]
Subject: [Fwd: Lock Problem with Database]


The database i am using is Informix 9.2

Shailender Jain wrote:

> Hi,
>
> If i try to update a table(emp) in my database from a temp
> table(temp_emp) and at the
> same time some other transaction try to read or update the same
> table(emp) then i
> get the SQLException.
>
> I am assuming that this problem may be related to some locks created on
> the table.
> Is there any way by which i can define something in web.xml or
> struts-config.xml so that there is no error coming.
>
> If it reduces the performance then it is ok, since i can't change the
> code of my application as i have already finished the
> development of the application.
>
> Thanks,
> Shailender Jain


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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Lock Problem with Database

2004-07-08 Thread McCormack, Chris
Look at using 'select for update' which will allow the row to be selectable by other 
users.

Chris McCormack

-Original Message-
From: Shailender Jain [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 12:10
To: [EMAIL PROTECTED]
Subject: Lock Problem with Database


Hi,

If i try to update a table(emp) in my database from a temp
table(temp_emp) and at the
same time some other transaction try to read or update the same
table(emp) then i
get the SQLException.

I am assuming that this problem may be related to some locks created on
the table.
Is there any way by which i can define something in web.xml or
struts-config.xml so that there is no error coming.

If it reduces the performance then it is ok, since i can't change the
code of my application as i have already finished the
development of the application.

Thanks,
Shailender Jain








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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: [OT] Speaking of "gratuitously difficult".....

2004-07-06 Thread McCormack, Chris
Can you not plug ANT in with eclipse ?

-Original Message-
From: Mike Duffy [mailto:[EMAIL PROTECTED]
Sent: 06 July 2004 14:48
To: Struts Users Mailing List
Subject: [OT] Speaking of "gratuitously difficult".


Speaking of "gratuitously difficult".

Has anyone ever messed with the "deploytool" in J2EE?

AHHGGG

I just want to deploy a simple war file.  I googled around and I could not even find 
good
documentation (Sun or elsewhere).

Does anyone know of a good plugin for Eclipse that creates war files?  I guess 
JBuilder has a good
war file creation utility.

Basically, shouldn't I be able to jar up everything in a webapp directory as long as I 
add the
correct "deployment descripter"?  I could not find an example of doing this.

Also, is it possible to create a war file that has a "context.xml" file?

I hate wasting time on stuff that should be simple.

Mike



--- Craig McClanahan <[EMAIL PROTECTED]> wrote:
> Bryan Hunt wrote:
> 
> > I think someone in sun just wanted to create something fancy 
> > regardless of
> > what the customers wanted just so he/she could put it on their cv.
> 
> Anyone who thinks this is the real reason hasn't read the technology 
> export restriction regulations that apply to US companies.  The 
> restrictions apply to the geographic location of the downloader, and 
> don't have anything to do with sessions or trying to make it more 
> gratuitously difficult to use command line tools.
> 
> Craig McClanahan
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Book recommendations

2004-07-06 Thread McCormack, Chris
The corner stone of most struts developers on this list is a copy of 'struts in 
action' by Ted Husted published by Manning.

A typical example on how you could use struts would be 'programming jakarta struts' by 
Chuck Cavaness and published by O'Reilly.

I would read them in that order too.

-Original Message-
From: Davis, Nick [mailto:[EMAIL PROTECTED]
Sent: 06 July 2004 15:39
To: 'Struts Users Mailing List'
Subject: Book recommendations


Hi All,

I am looking for a good Struts book. Does anyone have any recommendations?

-Nick

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: ClassCastException when usig multiple web applications

2004-07-06 Thread McCormack, Chris



change your tile-defs to not include the context name of your application ie 




Also, why place your jsp's under WEB-INF ? Is there a security concern you are trying 
to overcome ? or were they just put there for no reason ?


thanks
Chris McCormack

-Original Message-
From: Mathew Joseph [mailto:[EMAIL PROTECTED]
Sent: 06 July 2004 06:42
To: Struts Users Mailing List
Subject: RE: ClassCastException when usig multiple web applications


Hi

The context name of my  application is "am" .

Here is the sample code of action class, struts-config, tiles-def & web.xml ...


 ACTION CLASS  ***
//--- servlet ---
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;

//--- struts ---
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.actions.DispatchAction;


public final class ClassifiersAction extends DispatchAction
{
public static final String SOURCEREFID = "$Name: $; $Id: 
ClassifiersAction.java,v 1.0 2004/06/30 12:12:12 mathew Exp $";

private Vector messageVector;

/**
* Initial method for redirecting and loading Add,Search pages
*/
public ActionForward generalView(ActionMapping mapping,
 ActionForm 
form,
 
HttpServletRequest request,
 
HttpServletResponse response)
throws Exception
{
 String sOpr = (String)request.getParameter("qOpr");

if (sOpr != null)
{
if (sOpr.equals("add")) {
return mapping.findForward("addPage");
}
}
return mapping.findForward("defaultPage");
}
.
}


**struts-config.xml *


 

 
.



***tiles-defs.xml***


 
 






 

 
 
'

 
.



***web.xml*

  
action

  org.apache.struts.action.ActionServlet


  config
  /WEB-INF/config/struts-config.xml
    




Thanks 
Mathew






-Original Message-
From: McCormack, Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, July 05, 2004 7:38 PM
To: Struts Users Mailing List
Subject: RE: ClassCastException when usig multiple web applications


Please paste in a sample action and a sample tile-def. The more info the easier it is 
to help you out. Also the name of your deployed app (context name).

Chris McCormack

-Original Message-
From: Mathew Joseph [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 15:07
To: [EMAIL PROTECTED]
Subject: ClassCastException when usig multiple web applications


Hi,

We have deployed a ROOT application and another application called 'AM' in Tomcat 
4.1.30. Both applications use struts. In struts config file as well as tiles 
definition files we have given all paths relative to context. Following exception is 
thrown, when action class is accessed.


java.lang.ClassCastException
at 
org.apache.struts.tiles.TilesRequestProcessor.initDefinitionsMapping(TilesRequestProcessor.java:126)
at 
org.apache.struts.tiles.TilesRequestProcessor.init(TilesRequestProcessor.java:116)
at 
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:872)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache

RE: why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-07-05 Thread McCormack, Chris
This is the third time this has been posted isn't it ? 
IIRC it was answered quite well the second time it was asked. Look in to modjk and 
read the tomcat faq/manual.

Chris McCormack

-Original Message-
From: ganesh gadi [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 15:20
To: [EMAIL PROTECTED]
Cc: user
Subject: why do we need to integrate tomcat with apache webserver and
how.pls urgent


Hi List.

I've small doubt why we need to configure tomcat with apache  
webserver. 

 what is the neccessity of integration tomcat with apache web server.

 and also pls give me the steps to integrate it in details.
 
I am using 
 
OS :: windows 2000 Server
Apache HTTP Server v2.0.49
tomcat 5.0.16
JBuilder x Enterprise..
 
Please tell me neccesary steps to configure

awaiting ur reply
Ganesh





-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: ClassCastException when usig multiple web applications

2004-07-05 Thread McCormack, Chris
Please paste in a sample action and a sample tile-def. The more info the easier it is 
to help you out. Also the name of your deployed app (context name).

Chris McCormack

-Original Message-
From: Mathew Joseph [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 15:07
To: [EMAIL PROTECTED]
Subject: ClassCastException when usig multiple web applications


Hi,

We have deployed a ROOT application and another application called 'AM' in Tomcat 
4.1.30. Both applications use struts. In struts config file as well as tiles 
definition files we have given all paths relative to context. Following exception is 
thrown, when action class is accessed.


java.lang.ClassCastException
at 
org.apache.struts.tiles.TilesRequestProcessor.initDefinitionsMapping(TilesRequestProcessor.java:126)
at 
org.apache.struts.tiles.TilesRequestProcessor.init(TilesRequestProcessor.java:116)
at 
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:872)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)

Please help us in solving this issue.

Thanks & Regards,
Mathew Joseph

Alopa Networks
#50 , Vanivilas Road
Basavanagudi
Bangalore - 560004

Phone : 6618004  (204)
Fax : 6618057



***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Appending html:option to a html:link

2004-07-01 Thread McCormack, Chris
Shove any parameters from your map in to the queryString using jstl



  var queryString = "?";

would give you :

  var queryString = "?foo=bar&cheese=yummy";

(thats assuming each value in mapOfParams was a url param in the form "name=value" 
otherwise you would get queryString = "?foo&cheese"; if you see what I mean)

hth
Chris McCormack

-Original Message-
From: Chris Roderick [mailto:[EMAIL PROTECTED]
Sent: 01 July 2004 14:14
To: Struts Users Mailing List
Subject: RE: Appending html:option to a html:link


Thank you for your reply.

The only thing that is missing from this are the map of attributes that
I was originally appending to the html:link.  Is it a case of - you can
have one or the other?

Cheers,

Chris

> -Original Message-
> From: McCormack, Chris [mailto:[EMAIL PROTECTED]
> Sent: 01 July 2004 15:07
> To: Struts Users Mailing List
> Subject: RE: Appending html:option to a html:link
> 
> Dont think its possilbe unless you use a bit of javascript.
> As its lunchtime I have knocked out a bit of a solution in javascript
(not tested).
> 
> 
> 
> 
>   var queryString = "?";
>   var count = 0;
> 
> function appendToUrl(newValue){
> 
>   queryString +="&"+count+"="+newValue;
> 
> }
> 
> function doLink(link){
> 
>location.href=link+queryString;
> }
> 
> 
> 
> 
>  onChange="appendToUrl(this.options[selectedIndex].text)" size="1">
> 
>   DHTML
> 
>   Java
> 
> 
> 
> click
meh
> 
> -Original Message-
> From: Chris Roderick [mailto:[EMAIL PROTECTED]
> Sent: 01 July 2004 13:49
> To: [EMAIL PROTECTED]
> Subject: Appending html:option to a html:link
> 
> 
> Hi,
> 
> 
> 
> I have a JSP page that has a list of hml:links, each with a map of
> attributes appended e.g.:
> 
> 
> 
> 
> 
>   chart
> 
> 
> 
> 
> 
> (where attributes is a map).
> 
> 
> 
> On the same page, I have a html:select e.g.:
> 
> 
> 
> 
> 
>   DHTML 
> 
>   Java
> 
> 
> 
> 
> 
> When a user clicks on the link, I would like to append the currently
> selected option from the html:select to the link, without submitting
the
> form.
> 
> 
> 
> Does anybody know if this is possible, and if so - how?
> 
> 
> 
> Thank you in advance,
> 
> 
> 
> Chris
> 
> 
> ***
> This e-mail and its attachments are confidential
> and are intended for the above named recipient
> only. If this has come to you in error, please
> notify the sender immediately and delete this
> e-mail from your system.
> You must take no action based on this, nor must
> you copy or disclose it or any part of its contents
> to any person or organisation.
> Statements and opinions contained in this email may
> not necessarily represent those of Littlewoods.
> Please note that e-mail communications may be monitored.
> The registered office of Littlewoods Limited and its
> subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
> Registered number of Littlewoods Limited is 262152.
> 
> 
> 
> -
> 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 e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Appending html:option to a html:link

2004-07-01 Thread McCormack, Chris
Dont think its possilbe unless you use a bit of javascript. 
As its lunchtime I have knocked out a bit of a solution in javascript (not tested).




  var queryString = "?";
  var count = 0;

function appendToUrl(newValue){

queryString +="&"+count+"="+newValue;

}

function doLink(link){
   
   location.href=link+queryString;
}






  DHTML

  Java



click meh

-Original Message-
From: Chris Roderick [mailto:[EMAIL PROTECTED]
Sent: 01 July 2004 13:49
To: [EMAIL PROTECTED]
Subject: Appending html:option to a html:link


Hi,

 

I have a JSP page that has a list of hml:links, each with a map of
attributes appended e.g.:

 



  chart



 

(where attributes is a map).

 

On the same page, I have a html:select e.g.:

 



  DHTML 

  Java



 

When a user clicks on the link, I would like to append the currently
selected option from the html:select to the link, without submitting the
form.

 

Does anybody know if this is possible, and if so - how?

 

Thank you in advance,

 

Chris


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-30 Thread McCormack, Chris
>500 - No Context configured to process this request

means you are trying to request a url that has no context defined in your web 
applications on your appserver.

ie the generated page at : www.url.co.uk/context/action.do

contains a link help if you click this link it will give you 
the url

www.url.co.uk/help.do

this is outside of the /context application hence the 500 error. 

Try pre-pending the context from the request object to the start of your /help.do 
link. This will keep your request inside your application. 
Another thing to keep in mind if you use help then its a 
relative link to the page you are on at the time not from the root of the application.

Chris McCormack

-Original Message-
From: Jan Behrens [mailto:[EMAIL PROTECTED]
Sent: 30 June 2004 10:11
To: 'Struts Users Mailing List'
Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status
500 - No Context configured to process this request


Hi Adam,

I am new to Struts so this is more of a shot in the dark but anyway... Could
it be that the problem is that you only have one global forward pointing to
your login? So from a controll flow point of view wouldn't that mean that
you can only access login.do as an entry to your system? Have you tried
adding a global forward for your help.do as well?

Cheers, Jan

-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 7:31 PM
To: 'Struts Users Mailing List'
Subject: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No
Context configured to process this request


Folks,


I have a strange problem that is confusing me:

I have a simple login page with a Help button defined like this:

"


When pressed, the JavaScript displayHelp() method below is called:

function displayHelp(context)
{
 [snip]

  var url = ""  
  url += "?context=" + context;

 [snip]

  window.open(url, "HelpWindow", windowOptions);
}



This page is the first page that the user sees, having been redirected from
index.jsp like this:






The problem is that before a user logs in, pressing the "Help" button
results in the error "HTTP Status 500 - No Context configured to process
this request" being displayed. 

However after a user logs in (and presses the browser back button to return
to the login page) the link works fine and the help is displayed OK.


Its as if the act of logging in sets up a context within which the actions
work



The relevant bits of my struts-config looks like this:


 


 
   
 

 
  
  
 



Does anyone know what is going on here?
Why does the "/help.do" action URL work after the user has logged in but not
before? 
Is it to do with the fact that no action has been called before the log in
takes place?



TIA - Adam



-
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 e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Struts, Dreamweaver, and JSP

2004-06-29 Thread McCormack, Chris
use wget -r http://www.site.co.uk to save your html to disk then run the validator 
over the saved files.

Chris

-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 16:40
To: Struts Users Mailing List
Subject: RE: Struts, Dreamweaver, and JSP


> -Original Message-
> From: josh [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 8:24 AM
> To: Struts Users Mailing List
> Subject: RE: Struts, Dreamweaver, and JSP
> 
> 
> On Tue, 2004-06-29 at 10:13, McCormack, Chris wrote:
> > > Are there any tools that allow one to validate the html 
> that is generated by the jsp/struts tags?
> > http://validator.w3.org/
> 
> Ok, perhaps I didn't phrase that correctly.  Are there any tools that
> allow one to validate a JSP.  I know that the resulting HTML 
> depends on
> the underlying java code and so validation is a problem, but I am
> looking for something to make this easier.  I thought that 
> perhaps there
> was a better way than having to click through the app, saving the HTML
> source for each page, then running through a standard validator.  Or
> maybe this is just wishful thinking.

I typically validate the surrounding html, and hope that struts/jstl is generating 
good html. If it's not, then there is probably little I can do anyway.   I have also 
been known to employ a web crawling tool to crawl the site and save the pages to disk 
and then run validation on those pages.  It's a shell script I wrote though.  


> 
> 
> 
> 
> 
> > hth
> > Chris
> > 
> > -Original Message-
> > From: josh [mailto:[EMAIL PROTECTED]
> > Sent: 29 June 2004 16:11
> > To: Struts Users Mailing List
> > Subject: Struts, Dreamweaver, and JSP
> > 
> > 
> > I am resposible for the visual aspect of a number of struts based
> > applications and I was wondering if anyone knows of any way 
> to deal with
> > struts tag standards and jsp tag standards in dreamweaver.  
> I also have
> > to do validation to ensure the apps are compliant and 
> accessible.  Are
> > there any tools that allow one to validate the html that is 
> generated by
> > the jsp/struts tags?
> > 
> > 
> > josh
> > ***
> > 
> > ***
> > This e-mail and its attachments are confidential
> > and are intended for the above named recipient
> > only. If this has come to you in error, please 
> > notify the sender immediately and delete this 
> > e-mail from your system.
> > You must take no action based on this, nor must 
> > you copy or disclose it or any part of its contents 
> > to any person or organisation.
> > Statements and opinions contained in this email may 
> > not necessarily represent those of Littlewoods.
> > Please note that e-mail communications may be monitored.
> > The registered office of Littlewoods Limited and its
> > subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
> > Registered number of Littlewoods Limited is 262152.
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> -- 
> Joshua Cronemeyer
> Developer
> accessKansas - a service of the Information Network of Kansas, Inc.
> www.accesskansas.org <http://www.accesskansas.org/>
> 785-296-2816 (phone)
> 785-296-5563 (fax)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 
> ***
> CONFIDENTIALITY NOTICE:
> This E-mail and any attachments are confidential.  If you are not the
> intended recipient, you do not have permission to disclose, copy,
> distribute, or open any attachments.  If you have received this E-mail
> in
> error, please notify us immediately by returning it to the sender and
> delete
> this copy from your system.
> 
> Thank you.
> accessKansas
> ***
> 
> 
> -
> 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 e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail f

RE: Struts, Dreamweaver, and JSP

2004-06-29 Thread McCormack, Chris
> Are there any tools that allow one to validate the html that is generated by the 
> jsp/struts tags?
http://validator.w3.org/

hth
Chris

-Original Message-
From: josh [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 16:11
To: Struts Users Mailing List
Subject: Struts, Dreamweaver, and JSP


I am resposible for the visual aspect of a number of struts based
applications and I was wondering if anyone knows of any way to deal with
struts tag standards and jsp tag standards in dreamweaver.  I also have
to do validation to ensure the apps are compliant and accessible.  Are
there any tools that allow one to validate the html that is generated by
the jsp/struts tags?


josh
***

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Please Help Me To Convert My JSP Scripting Elements To Tags

2004-06-21 Thread McCormack, Chris
If you use 
then  will work on the same JSP. 

Otherwise 
is required for the variable to be available at 

*Note the case of totalPosts and TotalPosts above and the scope variable used*

Without calling a c:set method (and the variable TotalPosts exists on the request)
then  should work fine.

It can get confusing when using similiarly named variables or same name different case 
variables.
You should try and avoid it for sake of your sanity and readability :)

hth
Chris McCormack

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: 21 June 2004 16:09
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Please Help Me To Convert My JSP Scripting Elements To
  Tags


> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED] 
> 
> I am converting all the scripting elements in my JSP
> to  tags.  I have decided to go one step at
> the time -- I only want to print out one basic number
> as a start.
> 
>  My action class passes an object "TotalPosts" in
> the following way to my JSP:
> 
> request.setAttribute( "TotalPosts", new Integer(
> totalPosts ) );
> return ( mapping.findForward( "success" ) );

First of all, you probably should use property names that begin with a
lowercase letter.  It just might work beginning with a capital, but you
also may run into unexpected trouble.

> Now, I have the struts-html-el.tld downloaded and put
> the following in my application's web.xml file:
> 
>   
> /tags/struts-html-el
>
> /WEB-INF/lib/struts-html-el.tld
>   
> 
> And in my JSP, I imported the following:
> 
> <%@ taglib uri="/tags/struts-html-el" prefix="html" %>
> <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
> <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
> <%@ taglib uri="/tags/tiles" prefix="tiles" %>

Assuming you're using a standard Servlet 2.3 container, you might
consider using the "normalized" URI for each taglib (the value of the
"uri" property in the tld).  This allows you to avoid having to store
the TLD separately from the taglib jar, and avoids the need to add the
taglib element to your web.xml.  It still requires the taglib directive
in the JSP (using the normalized URI).

Also, as another posted pointed out, you're missing the "core" taglib
directive.  Without that, your reference to the "c:out" tag would have
been untranslated (the html output would still contain "".

> I replaced:
> 
> int totalPosts = ( ( Integer )request.getAttribute(
> "TotalPosts" ) ).intValue();
> with 
>  value="${requestScope.TotalPosts}" />

Note that there's no need to do this.  If the variable is already
available in request scope, there's no need to set it into another
variable in page scope.

> And I replaced:
> 
> <%=totalPosts%>
> with
>  
> 
> I cannot print out anything.  I got a 'BLANK'.
> 
> There must be something I missed.  What did go wrong?

If your property name was "totalPosts", instead of "TotalPosts", and you
had the correct taglib directive in your JSP, then this should have
worked.

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Java / MySQL

2004-06-21 Thread McCormack, Chris
http://dev.mysql.com/downloads/connector/j/3.0.html

I have used connectorJ from (so far) swing apps, web based content tools, IRC control 
bots, gaming server interface gui's among various test applications.

Chris McCormack

-Original Message-
From: Asim Ghosh [mailto:[EMAIL PROTECTED]
Sent: 21 June 2004 11:18
To: Struts Users Mailing List
Subject: Re: Java / MySQL


hi,
 
   yes i have used mysql with java using jdbc type IV
 


"Le Goff, Yoann" <[EMAIL PROTECTED]> wrote:
hi,
is somebody use MySQL width Java ?

what kind of client do u use ?

Thanx !


Y.


-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: [OT] Soccer portal released goal.com

2004-06-17 Thread McCormack, Chris
I for one appreciate the post Simone. Its a good looking site and its
nice to see work that developers have spent time on and are proud of.

Good job !

Chris McCormack

-Original Message-
From: Simone-dev [mailto:[EMAIL PROTECTED]
Sent: 17 June 2004 15:02
To: Struts Users Mailing List
Subject: Re: [OT] Soccer portal released goal.com


I'm just a developer... :-)
I did the serverside development and the javascript + dhtml (menu)
The rest, desing, css, layout design and so on was developed by a 
webdesigner

I'm working on this engine since november

Simone

Robert Taylor wrote:

>Wow! Cool site. Good job. Did you do all page authoring(javascript, css, dhtml, 
>graphics, etc...)
>or just server side development (architecture, site design/structure, functionality, 
>etc...)?
>How long did it take to design and implement?
>
>robert
>
>  
>
>>-Original Message-
>>From: Simone - Dev [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, June 17, 2004 8:25 AM
>>To: 'Struts Users Mailing List'
>>Subject: [OT] Soccer portal released goal.com
>>
>>
>>Hello All,
>>I know this is a lot off-topic, but I'm so proud of the portal I
>>designed and developed that I'd like you all know that it has just been
>>released a worldwide soccer portal named Goal.com (www.goal.com) and
>>that now it's having a lot of news and live results and live netcasting
>>on the european championship 2004.
>> 
>>I aplogize for the "invasion" also becuase it's not developed in Struts,
>>but with ASP.NET but as I said, it took me the last 6 month of work
>>to develop the engine that drives that portal (and all its netwok: all
>>main italian soccer teams).
>> 
>>I use Struts in my spare time but in my "real" work I develop with .NET
>>and C# (not my decision, of course)... but I prefer Struts.
>> 
>>Simone
>>-
>>Simone Chiaretta
>>  www.piyosailing.com/S
>>Any sufficiently advanced technology is indistinguishable from magic
>>"Life is short, play hard"
>> 
>>
>>
>>
>
>-
>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 e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE:

2004-06-14 Thread McCormack, Chris
Struts in Action - Ted Husted (Manning)
Programming Jakarta Struts - Chuck Cavaness (O'Reilly)

Both very good books and should both be read to get a good all round view of struts.

hth
Chris McCormack

-Original Message-
From: gitanjali [mailto:[EMAIL PROTECTED]
Sent: 14 June 2004 11:33
To: [EMAIL PROTECTED]
Subject: Hi:


Hi All,
 I m a new user of struts.still on R&D.on my forthcoming project i m going to 
work on struts.can any body suggest me a really good book for struts ?
 
Thnx in advance.
 
Anjali

Yahoo! India Matrimony: Find your partner online.

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Are there any IDE's that understand Struts tags?

2004-05-27 Thread McCormack, Chris
I have had problems in the past getting a "web developer" from a number of design 
companies that 
a. understands what struts/jstl is
b. understands how to change html not using DW with no reworking by a java developer 
of any tags after the redesign

In my experience it has been easier to either 
a. provide a static screen in Photoshop to the designer for building up in a gui of 
their choice. A java dev then needs to insert the jstl etc in to the page and ensure 
it still maintains the design/layout after dynamic elements have been added.
b. get a java dev that has the ability to rework/create the html inside the jsps to 
the required design.


a. is easier up front but more work in the long run as it involves a lot more work for 
the java dev (especially if you are using tiles).
b. is more work at first but works out better in the long run and has more benefits. 


There has been mention of a struts gui editor on this list before. You may want to 
check the history for the threads with struts+gui or struts+ide in them. I personally 
use JDeveloper+Ultraedit32.


Chris McCormack

-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
Sent: 27 May 2004 09:40
To: 'Struts Users Mailing List'
Subject: Are there any IDE's that understand Struts tags?


Folks,

I am developing a J2EE server using Struts. The JSPs will be constructed by
a web developer who is used to DreamWeaver. 

I imported the Struts tag libraries into DW, but the "design view" doesn't
work. 
He cant layout the pages visually. 

Is this a limitation of DW? 
Are there any web IDE's that understand Struts tags and allow a design view
to be used?


TIA Adam




***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: java.lang.OutOfMemoryError after server app start/stop cyclin g

2004-05-14 Thread McCormack, Chris
Type java -X in a windows shell and look at setting some of the below options in your 
environment using JAVA_OPTS

 -Xmsset initial Java heap size
 -Xmxset maximum Java heap size
 -Xssset java thread stack size

I alse use this to allocate more memory to ant at build time for a large application. 
'set ANT_OPTS=-Xmx512m' (in a .bat) or pop it in your environment profile.

Chris McCormack

-Original Message-
From: Daniel Perry [mailto:[EMAIL PROTECTED]
Sent: 14 May 2004 10:54
To: Struts Users Mailing List
Subject: RE: java.lang.OutOfMemoryError after server app start/stop
cyclin g


I'm using jdk1.4.2_04, and it still happens!

Here are some of my observations on the issue:

1. I did once develop some software using servlets/jsps. I never came accross this 
problem.  However, as jsps are automatically releaded, and this app was mainly jsp 
based, i dont remeber doing any restarting :)

2. running a memory intensive / complex app, it runs out of memory a lot quicker :)

3. If i run the stopapp and startapp ant tasks in a loop it runs out of memory with my 
struts app pretty quickly.  Doing the same thing to axis takes a lot longer.

So, i figure its not restricted to struts.

Anyway, still cant figure out how to increase max memory if it's running as a windows 
service?

Daniel.




-Original Message-
From: Jignesh Patel [mailto:[EMAIL PROTECTED]
Sent: 14 May 2004 04:45
To: Struts Users Mailing List; Heinle, Chuck
Subject: Re: java.lang.OutOfMemoryError after server app start/stop
cyclin g


As per my knowledge the bug of OutOfMemory is related to version less then 
jdk1.4. It has been solved in the 1.4.

-Jignesh
On Thursday 13 May 2004 23:30, Heinle, Chuck wrote:
> We have a similar problem with WebLogic 8.1 SP2...I was told by an
> associate that there is a 1.4.2_02 bug related class loading that might
> associated with the OutOfMemory.
>
> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 1:52 PM
> To: Struts Users Mailing List
> Subject: RE: java.lang.OutOfMemoryError after server app start/stop cycling
>
> At 6:07 PM +0100 5/13/04, Daniel Perry wrote:
> >Putting up the maximum memory Xmx does help as it gives it more memory to
> >use up, but only delays the inevitable :)
> >
> >Is this a struts issue? or does it happen with all tomcat apps?
>
> It happens with every servlet container I've used.  My understanding
> is that to redeploy a webapp, app servers generally discard the
> classloader they have been using and make a new one.  For various
> reasons, this can leave orphan objects which are never garbage
> collected.  If enough of these accumulate, you run out of memory.
>
> Admittedly, I use Struts in all these cases, you might argue that
> it's a Struts issue, since that's the common feature, but I can't
> think of anyways Struts is being particularly careless in a way that
> would aggravate this problem.
>
> I may have a completely wrong understanding of the problem too, but
> this is how we explain it to ourselves around here!
>
> Joe

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

-
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 e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions co

RE: tiles-cookie problem

2004-05-07 Thread McCormack, Chris
Hi Marco

"Lose all the cookies" Can you elaborate on the losing part.

Are you setting cookies on the response and they are not being written ? 
Are you setting cookies and then the next request they are gone ?
Are the cookies inaccessible but do exist when you check your cookies using another 
method ?
Something other than the above ?

The more detailed you can be the easier it is to help you.


Chris McCormack

-Original Message-
From: Marco Rossi [mailto:[EMAIL PROTECTED]
Sent: 07 May 2004 11:50
To: [EMAIL PROTECTED]
Subject: tiles-cookie problem


Hi,
I modify the Bc4jRequestProcessor (JDeveloper 9.0.3) to use tiles [originally it 
extends RequestProcessor, now extends TilesRequestProcessor]. All works fine, but 
sometimes I lose all the cookies.
Any suggestion?

Thanks,
Marco


Cerchi un laboratorio fotografico aperto 24 ore su 24?
Stampa le tue foto digitali su Kataweb e le ricevi a domicilio in 48 ore.
http://www.kataweb.it/foto


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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Test, please ignore

2004-05-05 Thread McCormack, Chris
Damn my inability to follow simple instruction :)

-Original Message-
From: Chaikin, Yaakov Y (US SSA)
[mailto:[EMAIL PROTECTED]
Sent: 04 May 2004 17:23
To: [EMAIL PROTECTED]
Subject: Test, please ignore


Thanks.


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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: [slightly OT] defensive strategy

2004-04-13 Thread McCormack, Chris
Interesting problem. 
You could implement image tickets, ie for every user that wants to submit a form you 
generate a random sequence of characters as an obscured image. To enable the user to 
submit the form they have to visually read and enter the code displayed in the image.
A simpler but less sound option would be to write a session and persistent cookie to 
the user after their initial submission.

Someone else on the list may have dealt with a similar problem and have a better 
solution :)

hth
Chris

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: 13 April 2004 11:23
To: Struts Users Mailing List
Subject: [slightly OT] defensive strategy


Sorry for posting this OT question but I've got an issue that people on 
this list are very likely to have tackled:

I am developing a traditional online survey app, the kind of thing that 
alot of people must have done. I am wondering how to protect it from 
script-kiddies who might want to see if they can bombard it with fake 
votes.

It's basically public and anyone can take part in the surveys it will run.

I put a switch to check for a flag in the session so that people don't 
vote more than once from the websites where the surveys will be deployed.

But I am worried that kids writing scripts will not be stopped by 
session flags. Is it worth writing an algorithm to store the IP 
addresses used for the last hour? Or can they spoof IP addresses?

If it is useful noting the IP addresses, how best should I store them? 
In a hashtable in application scope? In the database? In a session EJB?

Thanks!





-- 
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian


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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: [FRIDAY OT] .net or websphere?

2004-04-05 Thread McCormack, Chris
Buy the civic but put reay big tyres on it and wear a helmet and leathers whenever 
you drive it. 

Debate ? What for :)

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: 02 April 2004 18:52
To: Struts Users Mailing List
Subject: Re: [FRIDAY OT] .net or websphere?


On Fri, 2 Apr 2004 [EMAIL PROTECTED] wrote:

That sounds like trying to decide whether to buy a truck, a motorcycle, or
a Honda Civic.


> Hi, our group will have a debate over the superiority of .Net vs that of
> Websphere.. I have never used .net.
> Can anyone give me any feedback on it?
>
> Any feedback is appreciated..
> have a nice weekend!
>
>
> Julie
>
>
> = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
> This transmittal and any attachments may contain confidential, privileged or 
> sensitive information and is solely for the use of the intended recipient. If you 
> are not intended recipient, you are hereby notified that you have received this 
> transmittal and any such attachments in error and any review, dissemination, 
> distribution or copying thereof is strictly prohibited. If you have received this 
> transmittal and any attachments in error please notify the sender and immediately 
> destroy the message and all its attachments. Any opinions herein expressed may be 
> those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). 
> The Bank accepts no responsibility for the accuracy or completeness of any 
> information herein contained.
> = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
>
>

-- 
James Mitchell
Software Developer / Open Source Evangelist
EdgeTech, Inc.




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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: Javascript event on click of Stop button[OT]

2004-04-02 Thread McCormack, Chris
>It's not exactly struts related but regarding javascript function.
Then by your own admission it has nothing to do with this list.

Use google and find a related forum more suited for your questions.

Chris McCormack

-Original Message-
From: Prasad, Kamakshya [mailto:[EMAIL PROTECTED]
Sent: 02 April 2004 13:52
To: Struts Users Mailing List
Subject: Javascript event on click of Stop button


Hi All,
 
It's not exactly struts related but regarding javascript function.
 
We have a requirement where after submission of form if user clicks on
"Stop" button of the browser we have to display a message. Is it
possible to capture this event?
 
KP

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



RE: changing two frames at one time

2004-04-01 Thread McCormack, Chris
This is not a struts related issue its Html and Javascript related, as seem to be a 
lot of other posts in this list lately.

http://developer.irt.org/script/script.htm <- great JS reference
in particular
http://developer.irt.org/script/frame.htm


Chris McCormack

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: 01 April 2004 08:35
To: Struts-User (E-Mail)
Subject: changing two frames at one time


Hi,

I have three frames. If I click a link in one frame, I want to change the other two 
frames.

Is this possible with Struts?


Regards,

Frank

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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