Re: Sending Binary Files from Action

2004-11-26 Thread Niall Pemberton
Rather than answer you here, I've created a page on the wiki with
examples...

http://wiki.apache.org/struts/StrutsFileDownload

I haven't actually used DownloadAction myself - but I am doing the same sort
of thing in my application.


Niall

- Original Message - 
From: "Richard" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 26, 2004 5:40 AM
Subject: Re: Sending Binary Files from Action


> Hi Niall,
>
> Forgive but im a newbie. I dont know how I can use this. Definitely I
> will need to change my struts jar files. But do I extend this action
> or use it statically. What method do I use?
>
> Thanks
> Richard
>
>
> On Fri, 26 Nov 2004 05:32:09 -, Niall Pemberton
> <[EMAIL PROTECTED]> wrote:
> > Theres a new DownloadAction in Struts 1.2.6:
> >
> >
http://struts.apache.org/api/org/apache/struts/actions/DownloadAction.html
> >
> > Niall
> >
> >
> >
> > - Original Message -
> > From: "Richard" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, November 26, 2004 5:18 AM
> > Subject: Sending Binary Files from Action
> >
> > > Hi Guys,
> > >
> > > I have created an expiring download link ( sent to users ) throiugh
> > > the use of tokens and actions. Now I have not the slightest idea how
> > > am I going to send the file to the user inside my actions. Can I use
> > > forwards over this? please help.
> > >
> > > Thanks
> > > Richard
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: Whats in Version 1.2.6?

2004-11-26 Thread Mark Lowe
Niall

Just a question on LazyDynaForm. I'm already sold on the benefits for
JSP folf to be able to knock out JSPs before ActionForms are written.
But how does the LazyDynaForm perform? When I experimented with
implementing MutableDynaClass few years ago I found it heavy going
(this was with java 1.3 however).

Like I said I already see the benefits from a development point of
view, and even that LazyDynaForm is better that no action forms at all
(stuffing model tier objects in and such like). But I'm wondering
whether you've any live apps using LazyDynaForm.

Mark


On Fri, 26 Nov 2004 01:25:59 -, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> I've set up a page describing whats in Version 1.2.6 of Struts here:
> 
> http://www.niallp.pwp.blueyonder.co.uk/strutsversion126.html
> 
> Also a page on highlighting errors here:
> 
> http://www.niallp.pwp.blueyonder.co.uk/strutshighlight.html
> 
> Niall
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Sending Binary Files from Action

2004-11-26 Thread Dakota Jack
Hello, Niall,

Nice addition.  Let me suggest that you indicate how to apply the
content-disposition header with filename.  That is where my knowledge
runs out at this time.  The difference in the JSP page between inline
and attachment is what has me puzzled.  I could just try various
options and see what happens, but I like to understand these things.

Is the idea that where the header is inline the same browser page will
display the file whereas with attachment the brownser will keep the
same page and ask where you would like to store the downloaded file? 
Thanks.

Jack


On Fri, 26 Nov 2004 08:06:46 -, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> Rather than answer you here, I've created a page on the wiki with
> examples...
> 
> http://wiki.apache.org/struts/StrutsFileDownload
> 
> I haven't actually used DownloadAction myself - but I am doing the same sort
> of thing in my application.
> 
> 
> 
> 
> Niall
> 
> - Original Message -
> From: "Richard" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, November 26, 2004 5:40 AM
> Subject: Re: Sending Binary Files from Action
> 
> > Hi Niall,
> >
> > Forgive but im a newbie. I dont know how I can use this. Definitely I
> > will need to change my struts jar files. But do I extend this action
> > or use it statically. What method do I use?
> >
> > Thanks
> > Richard
> >
> >
> > On Fri, 26 Nov 2004 05:32:09 -, Niall Pemberton
> > <[EMAIL PROTECTED]> wrote:
> > > Theres a new DownloadAction in Struts 1.2.6:
> > >
> > >
> http://struts.apache.org/api/org/apache/struts/actions/DownloadAction.html
> > >
> > > Niall
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Richard" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Friday, November 26, 2004 5:18 AM
> > > Subject: Sending Binary Files from Action
> > >
> > > > Hi Guys,
> > > >
> > > > I have created an expiring download link ( sent to users ) throiugh
> > > > the use of tokens and actions. Now I have not the slightest idea how
> > > > am I going to send the file to the user inside my actions. Can I use
> > > > forwards over this? please help.
> > > >
> > > > Thanks
> > > > Richard
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 


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



Re: Whats in Version 1.2.6?

2004-11-26 Thread Niall Pemberton
Good question, I do have live apps running with it, but performance isn't an
issue for me, its an internal app and I don't have zillions of users and my
boss just bought me a new big mother of a server (I kicked up a fuss after
he bought one for some app from the Evil Empire he was implementing)

The regular DynaActionForm's cache their DynaClass, so I guess if it was an
issue it might be worth doing something similar. I have a persistence
framework that spits out LazyDynaBeans - and it does just that - it generate
a LazyDynaClass for each table/query, caches it and re-uses it each time. It
would be fairly straight forward to do for Lazy ActionForms, just need to
extend FormBeanConfig and implement something in the createActionForm()
method. Hey how about this for an idea - just have one big mega
LazyDynaClass that has every request parameter in your system in - just need
to synch the bit that adds new properties if it doesn't exist!

Anyway, I've managed to babble on long enough without answering your
question :-(

Niall

- Original Message - 
From: "Mark Lowe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 26, 2004 8:19 AM
Subject: Re: Whats in Version 1.2.6?


> Niall
>
> Just a question on LazyDynaForm. I'm already sold on the benefits for
> JSP folf to be able to knock out JSPs before ActionForms are written.
> But how does the LazyDynaForm perform? When I experimented with
> implementing MutableDynaClass few years ago I found it heavy going
> (this was with java 1.3 however).
>
> Like I said I already see the benefits from a development point of
> view, and even that LazyDynaForm is better that no action forms at all
> (stuffing model tier objects in and such like). But I'm wondering
> whether you've any live apps using LazyDynaForm.
>
> Mark
>
>
> On Fri, 26 Nov 2004 01:25:59 -, Niall Pemberton
> <[EMAIL PROTECTED]> wrote:
> > I've set up a page describing whats in Version 1.2.6 of Struts here:
> >
> > http://www.niallp.pwp.blueyonder.co.uk/strutsversion126.html
> >
> > Also a page on highlighting errors here:
> >
> > http://www.niallp.pwp.blueyonder.co.uk/strutshighlight.html
> >
> > Niall
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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



Re: Sending Binary Files from Action

2004-11-26 Thread Richard
Hi Niall,

Thank you very much. The thing is I have found a sample application
that uses the DownloadAction. Discussion is at
http://www.mail-archive.com/dev@struts.apache.org/msg04600.html while
the source codes are at http://www.omnytex.com/downloadapp.zip.

I think I have a working version now and will stick to it. Again thank
you very much.
Richard


On Fri, 26 Nov 2004 08:06:46 -, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> Rather than answer you here, I've created a page on the wiki with
> examples...
> 
> http://wiki.apache.org/struts/StrutsFileDownload
> 
> I haven't actually used DownloadAction myself - but I am doing the same sort
> of thing in my application.
> 
> 
> 
> 
> Niall
> 
> - Original Message -
> From: "Richard" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, November 26, 2004 5:40 AM
> Subject: Re: Sending Binary Files from Action
> 
> > Hi Niall,
> >
> > Forgive but im a newbie. I dont know how I can use this. Definitely I
> > will need to change my struts jar files. But do I extend this action
> > or use it statically. What method do I use?
> >
> > Thanks
> > Richard
> >
> >
> > On Fri, 26 Nov 2004 05:32:09 -, Niall Pemberton
> > <[EMAIL PROTECTED]> wrote:
> > > Theres a new DownloadAction in Struts 1.2.6:
> > >
> > >
> http://struts.apache.org/api/org/apache/struts/actions/DownloadAction.html
> > >
> > > Niall
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Richard" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Friday, November 26, 2004 5:18 AM
> > > Subject: Sending Binary Files from Action
> > >
> > > > Hi Guys,
> > > >
> > > > I have created an expiring download link ( sent to users ) throiugh
> > > > the use of tokens and actions. Now I have not the slightest idea how
> > > > am I going to send the file to the user inside my actions. Can I use
> > > > forwards over this? please help.
> > > >
> > > > Thanks
> > > > Richard
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> 
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



RE: Client side validation broken when using DynaValidatorActionForm.

2004-11-26 Thread Daffin, Miles (Company IT)
David,

Many thanks.

-Miles 

> -Original Message-
> From: David G. Friedman [mailto:[EMAIL PROTECTED] 
> Sent: 25 November 2004 17:49
> To: Struts Users Mailing List
> Subject: RE: Client side validation broken when using 
> DynaValidatorActionForm.
> 
> Miles,
> 
> Validation based on actions has that slash-in-the-name 
> related problem.  You can specify a name for the validation 
> method using the html:javascript attribute method="...".  
> Just be sure to change your html:form's onsubmit to invoke 
> that new method name.  For example:
> 
>  method="validateForm" />  onsubmit="return(validateForm(this));">
> 
> Just use the name "validateForm" or change it to any valid 
> JavaScript method name of your choice.  For more details see:
> 
> http://forum.java.sun.com/thread.jspa?forumID=45&messageID=267
> 4439&threadID=
> 548445
> http://homepage2.nifty.com/ymagic/struts/OtherTranslate/Struts
> Validator/jspt
> ags-jp.html
> 
> Regards,
> David
> 
> -Original Message-
> From: Daffin, Miles (Company IT) 
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 25, 2004 11:38 AM
> To: Struts Users Mailing List
> Subject: Client side validation broken when using 
> DynaValidatorActionForm.
> 
> 
> Hi All,
> 
> Apologies if this one has already been covered (I searched the list).
> 
> I am using struts 1.1 with one DynaValidatorActionForm for 
> holding data from multiple jsp forms (wizard style reg form).
> 
> The server side validation works fine but the generated 
> javascript is broken. The name of the form validating 
> function is taken directly from the form name attribute in 
> the form-validation formset (validation.xml), and this 
> contains '/' characters because it is the path to the relevant action.
> 
> Is this a bug, or am I misusing/misunderstanding something?
> 
> Thanks.
> 
> -Miles
> 
> Miles Daffin
> Morgan Stanley
> 20 Cabot Square | Canary Wharf | London E14 4QA | UK
> Tel: +44 (0) 20 767 75119
> [EMAIL PROTECTED] 
> 
> 
> NOTICE: If received in error, please destroy and notify 
> sender.  Sender does not waive confidentiality or privilege, 
> and use is prohibited.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

 
NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited. 
 

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



Re: Sending Binary Files from Action

2004-11-26 Thread Niall Pemberton
Dam, should pay more attention to the lists :-(

Anyway, I've add a link to it on that new wiki page. Thanks for pointing it
out. Listen if you have it working and theres stuff you learn from doing
it - feel free to update the wiki page.

Niall
- Original Message - 
From: "Richard" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 26, 2004 8:54 AM
Subject: Re: Sending Binary Files from Action


> Hi Niall,
>
> Thank you very much. The thing is I have found a sample application
> that uses the DownloadAction. Discussion is at
> http://www.mail-archive.com/dev@struts.apache.org/msg04600.html while
> the source codes are at http://www.omnytex.com/downloadapp.zip.
>
> I think I have a working version now and will stick to it. Again thank
> you very much.
> Richard
>
>
> On Fri, 26 Nov 2004 08:06:46 -, Niall Pemberton
> <[EMAIL PROTECTED]> wrote:
> > Rather than answer you here, I've created a page on the wiki with
> > examples...
> >
> > http://wiki.apache.org/struts/StrutsFileDownload
> >
> > I haven't actually used DownloadAction myself - but I am doing the same
sort
> > of thing in my application.
> >
> >
> >
> >
> > Niall
> >
> > - Original Message -
> > From: "Richard" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, November 26, 2004 5:40 AM
> > Subject: Re: Sending Binary Files from Action
> >
> > > Hi Niall,
> > >
> > > Forgive but im a newbie. I dont know how I can use this. Definitely I
> > > will need to change my struts jar files. But do I extend this action
> > > or use it statically. What method do I use?
> > >
> > > Thanks
> > > Richard
> > >
> > >
> > > On Fri, 26 Nov 2004 05:32:09 -, Niall Pemberton
> > > <[EMAIL PROTECTED]> wrote:
> > > > Theres a new DownloadAction in Struts 1.2.6:
> > > >
> > > >
> >
http://struts.apache.org/api/org/apache/struts/actions/DownloadAction.html
> > > >
> > > > Niall
> > > >
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Richard" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Friday, November 26, 2004 5:18 AM
> > > > Subject: Sending Binary Files from Action
> > > >
> > > > > Hi Guys,
> > > > >
> > > > > I have created an expiring download link ( sent to users )
throiugh
> > > > > the use of tokens and actions. Now I have not the slightest idea
how
> > > > > am I going to send the file to the user inside my actions. Can I
use
> > > > > forwards over this? please help.
> > > > >
> > > > > Thanks
> > > > > Richard
> > > > >
> > > >
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> >
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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



Re: Sending Binary Files from Action

2004-11-26 Thread Niall Pemberton
OK I added something. to the wiki on Content Disposition, but yes thats how
it works.

Niall

- Original Message - 
From: "Dakota Jack" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 26, 2004 8:29 AM
Subject: Re: Sending Binary Files from Action


> Hello, Niall,
>
> Nice addition.  Let me suggest that you indicate how to apply the
> content-disposition header with filename.  That is where my knowledge
> runs out at this time.  The difference in the JSP page between inline
> and attachment is what has me puzzled.  I could just try various
> options and see what happens, but I like to understand these things.
>
> Is the idea that where the header is inline the same browser page will
> display the file whereas with attachment the brownser will keep the
> same page and ask where you would like to store the downloaded file?
> Thanks.
>
> Jack
>
>
> On Fri, 26 Nov 2004 08:06:46 -, Niall Pemberton
> <[EMAIL PROTECTED]> wrote:
> > Rather than answer you here, I've created a page on the wiki with
> > examples...
> >
> > http://wiki.apache.org/struts/StrutsFileDownload
> >
> > I haven't actually used DownloadAction myself - but I am doing the same
sort
> > of thing in my application.
> >
> >
> >
> >
> > Niall
> >
> > - Original Message -
> > From: "Richard" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, November 26, 2004 5:40 AM
> > Subject: Re: Sending Binary Files from Action
> >
> > > Hi Niall,
> > >
> > > Forgive but im a newbie. I dont know how I can use this. Definitely I
> > > will need to change my struts jar files. But do I extend this action
> > > or use it statically. What method do I use?
> > >
> > > Thanks
> > > Richard
> > >
> > >
> > > On Fri, 26 Nov 2004 05:32:09 -, Niall Pemberton
> > > <[EMAIL PROTECTED]> wrote:
> > > > Theres a new DownloadAction in Struts 1.2.6:
> > > >
> > > >
> >
http://struts.apache.org/api/org/apache/struts/actions/DownloadAction.html
> > > >
> > > > Niall
> > > >
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Richard" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Friday, November 26, 2004 5:18 AM
> > > > Subject: Sending Binary Files from Action
> > > >
> > > > > Hi Guys,
> > > > >
> > > > > I have created an expiring download link ( sent to users )
throiugh
> > > > > the use of tokens and actions. Now I have not the slightest idea
how
> > > > > am I going to send the file to the user inside my actions. Can I
use
> > > > > forwards over this? please help.
> > > > >
> > > > > Thanks
> > > > > Richard
> > > > >
> > > >
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -- 
>
>
> "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]
>
>
>



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



RE: server shutdown

2004-11-26 Thread andy wix
Thanks for the input David.
It sounds like this must be the reason.  I am running Xp with Tomcat 5.0.27 
and Struts 1.1.

I run Tomcat as a service - how do I find out (or set up) the permissions?
Thanks,
Andy
_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger

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


RE: server shutdown

2004-11-26 Thread Paul McCulloch
In the services control panel select the relevant service, choose
properties, and then choose the "Log On" tab. You can now decide which user
runs the service.

Paul

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: 26 November 2004 09:25
> To: [EMAIL PROTECTED]
> Subject: RE: server shutdown
> 
> 
> Thanks for the input David.
> It sounds like this must be the reason.  I am running Xp with 
> Tomcat 5.0.27 
> and Struts 1.1.
> 
> I run Tomcat as a service - how do I find out (or set up) the 
> permissions?
> 
> Thanks,
> Andy
> 
> _
> Use MSN Messenger to send music and pics to your friends 
> http://www.msn.co.uk/messenger
> 
> 
> -
> 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]



RE: server shutdown

2004-11-26 Thread Simon Matic Langford
right click on the service in services and go to properties.

go to the Logon tab, and there you can change the log on.

I don't know what user you'll need to run as, but if this is
a public server then an administrator is probably none too
sensible :-) I run mine as "NETWORK SERVICE" which you can find
(along with other users) by selecting "This account", then click
"Browse..." then "Advanced..." then "Find Now".

simon
 

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED] 
> Sent: 26 November 2004 09:25
> To: [EMAIL PROTECTED]
> Subject: RE: server shutdown
> 
> 
> Thanks for the input David.
> It sounds like this must be the reason.  I am running Xp with 
> Tomcat 5.0.27 
> and Struts 1.1.
> 
> I run Tomcat as a service - how do I find out (or set up) the 
> permissions?
> 
> Thanks,
> Andy
> 
> _
> Use MSN Messenger to send music and pics to your friends 
> http://www.msn.co.uk/messenger
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: server shutdown

2004-11-26 Thread andy wix
Hi,
I have now set up the Tomcat service to run as administrator (temporarily) 
but this doesn't resolve the problem.
I am now only trying to run notepad from the exec command:

Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec("C:\\WINDOWS\\system32\\notepad.exe");
This code works fine from a stand-alone program but not from Tomcat.
Could there be some security issue with the Tomcat security permissions?
Thanks,
Andy
_
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DTD resolution

2004-11-26 Thread Emmanouil Batsis
Hi,
My jboss tries to resolve the DTDs for the validator plugin. Can anyone 
tell me how to avoid this?

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


Re: DTD resolution

2004-11-26 Thread Guillaume Cottenceau
Emmanouil Batsis  writes:

> Hi,
> 
> My jboss tries to resolve the DTDs for the validator plugin. Can
> anyone tell me how to avoid this?

Have it locally. See thread:

http://thread.gmane.org/gmane.comp.jakarta.struts.user/96922

-- 
Guillaume Cottenceau

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



RE: server shutdown

2004-11-26 Thread Paul McCulloch
I'd start by getting things working running tomcat *not* as a service. Once
that is done switch to using a service. 

If you look at the service Log On control panel you'll see a "Allow service
to interact with desktop" checkbox. This will need to be set for you to see
a program running on your desktop. That option can only be set for the local
system user - not adminsitartor.

Paul

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: 26 November 2004 10:23
> To: [EMAIL PROTECTED]
> Subject: RE: server shutdown
> 
> 
> Hi,
> 
> I have now set up the Tomcat service to run as administrator 
> (temporarily) 
> but this doesn't resolve the problem.
> I am now only trying to run notepad from the exec command:
> 
> Runtime runtime = Runtime.getRuntime();
> Process proc = runtime.exec("C:\\WINDOWS\\system32\\notepad.exe");
> 
> This code works fine from a stand-alone program but not from Tomcat.
> 
> Could there be some security issue with the Tomcat security 
> permissions?
> 
> Thanks,
> Andy
> 
> _
> Express yourself with cool new emoticons 
> http://www.msn.co.uk/specials/myemo
> 
> 
> -
> 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]



Why does a Form Bean declared as session-scope appear on both session and request?

2004-11-26 Thread Daffin, Miles (Company IT)
Hi All,
 
If I declare my bean scope="session" (struts-config.xml) the same
instance of it turns up on both the request and the session:
 
Session key: 
Request key: org.apache.struts.taglib.html.BEAN
 
If I then change the declaration to scope="request" the same bean turns
up twice on the request, under the key
org.apache.struts.taglib.html.BEAN and 
 keys. 
 
What's going in here?
 
Thanks. 
 
-Miles
 
Miles Daffin
Morgan Stanley
20 Cabot Square | Canary Wharf | London E14 4QA | UK
Tel: +44 (0) 20 767 75119
[EMAIL PROTECTED]  

 
NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited. 
 


RE: Why does a Form Bean declared as session-scope appear on both session and request?

2004-11-26 Thread Paul McCulloch
The attribute in org.apache.struts.taglib.html.BEAN is set by the
 tag. This is how the other  tags know which form bean
they are dealing with.

I'd be interested to know why the other html tags are made aware of the form
bean this way, rather than directly asking their enclosing form tag. Any
ideas anyone? The only thing I can think of is that it means that
dynamically included pages can still use the html tags to reference the
parent page's form.

Paul

> -Original Message-
> From: Daffin, Miles (Company IT) 
> [mailto:[EMAIL PROTECTED]
> Sent: 26 November 2004 11:00
> To: Struts Users Mailing List
> Subject: Why does a Form Bean declared as session-scope appear on both
> session and request?
> 
> 
> Hi All,
>  
> If I declare my bean scope="session" (struts-config.xml) the same
> instance of it turns up on both the request and the session:
>  
> Session key: 
> Request key: org.apache.struts.taglib.html.BEAN
>  
> If I then change the declaration to scope="request" the same 
> bean turns
> up twice on the request, under the key
> org.apache.struts.taglib.html.BEAN and 
>  keys. 
>  
> What's going in here?
>  
> Thanks. 
>  
> -Miles
>  
> Miles Daffin
> Morgan Stanley
> 20 Cabot Square | Canary Wharf | London E14 4QA | UK
> Tel: +44 (0) 20 767 75119
> [EMAIL PROTECTED] 
>  
> 
>  
> NOTICE: If received in error, please destroy and notify 
> sender.  Sender does not waive confidentiality or privilege, 
> and use is prohibited. 
>  
> 

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]



RE: server shutdown

2004-11-26 Thread andy wix
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]


RE: server shutdown

2004-11-26 Thread Paul McCulloch
I wasn't aware that Tomcat had any functionality related to running external
programs. I can tell you that I have successfully called external programs
(our own win32 commandline exes) from Tomcat and JBoss/Tomcat (using
Runtime.getRuntime().exec() as you do).

I think that, unfortunatly, it's down to your code or environment. I'd start
simple  - a command line program that writes something to a file - and build
up to your goal from there.

Paul



> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: 26 November 2004 12:00
> To: [EMAIL PROTECTED]
> Subject: RE: server shutdown
> 
> 
> 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]
> 

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]



Re: JSP Code for DownloadAction

2004-11-26 Thread Frank W. Zammetti
Did the sample app not help you Jack?  What wasn't clear from it?  Maybe 
I can update it to be more helpful...

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Dakota Jack wrote:
Anyone have an example of JSP code for DownloadAction?  I am confused about it.
Jack


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


Applicaton-specific logging in Struts

2004-11-26 Thread Nicholas Hemley
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]



Re: JSP Code for DownloadAction

2004-11-26 Thread Dakota Jack
Hi, Frank,

Yes and no.  Yes, because I can put your whole example together and
watch what happens and figure it out from there.  And, no because I
would like to understand it so that I can do my own.

What I don't understand is how the file download works in relation to
the GUI.  Where does the GUI go and why?  If I don't know this, I
cannot do my own apps that don't mimic yours.  I do know that there
are two content-disposition possibilities: inline and attachment.

My biggest problem is seeing what page the client goes to after making
a request for a download.  Does the client always stay on the same
page?  Why?  This is not normal, I think, since  and  usually
take us to a target location.  What is the scoop on that?  Thanks.

Jack


On Fri, 26 Nov 2004 07:51:14 -0500, Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
> Did the sample app not help you Jack?  What wasn't clear from it?  Maybe
> I can update it to be more helpful...
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> Dakota Jack wrote:
> > Anyone have an example of JSP code for DownloadAction?  I am confused about 
> > it.
> >
> > Jack
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 


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



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: Applicaton-specific logging in Struts

2004-11-26 Thread Nicholas Hemley
Chris,

many thanks for the info, I was actually looking for an xml config
example, having looked through the examples with log4j it is not so
obvious...

Cheerio,
Nic.

>>> [EMAIL PROTECTED] 26/11/2004 13:59:10 >>>
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] 



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



Re: JSP Code for DownloadAction

2004-11-26 Thread Andrew Hill
The  tag would _normally_ take you to a target location, but with 
file download what usually happens is that the browser realises its a 
file and either prompts you to choose somewhere to open it, or tries to 
display it in the browser page (internet explod^Hrer will tend to try 
this if it thinks it recognises the file content type!).

In the second case you navigate to the file, in the first the file gets 
saved somewhere on your local drive or opened with an external 
application and your page remains where it is.

If you chose to download the file 'in a new window' or new tab from the 
context menu of the borwser you get an empty new window or tab usually. 
(Sometimes the browser is smart enough to shut it for you and given IEs 
predilection for inline display I tend to make my file anchors target 
_new as a matter of course...)


Dakota Jack wrote:
Hi, Frank,
Yes and no.  Yes, because I can put your whole example together and
watch what happens and figure it out from there.  And, no because I
would like to understand it so that I can do my own.
What I don't understand is how the file download works in relation to
the GUI.  Where does the GUI go and why?  If I don't know this, I
cannot do my own apps that don't mimic yours.  I do know that there
are two content-disposition possibilities: inline and attachment.
My biggest problem is seeing what page the client goes to after making
a request for a download.  Does the client always stay on the same
page?  Why?  This is not normal, I think, since  and  usually
take us to a target location.  What is the scoop on that?  Thanks.
Jack
On Fri, 26 Nov 2004 07:51:14 -0500, Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
Did the sample app not help you Jack?  What wasn't clear from it?  Maybe
I can update it to be more helpful...
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Dakota Jack wrote:
Anyone have an example of JSP code for DownloadAction?  I am confused about it.
Jack

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




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


Re: Applicaton-specific logging in Struts

2004-11-26 Thread Duncan Mills
It's also worth checking out Chainsaw as a Log4J viewer - It has 
filtering capabilities that will probably work just as well for you as 
separate log files

The settings would be (for instance)
# log4j.properties  in  /WEB-INF/classes
log4j.rootLogger=ERROR, Chainsaw
log4j.appender.Chainsaw=org.apache.log4j.net.SocketAppender
log4j.appender.Chainsaw.remoteHost=127.0.0.1
log4j.appender.Chainsaw.port=4560
log4j.logger.your.package=DEBUG
You can get chainsaw at http://logging.apache.org/log4j/docs/chainsaw.html
Regards
Duncan Mills

Nicholas Hemley wrote:
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]
 

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


Re: JSP Code for DownloadAction

2004-11-26 Thread Frank W. Zammetti
What he said :)
It comes down to the browser recognizing what the server sends back as 
the result of clicking a link or submitting a form.  Normally, it 
recognizes it as an HTML page and displays it (overwriting what's 
already in the browser obviously).

In the case of downloading a file though, it can tell it's a file of 
some other type, and will either pass it along to a plug-in for display, 
or ask the user what to do with it.

Of course, I just repeated what Andrew said really :)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Andrew Hill wrote:
The  tag would _normally_ take you to a target location, but with 
file download what usually happens is that the browser realises its a 
file and either prompts you to choose somewhere to open it, or tries to 
display it in the browser page (internet explod^Hrer will tend to try 
this if it thinks it recognises the file content type!).

In the second case you navigate to the file, in the first the file gets 
saved somewhere on your local drive or opened with an external 
application and your page remains where it is.

If you chose to download the file 'in a new window' or new tab from the 
context menu of the borwser you get an empty new window or tab usually. 
(Sometimes the browser is smart enough to shut it for you and given IEs 
predilection for inline display I tend to make my file anchors target 
_new as a matter of course...)


Dakota Jack wrote:
Hi, Frank,
Yes and no.  Yes, because I can put your whole example together and
watch what happens and figure it out from there.  And, no because I
would like to understand it so that I can do my own.
What I don't understand is how the file download works in relation to
the GUI.  Where does the GUI go and why?  If I don't know this, I
cannot do my own apps that don't mimic yours.  I do know that there
are two content-disposition possibilities: inline and attachment.
My biggest problem is seeing what page the client goes to after making
a request for a download.  Does the client always stay on the same
page?  Why?  This is not normal, I think, since  and  usually
take us to a target location.  What is the scoop on that?  Thanks.
Jack
On Fri, 26 Nov 2004 07:51:14 -0500, Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
Did the sample app not help you Jack?  What wasn't clear from it?  Maybe
I can update it to be more helpful...
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Dakota Jack wrote:
Anyone have an example of JSP code for DownloadAction?  I am 
confused about it.

Jack

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




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



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


Re: Applicaton-specific logging in Struts

2004-11-26 Thread Jeff Beal
Here are the relevant snippets from my XML configuration file:
  




  

  
  




  

  
  


  
  


  
All of our classes are located in the webmedx package, and logging 
messages with a level greater than INFO are sent to 
C:\test\logs\webmedx.log.  Struts logging messages of ERROR or greater 
are sent to C:\test\logs\struts.log.

-- Jeff
Nicholas Hemley wrote:
Chris,
many thanks for the info, I was actually looking for an xml config
example, having looked through the examples with log4j it is not so
obvious...
Cheerio,
Nic.

[EMAIL PROTECTED] 26/11/2004 13:59:10 >>>
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.

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


Re: struts to generate html email content

2004-11-26 Thread Philip DONAGHY
We do this using the jakarta taglibs. There is a tag called mailer. When
wrapped around the email body in a jsp will send an email.

I see that the example (mailer.jsp) is assisted by the request tag.

<%@ taglib uri="http://jakarta.apache.org/taglibs/mailer-1.1";
prefix="mt" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/request-1.0";
prefix="req" %>

You'll have to check that out to see if you need it.

Donaghy

Nathan Coast a écrit :
> 
> Hi,
> 
> Is there any way to generate content that isn't written to the
> ServletResponse?  I'd like to use jsp / struts to generate html emails.
> 
> something like this:
> 1) user clicks 'generate email' button.
> 2) struts action sets up parameters and identifies recipients.
> 3) delegate to a jsp to create the html email content.
> 4) trap the content (don't return to the user) and send as an email.
> 5) return a message to user confirming email has been sent.
> 
> is this possible without having to re-invent a servlet container :)
> 
> thanks
> Nathan
> 
> --
> Nathan Coast
> Managing Director
> Codeczar Ltd
> mob : (852) 9049 5581
> tel : (852) 2834 8733
> fax : (852) 2834 8755
> web : http://www.codeczar.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]



OT Useful Validation Routines

2004-11-26 Thread e-denton Java Programmer
 Hi,

If you aren't using Validator, you might find these useful:

public static boolean isValidEmailAddress (String eMailAddress)
  {
  return eMailAddress.matches
("^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*(\\.[_
A-Za-z0-9-]+)");
  }

 public static boolean isValidURL (String url)
  {
  return url.matches
("^https?://([-\\w\\.]+)(:\\d+)?(/([-\\w/_\\.]*(\\?\\S+)?)?)?");
  } // end isValidURL

Happy Thanksgiving!


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



RE: Sending Binary Files from Action

2004-11-26 Thread Wiebe de Jong
Hey Richard,

Are you upgrading your Struts to 1.2.6 to make use of the DownloadAction, or
do you need something that works with your current Struts version?

Wiebe

-Original Message-
From: Richard [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 26, 2004 12:55 AM
To: Struts Users Mailing List
Subject: Re: Sending Binary Files from Action

Hi Niall,

Thank you very much. The thing is I have found a sample application
that uses the DownloadAction. Discussion is at
http://www.mail-archive.com/dev@struts.apache.org/msg04600.html while
the source codes are at http://www.omnytex.com/downloadapp.zip.

I think I have a working version now and will stick to it. Again thank
you very much.
Richard


On Fri, 26 Nov 2004 08:06:46 -, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> Rather than answer you here, I've created a page on the wiki with
> examples...
> 
> http://wiki.apache.org/struts/StrutsFileDownload
> 
> I haven't actually used DownloadAction myself - but I am doing the same
sort
> of thing in my application.
> 
> 
> 
> 
> Niall
> 
> - Original Message -
> From: "Richard" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, November 26, 2004 5:40 AM
> Subject: Re: Sending Binary Files from Action
> 
> > Hi Niall,
> >
> > Forgive but im a newbie. I dont know how I can use this. Definitely I
> > will need to change my struts jar files. But do I extend this action
> > or use it statically. What method do I use?
> >
> > Thanks
> > Richard
> >
> >
> > On Fri, 26 Nov 2004 05:32:09 -, Niall Pemberton
> > <[EMAIL PROTECTED]> wrote:
> > > Theres a new DownloadAction in Struts 1.2.6:
> > >
> > >
> http://struts.apache.org/api/org/apache/struts/actions/DownloadAction.html
> > >
> > > Niall
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Richard" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Friday, November 26, 2004 5:18 AM
> > > Subject: Sending Binary Files from Action
> > >
> > > > Hi Guys,
> > > >
> > > > I have created an expiring download link ( sent to users ) throiugh
> > > > the use of tokens and actions. Now I have not the slightest idea how
> > > > am I going to send the file to the user inside my actions. Can I use
> > > > forwards over this? please help.
> > > >
> > > > Thanks
> > > > Richard
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> 
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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


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



Re: Any good struts tutorials online?

2004-11-26 Thread Sebastian Hennebrueder
I made some tutorials using eclipse with myeclipse plugin.
There is one for
struts basic
struts
tiles
struts and ejb
www.laliluna.de/tutorials.html
It is best to try them to decide if your like them.
Regards Sebastian
Donie Kelly wrote:
Hi all

I've been given a half finished struts project to develop further and I
havn't used struts before. Is there any good resources where I can learn how
to get up to speed quickly. Overviews are especially important to me as it
help me to learn quicker. Is there any good books that lead me in at the
right pace. I've been programming java for a long while now but struts seems
slightly convoluted to me. 


Basically I need help and I am a a quick learner. I just need better
resources than what I'm finding...
Thanks in advance
Donie
 


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


Re: OT Useful Validation Routines

2004-11-26 Thread brettconnor
This pattern will reject some valid email addresses. The local part (the bit
bofore the @) is interpreted by the target email system and should not be
interpreted by source or intermediate systems. The meaning of it, including
what characters are legal, is entirely up to each email host. I cannot quote
you the RFC number from the top of my head, but I have seen a number of
websites fail on this. Some of my email addresses contain + for example.

Regards
Brett Connor


Quoting e-denton Java Programmer <[EMAIL PROTECTED]>:

>  Hi,
>
> If you aren't using Validator, you might find these useful:
>
> public static boolean isValidEmailAddress (String eMailAddress)
>   {
>   return eMailAddress.matches
> ("^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*(\\.[_
> A-Za-z0-9-]+)");
>   }
>
>  public static boolean isValidURL (String url)
>   {
>   return url.matches
> ("^https?://([-\\w\\.]+)(:\\d+)?(/([-\\w/_\\.]*(\\?\\S+)?)?)?");
>   } // end isValidURL
>
> Happy Thanksgiving!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Multibox deselection problem

2004-11-26 Thread Seetamraju, Uday
For simple use-n-throw (non-dynaforms?) forms, a much better *generic* solution 
:-

At the VERY BOTTOM (please note the caps to get your attention ;-) ) of the JSP 
that displays the form :-

<%  MyForm frm = (MyForm) request.getAttribute("formname");
frm.reset();
%>

In scenarios where the user can "temporarily" navigate to other pages and comes 
BACK to this page the user will find all values gone...
So, it works wonderfully ONLY for use-n-throw forms.
>From my experience, forms with such checkboxes are not on the 'main page' 
>(that the user keeps coming back to for all screen flows).

All my forms are explicit bean-classes, -- others can let you know if reset() 
works on dynaforms.
And do not forget to code your reset() function.


> -Original Message-
> From: Wiebe de Jong [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 12, 2004 12:59 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Multibox deselection problem
> 
> 
> This is a problem with HTTP: when all the checkboxes are 
> deselected, the
> browser doesn't send anything back, so you get the default of what you
> started with. To solve this problem you must ensure that at 
> least one box is
> always selected.
> 
> I solved this problem by creating an additional checkbox that 
> is hidden,
> read-only and selected. This will ensure that the browser 
> sends something
> back.
> 
> String[] defaultEntities = {"A", "B", "C", "D", "filler"};
> 
>  value="filler"/>
> 
> Wiebe
> 
> -Original Message-
> From: Olivier Croisier [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 12, 2004 6:47 AM
> To: [EMAIL PROTECTED]
> Subject: Multibox deselection problem
> 
> Hi !
> 
> I have a problem with the Multibox behaviour. I have checked 
> the online doc
> but nothing helped me so far... Here is my problem :
> 
> My app workflow is :
> prepareImportAction.do  ->  Import.jsp  ->  processImportAction.do
> 
> In the prepareImportAction.do, I initialize the "entities" 
> var (of type
> String[], in session scope), so that the checkboxes are 
> checked by default
> when the jsp page is displayed :
>   String[] defaultEntities = {"A", "B", "C", "D"};
>   myform.set("entities", defaultEntities);
> 
> In the jsp page, I have a set of :
>   
>   
>   
>   
> 
> I also have a small javascript that allows the user to select 
> or deselect
> all checkboxes in one click :
>   function checkAll(field)
>   {   var i;
>   for (i=0;i   {   field[i].checked=true;   }
>   }
> (nearly the same for de-selecting all checkboxes)
> 
> Now here is my problem. When I de-select all the checkboxes 
> in my jsp page,
> by hand or by javascript, my processImport.do receives a 
> String[] array
> containing the entities that were defined in preparaImport.do 
> as default,
> instead of an empty array.
> This only happens only when all entities are deselected : if 
> a single one is
> selected, I get the desired behaviour.
> 
> May you help me to understand where I am wrong and why it doesn't work
> please?
> 
> Olivier Croisier
> 
> -- 
> CROISIER Olivier
> Software Engineer
> Thales IS - ANS
> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
 
 
 


 
The information contained in this message is intended only for the recipient, 
and may be a confidential attorney-client communication or may otherwise be 
privileged and confidential and protected from disclosure. If the reader of 
this message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, please be aware that any 
dissemination or copying of this communication is strictly prohibited. If you 
have received this communication in error, please immediately notify us by 
replying to the message and deleting it from your computer.
 
Thank you,
 
Standard & Poor's
 


 

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



RE: action forwards to target frames

2004-11-26 Thread Seetamraju, Uday
I have never found any luck on google, but the top secret solution for such 
things is whispered as :-

HTTP Headers   

Now I honestly do not know how to set the **EXACT-SPECIFIC** HTTPRequest 
headers.
In the header supposedly, you can specify something similar to the "target=..." 
attribute of a  tag ...
If you found out how, you will have to do such stuff in the actual JSP (?)

I am still thirsting for a way to expire PUT pages on the browsers (since 
obviously meta-tags don't do the job).


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Jeff Beal
> Sent: Friday, November 12, 2004 3:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: action forwards to target frames
> 
> 
> The web server doesn't know anything about frames.  We 
> usually achieve 
> this sort of thing by returning a page with some JavaScript 
> when we want 
> to pop out of frames:
> 
> 

RE: Multibox deselection problem

2004-11-26 Thread Seetamraju, Uday
use disabled instead of readonly.
IIRC , HTML rarely uses readonly -- its mostly disabled attribute everywhere.

It works just fine for me.

 

> -Original Message-
> From: Olivier Croisier [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 15, 2004 4:10 AM
> To: Struts Users Mailing List
> Subject: Re: Multibox deselection problem
> 
> 
> Hi !
> 
> Thank you for you help, it works fine now !
> 
> BTW, it seems like Struts does not support all standart HTML 
> options : I had to use a pure HTML  tag because the 
> "readonly" attribute does not exist in Struts, and I think 
> this mix is a bit dirty. But it works...
> ("onLoad" not supported either...)
> 
> Olivier Croisier
> 
> 
> > This is a problem with HTTP: when all the checkboxes are 
> deselected, the
> > browser doesn't send anything back, so you get the default 
> of what you
> > started with. To solve this problem you must ensure that at 
> least one box is
> > always selected.
> >
> > I solved this problem by creating an additional checkbox 
> that is hidden,
> > read-only and selected. This will ensure that the browser 
> sends something
> > back.
> >
> > String[] defaultEntities = {"A", "B", "C", "D", "filler"};
> >
> >  > value="filler"/>
> >
> > Wiebe
> >
> > -Original Message-
> > From: Olivier Croisier [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 12, 2004 6:47 AM
> > To: [EMAIL PROTECTED]
> > Subject: Multibox deselection problem
> >
> > Hi !
> >
> > I have a problem with the Multibox behaviour. I have 
> checked the online doc
> > but nothing helped me so far... Here is my problem :
> >
> > My app workflow is :
> > prepareImportAction.do  ->  Import.jsp  ->  processImportAction.do
> >
> > In the prepareImportAction.do, I initialize the "entities" 
> var (of type
> > String[], in session scope), so that the checkboxes are 
> checked by default
> > when the jsp page is displayed :
> > String[] defaultEntities = {"A", "B", "C", "D"};
> > myform.set("entities", defaultEntities);
> >
> > In the jsp page, I have a set of :
> > 
> > 
> > 
> > 
> >
> > I also have a small javascript that allows the user to 
> select or deselect
> > all checkboxes in one click :
> > function checkAll(field)
> > {   var i;
> > for (i=0;i > {   field[i].checked=true;   }
> > }
> > (nearly the same for de-selecting all checkboxes)
> >
> > Now here is my problem. When I de-select all the checkboxes 
> in my jsp page,
> > by hand or by javascript, my processImport.do receives a 
> String[] array
> > containing the entities that were defined in 
> preparaImport.do as default,
> > instead of an empty array.
> > This only happens only when all entities are deselected : 
> if a single one is
> > selected, I get the desired behaviour.
> >
> > May you help me to understand where I am wrong and why it 
> doesn't work
> > please?
> >
> > Olivier Croisier
> >
> 
> 
> 
> -- 
> CROISIER Olivier
> Software Engineer
> Thales IS - ANS
> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
 
 
 


 
The information contained in this message is intended only for the recipient, 
and may be a confidential attorney-client communication or may otherwise be 
privileged and confidential and protected from disclosure. If the reader of 
this message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, please be aware that any 
dissemination or copying of this communication is strictly prohibited. If you 
have received this communication in error, please immediately notify us by 
replying to the message and deleting it from your computer.
 
Thank you,
 
Standard & Poor's
 


 

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



Re: Any good struts tutorials online?

2004-11-26 Thread Niall Pemberton
I've added a Tutorials page on the wiki - feel free to update.

Niall

- Original Message - 
From: "Sebastian Hennebrueder" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 26, 2004 5:50 PM
Subject: Re: Any good struts tutorials online?


> I made some tutorials using eclipse with myeclipse plugin.
> There is one for
> struts basic
> struts
> tiles
> struts and ejb
>
> www.laliluna.de/tutorials.html
>
> It is best to try them to decide if your like them.
>
> Regards Sebastian
> Donie Kelly wrote:
>
> >Hi all
> >
> >
> >
> >I've been given a half finished struts project to develop further and I
> >havn't used struts before. Is there any good resources where I can learn
how
> >to get up to speed quickly. Overviews are especially important to me as
it
> >help me to learn quicker. Is there any good books that lead me in at the
> >right pace. I've been programming java for a long while now but struts
seems
> >slightly convoluted to me.
> >
> >
> >
> >Basically I need help and I am a a quick learner. I just need better
> >resources than what I'm finding...
> >
> >Thanks in advance
> >
> >Donie
> >
> >
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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



RE: struts and applets

2004-11-26 Thread Seetamraju, Uday
In the applet, open the 
URL("http://myserver/mywebapp/appletSupport.do?param1=x¶m2=y";);
And read the response.
Alternatively, you can URL("http://myserver";);
and write to the opened URL as :-
GET /mywebapp/appletSupport.do?param1=x¶m2=y

This works for HTTPS also I believe.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 16, 2004 2:45 AM
> To: [EMAIL PROTECTED]
> Subject: Re: struts and applets
> 
> 
> Ashish Kulkarni wrote:
> 
> >Hi
> >I am working on a webproject where i have designed a
> >applet which communicates with the database using
> >applet-servlet communication,
> >The applet opens a URL connection to a servlet.
> >My Servlet reads the data from applet calls the
> >appropriate business classes, get data and returns
> >data back to applet.
> >
> >If i have to replace this servlet part with struts
> >Action class, how do i define it in my struts-config
> >file and what will be the form and where do i forward
> >it after completion.
> >
> >Ashish
> 
> So you use an applet that communicates with an HTTP Servlet? 
> I think you
> can use Struts for your purposes, but not the "usual" way in 
> normal web
> applications (i.e. HTML+Javascript based).
> 1) You can still define your action class the usual way, with 
> an URL and a
> form-bean connected to it.
> 2) To find out what your form is, take a look to the 
> parameters that the
> applet passes to the servlet. You must know that, in fact, 
> every kind of
> HTTP request and parameters are taken to build the form bean. 
> In this form
> bean, every parameter is used to set the property that has 
> the same name
> of the parameter itself.
> 3) You have to forward to "null", I think. The thing that, 
> IMHO, is the
> best one is to construct manually the HttpServletResponse, 
> just as you do
> with your servlet.
> Ciao
> Antonio Petrelli
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
 
 
 

The information contained in this message is intended only for the recipient, 
and may be a confidential attorney-client communication or may otherwise be 
privileged and confidential and protected from disclosure. If the reader of 
this message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, please be aware that any 
dissemination or copying of this communication is strictly prohibited. If you 
have received this communication in error, please immediately notify us by 
replying to the message and deleting it from your computer.
 
Thank you,
 
Standard & Poor's
 


 
 
 

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



Re: struts to generate html email content

2004-11-26 Thread Ken Pelletier
Nathan,
I briefly looked into using jsp for email templating recently, and 
decided that it was not the right fit for the task in my situation.

Instead I ended up building a basic template merge facility using 
Velocity, and a mail sender facility based on JavaMail.  I tied them 
together with a thin service layer in my webapp that is configurable 
and dead simple to invoke.

Using Velocity also allowed me to easily extend the system to include a 
web-based template manager and editor to allow users to create 
templates and verify them (preview) online.

Some of the advantages I found were:
- reasonably simple to build for basic merge/send
- easy to unit test in isolation (no dependencies on web container, jsp 
compiler)
- equally usable within a webapp or in a stand-alone app or script
- template authoring easily understood by non-programmers

The merger and sender are also independently unit tested with basic 
JUnit test cases.

It may be worth considering in your case as well.
- Ken
On Nov 25, 2004, at 6:59 PM, Jason Lea wrote:

Nathan Coast wrote:
Hi,
Is there any way to generate content that isn't written to the 
ServletResponse?  I'd like to use jsp / struts to generate html 
emails.

something like this:
1) user clicks 'generate email' button.
2) struts action sets up parameters and identifies recipients.
3) delegate to a jsp to create the html email content.
4) trap the content (don't return to the user) and send as an email.
5) return a message to user confirming email has been sent.
is this possible without having to re-invent a servlet container :)
I have used Jelly  (http://jakarta.apache.org/commons/jelly/) for this 
purpose.  You can use JSTL/EL so it looks like a JSP page.  Look at 
using Jelly Embedded 
(http://jakarta.apache.org/commons/jelly/tutorial.html#embeddingjelly)

thanks
Nathan

--
Jason Lea

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

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


Re: Any good struts tutorials online?

2004-11-26 Thread Sebastian Hennebrueder
OK
;-)
Niall Pemberton wrote:
I've added a Tutorials page on the wiki - feel free to update.
Niall
- Original Message - 
From: "Sebastian Hennebrueder" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 26, 2004 5:50 PM
Subject: Re: Any good struts tutorials online?

 

I made some tutorials using eclipse with myeclipse plugin.
There is one for
struts basic
struts
tiles
struts and ejb
www.laliluna.de/tutorials.html
It is best to try them to decide if your like them.
Regards Sebastian
Donie Kelly wrote:
   

Hi all

I've been given a half finished struts project to develop further and I
havn't used struts before. Is there any good resources where I can learn
 

how
 

to get up to speed quickly. Overviews are especially important to me as
 

it
 

help me to learn quicker. Is there any good books that lead me in at the
right pace. I've been programming java for a long while now but struts
 

seems
 

slightly convoluted to me.

Basically I need help and I am a a quick learner. I just need better
resources than what I'm finding...
Thanks in advance
Donie

 

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

   


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


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


RE: Help with Exception handling

2004-11-26 Thread Seetamraju, Uday
I don't like to let the exception go as is, since I need the stack trace.
Don't you wanna know what went wrong?

The following works wonderfully, -- I have :-


Note my key!

My system failure URL is mapped in web.xml to a simple JSP with customer 
service tel#.

public class MyExceptionHandlerAction extends ExceptionHandler {
... 
public ActionForward execute(Exception arg0, ExceptionConfig arg1,
ActionMapping arg2, ActionForm arg3, HttpServletRequest 
arg4,
HttpServletResponse arg5) throws ServletException {
return new ActionForward(arg1.getPath());
}

protected void logException(Exception arg0) {
super.logException(arg0);
logger.log(Level.SEVERE, this.getClass().getName()+ " is 
handling unexpected webapp exception : "+arg0);
arg0.printStackTrace();
}
}
> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 17, 2004 6:32 PM
> To: Struts Users Mailing List
> Subject: Help with Exception handling
> 
> 
> I know I've tried this before, but so far I haven't gotten 
> all the pieces
> properly arranged so it works. :/
> 
> I currently have code like this in an Action:
> try {
>benId = loginDAO.getBenId( asurite );
> } catch ( TermsAcceptanceException ex ) {
>return mapping.findForward( "terms" );
> }
> 
> In struts-config.xml:
>   path="/denLogin"
> type="edu.asu.vpia.struts.DevilsDenLoginAction"
> name="loginForm"
> scope="request"
> validate="true"
> input="den.login.page">
>
>
> 
> 
> It's my impression that I don't need to catch the exception, 
> that I *should*
> be able to let Action.execute(...) throw it and the framework can be
> configured to deal appropriately with it.
> 
> So I took out this line:
>
> And put in:
>  type="edu.asu.dao.DAOException"
> path="/WEB-INF/error.jsp"
> key="error.dao.exception"/>
> 
> And I just get a JSP with a stack trace.  Although 
> TermsAcceptanceException
> extends DAOException, it doesn't go to error.jsp.
> 
> Two questions... what is the 'key' attribute of  
> used for, and
> can anyone tell what I'm doing wrong?
> 
> Thanks!
> -- 
> Wendy Smoak
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
 
 
 


 
The information contained in this message is intended only for the recipient, 
and may be a confidential attorney-client communication or may otherwise be 
privileged and confidential and protected from disclosure. If the reader of 
this message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, please be aware that any 
dissemination or copying of this communication is strictly prohibited. If you 
have received this communication in error, please immediately notify us by 
replying to the message and deleting it from your computer.
 
Thank you,
 
Standard & Poor's
 


 

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



validator validwhen and quotes causes js errors

2004-11-26 Thread erh

It seems hard to believe that no one ran across this before, but
it appears that it's not possible to specify quotes in the criteria
used for validwhen.  I tried to use a criteria that looks like this:
((somefield == "foo") or (*this* < 123))

However that caused javascript errors on the page because the quotes
don't get escaped in any way.  I tried using a backslash to escape them,
but the backslash itself gets escaped.  I'm thinking that one workaround
might be to change each quote character into this sequence:
" + '"' + "
which will probably get the javascript working, but I have a feeling that
the java validwhen parser won't like that much.  Not to mention that
doing that would make the criteria unreadable.

Is anyone else having this problem?

Also, the nbaPointGuard example on the validator user's guide page is wrong.
It has a '>' character when it should have '>'.

Anyway, after all that, I realized that I can't do what I want with
validwhen.  I want to run one validation only if another fails.
There doesn't seem to be any way to do that, is there?

eric

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



HTTPS Post Action

2004-11-26 Thread Hardy, David T.
Hello,
 
Is there any way to post to an HTTPS URL in the html:form? It appears I cannot 
use a relative URL or a fully qualified URL. I see the SSLEXT but I would like 
a quicker and easier solution if possible. I am already at an HTTPS URL for the 
current page.
 
Thank You,
 
Dave

 


RE: Struts 1.2.4 - DynaActionForm.initialize(ActionMapping) no longer called ?

2004-11-26 Thread Natraj Gujran
Thanks for the responses, Bill & Niall. 
 
This is what I finally found out, and thought would be useful sharing. 
 
Struts 1.1  calls the 'initialize(ActionMapping)' method as part of
RequestUtils.createActionForm() . 
Struts 1.2.4 does NOT seem to call the
DynaActionForm.initialize(ActionMapping )   or the other
DynaActionForm.initialize(FormBeanConfig  ) . 
 
The initial values that get loaded from the struts-config.xml  is because of
the RequestUtils class invoking the corresponding FormBeanConfig object which
reads up the initial values from struts-config.xml. 
So, in my case where I had coded an initialize() method calculating the two
date fields (checkin date / checkout date)  to be 21 days from today, was
never getting called. 
 
Bill's advice of using making reset() invoke 'initialize()' works for all
simple usages of Struts if we use only the HTML Form tag to load the form. 
That's because the the Form Taglib ends up invoking a
'RequestProcessor.process()' method which explicitly calls the 'reset' on the
FormBean. 
 
I had cases where I was switching form beans, copying values from alternate
forms, etc. In those situations, I had used RequestUtils.createActionForm(). 
Here, I had to add an extra invocation to 'reset' just like the
RequestProcessor is doing. 
 
To sum it all up: 
1.  Put in a reset that calls the 'initialize()'  OR put the
'initialize()' code in 'reset'. Like the documentation. 
2.  Wherever you are using the RequestUtils.createActionForm(), make sure
to call the 'reset' or 'initialize' immediately after. 
 
 
Thanks for the help, 
Natraj 
 
 
-Original Message-
From: Natraj Gujran 
Sent: Thursday, November 18, 2004 4:44 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.2.4 - DynaActionForm.initialize(ActionMapping) no longer
called ?
 
Hi, 
 
This has come up during migration of our Struts 1.1 app to 1.2.4. 
 
It doesn't look like the 'initialize()' method of DynaActionForm is called
anymore ? 
 
In our application, we cannot initialize form values by using static values
in struts-config.xml.  
Eg: if a date is to be initialized 21 days from today, AFAIK , we had to put
that code in the initialize() method.
 
Right now, I'm at a loss about what next to do - any tips will be greatly
appreciated. 
 
Thanks, 
Natraj 
 


dynabean and jstl

2004-11-26 Thread Mario Neè
Hello,

can i use dynabean inside a jsp using jstl ?
i'm using struts 1.2.4

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



[OT] another JSF question.. how nicely will the front end handle...

2004-11-26 Thread Rick Reumann
First off, Craig if you are reading this, how come no one has started a 
jsf-users mailing list? I hate using web forums. yuk:) Seems like you 
post more on this list here than on the JSF forum so figured I'd start 
here with my question, plus I know there are many struts users dabbling 
in JSF (as I'm JUST starting to do. Just bough Geary's book.. very nice 
btw).

First let me frame my question in light of a real life terms that we 
have to deal with. We have some complex nested value objects that return 
from the backend. Typically the user on the front end is provided the 
opportunity to modify just a few of the nested VO properties. The nested 
VOs are thus stored in Session scope which makes it very easy to return 
back the full VOs with the modified properties (after BeanUtils does the 
copying of the request params). For those that are wondering, why not 
just create an ActionForm to capture the single properties you need - 
the answer is this would be a nightmare to then figure out how to get 
those properties from your from back into the correct spots in the 
ValueObjects. (By the way, I dont' think the backend should need to 
provide ways to handle how the front is giving you the data so the 
backend should be able to just give me a VO with nested VOs inside). All 
of this works completely fine in a Struts environment and is made really 
easy by the use of the nested tag. (Validation is handled on the backend).

My question then becomes... will JSF be able to handle nested objects 
just as easily? I'm assuming it should but I haven't explored any of the 
JSF tags. I'm assuming that at the very least I could do like I would do 
it with JSTL (not using the Nested tag) and be able to write a JSF input 
like:


Of course it would ne nicer with an nested tag equivalent, but the above 
will work. Just checking to make sure JSF can deal with this in some way 
before I get started. If not, I'm really stuck not being able to use 
JSF, since our business requirements are complex and the objects coming 
from the backend will be nested and I need to return them back to the 
backend in their modified form. (I also don't want to have to hardcode a 
bunch of hidden variable place holders so that's  why I'm using Session).

Thanks for any light on this issue.
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem when generating PDF in a new Window

2004-11-26 Thread Adolfo De Unánue Tiscareño
Hi folks,
Let me describe my problem,
I am generating  a PDF doc in the Action and all works fine, it could be 
show in IE, in Netscape and in Firefox, when I  try to showing it in a 
new window (user requirement) using JS it works in NS and Firefox, but 
IE shows a popup window asking if I want to download it or open it if i 
choose anything, then the next error appears: It could not be 
downloaded, IE could not open this site, try again...

I don know what is happenning, please help...
By the way all this messages are in IE not in the Tomcat...
Code in the Action:
execute(...) {
.
  // Sending parameters via POST
   conn.setDoOutput( true );
   OutputStreamWriter writerServletPDF = new OutputStreamWriter( 
conn.getOutputStream() );

   writerServletPDF.write( parameters.toString() );
   writerServletPDF.flush();
   writerServletPDF.close();
   //Obtener la respuesta
   BufferedInputStream reader = new BufferedInputStream( 
conn.getInputStream() );
   String contentType = conn.getContentType();

   if ( "application/pdf".equals( contentType ) ) {
   response.setContentType( contentType );
   response.setHeader( "Content-disposition",
   "inline; filename=" +
   "factura.pdf" );
   BufferedOutputStream writer = new BufferedOutputStream( 
response.getOutputStream() );
   String line = null;
   byte[] buffer = new byte[2048];
   int bytesRead;

   while ( -1 != ( bytesRead = reader.read( buffer, 0, 
buffer.length ) ) ) {
   writer.write( buffer, 0, bytesRead );

   }
  reader.close();
   writer.flush();
   writer.close();

   return null;
   } else {
 return mapping.findForward( "errorPDF" );
   }

   }
JS code:
function mostrarPDF(numCuentaFactura, mesFactura, anoFactura)
{
   var  w = screen.availWidth/2;
   var  h = screen.availHeight/2;
   var 
opciones="toolbar=no,location=no,directories=no,resizable=yes,status=yes,menubar=no,titlebar=yes,top=0,left=0,scrollbars=yes,width="+w+",height="+h;
   var url = 
"/iusacellClientesCorporativos/mostrarFactura.do?anoFactura="+anoFactura+"&numCuentaFactura="+numCuentaFactura+"&mesFactura="+mesFactura;
   window.open(url,'', opciones);
}

JSP code:
','','2004')">
   
   


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


Thanks (Was: Problem when generating PDF in a new Window)

2004-11-26 Thread Adolfo De Unánue Tiscareño
Sorry , I already see was my problem, so let me put the solution here:
All the problem was in the struts-config.xml in this line:

change to this:

and voilá!
Hope this works for someone
Adolfo

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


Re: Tiles and file download

2004-11-26 Thread erh+struts
On Tue, Nov 23, 2004 at 09:43:19AM -0600, Matt Bathje wrote:

> My only problem with doing it this way is it changes the mime-type of 
> the file sometimes, which makes it harder for users to download. 
> Depending on the userbase you may or may not have this problem.

The problem with using tiles is that as soon as you start to insert
a tile the output buffer gets flushed (and flush="false" doesn't work).
So you get a bunch of whitespace inserted before the actual file contents.
You'll have the same issue with any jsp page but if you're careful you
can clear the output buffer just before the file data.

eric

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



refresh body only from JSP

2004-11-26 Thread Peter O'Reilly
Hi,
I am using tiles in my project using the classic layout 

This is my "tiles-defs.xml "

  
  
  
  
  
  
  


How can I create a JSP that will keep the header, footer and menu while only 
refreshing the body?  I keep getting the entire login.jsp page instead of it 
refeshing the body only.

Peter

__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

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



RE: refresh body only from JSP

2004-11-26 Thread David G. Friedman
Peter,

I believe you are confusing frames, or possibly "inline" frames, with tiles.
The tile definition assembles the components of a page and hands that
completed page back to your client's browser.  If your tiles defintion
includes parts such as a header, footer, navigation bar, and main (i.e.
"center") content, EVERYTHING will be assembled into a page and returned to
the client.

To update only a section of the open browser's content, you will likely need
either frames or "inline frames".  For more information on frames, see the
HTML 4.01 spec.  A brief tutorial on frames is available free from the W3C
(World Wide Web Consortium) at:
http://www.w3.org/TR/html401/present/frames.html

One particular link at the bottom of that page can direct you to a section
on "inline frames".

Regards,
David

-Original Message-
From: Peter O'Reilly [mailto:[EMAIL PROTECTED]
Sent: Friday, November 26, 2004 7:56 PM
To: [EMAIL PROTECTED]
Subject: refresh body only from JSP


Hi,
I am using tiles in my project using the classic layout

This is my "tiles-defs.xml "

  
  
  
  
  
  
  


How can I create a JSP that will keep the header, footer and menu while only
refreshing the body?  I keep getting the entire login.jsp page instead of it
refeshing the body only.

Peter

__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

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



Action path from Flash

2004-11-26 Thread Fedor Smirnoff
Hi,

 

I am trying to call an action from a Flash file. My applications are all
called as such:

 

Main.com/app1

Main.com/app2

 

The problem is that I want to keep flash script universal so I call action
as such:

 

/myAction.do

 

However, what happens is that Main.com/myAction.do is called instead of
Main.com/app1/myAction.do

 

Any ideas guys as to how to pull that off, I really don't want to do
app1/myAction.do and app2/myAction.do

 

 

Thanks,

Fedor

 

 



Action path from Flash

2004-11-26 Thread Fedor Smirnoff
Hi,

 

I am trying to call an action from a Flash file. My applications are all
called as such:

 

Main.com/app1

Main.com/app2

 

The problem is that I want to keep flash script universal so I call action
as such:

 

/myAction.do

 

However, what happens is that Main.com/myAction.do is called instead of
Main.com/app1/myAction.do

 

Any ideas guys as to how to pull that off, I really don't want to do
app1/myAction.do and app2/myAction.do

 

 

Thanks,

Fedor

 

 



Re: Action path from Flash

2004-11-26 Thread Dakota Jack
You need to fix your Flash not your Struts.  I call from Flash all the
time.  The new ActionScript is rad.


Jack





On Fri, 26 Nov 2004 22:37:05 -0800, Fedor Smirnoff <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am trying to call an action from a Flash file. My applications are all
> called as such:
> 
> Main.com/app1
> 
> Main.com/app2
> 
> The problem is that I want to keep flash script universal so I call action
> as such:
> 
> /myAction.do
> 
> However, what happens is that Main.com/myAction.do is called instead of
> Main.com/app1/myAction.do
> 
> Any ideas guys as to how to pull that off, I really don't want to do
> app1/myAction.do and app2/myAction.do
> 
> Thanks,
> 
> Fedor
> 
> 


-- 


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