RE: Using JSTL to access form bean properties

2005-08-15 Thread Paul McCulloch
Rather than remember the name of the form bean, I use the following:



Note that I uses session scoped form beans - the expression would have to
change slightly for request scoped ones.

Paul

> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED]
> Sent: 14 August 2005 19:18
> To: Struts Users Mailing List
> Subject: Re: Using JSTL to access form bean properties
> 
> 
> Your form bean should be in either request or session scope under the 
> name used to define it in struts-config.xml file. What I 
> usually do is 
> something like the following:
> 
> 
> 
> 
> and then you can use it like any other object with c:if or c:choose.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Even though the form bean is already defined in some scope, I 
> redefine 
> it at the top of the page to avoid having to make multiple reference 
> changes if my form name happens to change. If it does, I only 
> change it 
> in one place.
> 
> /robert
> 
> Néstor Boscán wrote:
> > Hi
> > 
> > Has anybody used JSTL to access form bean properties. I'm 
> using JSTL and
> > Struts Tags and I would like to do some conditioning using 
>  and
> >  using the form bean properties.
> > 
> > Regards,
> > 
> > Néstor Boscán
> > 
> > 
> > 
> > 
> -
> > 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]
> 

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: multipart request issues

2005-07-28 Thread Paul McCulloch
You're theory is correct. The input stream is consumed as it is parsed.

The process flow doesn't seem to match what I'm seeing (Struts 1.2.4). In
1.2.4 all off this is handled in the request processor - not the servlet.
The very first thing the request processor does (in processMultipart) is to
parse the input stream and put all of the request paramaters in the wrapped
request object.

You can access these with a simple request.getParamater() in
processPreprocess in your extended request processor.

There is still a problem with multipart requests in that the parameters are
never available in JSPs, as they get the original (rather than the wrapped)
request. I overcome this by coppying the paramaters into a request scoped
map.

Hope this is of some use.

Paul


> -Original Message-
> From: Carl Smith [mailto:[EMAIL PROTECTED]
> Sent: 28 July 2005 15:38
> To: user@struts.apache.org
> Subject: multipart request issues
> 
> 
> 
> I am having issues to get the request parameters from a 
> multipart request, le me explain my problem first:
> 
> Our flow of process is:
> 
> (1) a multipart request is submitted to a struts action 
> (let's say updateTableAction.do) using POST
> 
> (2) the multipart request is processed by 
> ActionServlet.process() method
> 
> (3) in our processPreprocess method, which overrides 
> processPreprocess in RequestProcessor.java from struts,
> 
> we need the parameters from this multipart request thus I am 
> doing this:
> 
> CommonsMultipartRequestHandler commonMultiPartHandler = new 
> CommonsMultipartRequestHandler(); 
> 
> 
> 
> try {
> 
> commonMultiPartHandler.handleRequest(request);
> 
> }catch(Exception e){
> 
> // some handling
> 
> }
> 
> Hashtable ht = commonMultiPartHandler.getTextElements(); // 
> thus I get the parameters from the request
> 
> (4) however, all the fields/parameters in multipart request 
> are no longer there in the updateTableAction.do
> 
> Can you help me find out why this is happening? One theory is 
> that a multipart request can't be parsed twice. Is this 
> correct, if it is correct, do you have any alternative?
> 
> Thanks.
> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 

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: Performance profiling

2005-05-26 Thread Paul McCulloch
I've used Borland's OptimizeIt fairly successfully. I'm not sure of the cost
(there may be a free trial available) - it may well be cheaper to just buy
another processor!

Paul

> -Original Message-
> From: Ulrich Elsner [mailto:[EMAIL PROTECTED]
> Sent: 2005/26/05 17:17
> To: user@struts.apache.org
> Subject: Performance profiling
> 
> 
> Hi,
> 
> a recent load test showed that my Struts-based application has
> some problems achieving the desired performance. On a small
> Solaris machine it starts to slow down when reaching about 
> 140 requests/min, while I'd like it to handle about 200. 
> Using more hardware solves the problem (on a multi-processor
> machine I can easily handle over 300 requests/min) but I'd like
> to avoid the additional investment.
> 
> Now, my research indicates that struts itself should easily
> handle that kind of load, so the culprit is probably my own
> code. 
> 
> Can anybody recommend a profiler that allows me to narrow
> my search for inefficient code? I have tried EJP and did get
> it running, but for some reason it returns enormous amount of
> data for java.*, sun.* and some apache.* classes but not for 
> my own code or for struts classes.
> 
> The actual setup is struts 1.2.4 running in a tomcat 4.1. 
> behind an Apache 1.3 webserver.
> 
> Regards,
> 
> Ulrich Elsner
> 
> -
> 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: How to run an action automatically like thread ?

2005-05-26 Thread Paul McCulloch
Quartz (http://www.opensymphony.com/quartz/) is a job scheduling system
which sounds like it could help you out.

I'd reconsider whether your code should really be in a Struts action. What
are you gaining by using Struts for a non-web bit of processing?

Paul

> -Original Message-
> From: minhnguyet [mailto:[EMAIL PROTECTED]
> Sent: 2005/26/05 07:21
> To: Struts FAQ
> Subject: How to run an action automatically like thread ?
> 
> 
> Hi all ,
> I have an action in struts  that I want it will   read 
> database and process some another actions base on that 
> database every 10 minutes . But I don't how to make it 
> automatically run like thread in application ! Any recomments ? 
> 
> Thanks in advance  for help .
> 

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: Getting name of form bean?

2005-05-16 Thread Paul McCulloch
In request scope, under the key 'org.apache.struts.action.mapping.instance'
is an object of type ActionMapping. The name property of this ActionMapping
is the name of the form bean being handled by the current request.

This relates to the form bean specified for the request being processed -
not the the form bean reffered to by . If you need access to that
form bean then  or  might help by exposing form
bean properties.

HTH

Paul

> -Original Message-
> From: John Moore [mailto:[EMAIL PROTECTED]
> Sent: 2005/16/05 13:09
> To: Struts Mailing List
> Subject: Getting name of form bean?
> 
> 
> In a JSP which uses html:form, is there any way of 
> determining the name 
> of the form bean (assuming it's been set in the mapping, of 
> course, not 
> in the html:form tag!).
> 
> TIA
> 
> 
> -- 
> ==
> John Moore  -  Norwich, UK  -  [EMAIL PROTECTED]
> ==
> 
> -
> 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: Best practice for redirecting on session timeout?

2005-05-12 Thread Paul McCulloch
How does your system know to send the user to the login page in the first
place?

Typically an application (or the container if you are letting it manage
authentication) detectes that a request is made with no session/an invalid
session/a new session. It then sends the user to the login page.

Assuming your security is managed in such a way then you will just need to
set the session timeout in web.xml to make this happen. This will inavlidate
the session after a specified period of inactivity, so the next request that
is made will be with an invalid session id/new session - so the login page
will be displayed.

Paul


> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> Sent: 2005/12/05 11:19
> To: 'Struts Users Mailing List'
> Subject: Best practice for redirecting on session timeout?
> 
> 
> Folks,
> 
> 
> I there a standard way of handling session timeouts. If a 
> user has been
> inactive for longer than N minutes I want to redirect them to 
> the login
> page.
> 
> It occurs to me that this could be done in a) the 
> RequestProcessor or b) in
> an JSP include.
> 
> 
> Is there another way? 
> What is best practice?
> 
> 
> TIA - Adam
> 
> 
> -
> 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: Injecting actions globally

2005-05-09 Thread Paul McCulloch
Container managed security will do this for you (though it has some
drawbacks). If you don't need the advantages of container managed auth (such
as automatic propogation of credentials to EJBs) then you should consider
filters to implement this. Filters are a relatively recent servlet feature -
I'd probably disregard posts from 2001.

I believe there is a package called security-filter which does lots of this
kind of thing for you. Search the archives - I've posted a few times on this
subject in the last few months, there is some useful advice & pointers in
those threads.

Paul

> -Original Message-
> From: Paul Daniell [mailto:[EMAIL PROTECTED]
> Sent: 2005/09/05 00:11
> To: user@struts.apache.org
> Subject: Injecting actions globally
> 
> 
> I have an application which has some actions which require 
> authentication and some which do not. When moving between a page that 
> doesn't require authentication to one that does, I'd like to 
> "inject" a 
> login form page. Upon authentication, a session identifier is 
> placed in 
> a client-side cookie. Subsequently I'd like to return the user to the 
> original, requested action. 
> 
> Is there a standard pattern to do this in Struts 1.2? I found this 
> response from Craig M.  ( 
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg
> 01812.html )
> from January 2001, which suggests that in Struts 1.0 you ought to 
> subclass ActionServlet. But he also says that future versions might 
> alter this behavior. Is this still the standard way to get such 
> behavior. Perhaps I am being overly academic, but it seems like 
> modifying the ActionServlet means penetrating deep into the 
> framework to 
> do work that ought to be able to accomplished merely through 
> actionmappings and forwards.
> 
> Any suggestions are sincerely appreciated,
> Paul
> 
> -
> 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: Multiple forms on one page

2005-04-27 Thread Paul McCulloch
You can only submit one form at a time. This is an http issue - not a Struts
one.

The solution I have used is to combine all the neccessary fields into a
single form. 

I typically do this with nested objects  - so my form bean would have two
properties "data" & "search" say. These objects themselves contain the
String properties for user input. If you are using JSPs then the nested
taglib makes rendering this stuff easy.

Paul

> -Original Message-
> From: Fleischle, Samuel [mailto:[EMAIL PROTECTED]
> Sent: 2005/27/04 09:48
> To: user@struts.apache.org
> Subject: Multiple forms on one page
> 
> 
> Does Struts support more then one form on a single page?
> 
>  
> 
> In my application I put two forms on one page, one form 
> containing the data
> and one form containing some search fields. I define one form 
> bean for each
> form. But if I submit one of these forms, e.g. the search 
> form, I got only
> one form filled with data by my form bean.
> 
>  
> 
> Is there a way, Struts provides to forms?
> 
>  
> 
> Regards,
> 
> Sam
> 
> 

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: HTML:tags in a Tag

2005-04-21 Thread Paul McCulloch
In doEndTag() I have some code like:

String includeFile = "/shared/tagsupport/somepage.jsp?somearg=" +
someargval;

pageContext.include(includeFile );

return EVAL_PAGE;

And that's it. What isn't working for you?

Paul

> -Original Message-
> From: David Whipple [mailto:[EMAIL PROTECTED]
> Sent: 2005/20/04 17:54
> To: Struts Users Mailing List
> Subject: RE: HTML:tags in a Tag
> 
> 
> Can you elaborate a bit on this?  I couldn't get this to work 
> when I was
> trying it, but maybe I didn't do what you are doing.
> 
> It would be great to get this to work - I have a need to do 
> this in our
> project.
> 
> Thanks,
> Dave
> 
> 
> 
>   
>   
>  
>   Paul McCulloch  
>   
>  
>   <[EMAIL PROTECTED]To:   
> 'Struts Users Mailing List'   
>  
>   ystems.com>   cc:   
> (bcc: David Whipple/DTCC) 
>  
> Subject:  
> RE: HTML:tags in a Tag
>  
>   04/20/2005 11:39 AM 
>   
>  
>   Please respond to   
>   
>  
>   "Struts Users Mailing   
>   
>  
>   List"   
>   
>  
>   
>   
>  
> 
> 
> 
> 
> I achieve this by having my tag include 
> (pageContext.include() ) a JSP page
> which has the other custom tags I want to use.
> 
> Paul
> 
> > -Original Message-
> > From: Scott Purcell [mailto:[EMAIL PROTECTED]
> > Sent: 2005/20/04 16:21
> > To: user@struts.apache.org
> > Subject: HTML:tags in a Tag
> >
> >
> > Hello,
> >
> > While finishing up a project, I found the need to create a
> > Tag to use in my JSP file.
> >
> > Problem is, I have created all view using the HTML:tags. Can
> > the HTML:tags be used in a Tag file? In my tag, I have access
> > to a JspWriter, but I am not sure how to use the tags in the
> > class, since it is a class.
> >
> > Can this be done? Any ideas of workarounds?
> >
> > Thanks,
> > Scott
> >
> >
> > 
> -
> > 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]
> 
> 
> 
> 
> 
> -
> 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: html:text area

2005-04-20 Thread Paul McCulloch
Watch out for users pasting in text that exceeds the allowed limit!

Paul

> -Original Message-
> From: Mike Darretta [mailto:[EMAIL PROTECTED]
> Sent: 2005/20/04 17:03
> To: Struts Users Mailing List
> Subject: Re: html:text area
> 
> 
> I had the same issue, and resolved it by executing a simple 
> javascript 
> upon each keystroke. If the user exceeded the max, the 
> keystroke would 
> be rejected (that is, no more text could be entered without deleting 
> previous text)
> 
> In my JSP...
> onkeydown="return 
> checkSizeAgainstMax(this, value, 65536)"
>style="width:100%"/>
> 
> My javascript
> function checkSizeAgainstMax(textArea, str, maxLen) {
> if (str.length >= maxLen) {
> textArea.value = textArea.value.substring(0, maxLen);
> }
> }
> 
> Mike
> 
> 
> Srilatha Salla wrote:
> 
> >Hi,
> >Can we restrict the length of textarea with any of the attributes?
> >I have textarea that should not accept more than 250 
> characters, so I want to know if I can restrict the length 
> with textarea attibutes.
> > 
> >Thanks.
> >
> >__
> >Do You Yahoo!?
> >Tired of spam?  Yahoo! Mail has the best spam protection around 
> >http://mail.yahoo.com 
> >  
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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: HTML:tags in a Tag

2005-04-20 Thread Paul McCulloch
I achieve this by having my tag include (pageContext.include() ) a JSP page
which has the other custom tags I want to use.

Paul

> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: 2005/20/04 16:21
> To: user@struts.apache.org
> Subject: HTML:tags in a Tag
> 
> 
> Hello,
> 
> While finishing up a project, I found the need to create a 
> Tag to use in my JSP file.
> 
> Problem is, I have created all view using the HTML:tags. Can 
> the HTML:tags be used in a Tag file? In my tag, I have access 
> to a JspWriter, but I am not sure how to use the tags in the 
> class, since it is a class.
> 
> Can this be done? Any ideas of workarounds?
> 
> Thanks,
> Scott
> 
> 
> -
> 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: Session now with Filter

2005-04-14 Thread Paul McCulloch
Hi Scott,

Firstly - changing the subject breaks the threading in many mailreaders!

Securing your application is completely independant of Struts. Neither needs
to know anything about the other - that is why it is such a nice & easy
solution.

Yes - I'm implying exactly what you say I am.

Here's the pseudocode for the filter:

doFilter(...){

if(request.getSession().getAttribute("user" == null)){
//Not authenticated - send all non login request to the
login page
if(request.getServletPath().equals("the login url")){
filterChain.doFilter(..);
}else{
response.sendRedirect("the login page");
}

}else{
//user is authenticated - send the request on it's way
filterChain.doFilter(..)
}

}

That's it.

Paul

> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: 2005/14/04 16:03
> To: Struts Users Mailing List
> Subject: Session now with Filter
> 
> 
> Thank you very much for your comments on this topic Paul.
> 
> Now, I understand the basics of using a filter, extending the 
> base class and configuration in the web.xml file. But how can 
> I use a filter in unison with Struts. 
> 
> I am not seeing how I would use the filter. Are you implying 
> that I should possibly use the filter to check for the 
> existance of the session and "user" object? And if the 
> session does not exist? use a redirect to the login page? So 
> this filter would only look at incoming requests?
> 
> Thanks,
> Scott
> 
> 
> 
> 
> 
> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 14, 2005 9:33 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Handling Session Expiration Properly
> 
> 
> Hi Scott,
> 
> I can't remeber if it was your question I replied to regarding
> authentication where I recommended using a filter to do this, 
> rather than
> modifying the request processor. If it wasn't your question then I'd
> recommend a serach of the archives. If it was you - I still 
> think modifying
> the request processor is not the best solution!
> 
> Anyway - some comments on the solution you are working with...
> 
> I suggest that you only create the user object and attach it 
> to the session
> object when the user successfully logs in. The presence of a 
> user object in
> session tells your application that there is a valid user - 
> and who the user
> is.
> 
> If the user's session expires then the next request they make 
> will be for a
> new session (with no user) - so they will be sent to the login page.
> 
> There is no need to change the signature of your base action. The user
> object is in session which can be obtained from the existing paramater
> "request" - there is no need to explicitly pass the user around.
> 
> Changing the base action to manage security throws up some 
> other pottential
> problems. If you start to use another action variant, such as
> DispatchAction, you won't have any security. If you really 
> don't want to use
> Filters then I suggest that you modify the request processor 
> to check that
> the user is logged in before calling your action, and send 
> them to the login
> page if they aren't
> 
> Seriously though - a filter is far easier (& web framework 
> agnostic) way to
> handle this.
> 
> HTH, and feel free to carry on beating this one...
> 
> Paul
> 
> 
> > -Original Message-
> > From: Scott Purcell [mailto:[EMAIL PROTECTED]
> > Sent: 2005/14/04 15:04
> > To: user@struts.apache.org
> > Subject: Handling Session Expiration Properly
> > 
> > 
> > Hello,
> > I hope I have not beaten this to death on this list, but I 
> > have never gotten an answer that has served my interest. So I 
> > rethought the question and I am reposting it now. 
> > 
> > The application I created, is a web-app in which a login is 
> > required of a "username" and "password".  Pretty standard 
> > stuff. I am not using container authentication, I am just 
> > going to a database and pulling out data based upon the entries. 
> > 
> > The way I configured this, is I extended the 
> > RequestProcessor, and each time a user hits the Controller, I 
> > check if there is a "user" object in the session. If there is 
> > great. If not I create a new one and set a logged in boolean 
> > to false. Now if the user has successfully lo

RE: Handling Session Expiration Properly

2005-04-14 Thread Paul McCulloch
Hi Scott,

I can't remeber if it was your question I replied to regarding
authentication where I recommended using a filter to do this, rather than
modifying the request processor. If it wasn't your question then I'd
recommend a serach of the archives. If it was you - I still think modifying
the request processor is not the best solution!

Anyway - some comments on the solution you are working with...

I suggest that you only create the user object and attach it to the session
object when the user successfully logs in. The presence of a user object in
session tells your application that there is a valid user - and who the user
is.

If the user's session expires then the next request they make will be for a
new session (with no user) - so they will be sent to the login page.

There is no need to change the signature of your base action. The user
object is in session which can be obtained from the existing paramater
"request" - there is no need to explicitly pass the user around.

Changing the base action to manage security throws up some other pottential
problems. If you start to use another action variant, such as
DispatchAction, you won't have any security. If you really don't want to use
Filters then I suggest that you modify the request processor to check that
the user is logged in before calling your action, and send them to the login
page if they aren't

Seriously though - a filter is far easier (& web framework agnostic) way to
handle this.

HTH, and feel free to carry on beating this one...

Paul


> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: 2005/14/04 15:04
> To: user@struts.apache.org
> Subject: Handling Session Expiration Properly
> 
> 
> Hello,
> I hope I have not beaten this to death on this list, but I 
> have never gotten an answer that has served my interest. So I 
> rethought the question and I am reposting it now. 
> 
> The application I created, is a web-app in which a login is 
> required of a "username" and "password".  Pretty standard 
> stuff. I am not using container authentication, I am just 
> going to a database and pulling out data based upon the entries. 
> 
> The way I configured this, is I extended the 
> RequestProcessor, and each time a user hits the Controller, I 
> check if there is a "user" object in the session. If there is 
> great. If not I create a new one and set a logged in boolean 
> to false. Now if the user has successfully logged in, I set 
> the logged in boolean to true.
> 
> This step is where I ran into problems. I checked the FAQ on 
> session expiration handling, and the FAQs recommended 
> extending a base action class and checking for the logged in 
> flag. If the flag was not set, then I would throw a global 
> exception, throw them to the front door with a ActionMessage 
> stating "session expired".
> 
> Now don't get me wrong this works, but by extending the 
> Action class I kind of screwed myself by not being able to 
> use a RequestDispatcher because now the signature of the 
> "subclassed action" was not the same as what the 
> requestDispatcher is looking for. When I extended the Action, 
> I added a check for the user flag:
> eg:
> public ActionForward executeAction(ActionMapping mapping,
>ActionForm form,
>HttpServletRequest request,
>HttpServletResponse response,
>AppObject appObject,
>UserObject user)
>   throws Exception {
> 
> 
> So to sum this up, when I am in the RequestProcessor, is 
> there anyway to find the Action they are going to, so I can 
> do my check of logged in? I am looking at the method 
> signature and do not see anything but a request and response 
> object here.
> 
> Or is there another method I should be extending to find out 
> where they are going? Because if I can see that they are 
> going to an inside page, and their flag is set to "not logged 
> in", then I can send them to the front door with a message 
> stating "session expired" and not send the message to people 
> who are just hitting the front login page.
> 
> If this does not make sense, please email me back.
> 
> Thanks for your time,
> Scott
> 
> 
> -
> 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

RE: [OT] How to transpose a table in MS SQL Server 2000

2005-04-08 Thread Paul McCulloch
Assuming that month, val1 & val2 are the *names* of columns this is going to
be a tricky problem to solve with just SQL. You need to query the system
tables to extract the names of the columns.

The other problem is that the number of columns in your result set needs to
vary depending on the number of rows in your source data.

The only way I could solve this would be procedurally using TransactSQL
(create a temp table, populate it & select from it).

Paul

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 08 April 2005 16:12
> To: Struts Users Mailing List
> Subject: RE: [OT] How to transpose a table in MS SQL Server 2000
> 
> 
> id/ID are synthetic keys and can be ignored (as well as 
> 'total').  So, the 
> simplified case is:
> 
> source_table
> -
> month   val1val2
> jan 1   2
> feb 3   4
> 
> target_target
> -
> VAL COL1COL2
> month   jan feb
> val1    1   3 
> val22   4
> 
> Thanks,
> Dennis
> 
> 
> 
> 
> 
> Paul McCulloch <[EMAIL PROTECTED]> 
> 04/08/2005 10:47 AM
> Please respond to
> "Struts Users Mailing List" 
> 
> 
> To
> 'Struts Users Mailing List' 
> cc
> 
> Subject
> RE: [OT]  How to transpose a table in MS SQL Server 2000
> 
> 
> 
> 
> 
> 
> I don't 100% understand your tables. Where does ID come from 
> (the values 1 
> &
> 2 exist in the first view, but 1,2,3,4 in the second).
> 
> Are the totals derived?
> 
> Give me the SQL for the first view and I'll have a look.
> 
> Paul
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: 08 April 2005 14:46
> > To: Struts Users Mailing List
> > Subject: [OT] How to transpose a table in MS SQL Server 2000
> > 
> > 
> > So, I have the following table:
> > 
> > id  month   val1val2total
> > 1   jan 1   2   3
> > 2   feb 3   4   7
> > 
> > And I'd like it transformed to:
> > 
> > ID  VAL COL1COL2
> > 1   month   jan feb
> > 2   val11   3 
> > 3   val22   4
> > 4   total   3   7
> > 
> > I'm guessing that it's possible, as I've seen variants of 
> > this type of 
> > tranformation.  I have googled this, but the solutions (I've 
> > found) are 
> > considerably more complicated and revolve around 
> > summing/aggregating, when 
> > I just need to change the structure of the results. 
> > 
> > Has anybody seen a solution that fits this problem?
> > 
> > Thanks,
> > Dennis
> > 
> > 
> > 
> > 
> > [EMAIL PROTECTED] 
> > 04/08/2005 09:26 AM
> > Please respond to
> > "Struts Users Mailing List" 
> > 
> > 
> > To
> > "Struts Users Mailing List" 
> > cc
> > 
> > Subject
> > [OT] RE: concurrency problem
> > 
> > 
> > 
> > 
> > 
> > 
> > As I hit the send button, something tickled in the back of my 
> > mind, and I 
> > began to remember that the spec forbids thread primitiives on 
> > bean methods 
> > 
> > and that the EJB container is responsible for handling 
> > concurrent access. 
> > Sounds like your provider might have a defect.
> > 
> > Dennis
> > 
> > 
> > 
> > 
> > 
> > [EMAIL PROTECTED] 
> > 04/08/2005 09:13 AM
> > Please respond to
> > "Struts Users Mailing List" 
> > 
> > 
> > To
> > "Struts Users Mailing List" 
> > cc
> > 
> > Subject
> > RE: concurrency problem
> > 
> > 
> > 
> > 
> > 
> > 
> > You're synchronizing on an object which is unique for each 
> > user, which 
> > might explain why more than 1 thread can concurrently enter 
> > the critsec. 
> > Wouldn't a better solution be to declare the method as synchronized?
> > 
> > Dennis
> > 
> > 
> > 
> > 
> > 
> > "Kalra, Ashwani" <[EMAIL PROTECTED]> 
> > 04/08/2005 08:53 AM
> > Please respond to
> > "Struts Users Mailing List" 
> > 
> > 
> > To
> > "Struts Users Mailing List" 
> > cc
> > 
> > Subject
> > RE: concurrency problem

RE: [OT] How to transpose a table in MS SQL Server 2000

2005-04-08 Thread Paul McCulloch
I don't 100% understand your tables. Where does ID come from (the values 1 &
2 exist in the first view, but 1,2,3,4 in the second).

Are the totals derived?

Give me the SQL for the first view and I'll have a look.

Paul

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 08 April 2005 14:46
> To: Struts Users Mailing List
> Subject: [OT] How to transpose a table in MS SQL Server 2000
> 
> 
> So, I have the following table:
> 
> id  month   val1val2total
> 1   jan 1   2   3
> 2   feb 3   4   7
> 
> And I'd like it transformed to:
> 
> ID  VAL COL1COL2
> 1   month   jan feb
> 2   val11   3 
> 3   val22   4
> 4   total   3   7
> 
> I'm guessing that it's possible, as I've seen variants of 
> this type of 
> tranformation.  I have googled this, but the solutions (I've 
> found) are 
> considerably more complicated and revolve around 
> summing/aggregating, when 
> I just need to change the structure of the results. 
> 
> Has anybody seen a solution that fits this problem?
> 
> Thanks,
> Dennis
> 
> 
> 
> 
> [EMAIL PROTECTED] 
> 04/08/2005 09:26 AM
> Please respond to
> "Struts Users Mailing List" 
> 
> 
> To
> "Struts Users Mailing List" 
> cc
> 
> Subject
> [OT] RE: concurrency problem
> 
> 
> 
> 
> 
> 
> As I hit the send button, something tickled in the back of my 
> mind, and I 
> began to remember that the spec forbids thread primitiives on 
> bean methods 
> 
> and that the EJB container is responsible for handling 
> concurrent access. 
> Sounds like your provider might have a defect.
> 
> Dennis
> 
> 
> 
> 
> 
> [EMAIL PROTECTED] 
> 04/08/2005 09:13 AM
> Please respond to
> "Struts Users Mailing List" 
> 
> 
> To
> "Struts Users Mailing List" 
> cc
> 
> Subject
> RE: concurrency problem
> 
> 
> 
> 
> 
> 
> You're synchronizing on an object which is unique for each 
> user, which 
> might explain why more than 1 thread can concurrently enter 
> the critsec. 
> Wouldn't a better solution be to declare the method as synchronized?
> 
> Dennis
> 
> 
> 
> 
> 
> "Kalra, Ashwani" <[EMAIL PROTECTED]> 
> 04/08/2005 08:53 AM
> Please respond to
> "Struts Users Mailing List" 
> 
> 
> To
> "Struts Users Mailing List" 
> cc
> 
> Subject
> RE: concurrency problem
> 
> 
> 
> 
> 
> 
> 
> Isnt that valid when request is going to same action. In my scenario, 
> different actions are invoked quickly and all the actions 
> have this call 
> to SFSB.   Which I want to synchronise
> 
> Thanks & Regds
>  Ashwani
> 
> Ext: 1860
> 
> 
> 
> 
> 
> 
> 
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 08, 2005 6:04 PM
> > To: Struts Users Mailing List
> > Subject: Re: concurrency problem
> >
> 
> >
> 
> > You'd be better off implementing token processing.
> >
> 
> > Struts includes token generation and helper methods to ensure
> 
> > only one valid
> 
> > request is handled at a time.  Look at the struts example 
> application
> 
> > (mailreader) for an example.
> >
> 
> > For detailed info on why this pattern works, see:
> > http://www.amazon.com/exec/obidos/tg/detail/-/0201634988/ref=l
> > pr_g_1/102-8250064-5792120?v=glance&s=books
> >
> 
> >
> 
> >
> 
> >
> 
> > --
> > James Mitchell
> > Software Engineer / Open Source Evangelist
> > Consulting / Mentoring / Freelance
> > EdgeTech, Inc.
> > 678.910.8017
> > AIM:   jmitchtx
> > Yahoo: jmitchtx
> > MSN:   [EMAIL PROTECTED]
> >
> 
> >
> 
> >
> 
> >
> 
> > - Original Message -
> 
> > From: "Kalra, Ashwani" <[EMAIL PROTECTED]>
> > To: "Struts (E-mail)" 
> > Sent: Friday, April 08, 2005 7:10 AM
> > Subject: concurrency problem
> >
> 
> >
> 
> >
> 
> > I am facing concurrency problem in following scenario.
> >
> 
> > All our action classes call same stateful session bean . 
> 
> > Each action class
> 
> > obtains the reference  from HTTPSession object and calls one
> 
> > and only one
> 
> > business method.
> > To prevent the concurrent access to this instance which
> 
> > occurs when user
> 
> > immediately presses two links quickly in succession I am
> 
> > using the following
> 
> > code block
> >
> 
> >
> 
> > execute(...)  //execute methods of Action class
> > {
> > 
> > 
> >
> 
> > //Obtain the session from  Request.User will always be in 
> session here
> > session=request.getSession()
> > Synchronised(session)
> > {
> > //call ejb's  business method.
> > }
> >
> 
> > }
> >
> 
> > However sometimes  more than one thread is able to pass
> 
> > through, And I get
> 
> > exception from Appserver. As 2 threads are not allowed for
> 
> > statefull Session
> 
> > bean.
> > Can there be problem in above code. Is it ok to synchronise
> 
> > on session
> 
> > object.
> >
> 
> >
> 
> >
> 
> >
> 
> >
> 
> > Thanks & Regds
> >  Ashwani
> >
> 
> > Ext: 1860
> >
> 
> >
> 
> >
> 
> >
> 
> >
> 
> >
> 
> >
> 
> > This message contains information that may be privileged or
> 
> > conf

RE: Authorized Site Creation With Struts

2005-04-08 Thread Paul McCulloch
The two approaches I have succesfully used are container managed
authentication & Filters.

Filters are simpler & more flexible than container managed authentication,
so unless you need a particular feature of CMA (e.g. automatic propogation
of credentials to EJBs) I wouldn't recommend it.

I believe, though I haven't used it, that there is a free package called
SecurityFilter which does lots of cools things for you.

Paul

> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: 08 April 2005 15:28
> To: user@struts.apache.org
> Subject: Authorized Site Creation With Struts
> 
> 
> Hello,
> First off, I am having trouble with creating a more elegant 
> solution to a proboem.
>  
> A- Problem, I have a site that requires authentication 
> (form-based) when they hit our site. 
> Upon building the site which requires an "AppObject" and 
> "UserObject", I subclassed the
> RequestProcessor, and put in logic to ensure that both 
> objects existed.
>  
> This works good.
>  
>Next, I needed to find out when a user's session expired. 
> Upon further investigation,
>I subclassed an Action class and added a new 
> executeAction(signature) that pulled in
>the AppObject and UserObject that were in the session from 
> the Request Processor.
>  
>   I then checked if the UserObject had a logged-in flag. If 
> so, great, they can work, else
>   I would throw them to the front door and create a 
> ActionMessage that says "Session Expired".
>  
> All of this works, and does its job. Problem is now, I am not 
> happy with my creation. It screwed with my ability to use
> DispatchAction and LookupDispatchAction. Two things I wasn't 
> sure I would need when I began.
>  
> Anyway, I have searched and searched, and was hoping someone 
> may have a better way to handle
> this session-management possibly all in the RequestProcesor?
>  
> The problem I am finding, is that I create new UserObject and 
> AppObject each time someone comes through, because I do not 
> know if they
> are new or returning users. It is not until they are looking 
> for an inside page, that I am aware they are not valid.
>  
> Does this make sense? I figured a lot of you out there may 
> have this same type of secure site. Any ideas?
>  
> Thanks,
> 
> Scott K Purcell
> 
>  
> 
>  
> 
> 

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]



Reading parameters from a multipart request in a custom tag

2005-03-24 Thread Paul McCulloch
I'm trying to access the request parameters (i.e. submitted form values) in
a custom tag. This is fine with 'normal' forms but with multipart forms
(enctype="multipart/form-data") this isn't working.

The code in the custom tag does, in essence, what the RequestProcessor does
- calls org.apache.commons.fileupload.FileUpload.parseRequest().

I believe that the problem is that it is not possible to read the request's
input stream more than once. The RequestProcessor reads the request's input
stream (and puts the parameters in the wrapped request object), so it
appears to not be available for me to read in the custom tag. The Struts
wrapped request is not available (AFAIK) to me in my custom tag.

I was wondering if anyone could confirm my analysis and/or suggest a
solution. 

The workaround I am currently using is to put the request parameters in a
request scoped attribute, in my Action. However this approach couples
together my Struts application with the open source custom tag - not a real
solution.

TIA,

Paul

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: html: tag four buttons, one action problem

2005-03-24 Thread Paul McCulloch
I use the approach outlined in
http://www.michaelmcgrady.com/button/jsp/button_talk.jsp. In summary each
button, when clicked, puts their value in a different request paramater - by
looking for the presence of a partcicular paramater a different dispatch
method can be called.

This approach should be relatively easy to use with non dispatch actions
with a few changes to the RequestProcessor.

HTH,

Paul

> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: 23 March 2005 20:59
> To: user@struts.apache.org
> Subject: html: tag four buttons, one action problem
> 
> 
> Hello,
> I have a form, lets say that has a select list on it.
> Under it I have the ability to
> [edit], [delete], [modify] or [cancel].
>  
> Each of these buttons goes to a different 
>  
> but the form page is set for just one of the actions. And to 
> top this off, I cannot do a href_link, I need to submit the 
> form to get the selected value from the form.
>  
> We are using links, but they are css links (See below). One 
> of my guys said we could just use the javascript (see last 
> link) and then change the action of the form, but I was 
> hoping there was a cleaner way.**
>  
> Here is the actual page links.  They appear to only do a href 
> and not a submit, but even if they did submit, I need to 
> change action.
>  The last one calls a javascript, changes the action and 
> submits, but I feel it is not clean.
> Is there a cleaner way to handle this.
>  
> *Optimal would be a tag that submits to a certain action:**
>  
>  
> New 
> User
> Edit 
> User
>  styleClass="mainLink">Delete User
>  styleClass="mainLink">Cancel
>  styleClass="mainLink">Foo Bar**
>  
>  
> I am sorry for all questions in this regard, but I could use 
> some help.
>  
> Scott
>  
>  
> 

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: Is it possible to harvest the form values and populate an act ionform without submitting the form?

2005-03-03 Thread Paul McCulloch
Could the button on your parent submit the form to the backend with a new
popup windows defined as the "target" attribute (of the html form)? That way
your main form values are sent to the backend, but the results (i.e. your
wizard) is shown in the popup window.

Paul

> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> Sent: 03 March 2005 16:10
> To: 'Struts Users Mailing List'
> Subject: Is it possible to harvest the form values and populate an
> actionform without submitting the form?
> 
> 
> Folks,
> 
> 
> I have a tricky little problem with Struts 1.1:
> 
> I have a form, on which there is a button that starts a 
> wizard in a popup
> modal dialog box.
> The wizard behaviour depends on some of the values that have 
> already been
> entered in the parent form, and when it finishes the parent 
> form is further
> populated.
> 
> 
> Rather than pass the form values as HTTP params to the 
> wizard, I elected to
> perform the backend processing prior to starting the wizard. 
> This ensures
> that all the necessary values are computed correctly and 
> would normally be
> done by submitting the parent page form. 
> 
> But, the backend processing is invoked by the wizard calling 
> a URL as part
> of its initialisation. The parent form is not submitted, 
> hence the values
> from the parent form are not transferred to the actionform 
> prior to the
> backend processing being invoked.
> 
> 
> Is there anyway round this? Is it possible to harvest the 
> parent form values
> explicitly to ensure that the actionform is populated?
> 
> 
> TIA - Adam Lipscombe
> 
> 
> 
> 
> 
> 
> 
> -
> 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: RequestURI (Action not JSP)

2005-03-01 Thread Paul McCulloch
I don't think you need to do this. If you miss out the requestURI attribute
then the current request's URI is used, which will (in a typical struts
application) be the URI of the last action - not the JSP forwarded to.

If you need more help with this then post to the displaytag mailing list.

Paul

> -Original Message-
> From: Tim Christopher [mailto:[EMAIL PROTECTED]
> Sent: 28 February 2005 21:31
> To: Struts Users Mailing List
> Subject: Re: RequestURI (Action not JSP)
> 
> 
> Hi,
> 
> I'd like to be able to access the path of my Struts Action as the
> Display Tag requires a parameter 'requestURI'.  It needs this
> attribute so that it can append values to the end of the current url -
> without the requestURI it will make the link point to the jsp which is
> located under the WEB-INF directory.
> 
> The best way I can think of doing this is to extend the
> RequestProcessor to add request.getRequestURI() as a variable stored
> in each request.  I will then access like this within a JSP:
> 
> <% String a = (String) request.getAttribute("actionName"); %>
> 
> 
> 
> 
> I don't seem to be able to extract it within the display:table tag
> itself, no matter how I nest different "s and 's...  However as tables
> are only on a relatively small number of pages I'm not sure this is
> the best way, also it looks a bit clumsy,
> 
> Any suggestions?
> 
> Tim Christopher
> 
> -
> 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: Hibernate: when 2 users simultaneous edite

2005-02-22 Thread Paul McCulloch
This is well of topic - please use [OT]in your subject in the future.

This is a classic multi user application problem. The problem is commonly
known as 'lost update' & an often used solution is optimistic locking.

In my experience using a 'version' column on each table is easier to manage
than timestamps. Just increment the version number when you do an update &
check that the current version on the record is the same as the retrieved
version prior to updating.

Hibernate has this functionality build in  - see
http://www.hibernate.org/hib_docs/reference/en/html/transactions.html#transa
ctions-optimistic

Paul

> -Original Message-
> From: Lee Harrington [mailto:[EMAIL PROTECTED]
> Sent: 22 February 2005 15:56
> To: Struts Users Mailing List
> Subject: Hibernate: when 2 users simultaneous edite
> 
> 
> Perhaps this is a bit off topic, but I know there are struts users
> like me that use Hibernate:
> 
> What happens when two people edit a record at the same time? Unless
> something is done, the last person to save winsthe first edits are
> lost.
> 
> I'm seeking input on the following code I wrote to have some
> protection from this. All of my records have a "last_mod_date" field.
> When someone goes to a page, the keep track of the original
> last_mod_date value. When they save...the last_mod_date in the
> database is checked to see if it's still the same. If it's not,
> someone has changed the record...and the user is informed...and there
> are various resolutions that can be coded from that point.
> 
> Please read and comment on the following code and let me know if there
> is a better way to handle this situation.
> 
> 
>/**
> * safePersist(Metric) updates or saves specfied
> Metric through Hibernate.
> * Checks to see that value of last_mod_date has not
> changed, and returns
> * error if it has.
> *
> * @param Metric A Metric to be updated
> * @param oldLastModDate the original lastModDate before 
> any edits were done
> *
> */   
>public String safePersist(Metric metric, java.util.Date
> oldLastModDate) throws InfrastructureException
>{
>   Metric oldMetric;   // initialize oldMetric
>   
>   //
>   // Begin transaction so that two people can't save at 
> the same time
>   //
>   Session session = HibernateUtil.getSession();
>   HibernateUtil.beginTransaction();
>   
>   //
>   // Retrieve current record from database so that the 
> last_mod_date
>   // can be compared
>   //
>   try {
>  oldMetric = (Metric) session.load(Metric.class, 
> metric.getMetricId());
>   }  catch (HibernateException ex) {
>  throw new InfrastructureException(ex);
>   }
>   
>   //
>   // Compare last_mod_dates...return exception if they are
> different...as that
>   // means that someone else has changed the record in 
> the men time
>   //
>   if ( oldMetric.getLastModDate() != oldLastModDate) {
>  throw new InfrastructureException("Record was changed!");
>   }
>   
>   //
>   // LastModDates are the same...so go ahead and save record
>   //
>   try {
>  HibernateUtil.getSession().saveOrUpdate(metric);
>  HibernateUtil.getSession().flush();
>   } catch (HibernateException ex) {
>  throw new InfrastructureException(ex);
>   } catch (Exception e) {
>  throw new InfrastructureException(e);
>   }
>   
>   return metric.getMetricId().toString();
>}
> 
> 
> Thanks in advance,
> 
> Lee
> 
> -
> 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 unsubs

RE: Multi Lingual Spell Checking

2005-02-18 Thread Paul McCulloch
I've sucessfully used
http://www.wintertree-software.com/dev/ssce/javasdk.html in my company's
product. 

There are many ways to use this product - in my case I submit the form
containing the fields to be checked to an action (with the target set to a
popup window). This was hacked together, without a massive amount of effort,
from the examples provided.

Paul

> -Original Message-
> From: Daniel Kies [mailto:[EMAIL PROTECTED]
> Sent: 18 February 2005 17:19
> To: Struts Users Mailing List
> Subject: Multi Lingual Spell Checking
> 
> 
> Has anyone ever implemented a spell checker of any sorts that would
> check the spelling of text in a text box either upon submitting a form
> or on the html page?
> 
> If you have ever gone down this path, any help is appreciated.
> 
> -
> 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: Struts tags inside struts tags

2005-02-17 Thread Paul McCulloch
It is not possible. This a restriction of JSP rather than Struts.

One workaround would be:


 




Paul

> -Original Message-
> From: Ann Vah [mailto:[EMAIL PROTECTED]
> Sent: 17 February 2005 14:34
> To: Struts Users Mailing List
> Subject: Struts tags inside struts tags
> 
> 
> Is it not possible to use Struts tags inside struts tags? For 
> example, is not possible to do this:
> 
>  ">
> 
> thanks in advance
> 
> 

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: How to limit the result?

2005-01-18 Thread Paul McCulloch
Have a look at http://displaytag.sourceforge.net/

Paul

> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED]
> Sent: 18 January 2005 09:34
> To: Struts Users Mailing List
> Subject: Re: How to limit the result?
> 
> 
> After long search i found out that MSSQL does not support 
> Limit / range of records to be fetched.
>  
> Now i am thinking ->
> 1)putting each row into one databean.
> 2)Put databean into ArrayList 
> 3)send this arraylist back to JSP
>  
> with jstl tags i can loop through it and display. 
> ...
>  
> But how i can decide it has reached page limit ? because at 
> that point of time i want to display my footer (and header 
> for new set).
>  
> Is there any way to set some variable and keep on 
> incrementing it .. check for pagesize and then include 
> header/footer etc...
>  
> Is there any better solution ? Am i going a long way ?
>  
> regards
> Manisha
>  
>  
>  
> 
> 
> Manisha Sathe <[EMAIL PROTECTED]> wrote:
> I have a query which results into large data. This data i 
> want to display in a group of 20. After every 20 records i 
> want to add header and footer to it.
> 
> Is it possible to get the result set data into batch of 20 ? 
> means can i specify start and end index of query ?
> 
> regards
> Manisha
> 
> 
> 
> -
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
>   
> -
> Do you Yahoo!?
>  The all-new My Yahoo! - Get yours free!
> 

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: Regarding JBOSS

2005-01-13 Thread Paul McCulloch
I'd guess that RC1 means release candidate 1 - i.e. not the final version.

I *think* that jboss-4.0.1.zip is the final version.

Paul

> -Original Message-
> From: Jay Chandran [mailto:[EMAIL PROTECTED]
> Sent: 13 January 2005 16:40
> To: Struts Users Mailing List
> Subject: Re: Regarding JBOSS
> 
> 
> Hi,
> 
> 
> i am downloading JBOSS from  the below link as per ur instructions.
> 
> http://ovh.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.1RC1.zip
> 
> is this ok for me .
> 
> or should i download some other links. I can see lots of links for
> downloading JBOSS.
> 
> 
> jay
> 
> 
> 
> - Original Message - 
> From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" 
> Sent: Thursday, January 13, 2005 9:21 PM
> Subject: RE: Regarding JBOSS
> 
> 
> > >  I need to download JBOSS 4.0.1 for windows. Where can i get
> > > this ? What should i download? I can see lots of  downloads
> > > for jboss. ie jboss4.0.1 RC1.zip, jboss4.0.1 RC2.zip..  etc.
> >
> > http://www.jboss.org/downloads/index
> >
> > JBoss Application Server
> >
> >
> > --
> > Tim Slattery
> > [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]
> 

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: display tag rendering problem

2005-01-12 Thread Paul McCulloch
Try the display tag mailing list http://sourceforge.net/mail/?group_id=73068

Paul

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 12 January 2005 14:03
> To: user
> Subject: display tag rendering problem
> 
> 
> Hi all
> I'd like to use display tags.Actually I created a decorator 
> for the columns of a table and I use the attribute sortable 
> for sorting them.When I load the page , It does not visualize 
> the arrows i used for pointing the sortable link action.
> 
> Pratically the arrow images I use for calling the sortable 
> action appears just when I click on it.
> I use IE 5 and I'd like to know why those arrows appears just 
> when I click on it!
> Please help
> Regards
> 
> 
> 
> 
> 
> Libero ADSL: 3 mesi gratis e navighi a 1.2 Mega. E poi hai 
> l'Adsl senza limiti a meno di 1 euro al giorno. 
> Abbonati subito senza costi di attivazione su http://www.libero.it
> 
> 
> 
> 
> -
> 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: Displaytag, number formatting, and sorting

2005-01-07 Thread Paul McCulloch
The latest version of displaytag supports a sortPropery setting. This allows
you to display a nicely formatted value but sort on the underlying data.

Column decorators are very rarely required now.

For example:







Paul

> -Original Message-
> From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> Sent: 07 January 2005 02:00
> To: 'Andy Engle '; 'user@struts.apache.org '
> Subject: RE: Displaytag, number formatting, and sorting
> 
> 
> Use a column decorator.
> 
>  decorator="com.whitesandsolutions.gapay.view.decorator.MoneyDecorator"
> sortable="true"/>
> 
> And create your decorator class something like this:
> 
> public class MoneyDecorator implements ColumnDecorator {
> 
>   public MoneyDecorator() {
>   super();
>   }
>   
>   public String decorate(Object value) {
>   String decoratedValue = "";
>   try {
>   if(value != null) {
>   // Assumes the value is a Double.
>   decoratedValue =
> DataFormatter.formatMoney(((Double)value).toString());
>   }
>   } catch (Exception e) {
>   e.printStackTrace();
>   decoratedValue = "Format error.";
>   }
>   return decoratedValue;
>   }
>   
> }
> 
> -Original Message-
> From: Andy Engle
> To: user@struts.apache.org
> Sent: 1/6/2005 6:41 PM
> Subject: Displaytag, number formatting, and sorting
> 
> Hi all,
> 
> I am using displaytag, and I would like to have a sortable column of
> large numbers.  I want to format these numbers (they're going to be
> dollar amounts, like 1,400.00, 6.99, and the like), but it 
> seems that I
> cannot have the fancy number formatting and have that column sortable
> all at the same time.  I either get a sortable column of numbers that
> look like this:
> 
> 1400.00
> 33938.39
> 3450984530.83
> .99
> 
> ...or a non-sortable column of nicely formatted numbers, like this:
> 
> 1,400.00
> 33,938.39
> 3,450,984,530.83
> .99
> 
> Has anyone been able to get the number formatting and the sorting to
> work together?  If so, please tell me what I'm doing wrong.  
> I've tried
> bean:write with a formatKey, html-el:rewrite, and whatever else to no
> avail.
> 
> Thank you very much!
> 
> 
> Andy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
Frank,

Although your solution would work I'd be apprehensive about any solution
which involves doing anything manually at the start of each action. I'd
suggest that anything that needs to happen for each & every action is better
suited to a modified RequestProcessor, or a Filter. 

As you want to deal with all requests - not just actions, I'd suggest that a
Filter would be the way to go.

My apologies if I'm trying to teach you to suck eggs :-)

Paul

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 23 December 2004 14:41
> To: user@struts.apache.org
> Subject: RE: Accessing my form from an included page
> 
> 
> On Thu, December 23, 2004 9:13 am, Donie Kelly said:
> > [Donie Kelly] Hi Guys
> > 
> > OK, I ran through most of what your are telling me and must 
> first thank
> > you
> > all for the detailed responses.
> 
> You spawned an interesting thread!  The seemingly simple 
> questions are usually the ones that do that though. :)
> 
> > 1) I want to check I have a valid session so that I know 
> the objects I
> > have
> > been carrying through the session are still there. It they 
> are not, I want
> > to reestablish them by redirecting back to some starting page which
> > initialises the session.
> 
> I can tell you the way I've done this in the past... Firstly, 
> note that the best way is with some plug-in to your web 
> server (or app server) that externalizes security, something 
> like Netegrity for example.  This would handle expiring 
> sessions and such as you want, redirecting to some logon page 
> presumably.
> 
> In the absence of that though, what I've done is to have an 
> ActionHelpers class... This class contains two methods, 
> start() and finish().  start() is called at the start of each 
> Action and finish(), you guessed it, is called right before 
> returning the ActionForward.
> 
> Let's ignore what finish() does because it's not applicable 
> here... start() however is... The first thing it does is 
> calls checkSession() (my own method) that verifies if the 
> session is valid or not, and redirects to the logon page if it's not.
> 
> That takes care of one piece of the puzzle... the other is 
> what happens if someone accesses a JSP directly?  All I do 
> here is call checkSession() directly.  If it's invalid, the 
> page renders a redirect.  So, all the JSP's have a structure 
> along these lines:
> 
> <% if (!ActionHelpers.checkSession()) { %>
>  
>   CONTENT="0;URL=http://www.mysite.com/logon.do";>
>  
> <% } else { %>
>  ... The actual page goes here
> <% } %>
> 
> That does the trick.  I'm in NO WAY saying this is 
> industrial-strength security, but it gets the job done.  In 
> the environment I do this in, security isn't an issue though, 
> so this is fine.  Also, it wouldn't be trivial I think to 
> hack this anyway since you have to get a valid session on the 
> server at some point that matches what's on the client, and 
> assuming that can only be done through some logon procedure, 
> it should be not completely insecure :)
>  
> > 2) Need to put page navigation in the header.jsp page to 
> make it easy to
> > navigate. I guess I will be putting stuff in the session to 
> make so I was
> > going to use the form to return the breadcrumb name. Is 
> this a good way to
> > do it?
> 
> I would suggest looking for a canned breadcrumb solution.  
> There was a recent thread about just that, and some existing 
> solutions were mentioned.
> 
> If your going to build your own, you need to determine what 
> information you really need to construct your nav bar.  I 
> doesn't sound like you need access to the Form Bean, as I had 
> thought you were asking originally (maybe you were, maybe I 
> misunderstood... doesn't really matter I guess :) ).  Sounds 
> like what you really need is the Action path for all the 
> pages that have been visited in order.
> 
> I would myself be thinking of a linked list structure, stored 
> in session, with each item holding the mapping path.  That 
> should be all you need to construct a breakcrumb path.
> 
> But again, no sense reinventing the wheel... Solutions for 
> this exist already.
> 
> > That's it really.
> > Donie
> > 
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Anti-Virus.
> > Version: 7.0.296 / Virus Database: 265.6.4 - Release Date: 
> 22/12/2004
> > 
> > 
> > 
> -
> > 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 
m

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
1) You'll pretty much always have a valid session - the container will
create one for you if it isn't already there. What you need to do is
establish if an *initialised* session is there. 

One way to do this would bet to, in your initialise session action, create a
session scope attribute to say so:
request.getSession.setAttribute("ValidSession", Boolean.TRUE);

To check that you have a valid session I'd implement a Filter
(http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Filter.html)
which would check for the presence of the attribute. In it's absence send
the user back to the initialise action.

All of this pre-suposes that you *don't* have security requirements. If you
do then look into a security framework, such as container managed security,
which will very probably already have things in place to deal with your
scenario.

2) Don't know. Check the group archives
(http://marc.theaimsgroup.com/?l=struts-user&r=1&w=2) - breadcrumbs have
come up before.

Paul

> -Original Message-
> From: Donie Kelly [mailto:[EMAIL PROTECTED]
> Sent: 23 December 2004 14:14
> To: Struts Users Mailing List
> Subject: RE: Accessing my form from an included page
> 
> 
> [Donie Kelly] Hi Guys
> 
> OK, I ran through most of what your are telling me and must 
> first thank you
> all for the detailed responses.
> 
> I'm sure I need to explain my case a bit more clearly and 
> please let me know
> if what I am trying to do is easier if I take some other 
> approach as I'm new
> to struts.
> 
> 1) I want to check I have a valid session so that I know the 
> objects I have
> been carrying through the session are still there. It they 
> are not, I want
> to reestablish them by redirecting back to some starting page which
> initialises the session.
> 
> 2) Need to put page navigation in the header.jsp page to make 
> it easy to
> navigate. I guess I will be putting stuff in the session to 
> make so I was
> going to use the form to return the breadcrumb name. Is this 
> a good way to
> do it?
> 
> That's it really.
> Donie
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.6.4 - Release Date: 22/12/2004
>  
> 
> -
> 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: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
I didn't notice this in the thread - but I didn't read it in depth as it was
pretty long.

I see more risk in one of my developers forgetting to add the call than in
the attribute name Struts uses changing. If that's a real concern why not
use a custom request processor to put the mapping in an attribute whose name
you define?

Paul

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 23 December 2004 14:27
> To: user@struts.apache.org
> Subject: RE: Accessing my form from an included page
> 
> 
> That's what one of my solutions was too, although I wasn't 
> 100% sure the mapping instance was actually in request (I 
> thought I remembered seeing it, but wasn't sure).
> 
> The argument against doing that though is that the attribute 
> name could conceivably be changed down the road, breaking 
> your code.  If your going to do something like this, you 
> might be better off doing...
> 
> request.setAttribute("mapping", mapping);
> 
> ...in your Actions, assuming mapping is the name of the 
> variable passed to execute() for the ActionMapping object.  
> Yes, it's a bit of extra work in all the Actions, but it 
> insulates your app from changes to the attribute name down the road.
> 
> -- 
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> On Thu, December 23, 2004 4:29 am, Paul McCulloch said:
> > When you execute an action the name of the action from used 
> is set in a
> > request scope attribute 
> "org.apache.struts.action.mapping.instance". It's
> > a
> > fairly simple matter to get the actual actionform object if 
> you know the
> > scope. For instance, all my forms are session scope so I can get the
> > just-used form with:
> > 
> >  > 
> value="${sessionScope[requestScope['org.apache.struts.action.m
> apping.instanc
> > e'].name]}"/>
> > 
> > If you don't know the scope then you'll need a bit more 
> logic to get the
> > formbean.
> > 
> > Does that help?
> > 
> > Paul
> > 
> >> -Original Message-
> >> From: Donie Kelly [mailto:[EMAIL PROTECTED]
> >> Sent: 22 December 2004 14:59
> >> To: Struts Users Mailing List
> >> Subject: Accessing my form from an included page
> >>
> >>
> >> Hi all
> >>
> >>
> >>
> >> I have the following jsp layout for my pages
> >>
> >>
> >>
> >> Included header.jsp
> >>
> >> STRUTS PAGE
> >>
> >> Included footer.jsp
> >>
> >>
> >>
> >> Now in the header.jsp I have my site logo and I also want to add
> >> breadcrumbs. I want to establish and maintain a session
> >> throughout the app
> >> and if the session is invalid i want to redirect to the
> >> starting page so
> >> that I can initialise the app. I presume I need to put code in the
> >> header.jsp to handle this so no matter which page is accessed
> >> it can do
> >> these checks.
> >>
> >>
> >>
> >> I also want to access the ActionForm for the current page so
> >> that I can
> >> retrieve the page name to build up the breadcrumb. How can 
> I do this?
> >>
> >>
> >>
> >> Any pointers would be appreciated.
> >>
> >> Donie
> >>
> >>
> >>
> >>
> >> --
> >> No virus found in this outgoing message.
> >> Checked by AVG Anti-Virus.
> >> Version: 7.0.296 / Virus Database: 265.6.3 - Release Date: 
> 21/12/2004
> >>
> >>
> > 
> > Axios Email Confidentiality Footer
> > Privileged/Confidential Information may be contained in 
> this message. If
> > you are not the addressee indicated in this message (or 
> responsible for
> > delivery of the message to such person), you may not copy 
> or deliver this
> > message to anyone. In such case, you should destroy this 
> message, and
> > notify us immediately. If you or your employer does not consent to
> > Internet email messages of this kind, please advise us immediately.
> > Opinions, conclusions and other information expressed in 
> this message are
> > not given or endorsed by my Company or employer unless 
> otherwise indicated
> > by an authorised representative independent of this message.
> >  
> > WARNING:
> > While Axios Systems Ltd takes steps to prevent computer 
> viruses from being
> > transmitted via electronic mail attachments we cannot guarantee that
> > attachments do not contain computer virus code.  You are therefore
> > strongly advised to undertake anti virus checks prior to 
> accessing the
> > attachment to this electronic mail.  Axios Systems Ltd grants no
> > warranties regarding performance use or quality of any 
> attachment and
> > undertakes no liability for loss or damage howsoever caused.
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 

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



RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
When you execute an action the name of the action from used is set in a
request scope attribute "org.apache.struts.action.mapping.instance". It's a
fairly simple matter to get the actual actionform object if you know the
scope. For instance, all my forms are session scope so I can get the
just-used form with:



If you don't know the scope then you'll need a bit more logic to get the
formbean.

Does that help?

Paul

> -Original Message-
> From: Donie Kelly [mailto:[EMAIL PROTECTED]
> Sent: 22 December 2004 14:59
> To: Struts Users Mailing List
> Subject: Accessing my form from an included page
> 
> 
> Hi all
> 
>  
> 
> I have the following jsp layout for my pages
> 
>  
> 
> Included header.jsp
> 
> STRUTS PAGE
> 
> Included footer.jsp
> 
>  
> 
> Now in the header.jsp I have my site logo and I also want to add
> breadcrumbs. I want to establish and maintain a session 
> throughout the app
> and if the session is invalid i want to redirect to the 
> starting page so
> that I can initialise the app. I presume I need to put code in the
> header.jsp to handle this so no matter which page is accessed 
> it can do
> these checks.
> 
>  
> 
> I also want to access the ActionForm for the current page so 
> that I can
> retrieve the page name to build up the breadcrumb. How can I do this?
> 
>  
> 
> Any pointers would be appreciated.
> 
> Donie
> 
>  
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.6.3 - Release Date: 21/12/2004
>  
> 

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: Question about using a HashMap as input for logic-el:iterate

2004-12-15 Thread Paul McCulloch
HashMap doesn't implement the Collection interface, and has no method for
getting an iterator.

Look at the methods values(), keySet() & entrySet() on HashMap which do
return Collections.

Paul

> -Original Message-
> From: Wessel van Norel [mailto:[EMAIL PROTECTED]
> Sent: 15 December 2004 15:04
> To: Struts Users Mailing List
> Subject: Question about using a HashMap as input for logic-el:iterate
> 
> 
> Hi all,
> 
> I was wondering if it is possible to use a HashMap containing vectors
> as the input for a logic-el:iterate tag.
> 
> Why do I use a hashmap? That's because I first have to iterate through
> a list of questionnaires, and per questionnaire I've a list of
> questions. The hashmap has the questionnaire ID as it's key, and the
> vector with questions as object. Now I was trying the following to get
> the vector out of the hashmap (like getting the value of something
> from a map-backed form):
> 
> 
>   
>  collection="questions(${questionnaire.id})">
>value="${question.name}" />
> 
>   
> 
> 
> This doen't work, giving me the following error:
> Cannot create iterator for this collection
> 
> The questionnaires Vector and questions HashMap are both in 
> the request scope.
> 
> Is what I'm trying to do not possible with logic-el:iterate, or am I
> missing something?
> 
> Regards,
> Wessel van Norel
> -- 
> Spread Firefox: http://www.spreadfirefox.com/?q=user/register&r=15629
> 
> -
> 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: obfuscation Struts config

2004-12-02 Thread Paul McCulloch
Won't obfuscating your classnames make any analysis of a stack trace, for
example, very difficult?

Anyway - I would expect that any commercial J2EE code obfuscation tool which
changes classnames would know how to modify the XML files. EJBs for instance
are also referenced, by name, in xml config files.

Otherwise I reckon a bit of sed should be able to do a simple (or complex!)
search & replace to meet your needs.

Paul

> -Original Message-
> From: Franck DARRAS [mailto:[EMAIL PROTECTED]
> Sent: 02 December 2004 17:31
> To: Struts Users Mailing List
> Subject: obfuscation Struts config
> 
> 
> Hello,
> 
> I search a product (free or commercial) for obfuscation of my source. 
> But I have a problem with the file struts-config.xml or jsp file 
> (usebean for e.g.).
> 
> This files declare the class, but if in my bytecode, i rename 
> the class 
> how does it work.
> 
> I search a product for struts framework with facilities to modify all 
> text/xml/jsp files.
> 
> if you know link to a product, an another method to protect the code 
> source, i'm interesting
> 
> Tks for your help
> 
> Franck
> -- 
> 
> -
> 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 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: 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 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]



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-25 Thread Paul McCulloch
It looks like you are getting the return code from cmd, rather than
shutdown. Could it be that the process you spawn doesn't have it's
environment correctly set up - maybe it can't see shutdown?

I'd try 1) changing my call to exec to call shutdown, with a full path,
directly rather than getting cmd to do it. 2) Call a batch file instead -
have the batchfile echo the environment to a file 3)Try and get the Java
process to create an interactive cmd for you (maybe cmd /k) - that way you
can try various commands in the same context that the Java process can.

Paul

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: 25 November 2004 11:47
> To: [EMAIL PROTECTED]
> Subject: OT: server shutdown
> 
> 
> Hi,
> 
> I have a requirement to allow a privelidged user to reboot 
> the server(WinXP 
> OS).
> 
> I have code as follows:
> 
> Runtime runtime = Runtime.getRuntime();
> Process proc = runtime.exec("cmd.exe /C shutdown -r -f -t 10");
> int exitVal = proc.waitFor();
> 
> When called, the server does not shut down (although I get 
> the exit code of 
> 0) but if I run the same command from the XP 'run' window it works as 
> expected.
> 
> I don't think it can be an access rights thing as I can use the same 
> approach to set the system time and date successfully.
> 
> Any ideas?
> 
> Thanks,
> Andy
> 
> _
> Want to block unwanted pop-ups? Download the free MSN Toolbar now!  
> http://toolbar.msn.co.uk/
> 
> 
> -
> 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: Token Processor Question

2004-11-25 Thread Paul McCulloch
You only need to use saveToken() - it calls generate for you.

Paul

> -Original Message-
> From: Richard [mailto:[EMAIL PROTECTED]
> Sent: 25 November 2004 08:47
> To: Struts Users Mailing List
> Subject: Token Processor Question
> 
> 
> Hello Guys,
> 
> If I have executed generateToken in my action  do i have to 
> call saveToken?
> 
> Thanks
> Richard
> 
> -
> 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: loosing request attributes from jsp to action

2004-11-25 Thread Paul McCulloch
I may be wrong, but it sounds a lot like you are misunderstanding the scope
of the request object. Apologies if I'm wrong - please ignore the following
egg-sucking tutorial!

The request objects life starts, on the server, when the servlet container
recieves a request from the user's browser. That request object is valid
until the end of all server side processing (i.e. until the page is rendered
on the browser). Nothing set in one request is visible in any other request.

In the example you give you are copying, whilst your page is being rendered,
one request scope attribute (index) to another request scope attribute
(identifier). What you aren't doing, as Rick says, is putting that bit of
information anywhere that can be used by a subsequent request. You need to
render the index in such a way that it is automatically sent back to the
server on subsequent requests.

I think the easiest way to do this would be to declare the index as a
property of your form bean. Your action could set this form property (rather
then setting the request scoped attribute as it dow now). The 
struts tag will take care of preserving this value for subsequent requests.

Paul



> -Original Message-
> From: Tito Eritja [mailto:[EMAIL PROTECTED]
> Sent: 24 November 2004 19:41
> To: struts
> Subject: loosing request attributes from jsp to action
> 
> 
> Hi everybody.
> 
> We are working on a fleet trucking system. One user can have several
> windows opened, each window can manage several trucks. 
> 
> In order to manage this, the actionform has a Vector of this "window"
> information (and it's set in a session scope). 
> 
> As all this "windows" are managed by the same Action, we identify the
> window, setting an identifier in each request scope.
> 
> We get that identifier in jsp "window" with
> request.getAttribute("index") (with JSTL tags works fine), set it on
> request with  value"index"/>,
> and submit the form to the action, The problem comes when 
> trying to get
> the identifier bean from this request in the action as the result is
> null.
> 
> Has anybody knows what I'm doing wrong? 
> 
> 
> tito
> 
> 
> 
> 
> 
> 
> -
> 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: Best practice updating data in webapps?

2004-11-24 Thread Paul McCulloch
The approach you describe is known as optimisitic locking. 

The alternative approach is pessimistic locking, where you mark the records
to be updated as locked at the time you get the records from the datasource.
No other process will be allowed to lock the records at the same time - so
no two users can update the same record at the same time.

One problem with using pessimistic locking is how to deal with a user who
locks a record, but never releases it. In a web based application this is
very likely to happen - it's difficult to stop a user just killing their
browser. 

Optimisitic locking is generally easier to implement & less dependant on the
datasources involved. So, unless you have a problem which can't be solved
this way I'd go with optimistic locking.

Paul

> -Original Message-
> From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
> Sent: 24 November 2004 11:03
> To: 'Struts Users Mailing List'
> Subject: Best practice updating data in webapps?
> 
> 
> When designing webapps where different users can edit the 
> same record at the same time, 
> what is the best way to solve this situation?
> One way is to use an update field, that gets selected with 
> rest of the data and when 
> updating the data, check this update field with the one in 
> the db; if they don't match, 
> someone else has updated the record before you..
> But is this the best way?
> 
> 
> Regards,
> 
> BTJ
> 
> -- 
> --
> -
> Bjørn T Johansen
> 
> [EMAIL PROTECTED]
> --
> -
> Someone wrote:
> "I understand that if you play a Windows CD backwards you 
> hear strange Satanic messages"
> To which someone replied:
> "It's even worse than that; play it forwards and it installs Windows"
> --
> -
> 
> -
> 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: File upload.

2004-11-24 Thread Paul McCulloch
I don't use DynaForms, so I may be way off the mark, but in my ActionForms I
declare the file fields to be of type org.apache.struts.upload.FormFile. 

My understanding of local classes is that they can only be used by the
declaring class - is my understanding wrong?

Paul

> -Original Message-
> From: Kesavan, Malini [mailto:[EMAIL PROTECTED]
> Sent: 23 November 2004 20:36
> To: [EMAIL PROTECTED]
> Subject: File upload.
> Importance: High
> 
> 
> Hi,
> 
> I am trying to implement file upload using struts.
> 
> I added the following to Dyna Validator Form:
> 
>  type="org.apache.struts.upload.CommonsMultipartRequestHandler$
> CommonsFor
> mFile" />
> 
>  
> 
> Can anybody please let me know how can I get InputStream in my Action
> class.
> 
> Also, what do I need to import?
> 
>  
> 
>  
> 
>  
> 
> This is what I tried doing:
> 
> 
> 
> 
> 
>  
> 
> FormFile myFile = (FormFile)dynaValidatorform.get("importFile");
> 
> InputStream is = myFile.getInputStream();
> 
> 
> 
> 
> 
>  
> 
>  
> 
> I am getting this exception:
> 
>  
> 
> java.rmi.UnmarshalException: java.io.ByteArrayInputStream; nested
> exception is:
> 
> java.io.NotSerializableException: java.io.ByteArrayInputStream
> 
> at
> weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(Lweblogic.rm
> i.extensio
> ns.server.RemoteReference;Lweblogic.rmi.extensi
> 
> ons.server.RuntimeMethodDescriptor;[Ljava.lang.Object;Ljava.la
> ng.reflect
> .Method;)Ljava.lang.Object;(ReplicaAwareRemoteRef.java:297
> 
> )
> 
>  
> 
>  
> 
> Thanks,
> 
>  
> 
> Malini Kesavan
> 
> [EMAIL PROTECTED]
> 
> 404-498-1702
> 
> NCID/SRP 
> 
> CDC Information Technology Services (CITS)
> 
>  
> 
> 

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: Tiles and file download

2004-11-23 Thread Paul McCulloch
Your action could read the log file, & store the contents into a request
scoped attribute. The contents of this attribute can then be displayed in
the relevant tile.

Paul

> -Original Message-
> From: Matt Bathje [mailto:[EMAIL PROTECTED]
> Sent: 23 November 2004 14:40
> To: Struts Users Mailing List
> Subject: Re: Tiles and file download
> 
> 
> andy wix wrote:
> > Hi,
> > 
> > I have a requirement to allow the user to view log files in 
> the main 
> > body tile when they click a certain menu item in the 'menu tile'.
> > 
> > I see on the archives that the normal way to do this is to 
> stream the 
> > file to the response and then return null from the action.  
> What's the 
> > approach taken when using tiles?
> 
> 
> Andy - When you do something like this, just don't have the 
> action that 
> outputs the file use tiles. It won't hurt anything, and I'm 
> pretty sure 
> it is the only way to do it. (Of course now 5 people will 
> come and prove 
> me wrong :) )
> 
> 
> Matt
> 
> -
> 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: Conditionally disable form input.

2004-11-19 Thread Paul McCulloch
What you are suggesting will only work if the form is submitted after the
checkbox is checked - probably not what you or the user would expect to
happen.

I'd try and use JavaScript to achieve the same functionality on the client -
the relevant event on the checkbox field could modify the disabled flag of
the text input.

Paul

> -Original Message-
> From: Daffin, Miles (Company IT) 
> [mailto:[EMAIL PROTECTED]
> Sent: 19 November 2004 16:20
> To: [EMAIL PROTECTED]
> Subject: Conditionally disable form input.
> 
> 
> Hi All,
>  
> I want to disable a text input if a certain checkbox input has been
> checked (meaning, in the following example, that the name 
> input need not
> be filled in). My jsp code looks like this:
>  
>  property="<%=Keys.APPLICANT_FULLNAME_CHINESE%>"
> size="100"
>  
> disabled='<%=anExpressionThatDeterminesIfTheCheckboxHasBeenChe
> cked()%>'/
> >
> 
> I an using a DynaActionForm as my form bean. Ideally I suppose I would
> use an expression like:
>  
> formBean.get(otherFieldName) != null
>  
> Has anyone done something like this?
>  
> Many 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: Using constants for form property names.

2004-11-17 Thread Paul McCulloch
When using RT expressions as attribute values the whole attribute must be a
single RT:


>
N/A


Paul

> -Original Message-
> From: Daffin, Miles (Company IT) 
> [mailto:[EMAIL PROTECTED]
> Sent: 17 November 2004 17:03
> To: [EMAIL PROTECTED]
> Subject: Using constants for form property names.
> 
> 
> Hi All,
>  
> I have found all sorts of ways to use constants for messages 
> in struts,
> but no one seems to address the issue of property names. A simple
> example will make it clearer.
>  
> I want to use constants for my property names. In my jsp I have the
> following code:
>  
>  property="<%=Keys.APPLICANT_FULLNAME_CHINESE_NA%>"
> onclick="clearAndDisable(this,
> '<%=Keys.APPLICANT_FULLNAME_CHINESE_NA%>');">
> N/A
> 
>  
> The above jsp code does not work because it is rendered as follows:
>  
>  onclick="clearAndDisable(this,
> '<%=Keys.APPLICANT_FULLNAME_CHINESE_NA%>');" type="checkbox">N/A
>  
> The first expression for 'property' is evaluated. The second 
> is rendered
> literally. 
>  
> My questions are:
>  
> 1. Is this a bug?
> 2. Is this the right way to go about using constants for 
> property names?
>  
> Many 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]

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



RE: how to replace return in a string while use nested:write and bean:write

2004-11-12 Thread Paul McCulloch
The Jakarta Regexp taglib
(http://jakarta.apache.org/taglibs/doc/regexp-doc/intro.html) should allow
you to do the neccessary search-and-replace to creat a JavaScript compatible
string.

Paul

> -Original Message-
> From: Shen, Lei [mailto:[EMAIL PROTECTED]
> Sent: 11 November 2004 18:22
> To: Struts Users Mailing List
> Subject: RE: how to replace return in a string while use nested:write
> and bean:write
> 
> 
> 
> Thanks for your hint.
> 
> Essentially I want nest:write and bean:write to smart enough to
> convert "ab
> c" to "ab\nc" byitself.
> 
> nest:write is already be able to convert < to < if you set 
> filter=true.
> I am trying to find something similar to convert real return to \n.
> I am hoping the convertion list is configurable somewhere.
> 
> Lei
> 
> -Original Message-
> From: Erik Weber [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 11, 2004 1:16 PM
> To: Struts Users Mailing List
> Subject: Re: how to replace return in a string while use nested:write
> and bean:write
> 
> 
> alert("this message\nwill appear on two lines");
> 
> Does that help?
> 
> Erik
> 
> Shen, Lei wrote:
> 
> >Hello, all:
> >
> >
> >I have some code like this:
> >
> > data = use bean:write or nested:write here
> > alert(data);
> >
> >
> >
> >The problem is that javascript does not allow:
> >
> > data ="ab
> > c";
> >
> >How to replace return in a string while use nested:write and 
> bean:write automatically?
> >
> >Thanks
> >Lei
> >
> >-
> >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]
> 


**
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: debugging with Struts

2004-11-11 Thread Paul McCulloch
I think it is actually the source path of the *debug* configuration you are
using. 

I just spent a good 20 minutes figuring this out - I've just upgraded to
1.2, but my debug source was pointing to 1.1 which caused a bit of
confusion.

Paul

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: 11 November 2004 15:50
> To: Struts Users Mailing List
> Subject: Re: debugging with Struts
> 
> 
> On 11/11/2004 02:50 PM Yaroslav Novytskyy wrote:
> > Hi all!
> > 
> > Can anyone say how setup debugging in Eclipse 3.0.1 for
> > useing with Struts under Tomcat 5.
> > 
> > Thanks
> > Yaroslav Novytskyy
> 
> If you want to trace through the struts source code, you must 
> link the 
> struts.jar to the src code directory in the project's build config 
> dialog by right clicking on the jar in the list and selecting 
> properties.
> 
> 
> -
> 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: LookUpDispatchAction weakness?

2004-11-04 Thread Paul McCulloch
I've come round to Michael McGrady's way of thinking. LUDA is far more
complex than it needs to be.

See http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions

Paul

> -Original Message-
> From: Vaclavik Radek [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 04, 2004 1:47 PM
> To: '[EMAIL PROTECTED]'
> Subject: LookUpDispatchAction weakness?
> 
> 
> Hi,
> 
> I wanted to follow best practices and thus using LUDA, but I found the
> following weekness: I have to rewrite code common to all of 
> the actions in
> every action method.
> 
> When using JavaScript to set e.g. the action attribute, I can 
> do some common
> stuff in the execute method and then decide (if) what 
> specific code to do
> based on the action. However, if there are separate methods 
> for each action,
> I would have to either rewrite that code or make some common 
> method and move
> the code there (then there is problem with returning 
> variables, or having
> them as class variables - both doesn't seem very nice).
> 
> Am I missing something here? How are you guys dealing with this?
> 
> Thx for tips.
> 
> Radek
> 


**
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: tab UI controls for struts

2004-10-25 Thread Paul McCulloch
I had a look for such things a few weeks ago. My requirement was for a
server side implementation - i.e. one that didn't execute the content of
hidden tags. I couldn't find anything that met that requirement.

I did find a pretty cool looking client side implementation at
http://www.pintexx.com/

I've implemented my own tab control as a bunch of custom tags. There is no
inherent dependancy on Struts - the state is maintained in hidden html
fields & a change of tab is indicated via request parameters. I'm not in a
position to share any of this code I'm afraid, but I'm more than happy to
discuss the design etc.

Paul

> -Original Message-
> From: kjc [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 25, 2004 4:36 PM
> To: [EMAIL PROTECTED]
> Subject: tab UI controls for struts
> 
> 
> looking for a tab UI control for use with struts.
> 
> 
> -
> 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: Bean Constants and JSP EL

2004-10-20 Thread Paul McCulloch
See http://marc.theaimsgroup.com/?l=struts-user&m=109636066026332&w=2

> -Original Message-
> From: Robin Mannering [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 20, 2004 3:21 PM
> To: [EMAIL PROTECTED]
> Subject: Bean Constants and JSP EL
> 
> 
> Hi,
> 
> Wondering if anyone has encountered this before and perhaps  
> a solution :)
> 
> I have constants defined in a regular Java bean class. ie.
> 
> public static final String STATUS_DRAFT = "draft";
> 
> The bean has request scope in the page, no problem there, but 
> I can't reference this constant value using EL, ie.
> 
> ${myObject.STATUS_DRAFT}
> 
> Does anyone know how I can do this perhaps using a struts 
> tag, I'm miffed.  Have already tried adding gettters by they 
> are of course static and so don't work.
> 
> Any ideas would be great.
> 
> Many thanks
> 
> Robin
> 
> 
> 
> 
> This e-mail and any attachments may be confidential and/or legally
> privileged. If you have received this e-mail and you are not a named
> addressee, please inform Landmark Information Group on 01491 413030
> and then delete the e-mail from your system. If you are not a named
> addressee you must not use, disclose, distribute, copy, print or rely 
> on this e-mail. This email and any attachments have been scanned for
> viruses and to the best of our knowledge are clean. To ensure 
> regulatory compliance and for the protection of our clients and 
> business, we may monitor and read e-mails sent to and from our 
> servers.
> 
> 
> -
> 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: checking for an object in a collection

2004-10-07 Thread Paul McCulloch
A Map is proabably a better data structure to use than a collection. I'd
consider changing the way the rules are stored, or converting the Collection
to a Map in your action.

Paul

> -Original Message-
> From: Muhammad Momin Rashid [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 07, 2004 1:09 PM
> To: [EMAIL PROTECTED]
> Subject: checking for an object in a collection
> 
> 
> Hello All,
> 
> I have a scenario in which I need to display (or not display) 
> differnt parts 
> of a jsp page depending on rules defined in a collection in scope.
> 
> I was wondering what is the best way to accomplish this?  All 
> the rules 
> defined in a collection, and the decision is made on the 
> basis of if a rule 
> is present in the collection or not.  The following approach 
> seems messy to 
> me, so i was wondering if anyone can enlighten me with a 
> better way to 
> accomplish this
> 
> iterate through collection
> if rule x is present
> display x table
> end if
> end iterate
> 
> iterate through collection
> if rule y is present
> display y table
> end if
> end iterate
> 
> A sample code snippit would be highly apprecated,  Thanks for 
> your time.
> 
> Regards,
> Muhammad Momin Rashid. 
> 
> 
> 
> 
> -
> 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: cleaning session

2004-10-07 Thread Paul McCulloch
What a nonsense sentence! What I meant to say was:

That isn't the purpose of the (confusingly named) reset method. Reset is
there to, typically, deal with the way html forms submit checkbox fields
(they don't submit anything if they are null).

Paul

> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 07, 2004 9:27 AM
> To: 'Struts Users Mailing List'
> Subject: RE: cleaning session
> 
> 
> That isn't the purpose of the (confusingly named) reset 
> method. Reset is
> there to, typically, deal with the html forms submit checkbox 
> fields (they
> don't submit anything if they are null).
> 
> Paul
> 
> > -Original Message-
> > From: Leandro Melo [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 06, 2004 5:43 PM
> > To: Struts Users Mailing List
> > Subject: Re: cleaning session
> > 
> > 
> > If you have your action in HttpSession, why don`t you
> > just call reset whenever a user clicks on the button
> > supposed to start this wizard?
> > 
> > 
> > 
> >  --- struts lover <[EMAIL PROTECTED]> escreveu: 
> > > Hello everyone,
> > > I am facing this problem of session. I have my
> > > action
> > > form in session(a wizard like thing). Now if the
> > > user
> > > starts filling in values  and clicks on the NEXT
> > > button, to go on to the next screen and then instead
> > > of completing the process of application, clicks on
> > > some other link.
> > > Again he wants to start with the application
> > > process,
> > > the form get pre-populated with the previous values,
> > > as the form in still in session. I want a clean
> > > form.
> > > How to overcome this problem???
> > > Any ideas???
> > > Thanks. 
> > > 
> > > 
> > >   
> > > ___
> > > Do you Yahoo!?
> > > Declare Yourself - Register online to vote today!
> > > http://vote.yahoo.com
> > > 
> > >
> > 
> -
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > >  
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> **
> Axios Email Confidentiality Footer
> Privileged/Confidential Information may be contained in this 
> message. If you are not the addressee indicated in this 
> message (or responsible for delivery of the message to such 
> person), you may not copy or deliver this message to anyone. 
> In such case, you should destroy this message, and notify us 
> immediately. If you or your employer does not consent to 
> Internet email messages of this kind, please advise us 
> immediately. Opinions, conclusions and other information 
> expressed in this message are not given or endorsed by my 
> Company or employer unless otherwise indicated by an 
> authorised representative independent of this message.
> WARNING:
> While Axios Systems Ltd takes steps to prevent computer 
> viruses from being transmitted via electronic mail 
> attachments we cannot guarantee that attachments do not 
> contain computer virus code.  You are therefore strongly 
> advised to undertake anti virus checks prior to accessing the 
> attachment to this electronic mail.  Axios Systems Ltd grants 
> no warranties regarding performance use or quality of any 
> attachment and undertakes no liability for loss or damage 
> howsoever caused.
> **
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: cleaning session

2004-10-07 Thread Paul McCulloch
That isn't the purpose of the (confusingly named) reset method. Reset is
there to, typically, deal with the html forms submit checkbox fields (they
don't submit anything if they are null).

Paul

> -Original Message-
> From: Leandro Melo [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 06, 2004 5:43 PM
> To: Struts Users Mailing List
> Subject: Re: cleaning session
> 
> 
> If you have your action in HttpSession, why don`t you
> just call reset whenever a user clicks on the button
> supposed to start this wizard?
> 
> 
> 
>  --- struts lover <[EMAIL PROTECTED]> escreveu: 
> > Hello everyone,
> > I am facing this problem of session. I have my
> > action
> > form in session(a wizard like thing). Now if the
> > user
> > starts filling in values  and clicks on the NEXT
> > button, to go on to the next screen and then instead
> > of completing the process of application, clicks on
> > some other link.
> > Again he wants to start with the application
> > process,
> > the form get pre-populated with the previous values,
> > as the form in still in session. I want a clean
> > form.
> > How to overcome this problem???
> > Any ideas???
> > Thanks. 
> > 
> > 
> > 
> > ___
> > Do you Yahoo!?
> > Declare Yourself - Register online to vote today!
> > http://vote.yahoo.com
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> >  
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
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: cleaning session

2004-10-06 Thread Paul McCulloch
I have a specific action which destroys the existsing form bean and then
recreates it based on struts-config. 

See: http://marc.theaimsgroup.com/?l=struts-user&m=109351495917793&w=2

Paul

> -Original Message-
> From: struts lover [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 06, 2004 5:04 PM
> To: [EMAIL PROTECTED]
> Subject: cleaning session
> 
> 
> Hello everyone,
> I am facing this problem of session. I have my action
> form in session(a wizard like thing). Now if the user
> starts filling in values  and clicks on the NEXT
> button, to go on to the next screen and then instead
> of completing the process of application, clicks on
> some other link.
> Again he wants to start with the application process,
> the form get pre-populated with the previous values,
> as the form in still in session. I want a clean form.
> How to overcome this problem???
> Any ideas???
> Thanks. 
> 
> 
>   
> ___
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 
> -
> 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: Tracing action dispatching

2004-10-06 Thread Paul McCulloch
If the probelm is appearing in a development system then I find the easiest
way to do this kind of thing is to download the struts source & use my
debugger with the struts code.

Paul

> -Original Message-
> From: Laurent Duperval [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 06, 2004 3:18 PM
> To: [EMAIL PROTECTED]
> Subject: Tracing action dispatching
> 
> 
> Hi,
> 
> Is there a flag I can set so that Struts tells me what it's 
> doing? I'm 
> having a problem with one of my actions: when I click on it, 
> I get a blank 
> page and I don't understand why. I'd like to be able to see 
> what decisions 
> Sruts is taking in order to load my pages, to determine where 
> I made a 
> mistake in my config.
> 
> Thanks,
> 
> L
> 
> 
> -
> 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: ActionError and JSP display

2004-10-05 Thread Paul McCulloch
Try:









Or something similar.

Paul

> -Original Message-
> From: Robin Mannering [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 05, 2004 1:45 PM
> To: Struts Users Mailing List
> Subject: RE: ActionError and JSP display
> 
> 
> Hi,
> 
> 
> I was intending to use , 
> specifying the property for display, but it still doesn't 
> allow me to test for it's existence.
> 
> 
> What I'd like to do is test if an error exists, then add a 
> new HTML table row and cell into the output containing the 
> error message, otherwise I do not want to create the HTML 
> table row and cell at all.
> 
> 
> Is there a way to do this ?
> 
> 
> Thanks
> 
> Robin
> 
> 
> -Original Message-
> 
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Jeff Beal
> 
> Sent: 05 October 2004 13:40
> 
> To: [EMAIL PROTECTED]
> 
> Subject: Re: ActionError and JSP display
> 
> 
> 
> Robin Mannering wrote:
> 
> > Hi,
> 
> > 
> 
> > 
> 
> > Platorm is : Tomcat 5, Struts 1.1
> 
> > 
> 
> > Context: HTML Form submissions and validation.
> 
> > 
> 
> > 
> 
> > I'm trying to conditionally test for the existince of error 
> messages by their keys.  And I'd then like to show the error 
> with HTML formatting around it.
> 
> > 
> 
> > 
> 
> > Basically, using tags, I'd like to do the same as the 
> following following pseudo code.
> 
> > 
> 
> > 
> 
> > if (errorMessage named 'usernameError' exists) {
> 
> > 
> 
> > showError('usernameError' + some html)
> 
> > 
> 
> > }
> 
> > 
> 
> > 
> 
> > The error message is set from within the Form class as:
> 
> > 
> 
> > 
> 
> > errors.add("usernameError", new 
> ActionError("errors.form.username.required"));
> 
> > 
> 
> > 
> 
> > I've been trawling around and have found lots of references 
> to  and then looping through each 
> message using  but not a test for the 
> existence of a particular message.
> 
> > 
> 
> > 
> 
> > I'm trying to display the error message next to each 
> appropriate form element rather than in a list.  I probably 
> can't see the solution for looking.  Can anyone help?
> 
> > 
> 
> > 
> 
> > Many thanks
> 
> > 
> 
> > Robin
> 
> 
> Read 
> 
> http://struts.apache.org/api/org/apache/struts/taglib/html/pac
kage-summary.html#doc.Other.errors,

paying attention to the property attribute of html:errors


-- Jeff




This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this e-mail and you are not a named
addressee, please inform Landmark Information Group on 01491 413030
and then delete the e-mail from your system. If you are not a named
addressee you must not use, disclose, distribute, copy, print or rely 
on this e-mail. This email and any attachments have been scanned for
viruses and to the best of our knowledge are clean. To ensure 
regulatory compliance and for the protection of our clients and 
business, we may monitor and read e-mails sent to and from our 
servers.


-
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: Coonection pooling

2004-10-04 Thread Paul McCulloch
And your question is relevant on a Struts mailing list because ...?

Paul

> -Original Message-
> From: Prashanth.S [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 04, 2004 11:28 AM
> To: [EMAIL PROTECTED]
> Subject: Coonection pooling
> 
> 
> Hi all,
> Is there any design pattern that can be followed in order to 
> implement connection pooling.connection pooling doesnt mean 
> only JDBC connections.Iam talking about general http 
> connections to any external systems in order to send requests.
>  
> Thanks in advance
> Prashanth
>  
>  
> 
>   
> -
> Do you Yahoo!?
> vote.yahoo.com - Register online to vote today!
> 


**
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: xml as a datasource?

2004-10-04 Thread Paul McCulloch
I found this article the other day, if you fancy rolling your own JDBC
driver. http://www.fawcette.com/javapro/2001_12/magazine/features/jodonahue/

Paul

> -Original Message-
> From: joe a. [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 7:04 PM
> To: [EMAIL PROTECTED]
> Subject: xml as a datasource?
> 
> 
> I am in need of a document covering how to use xml as a data source
> with struts.  If someone could post a link I would appreciate it. 
> Also, what are the benefits to using xml as a datasource instead of a
> db like mysql?
> 
> Thanks,
> Joe
> 
> -
> 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: jstl and the brink of madness

2004-09-30 Thread Paul McCulloch
I don't think scoped attributes & parameters are the same thing. Try
http://somehost/app/mypage.jsp?create=something to set a parameter.

Paul

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 30, 2004 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: jstl and the brink of madness
> 
> 
> Hi,
> 
> The following expression always evaluates to true even though 
> I can see the 
> create parameter in the request.
> 
> <%@ taglib uri="jstl/c" prefix="c" %>
> 
> 
>   hello
>   goodbye
> 
> 
> I set the parameter up in the previous action with:
> request.setAttribute("create","create");
> 
> Any ideas?
> 
> 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]



RE: with multiple bundles?

2004-09-30 Thread Paul McCulloch
A simple solution would be to change your build process to combine the base
properties and the applications properties into one resource file.

Paul

> -Original Message-
> From: Woodchuck [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 30, 2004 2:23 PM
> To: struts
> Subject:  with multiple bundles?
> 
> 
> hihi,
> 
> has anyone a good way to handle displaying multiple messages that come
> from multiple bundles (resource files) on the jsp?
> 
> how can i make my jsp handle messages that can come from more than one
> bundle?
> 
> the reason why i need to do this is because we made a "base"
> application that all projects will include.  this base application
> contains generic functionality that all future projects will inherit. 
> so it has it's own bundles of messages, that has now come into the
> situation where it's possible that the returned ActionMessages or
> ActionErrors collection contains ActionMessage or ActionError objects
> with keys coming from the base bundles and the project 
> bundles.  ie. it
> is not guaranteed that all message collection keys will come from one
> bundle.
> 
> any suggestions on how to handle this is greatly appreciated 
> as always.
> 
> please and thanks,
> woodchuck
> 
> 
> 
>   
> ___
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 
> -
> 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: JSTL and Tiles

2004-09-30 Thread Paul McCulloch
Try using request scope (rather than the default of page) when you use JSTL
to set your attribute value. Changes to the named attribute will be picked
up by any code which is executed afterwards.

Paul

> -Original Message-
> From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 29, 2004 6:54 PM
> To: '[EMAIL PROTECTED]'
> Subject: JSTL and Tiles
> 
> 
> I have a JSP which uses JSTL to define a variable.  This same JSP uses
> tiles:insert to include a page segment that also needs to be 
> able to have
> visibility to its parent JSTL variable.  How can I pass that 
> variable to the
> inserted tiles page and have it update the variables value so that the
> remainder of the container JSP sees any changes made by the 
> inserted page?
> 
> ___
> Chris Cranford
> Programmer/Developer
> SETECH Inc. & Companies
> 6302 Fairview Rd, Suite 201
> Charlotte, NC  28210
> Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042 
> Email: [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: Refresh problem

2004-09-30 Thread Paul McCulloch
The token is set in a session scope attribute named
"org.apache.struts.action.TOKEN". It should be relatively straightforward to
include it's value within the link, as a parameter named
"org.apache.struts.taglib.html.TOKEN". I suggest you take a look at the
TokenProcessor class if you have any issues getting this working.

Paul

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 29, 2004 6:02 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Refresh problem
> 
> 
> Hi,
> 
> Ah, that will be why... I use a link to submit.  Is there any 
> way to force 
> this to happen without a form?
> 
> Thanks,
> Andy
> 
> _
> It's fast, it's easy and it's free. Get MSN Messenger today! 
> 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: Refresh problem

2004-09-29 Thread Paul McCulloch
The  tag will (or should!) render a hidden field, on your html
form, containing the token value. 

Paul

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 29, 2004 5:18 PM
> To: [EMAIL PROTECTED]
> Subject: Refresh problem
> 
> 
> Hi,
> 
> I have a screen which lists some names in a table and has a 
> delete option 
> which calls an action to delete the associated name and then 
> the view page 
> shows the updated list.
> If you do a delete and then select refresh on the browser, 
> the resulting 
> request is for another delete which is clearly undesirable.  
> I am trying to 
> use tokens to fix this but always get a false from the call to (NOT) 
> istokenValid (i.e., I cannot now do the delete at all).
> 
> my struts-config enties are:
> 
> type="com.me.test.actions.SetTokenAction">
>  name="success"
> path="fulluser.names.view"/>  
>  
> 
> type="com.me.test.actions.DeleteNameAction">
>  name="success"
> path="/do/viewNames"/>
> 
> 
> and the actions are:
> [SetTokenAction]
>   
>   saveToken(request);
>   return (mapping.findForward("success"));
> 
> [DeleteNameAction]
> 
>   
>   if (!isTokenValid(request))
> return (mapping.findForward("success"));
> 
> // do the delete
> .
> 
> // reset the token
> resetToken(request);
> 
> 
> When in the view page, both clicking delete and doing a 
> refresh change the 
> token's value.
> The Action class API states that the 'isTokenValid' method 
> compares the 
> session token with the one in the request but I never see one in the 
> request.
> 
> The logic seems sound so am I missing something (except a 
> servicable brain)?
> 
> Thanks,
> Andy
> 
> _
> Express yourself instantly with MSN Messenger! Download today 
> - it's FREE! 
> hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> 
> -
> 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: Storing the last request - JAAS?

2004-09-28 Thread Paul McCulloch
I'd start with the servlet spec. 

Paul

> -Original Message-
> From: Mark Benussi [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 4:45 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Storing the last request - JAAS?
> 
> 
> OK... good to know it can be done, how (In a nutshell do I 
> enable this) and 
> then access it via my action? Do you have a link to doc I can read?
> 
> Original Message Follows
> From: Paul McCulloch <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: Storing the last request - JAAS?
> Date: Tue, 28 Sep 2004 16:45:59 +0100
> 
> This will be done for you if you enable container managed 
> security for your
> web container.
> 
> Paul
> 
>  > -Original Message-
>  > From: Mark Benussi [mailto:[EMAIL PROTECTED]
>  > Sent: Tuesday, September 28, 2004 4:32 PM
>  > To: [EMAIL PROTECTED]
>  > Subject: Storing the last request - JAAS?
>  >
>  >
>  > I need to store the last request so that if a user requests a
>  > page that
>  > requires authentication etc it can be processed and then the
>  > user can be
>  > redirected to the last request. I am going to be integrating
>  > with JAAS this
>  > week so maybe there is something built in already (Which
>  > would make sense).
>  >
>  >
>  >
>  > 
> -
>  > 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]
> 
> 
> 
> -
> 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: Storing the last request - JAAS?

2004-09-28 Thread Paul McCulloch
This will be done for you if you enable container managed security for your
web container.

Paul

> -Original Message-
> From: Mark Benussi [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 4:32 PM
> To: [EMAIL PROTECTED]
> Subject: Storing the last request - JAAS?
> 
> 
> I need to store the last request so that if a user requests a 
> page that 
> requires authentication etc it can be processed and then the 
> user can be 
> redirected to the last request. I am going to be integrating 
> with JAAS this 
> week so maybe there is something built in already (Which 
> would make sense).
> 
> 
> 
> -
> 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: Need Help: exporting oracle database records to excel files

2004-09-28 Thread Paul McCulloch
As this is no longer Struts related can I suggest that you take this to a
different list? The display tag user group detaisl can be found at
http://lists.sourceforge.net/lists/listinfo/displaytag-user

Anyway, I don't understand your question I'm afraid. Perhaps you could try
rephrasing it? 

Paul

> -Original Message-
> From: Kranti Parisa [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 10:25 AM
> To: Struts Users Mailing List
> Subject: Re: Need Help: exporting oracle database records to 
> excel files
> 
> 
> Hi Paul,
> Thanq very much for ur reply...
> 
> Its exporting to excel.. but in our application we need to generate a
> seperate excel file for the records...and how to obtain the freezing
> properties for the generated excel file
> 
> Thanq
> 
> Kranti
> 
> 
> On Tue, 28 Sep 2004 10:14:18 +0100, Paul McCulloch
> <[EMAIL PROTECTED]> wrote:
> > http://www.displaytag.org/example-export.jsp
> > 
> > Paul
> > 
> > 
> > 
> > > -Original Message-
> > > From: Kranti Parisa [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, September 28, 2004 9:56 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Need Help: exporting oracle database records to 
> excel files
> > >
> > >
> > > Hi eveybody,
> > >
> > > need some information .
> > >
> > > the prob goes like this...
> > >
> > > we have a jsp page with some select boxes n all...its a
> > > search criteria
> > > the contects of the select boxes should be dynamically changed
> > >
> > > after user clicks on go button... the report has to be 
> generated with
> > > that serach criteria...
> > >
> > > actually the prob is...
> > >
> > > there will be a "export to excel" button...if user clicks
> > > that button ...
> > >
> > > the generated report, based on the search criteria, 
> should be exported
> > > as an excel file at the server end and rendered to the user..
> > >
> > > the generated excel file should be freezed one.. means the first
> > > column should remains constant irrespective of the no of records
> > > fetched...
> > >
> > > so that the user can see the report properly...
> > >
> > >
> > > can anynody tell me some way to think for the solution .
> > >
> > > waiting for the reply
> > >
> > >
> > > --
> > > --
> > > Kranti Kiran Kumar Parisa
> > > Software Engineer [ e-Biz ],
> > > Patni Computer Systems Ltd.,
> > > India
> > > Mobile: +91 98504 45977
> > > 
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > 
> > 
> **
> > Axios Email Confidentiality Footer
> > Privileged/Confidential Information may be contained in 
> this message. If you are not the addressee indicated in this 
> message (or responsible for delivery of the message to such 
> person), you may not copy or deliver this message to anyone. 
> In such case, you should destroy this message, and notify us 
> immediately. If you or your employer does not consent to 
> Internet email messages of this kind, please advise us 
> immediately. Opinions, conclusions and other information 
> expressed in this message are not given or endorsed by my 
> Company or employer unless otherwise indicated by an 
> authorised representative independent of this message.
> > WARNING:
> > While Axios Systems Ltd takes steps to prevent computer 
> viruses from being transmitted via electronic mail 
> attachments we cannot guarantee that attachments do not 
> contain computer virus code.  You are therefore strongly 
> advised to undertake anti virus checks prior to accessing the 
> attachment to this electronic mail.  Axios Systems Ltd grants 
> no warranties regarding performance use or quality of any 
> attachment and undertakes no liability for loss or damage 
> howsoever caused.
> > 
> **
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
> -- 
> -- 
> Kranti Kiran Kumar Parisa
> Software Engineer [ e-Biz ],
> Patni Computer Systems Ltd.,
> India
> Mobile: +91 98504 45977
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



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

2004-09-28 Thread Paul McCulloch
It's either that or real work :-)

> -Original Message-
> From: McCormack, Chris [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 10:22 AM
> To: Struts Users Mailing List
> Subject: RE: Need Help: exporting oracle database records to 
> excel files
> 
> 
> /pat on the back for Paul for answering so many questions today :)
> 
> -----Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: 28 September 2004 10:14
> To: 'Struts Users Mailing List'
> Subject: RE: Need Help: exporting oracle database records to 
> excel files
> 
> 
> http://www.displaytag.org/example-export.jsp
> 
> Paul
> 
> > -Original Message-
> > From: Kranti Parisa [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 28, 2004 9:56 AM
> > To: [EMAIL PROTECTED]
> > Subject: Need Help: exporting oracle database records to excel files
> > 
> > 
> > Hi eveybody,
> > 
> > need some information .
> >  
> > the prob goes like this...
> >  
> > we have a jsp page with some select boxes n all...its a 
> > search criteria
> > the contects of the select boxes should be dynamically changed
> >  
> > after user clicks on go button... the report has to be 
> generated with
> > that serach criteria...
> >  
> > actually the prob is...
> >  
> > there will be a "export to excel" button...if user clicks 
> > that button ...
> >  
> > the generated report, based on the search criteria, should 
> be exported
> > as an excel file at the server end and rendered to the user..
> >  
> > the generated excel file should be freezed one.. means the first
> > column should remains constant irrespective of the no of records
> > fetched...
> >  
> > so that the user can see the report properly...
> >  
> >  
> > can anynody tell me some way to think for the solution .
> >  
> > waiting for the reply 
> > 
> > 
> > -- 
> > -- 
> > Kranti Kiran Kumar Parisa
> > Software Engineer [ e-Biz ],
> > Patni Computer Systems Ltd.,
> > India
> > Mobile: +91 98504 45977
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> **
> Axios Email Confidentiality Footer
> Privileged/Confidential Information may be contained in this 
> message. If you are not the addressee indicated in this 
> message (or responsible for delivery of the message to such 
> person), you may not copy or deliver this message to anyone. 
> In such case, you should destroy this message, and notify us 
> immediately. If you or your employer does not consent to 
> Internet email messages of this kind, please advise us 
> immediately. Opinions, conclusions and other information 
> expressed in this message are not given or endorsed by my 
> Company or employer unless otherwise indicated by an 
> authorised representative independent of this message.
> WARNING:
> While Axios Systems Ltd takes steps to prevent computer 
> viruses from being transmitted via electronic mail 
> attachments we cannot guarantee that attachments do not 
> contain computer virus code.  You are therefore strongly 
> advised to undertake anti virus checks prior to accessing the 
> attachment to this electronic mail.  Axios Systems Ltd grants 
> no warranties regarding performance use or quality of any 
> attachment and undertakes no liability for loss or damage 
> howsoever caused.
> **
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ***
> This e-mail and its attachments are confidential
> and are intended for the above named recipient
> only. If this has come to you in error, please 
> notify the sender immediately and delete this 
> e-mail from your system.
> You must take no action based on this, nor must 
> you copy or disclose it or any part of its contents 
> to any person or organisation.
> Statements and opinions contained in this email may 
> not necessarily represent those of Littlewoods.
> Please note that e-mail communications may be monitored.
> The registered office of Littlewoods Limited and its
> subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
> Registered number of Littlewoods Limited is 262152.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



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

2004-09-28 Thread Paul McCulloch
http://www.displaytag.org/example-export.jsp

Paul

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


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


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



RE: how to right align html:text ?

2004-09-28 Thread Paul McCulloch
This is a basic html question - nothing to do with Struts. Try Google first
- http://www.google.com/search?q=input+text++right+align

Paul

> -Original Message-
> From: BOU Hou [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 9:34 AM
> To: Struts Users Mailing List
> Subject: how to right align html:text ?
> 
> 
> Hello , Is it impossable to right align the text in the html:text tag?
> Please tell me how to do it . Thankyou.
> 
> __
> TSUKAME EIKOU! KAGAYAKE EGAO!
> Yahoo! JAPAN JPC OFFICIAL INTERNET PORTAL SITE
> http://pr.mail.yahoo.co.jp/para/
> 
> 
> -
> 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: Compilation of JSP at time of deployment?

2004-09-28 Thread Paul McCulloch
JBoss/Tomcat (which I assume you are referring to) has default behaviour
whereby the compiled JSPs get deleted on graceful server shutdown. Killing
the process hard gets round this issue, or there is a config setting which
disables this. You need to edit the tomcat config file
($JBOSS\server\default\deploy\jbossweb-tomcat41.sar\META-INF\jboss-service.x
ml) and add:

  false

Between  2000 & 

With this change you'll only have poor performance the very first time a
page is accessed, regardless of reboots etc.

Paul

> -Original Message-
> From: Mike Elliott [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 12:50 AM
> To: Struts Users Mailing List
> Subject: Compilation of JSP at time of deployment?
> 
> 
> I have a neglected Ultra 1, now running Solaris 9, which I've rescued
> to use as a web application server.  It's running JBoss just fine and
> when my web application is loaded and run the response time, while
> slow (on the order of a second or two per page) is still reasonable.
> 
> The problem comes about after redeploy, or reboot, or JBoss restart,
> or whatever, which causes JBoss to forget all the compiled servlets
> for the application.  When the first user encounters such a page the
> page is, of course, compiled and made ready for use -- but this can
> take tens of seconds to accomplish, leaving a less than sparkling
> impression for the user.
> 
> Is there a way to force all the JSPs and ActionForms, etc., to be
> compiled and ready to go at the time of deployment?  Even if it takes
> several minutes to achieve this, it would be worth it rather than
> delaying until the first user/victim accesses the page.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
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: Clean way to obtain a property's value...

2004-09-28 Thread Paul McCulloch
This is quite a FAQ. The neatest solution propsed was, IMO, the 'bind' tag
in the Jakarta Unstandard taglib
(http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#bin
d).

I curently use the  + scriptlet solution you propose.

Paul

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 27, 2004 9:50 PM
> To: Struts Users Mailing List
> Subject: Re: Clean way to obtain a property's value...
> 
> 
> Just before this thread dies, on a closely related note, does anybody 
> have a nice way to get the value of a constant from a static 
> on a class? 
> This is what I don't like:
> 
> 
>collection="<%=org.gargantus.GargantusLists.ESURVEY_RESULT_DIS
> PLAY_TYPE_LIST 
> %>"
> property="resultDisplayTypeId"
> labelProperty="typeName" />
> 
> 
> I thought of JSTL variables, like:
> 
><%=org.gargantus.GargantusLists.ESURVEY_RESULT_DISPLAY_TYPE_LIST %>
> 
> 
> except somehow avoiding the <% %> tags?
> 
> I thought of instantiating the class and putting in the Application 
> scope and trying to access it like this:
> 
> ${applicationScope.get['myConstantsBean'].resultDisplayTypeId}
> 
> but it's still messy. Does anybody have any better ideas?
> 
> Thanks!
> 
> 
> On 09/27/2004 04:53 PM Paul McCulloch wrote:
> > I think you can achieve what yopu want. For example:
> > 
> >  property="whatever"/>
> > 
> > 
> > I'm some conditional html
> > 
> > 
> > Paul
> > 
> > 
> >>-Original Message-
> >>From: Freddy Villalba A. [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, September 27, 2004 3:56 PM
> >>To: 'Struts Users Mailing List'
> >>Subject: RE: Clean way to obtain a property's value...
> >>
> >>
> >>Not sure, Paul... as I understand,  directly 
> >>outputs the value.
> >>Therefore, I believe it would work if I wanted to use the value for
> >>conditional (client-side) code (for instance, Javascript), 
> but not for
> >>storing the value in a server-side variable and using it to 
> >>(conditionally)
> >>generate some HTML or other...
> >>
> >>Correct me if I'm wrong, please...
> >>
> >>Regards,
> >>Freddy.
> >>
> >>-Mensaje original-
> >>De: Paul McCulloch [mailto:[EMAIL PROTECTED]
> >>Enviado el: lunes, 27 de septiembre de 2004 15:56
> >>Para: 'Struts Users Mailing List'
> >>Asunto: RE: Clean way to obtain a property's value...
> >>
> >>
> >>Doesn't  meet your needs?
> >>
> >>As an aside, What is your objection to JSTL?
> >>
> >>Paul.
> 
> -- 
> struts 1.2 + tomcat 5.0.19 + java 1.4.2
> Linux 2.4.20 Debian
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
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: Struts Taglib Question

2004-09-17 Thread Paul McCulloch
Is there a reason you can't do this in the action which precedes your jsp?

Anyway,  from JSTL does this for you.

Paul

> -Original Message-
> From: Asleson, Ryan [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 17, 2004 2:57 PM
> To: '[EMAIL PROTECTED]'
> Subject: Struts Taglib Question
> 
> 
> 
> Hello,
> 
> Is there some sort of Struts tag that I can use to set the 
> property of a
> bean?
> 
> I have a small fragment that I want to look like this:
> 
> 
> <%-- Set the event.date property on formBean to a default 
> value --%>
> 
> 
> 
> 
> 
> It says that "if the event.date property on formBean is an 
> empty String then
> set it to a default value."  I want to do it because I want 
> the following
> select tag to have a specific default date selected instead 
> of a random one
> being the deault select.
> 
> I just want to be able to set the event.date property to a 
> default value if
> it's already an empty String.  I'm looking for a tag to do it 
> because this
> JSP page is generated via XSLT from another XML document, and 
> there could be
> many bean properties that need to be defaulted.  I want to be able to
> preserve the use of the dot notation for nested parameters.
> 
> Basically, I want a tag something like this:
> 
>  value="10/10/2004"/>
> 
> Is there any way I can do this?
> 
> Thanks!!
> 
> 
> 
> This e-mail message is being sent solely for use by the 
> intended recipient(s) and may contain confidential 
> information.  Any unauthorized review, use, disclosure or 
> distribution is prohibited.  If you are not the intended 
> recipient, please contact the sender by phone or reply by 
> e-mail, delete the original message and destroy all copies. Thank you.
> 
> -
> 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: Sending or Receiving Fax through My Application.............

2004-09-15 Thread Paul McCulloch
And you've tried http://www.google.com/search?q=java+fax+api haven't you?

Paul

> -Original Message-
> From: Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 15, 2004 10:55 AM
> To: Struts
> Subject: Sending or Receiving Fax through My Application.
> 
> 
> Hi Guys,
>  
> Please, I'd like to know if there is any API to send or 
> perhaps receive fax using JAVA technology.
> 
> I've heard anything about JavaPhone and JTAPI, but not so clear.
> I need to develop an application to send fax trough a database table.
> If someone knows something about how can I do this, and where 
> to download the API, plese help me.
>  
> with advanced thanks
>  
> Srinivas
> 
>   
> -
> Do you Yahoo!?
> vote.yahoo.com - Register online to vote today!
> 


**
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: load balancing and definition of a request

2004-09-14 Thread Paul McCulloch

>Now let's think about a web application. In this case we have 
> the idea of
> may sessions - but theses are just a way for the server & browser to


I've no idea what may sessions are. I probably meant to say " In this case
we may have the idea of sessions".

Paul


**
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: load balancing and definition of a request

2004-09-14 Thread Paul McCulloch
It sounds like you may have a misunderstanding of the interaction between
your browser and a web server. 

Let's just talk static content first. You request a URL for an html page;
the server sends the page back to you. That's a request. Now if the html
page you recieved contains 2 pictures then your browser will send off
another 2 requests to the server to get those images. So that was 3 requests
in total.

Now stick a load balancer between your browser and the servers. All this
will do is somehow allocate some requests to some webservers and some to
others. How the load balancer does this is it's business, and the web
servers don't care where the requests come from.

Now let's think about a web application. In this case we have the idea of
may sessions - but theses are just a way for the server & browser to
logically group together a bunch of discrete requests. There is no concept
of a session at the http level. 

The load balancer may or may not be session aware. To be aware of JSP
sessions it needs to know that it should look for a "jsessionid" attribute
in the requests and responses. 

If the loadbalancer is session aware & has 'sticky sessions' enabled then it
will always route requests for a particular session to the web server where
that session started. If sticky sessions are disabled then it will just send
your requests to an arbitrrary web server.

As you point out, the problem with using non sticky sessions is that session
data has to be replicated to the other nodes in the cluster. This is often
done when you call session.setAttribute()  - the replication will happen
then and there, or it may be done on a periodic basis. 

Due to this issue, and my relatively heavy use of session data, I've gone
for a sticky session load balanced solution rather than a clustered
solution. So, I can't tell you much more about the detail of session
replication, other than it's container specific.

Have a look at the mod_jk apache load blanacing ,odule for tomcat -
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html.

Paul


> -Original Message-
> From: Woodchuck [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 14, 2004 2:37 PM
> To: struts
> Subject: load balancing and definition of a request
> 
> 
> hihi all,
> 
> there was another thread talking about load balancing / clustering and
> session affinity so now i'm curious to understand more about this.
> 
> given the following typical setup:
>   - one load balancing (dispatcher) server 'in front' of 
> everything and
> receives all initial requests (LB)
>   - multiple app servers (servlet containers) 'behind' (A, B, C, D)
>   - one database server for all the app servers (DB)
> 
> when someone enters a URL in a browser and submits it, this request
> goes to the load balance server where it decides which app server to
> use for this particular request.  but that URL is typically an html
> with other embedded resources like .jpg, .css, .js, .gif, and so on. 
> what really happens?
> 
> #1:
> the load balancer will go to A for .jpg, go to B for the .css, C for
> the .gif, and D for processing the .jsp, and then put it all together
> when these 'sub requests' are finished.
> 
> #2:
> the load balancer chooses one app server, say B, and then B is
> responsible for all resource processing required for that URL/request.
> 
> my questions are:
> 
> is #1 possible?  
> 
> if #2 happens and henceforth all requests from the same session is
> routed to app server B, is this session affinity? (is this aka sticky
> sessions?)
> 
> is it possible to have #2 happen, and then have subsequent requests
> from the same session go to different app servers based on the 'most
> available/idle' app server?  (is this realistically achievable?...
> after each request, the session would need to be copied/updated to all
> the other app servers... what happens when this is not done 
> fast enough
> before the session's next request?)
> 
> 
> woodchuck
> 
> 
> 
>   
> ___
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 
> -
> 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 
rep

RE: RTEXPR in struts html tags

2004-09-14 Thread Paul McCulloch
Could it be that you are using html-el rather than html?

Paul

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 14, 2004 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: RTEXPR in struts html tags
> 
> 
> Hi,
> 
> I can't get struts tags to accept expressions.
> There was the previous example I wrote to the list about (Re: 
>  
> tag) and now I am trying to get the focus attribute of the 
>  tag 
> take an expression such that I can identify which text 
> element  should get 
> focus following a validation error.
> 
> If I include the following in my jsp file:
> 
> 
> 
> then I get the following exception:
> 
> /login.jsp(13,0) According to TLD or attribute directive in tag file, 
> attribute focus does not accept any expressions
> 
> and yet according to the documentation this attribute should 
> accept them.
> 
> Thanks,
> 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: [OT] synchronous form submit in a popup so parent refreshes p rope rly

2004-09-10 Thread Paul McCulloch
You could make the response from the submit be an html page which executes
the relevant (parent.reload; close) Javascript. 

Alternatively you could submit the form on the popup window so that the
response of this submission was displayed in the parent window (via the
'target' attribute of the form tag). You'd want to define the forward for
this action to be the refresh action you want your parent to perform.

Paul

> -Original Message-
> From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 10, 2004 5:19 PM
> To: '[EMAIL PROTECTED]'
> Subject: [OT] synchronous form submit in a popup so parent 
> refreshes prope rly
> 
> 
> I have a popup with a save button that works like this:
> 
>  
> 
> onclick="document.forms[0].Dispatch.value='Save';document.form
> s[0].submit();
> window.opener.location.reload(true);window.close();"
> 
>  
> 
> The problem is that the parent window gets refreshed before the submit
> finishes what it needs to finish, i.e., write stuff to the 
> db. I want the
> parent window to be refreshed after the submit has finished. 
> What are some
> ways I can try to make sure the submit finishes before the 
> parent window
> gets updated?
> 
>  
> 
> Thanks,
> 
> Brian Barnett
> 
> 


**
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: [OT] someone using Outlook 2003, please tell me it can't be t his LAME...

2004-09-02 Thread Paul McCulloch
In Outlook 2000 you can do this by choosing View:Current View:By
Conversation Topic, then click the data column to sort.

Paul

> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 02, 2004 3:45 PM
> To: Struts Users Mailing List
> Subject: [OT] someone using Outlook 2003, please tell me it 
> can't be this LAME...
> 
> 
> Ok, I'm not trying to start an e-mail client war. (I have been using 
> Thunderbird as my primary client but do miss some of the 
> features of The 
> Bat, but that's not the question I have). At work they've 
> just installed 
> Office 2003 so I figured I'd look again at Lookout since I do 
> use it at 
> work for the Calendar stuff that I'm forced to use (I can still use 
> Thunderbird to get my Exchange server e-mail which is nice). While 
> messing with the Outlook e-mail client I can't figure out for 
> the life 
> of me how to "sort messages by subject/thread AND by date.. 
> like EVERY 
> OTHER client in the world does." If this client can sort like 
> a normal 
> client (thunderbird, mozilla, the bat, sylpheed, evolution, kmail, 
> pegasus, eudora, poco mail, etc etc) how come it is so difficult to 
> figure out how to set it up? I've been messing with these view and 
> custom options and still havne't figured it out. I've used 
> both Windows 
> and Linux and I actually like Windows for a desktop 
> environment (gasp!) 
> but I don't use any of their software other than the OS (I 
> use opera or 
> firefox for browsing, thundbird for mail, open office for 
> office stuff). 
> I'm really amazed that they could realease an e-mail client 
> that is so 
> lame. It's like MS refusing to make IE have tabbed browsing 
> features - 
> just stupid - they know people want it but they don't provide it (I 
> guess they're afraid to admit that moz/firefox/opera have the 
> right idea.)
> 
> Someone tell me how I can get messages sorted correctly in Outlook? I 
> want grouped by thread/subject but sorted by received date 
> (preferably a 
>   more recent date on an e-mail will simply move the grouped 
> thread up 
> or down).
> 
> 
> 
> -- 
> Rick
> 
> 
> -
> 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: Question with beans and iterate

2004-09-02 Thread Paul McCulloch
Although this is (probably) possible your object model is making things more
difficult than it needs to be. 

I would consider remodelling this as a single Map of Items where each Item
has, in addition to it's other properties, a Collection of SubItems. This
will be fairly easy to render using the JSTL iteration tags (iterate over
the Map of Items, within that iterate over the current Item's SubItems).

HTH,

Paul

> -Original Message-
> From: Mariano Garcia [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 02, 2004 10:08 AM
> To: Struts Users Mailing List
> Subject: Question with beans and iterate
> 
> 
> Hi all,
> 
> I have a problem and I don't know the best way to solve it. 
> This is the
> situation
> 
> There are two Maps, included in request by an action:
> a. itemMap (Item objects)
> b. subItemMap (SubItem objects)
> 
> The Item object has a property (subitem_id) that identifies a
> subItemMap. I want to iterate the itemMap in order to show the Item
> property values in the view, and to show its asociated 
> SubItem property
> values.
> 
> Do you know what could be the best way to do it?
> 
> Regards.
> 
> -- 
>   Mariano García González :: Ingeniero de Sistemas
> 
> OPTIVA MEDIAPGP 0x89E8E4CE
>   c/ Musgo 2 
>   Ed. Europa II 
>   280023 Madrid (España)
> t. +34 91 297 72 71
>   f. +34 91 297 72 72
> www.optivamedia.com
> 
> © This message is printed on 100% recycled electrons.
> 


**
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: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread Paul McCulloch
You don't event need that. As I said - servlet is a protected instance
variable of Action, so you can just use 'servlet' in code in your Action
desdendants.

Paul

> -Original Message-
> From: lixin chu [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 8:29 AM
> To: Struts Users Mailing List
> Subject: RE: ActionForm: simply calling reset() or have to 
> recreate one ?
> 
> 
> I see. Checked API doc, saw getServlet() call for
> Action. Guess this is what I need to use. 
> thanks !
> 
> --- Paul McCulloch <[EMAIL PROTECTED]>
> wrote:
> 
> > I think it was me who pointed you down that route to
> > destroy & recreate a
> > form bean to clear any data in it.
> > 
> > reset() is not used for this purpose -  read up on
> > what reset() does. 
> > 
> > "servlet" is a variable of Action and is available
> > in all methods of your
> > own Action classes.
> > 
> > Paul
> > 
> > > -Original Message-
> > > From: lixin chu [mailto:[EMAIL PROTECTED]
> > > Sent: Saturday, August 28, 2004 3:52 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: ActionForm: simply calling reset() or
> > have to recreate one ?
> > > 
> > > 
> > > Hi,
> > > IN one of my Actions I need to clear the existing
> > > session scoped ActionForm, should I just call
> > > form.reset() and then repopulate values, or I have
> > to
> > > remove it and recreate it using RequestUtils ?
> > > 
> > > I saw a recent message talking about this, but I
> > am
> > > not sure if I have to recreate one. If so, how do
> > I
> > > get the servlet parameter needed in:
> > > 
> > > RequestUtils.createActionForm(request, mapping,
> > > mapping.getModuleConfig(), servlet);
> > > 
> > > thanks !
> > > 
> > > li xin
> > > 
> > > 
> > > 
> > >   
> > > ___
> > > Do you Yahoo!?
> > > Win 1 of 4,000 free domain names from Yahoo! Enter
> > now.
> > > http://promotions.yahoo.com/goldrush
> > > 
> > >
> >
> -
> > > 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]
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: The jar files in the C:\jakarta-struts-1.1\contrib\struts-el\ lib directory

2004-08-31 Thread Paul McCulloch
These files are need if you wish to use JSP EL in a JSP 1.2 container. If
you use a JSP 2 container then EL is supported for the standard struts tags
(by the container rather than the tags themselves). See
http://struts.apache.org/faqs/struts-el.html for more details.

Paul



> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 31, 2004 12:37 PM
> To: [EMAIL PROTECTED]
> Subject: The jar files in the 
> C:\jakarta-struts-1.1\contrib\struts-el\lib directory
> 
> 
> There are three .jar files in the
> C:\jakarta-struts-1.1\contrib\struts-el\lib directory
> that are not in the C:\jakarta-struts-1.1\lib
> directory.  Those three files are jstl.jar,
> standard.jar, and struts-el.jar.
> 
> Do we also copy those three files to the
> C:\TOMCAT\webapps\AppName\WEB-INF\lib directory to
> setting up to use the Struts?
> 
> Thanks.
> 
> 
>   
> __
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
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: Possible to change input path in actionForm validate?

2004-08-31 Thread Paul McCulloch
What I meant is that you can use the same action class multiple times, each
with a different path & input:







Paul

> -Original Message-
> From: Sebastian Ho [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 30, 2004 2:18 AM
> To: Struts Users Mailing List
> Subject: RE: Possible to change input path in actionForm validate?
> 
> 
> I tried that but it is complainin about more than one identical action
> definition in struts-config.
> 
> sebastian ho
> 
> 
> 
> On Fri, 2004-08-27 at 20:21, Paul McCulloch wrote:
> > One way to do this is to have multiple actions defined in 
> struts-config.xml,
> > each using the same Action class. Each action can have a 
> different input
> > JSP.
> > 
> > Paul
> > 
> > > -Original Message-
> > > From: Sebastian Ho [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, August 27, 2004 1:05 PM
> > > To: Struts Users Mailing List
> > > Subject: Possible to change input path in actionForm validate?
> > > 
> > > 
> > > Hi
> > > 
> > > Is it possible to change the input path that validate() 
> displays if
> > > there are errors in the validation?
> > > 
> > > I try using mapping.setInput() but it returns
> > > "java.lang.IllegalStateException: Configuration is froze".
> > > 
> > > Reason for this is I am using the same Action for different JSP,
> > > therefore the validation errors need to be displayed in 
> the respective
> > > JSP, and not the input path specified in actino-mappings.
> > > 
> > > Thanks
> > > 
> > > Sebastian Ho
> > > 
> > > 
> > > 
> -
> > > 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]
> > 
> > 
> 
> 
> -
> 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: ActionForm: simply calling reset() or have to recreate one ?

2004-08-31 Thread Paul McCulloch
I think it was me who pointed you down that route to destroy & recreate a
form bean to clear any data in it.

reset() is not used for this purpose -  read up on what reset() does. 

"servlet" is a variable of Action and is available in all methods of your
own Action classes.

Paul

> -Original Message-
> From: lixin chu [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 28, 2004 3:52 AM
> To: [EMAIL PROTECTED]
> Subject: ActionForm: simply calling reset() or have to recreate one ?
> 
> 
> Hi,
> IN one of my Actions I need to clear the existing
> session scoped ActionForm, should I just call
> form.reset() and then repopulate values, or I have to
> remove it and recreate it using RequestUtils ?
> 
> I saw a recent message talking about this, but I am
> not sure if I have to recreate one. If so, how do I
> get the servlet parameter needed in:
> 
> RequestUtils.createActionForm(request, mapping,
> mapping.getModuleConfig(), servlet);
> 
> thanks !
> 
> li xin
> 
> 
> 
>   
> ___
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter now.
> http://promotions.yahoo.com/goldrush
> 
> -
> 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: Struts or JSTL equivalent for this?

2004-08-27 Thread Paul McCulloch
There was a thread asking exactly the same question earlier in the week.
Have a look in the archives.

Paul

> -Original Message-
> From: Woodchuck [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 5:06 PM
> To: Struts Users Mailing List
> Subject: Re: Struts or JSTL equivalent for this?
> 
> 
> lol!  not what i was expecting, but very interesting!  :)  
> 
> before i use this suggestion, would anyone else like to challenge this
> solution with a *more elegant* solution?  ;)
> 
> and without making getters and setters!!
> 
> woodchuck
> 
> 
> --- Rick Reumann <[EMAIL PROTECTED]> wrote:
> 
> > Woodchuck wrote:
> > 
> > > how can i do the following the non-scriptlet way on my jsp page?
> > > 
> > > <%@ page import="MyPackage.Constants"%>
> > > 
> > > <%= Constants.BUTTON__KEY %>
> > > 
> > > 
> > > is there an elegant Struts or JSTL equivalent for the above?
> > 
> > Thankfully Kris Schneider demonstrated a good way to handle this...
> > 
> > In your Constants class add a method similar to this:
> > 
> > public static Map getConstantsMap() {
> >  Map propMap = null;
> >  try {
> >  Field[] allFields = Constants.class.getDeclaredFields();
> >  int numFields = allFields.length;
> >  propMap = new HashMap(numFields);
> >  for(int i = 0; i < numFields; i++) {
> >  Field f = allFields[i];
> >  int mods = f.getModifiers();
> >  if(Modifier.isPublic(mods) && 
> Modifier.isStatic(mods) &&
> > 
> > Modifier.isFinal(mods)) {
> >  String name = f.getName();
> >  Object value = f.get(null);
> >  propMap.put(name, value);
> >  }
> >  }
> >  } catch(IllegalAccessException ie) {
> >  log.error("Problem loading getConstantsMap " + ie);
> >  }
> > 
> >  return Collections.unmodifiableMap(propMap);
> > }
> > 
> > 
> > Then, I have a Servlet that runs on applications startup (such as a 
> > ServletContextListener) that will load the constants map into 
> > application scope:
> > 
> > ServletContext context = contextEvent.getServletContext();
> > try {...
> > context.setAttribute("CONSTANTS", Constants.getConstantsMap());
> > 
> > Now anywhere in your JSPs you can just use the Map
> > 
> > ${CONSTANTS.SOME_CONSTANT}
> > 
> > 
> > -- 
> > Rick
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>   
> ___
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter now.
> http://promotions.yahoo.com/goldrush
> 
> -
> 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: Somewhat OT: moving Struts app from BEA to Jboss

2004-08-27 Thread Paul McCulloch
I use 3.2.3...

The debug messages can be turned off by playing with the log4j config file
in C:\jboss\jboss-3.2.3\server\default\conf\log4j.xml

You should deploy your application (as either a .war file, or a .war
directory) by copying to C:\jboss\jboss-3.2.3\server\default\deploy. I have
never seen this issue you mention regarding deploying jars under
WEB-INF/lib.

Is your app a simple web application, or an EJB app?

Paul

> -Original Message-
> From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 4:22 PM
> To: Struts User List ([EMAIL PROTECTED])
> Subject: Somewhat OT: moving Struts app from BEA to Jboss
> 
> 
> I've got a rather small Struts app that runs fine on BEA 
> Weblogic. Now we're
> looking in to Jboss, so I've got a copy of Jboss 3.2.5. I've added a
> sybase-ds.xml file defining my database connection, and I 
> copied my Freqs
> directory (that's my small Struts app) from the Bean 
> directory structure to
> the Jboss directory structure.
> 
> When I start Jboss, I get ZILLIONS of messages. Nearly all are "DEBUG"
> level. It seems to separately trying to deploy every jar file in the
> WEB-INF/lib directory. It generates errors, complete with 
> stack dumps, on
> inoffensive jsp pages!
> 
> Does anybody have a clue what I've done wrong, or a clue as 
> to where I could
> go to find out?
> 
> --
> Tim Slattery
> [EMAIL PROTECTED]
> 
> 
> -
> 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: LookupDispatchAction (Newbie)

2004-08-27 Thread Paul McCulloch
Doh!

Cheers,

Paul

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 3:23 PM
> To: Struts Users Mailing List
> Subject: Re: LookupDispatchAction (Newbie)
> 
> 
> I just assumed on the wiki that people would extend to submit 
> as follows:
> 
> 
> 
>   
> 
> 
> 
> 
> 
> I will amend the wiki to reflect that possibility.  This just 
> mimics the 
> functionality of the  tag.
> 
> Michael
> 
> Paul McCulloch wrote:
> 
> >I'm confused. Looking at the wiki (ImageTagUtil class) it 
> seems that a non
> >null command will only be returned if there is a request 
> parameter with name
> >ending in ".x". My understanding of html is that only  type="image"
> >.../> tags send the x & y coordinates to the server in submission.
> >
> >What am I missing? 
> >
> >Thanks,
> >
> >Paul
> >
> >
> >  
> >
> >>-Original Message-
> >>From: Michael McGrady [mailto:[EMAIL PROTECTED]
> >>Sent: Friday, August 27, 2004 2:54 PM
> >>To: Struts Users Mailing List
> >>Subject: Re: LookupDispatchAction (Newbie)
> >>
> >>
> >>Paul McCulloch wrote:
> >>
> >>
> >>
> >>>Am I right in thinking that your solution works for image 
> >>>  
> >>>
> >>buttons, whereas
> >>
> >>
> >>>the LookupDispatchAction is for text labeled buttons?
> >>>
> >>>Paul
> >>>
> >>>  
> >>>
> >>No, my solution works for both, Paul.  The code mined is decoupled 
> >>entirely from the display. 
> >>
> >>Michael
> >>
> >>
> >>
> -
> >>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]
> >
> >
> >
> >
> >  
> >
> 
> 
> 
> -
> 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: LookupDispatchAction (Newbie)

2004-08-27 Thread Paul McCulloch
I'm confused. Looking at the wiki (ImageTagUtil class) it seems that a non
null command will only be returned if there is a request parameter with name
ending in ".x". My understanding of html is that only  tags send the x & y coordinates to the server in submission.

What am I missing? 

Thanks,

Paul


> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 2:54 PM
> To: Struts Users Mailing List
> Subject: Re: LookupDispatchAction (Newbie)
> 
> 
> Paul McCulloch wrote:
> 
> >Am I right in thinking that your solution works for image 
> buttons, whereas
> >the LookupDispatchAction is for text labeled buttons?
> >
> >Paul
> >
> 
> No, my solution works for both, Paul.  The code mined is decoupled 
> entirely from the display. 
> 
> Michael
> 
> 
> -
> 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: LookupDispatchAction (Newbie)

2004-08-27 Thread Paul McCulloch
Am I right in thinking that your solution works for image buttons, whereas
the LookupDispatchAction is for text labeled buttons?

Paul

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 2:35 PM
> To: Struts Users Mailing List
> Subject: Re: LookupDispatchAction (Newbie)
> 
> 
> Once you see how LookupDispatchAction works, you should also 
> see that it 
> is an unnecessarily complicated solution.  Try 
> http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSi
> mplified 
> which shows that all you have to do is:
> 
> String button = null;
> Enumeration enum = request.getParameterNames();
> String parameterName = null;
> while(enum.hasMoreElements()) {
>   parameterName = (String)enum.nextElement();
>   if(parameterName.endsWith(".x")) {
> button = 
> parameterName.substring(0,parameterName.indexOf('.'));
>   }
> 
> }
> 
> Isn't that a great deal simpler?  If you want to solve it 
> with a class, 
> then do somethin like:
> 
> *public class ImageTagUtil {
>   public static String getName(HttpServletRequest request) {
> String command = null;
> String buttonValue = null;
> Enumeration enum = request.getParameterNames();
> 
> while(enum.hasMoreElements()) {
>   buttonValue = (String)enum.nextElement();
>   if(buttonValue.endsWith(".x")) {
> command = buttonValue.substring(0,buttonValue.indexOf('.'));
>   }
> }
> return command;
>   }
> }*
> 
> However, if you love the complications, essentially the idea 
> is to put 
> the paramter value together with method names in order to map the 
> buttons to methods.  So, if you have buttons returning button.add and 
> button.delete, your parameter value will be "button".  Once you know 
> that the parameter is button, then you can search for button.? and ? 
> will be the method name.  This is a totally unnecessary complication, 
> since we already have .x and .y at the end so generously 
> supplied by the 
> standard HTML.  So the above code does the same thing without 
> tying the 
> solution to the parameter value, which frees the parameter value for 
> other uses and which decouples the solution from struts.
> 
> Regards,
> 
> Michael
> 
> >
> 
> 
> 
> -
> 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: OT - Archive Search

2004-08-27 Thread Paul McCulloch
Try the archive at http://marc.theaimsgroup.com/?l=struts-user

Paul

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 2:02 PM
> To: Struts Users Mailing List
> Subject: OT - Archive Search
> 
> 
> 
> 
> 
> 
> Before I submit questions to the list I try to search the archives.
> However, I often get "no matches were found" on a very 
> generic search, eg.
> "date".  Is there a problem or am I doing something wrong?
> 
> 
> 
> -
> 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: Bean's get method with parameter

2004-08-27 Thread Paul McCulloch
1) Oops. That was from memory
2) When the browser makes a request it sends a list of accepted locales.
JSTL will look at this list to determine how to format the date. In IE this
is configured via Tools:Internet Options:Languages.

Paul

> -Original Message-
> From: Vaclavik Radek [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 2:09 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Bean's get method with parameter
> 
> 
> Hi,
> 
> thanks for your answer. However, I have 2 issues:
> 
> 1) formatDate tag must not have a body, but i have worked this around
> through scripting variable
> 2) I don't see how the format of the date changes accrding to selected
> locale. There is one locale in session (the struts one - 
> Globals.LOCALE_KEY)
> but this one has no influence. So I've tried to change the 
> locale settings
> in windows to, e.g. ENGLISH, but the date is still shown in 
> the original
> format (Czech).
> 
> Here is the snip of JSP code I am using:
> 
>  type="java.util.Date"/>
> 
> 
> Radek
> 
> > -Original Message-
> > From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 27, 2004 11:04 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Bean's get method with parameter
> > 
> > 
> > A getter with a paramteter is not a bean property, and so won't be
> > accessible with the usual tags.
> > 
> > I'd suggest that the formatting of your date is the 
> > responsibility of your
> > view layer, and not the form bean. The easiest way to do waht 
> > you ar after
> > is to use the JSTL's  tag:
> > 
> > 
> >  > property="lastChangedDateString"/>
> > 
> > 
> > This will automatically pick up the request locale.
> > 
> > Paul
> > 
> > > -Original Message-
> > > From: Vaclavik Radek [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, August 27, 2004 9:53 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Bean's get method with parameter
> > > 
> > > 
> > > Hi,
> > > 
> > > this question may have a simple answer, but currently I don't 
> > > see it :)
> > > 
> > > From my JSP I wanto access some bean's property which 
> > > returns, say, date as
> > > string in localized format, depending on currently selected locale
> > > (Globals.LOCALE_KEY).
> > > 
> > > Currently, I have method like this in my bean:
> > > getLastChangedDateString(Locale locale){
> > > ..
> > > return some_string
> > > }
> > > 
> > > Therefor, the returned date string is formatted accordingly 
> > to current
> > > locale. Is it possible to pass this parameter (locale) to the 
> > > get method,
> > > from jsp? Something like:
> > >  > > property="lastChangedDateString(here_I_need_the_current_locale)"/>
> > > 
> > > OR
> > > 
> > > another solution came to my mind: Have the method 
> > > getLastChagedDateString()
> > > without parameters and let the method find out the current 
> > > locale itself.
> > > But here I don't know wheter, and if so then how, the bean 
> > > has access to
> > > current session in order to retrieve the current locale.
> > > 
> > > Any hints?
> > > 
> > > 
> > > Thanks in advance.
> > > 
> > > Radek
> > > 
> > > _
> > > 
> > > Ing. Radek Václavík
> > > ICS Department - webmaster
> > > 
> > > ZeNTIVA a.s.
> > > U Kabelovny 130, 102 37 Praha 10
> > > Czech Republic
> > > tel. +420 267 243 296
> > > _
> > > 
> > > 
> > 
> > 
> > 
> **
> > 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

RE: Possible to change input path in actionForm validate?

2004-08-27 Thread Paul McCulloch
One way to do this is to have multiple actions defined in struts-config.xml,
each using the same Action class. Each action can have a different input
JSP.

Paul

> -Original Message-
> From: Sebastian Ho [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 1:05 PM
> To: Struts Users Mailing List
> Subject: Possible to change input path in actionForm validate?
> 
> 
> Hi
> 
> Is it possible to change the input path that validate() displays if
> there are errors in the validation?
> 
> I try using mapping.setInput() but it returns
> "java.lang.IllegalStateException: Configuration is froze".
> 
> Reason for this is I am using the same Action for different JSP,
> therefore the validation errors need to be displayed in the respective
> JSP, and not the input path specified in actino-mappings.
> 
> Thanks
> 
> Sebastian Ho
> 
> 
> -
> 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: Bean's get method with parameter

2004-08-27 Thread Paul McCulloch
A getter with a paramteter is not a bean property, and so won't be
accessible with the usual tags.

I'd suggest that the formatting of your date is the responsibility of your
view layer, and not the form bean. The easiest way to do waht you ar after
is to use the JSTL's  tag:





This will automatically pick up the request locale.

Paul

> -Original Message-
> From: Vaclavik Radek [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 9:53 AM
> To: [EMAIL PROTECTED]
> Subject: Bean's get method with parameter
> 
> 
> Hi,
> 
> this question may have a simple answer, but currently I don't 
> see it :)
> 
> From my JSP I wanto access some bean's property which 
> returns, say, date as
> string in localized format, depending on currently selected locale
> (Globals.LOCALE_KEY).
> 
> Currently, I have method like this in my bean:
> getLastChangedDateString(Locale locale){
> ..
> return some_string
> }
> 
> Therefor, the returned date string is formatted accordingly to current
> locale. Is it possible to pass this parameter (locale) to the 
> get method,
> from jsp? Something like:
>  property="lastChangedDateString(here_I_need_the_current_locale)"/>
> 
> OR
> 
> another solution came to my mind: Have the method 
> getLastChagedDateString()
> without parameters and let the method find out the current 
> locale itself.
> But here I don't know wheter, and if so then how, the bean 
> has access to
> current session in order to retrieve the current locale.
> 
> Any hints?
> 
> 
> Thanks in advance.
> 
> Radek
> 
> _
> 
> Ing. Radek Václavík
> ICS Department - webmaster
> 
> ZeNTIVA a.s.
> U Kabelovny 130, 102 37 Praha 10
> Czech Republic
> tel. +420 267 243 296
> _
> 
> 


**
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: More than 5 Arguments

2004-08-27 Thread Paul McCulloch
Use fmt:message & fmt:param tags instead of the Struts tag. If you can;t use
JSTL then extend the bean:message tag.
 
Paul

-Original Message-
From: Bharat Bhushan [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 6:02 PM
To: Struts Users Mailing List
Subject: More than 5 Arguments



Hi 

My question is how to print a message on the page through resource bundle
which has more than 5 arguments. 

 Tag support only 4 arguments. Any help with example will be
appreciable. 

Thanks 
Bharat 



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



RE: SV: strange behavior: bug or me?

2004-08-26 Thread Paul McCulloch
No disrespect intended - but I'd be inclined to look at my own
code/environment before I started blaming the struts taglibs!

When I get into this sort of position I tend to remove all traces of my jsp
from the container (including the generated servlet etc), redeploy & restart
the container. If that doesn't give me any joy then I'll debug into the
taglib in question. To my mind this is a huge advantage of using components
where I have access to the source.

Paul

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 3:23 PM
> To: Struts Users Mailing List
> Subject: Re: SV:  strange behavior: bug or me?
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> >Hi
> >
> >Have you tried to convert this into JSTL and use c:if ?
> >
> 
> Yah, I guess it is time to make that transition.  Do you 
> think that JSTL 
> is more reliable?  I am mainly trying to find out at this 
> time if it is 
> me (I am pretty rigorous in my coding) or the  tag.  I usually 
> don't take long to find a difficulty.  But on this on I have started 
> over three times and each time come up against the same unexplicable 
> failure.  It is odd.
> 
> Michael
> 
> 
> -
> 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: Question about authentication

2004-08-26 Thread Paul McCulloch
That's my approach too - the JSPs will either break or do nothing if called
directly.

Pau;

> -Original Message-
> From: David Suarez [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 2:21 PM
> To: Struts Users Mailing List
> Subject: RE: Question about authentication
> 
> 
> I may be mis-reading the question but...  why hide your jsp's from
> direct access?  The actions should definitely check for 
> security and it
> makes sense there but if your jsp's populate information from 
> the form,
> wouldn't the jsp be empty/unusable anyway?..
> 
> The approach above is what I have used.  Only protect the 
> forms/actions.
> Empty jsp's I don't care about.  Let me know why you think 
> that this is
> bad security practice.
> 
> Regards...djsuarez
> 
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 25, 2004 4:49 PM
> To: Struts Users Mailing List
> Subject: RE: Question about authentication
> 
> 
> 
> > -Original Message-
> > From: Steven Leija [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 25, 2004 2:15 PM
> > To: Struts Users Mailing List
> > Subject: RE: Question about authentication
> > 
> > 
> > I'm currently running into the same situation.  If you added 
> > to your web-inf directory.  Do you just create a dir called 
> > "jsp"?  and treat that as your root?  Is there any sort of 
> > special path or configuration needed for this?  I'm using 
> Tomcat 5.0.
> 
> No special configuration needed you forward to
> /WEB-INF/jsp/yourpage.jsp.  Any Servlet or JSP can access anything in
> WEB-INF.
> The only thing to remember is you cannot type in the jsp from the
> browser, you have to go through an action.  Which is what 
> ForwardAction
> is for :)
> 
> If you don't like this, you could incorporate container 
> managed security
> to restrict all *.jsp to a dummy role.
> 
> 
> >  
> > Thanks,
> >  
> > Steven
> >  
> > 
> > > Hi 
> > > I am going to use custom tags for checking 
> > > access to Jsp, if no user/bean bean in session, 
> > > then direct to login page. 
> > > 
> > > And I am also going to check admin bean again 
> > > in Action before invoking life cycle methods 
> > > on business beans. 
> > > 
> > > Now am I over kill with authentication?? 
> > 
> > Way overkill.  Put your jsps in WEB-INF, and no one can 
> > get at them.  If your container is new enough to handle 
> > filters, use them instead.  Otherwise, use a 
> > BaseSecurityAction that overrides execute, does the check and 
> > then calls whateverYouWantForYourActualExecutionCode( same 
> > params as execute).
> > 
> > > 
> > > I mean, if all JSP pages that require user/admin 
> > > access has custom tag that check for access 
> > > at top, then i don't really need to check 
> > > for authentication in Action classess. 
> > 
> > You shouldn't allow access to your jsp pages. 
> > 
> > > 
> > > But it may also be good practice to double check 
> > > for whatever reason. 
> > > 
> > > Just curious what's the usual practice u ppl do. 
> > > 
> > > Thanks 
> > > 
> > > 
> > 
> - 
> > > 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]
> 


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

RE: [OT(?)] Comparing against a typesafe enum in JSTL

2004-08-26 Thread Paul McCulloch
I've asked this before on the list and didn't get a neat answer. I've
resorted to using c:set & scriptlets to extract the value from the static
and store it in a scoped attribute for use with JSTL.

Paul


> -Original Message-
> From: Janne Mattila [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 1:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [OT(?)] Comparing against a typesafe enum in JSTL
> 
> 
> Um, no, doesn't work:
> 
> [ServletException in:/pages/cd/content/common/menu.jsp]
> jsp.error.tlv.invalid.page
> 
> 10: tag = 'when' / attribute = 'test': An error occurred 
> while parsing 
> custom action attribute "test" with value 
> "${sessionScope.role.roleChar.equals(cd.business.Role.ADMIN)}"
> : Encountered 
> "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", 
> "eq", "<=", 
> "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", 
> "%", "mod", 
> "and", "&&", "or", "||"]
> 
> besides, wouldn't that be comparing a char (besides, calling 
> char's equals() 
> method, which does not exist sice char is a primitive) to a Role?
> 
> Anyway, thanks for the suggestion, other ideas?
> 
> 
> >From: Can Zheng <[EMAIL PROTECTED]>
> >Reply-To: Can Zheng <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: Re: [OT(?)] Comparing against a typesafe enum in JSTL
> >Date: Thu, 26 Aug 2004 20:32:27 +0800
> >
> >Hi,
> >you can use
> >
> > >test="${sessionScope.role.roleChar.equals(cd.business.Role.ADMIN)}">
> >...
> >
> >
> >
> >
> >On Thu, 26 Aug 2004 12:09:56 +, Janne Mattila
> ><[EMAIL PROTECTED]> wrote:
> > > First, apologies for a slightly OT question; this is more 
> about JSTL and
> > > less about Struts.
> > >
> > > Let's say I have a "Role" object in session. It is a 
> typesafe enum, with
> > > values Role.ADMIN and Role.USER. How can I compare the 
> object in session
> > > against those values, using JSTL? I can't figure out how 
> to refer to
> > > typesafe enum objects using the JSTL notation. And I 
> don't really want 
> >to
> > > change the enum class into a JavaBean.
> > >
> > > Role:
> > >
> > > public class Role {
> > >private char roleChar;
> > >
> > >public static final Role USER = new Role('u');
> > >public static final Role ADMIN = new Role('a');
> > >
> > >private Role(char roleChar) {
> > >this.roleChar = roleChar;
> > >}
> > >
> > >char getRoleChar() {
> > >return roleChar;
> > >}
> > >
> > >public boolean equals(Object obj) {
> > >Role r2 = (Role) obj;
> > >if (r2 == null) {
> > >return false;
> > >}
> > >return r2.getRoleChar() == roleChar;
> > >}
> > > }
> > >
> > > My attempt to use it in JSP page:
> > >
> > > 
> > > 
> > >  Hello Admin
> > > 
> > > 
> > >  Hello User
> > > 
> > > 
> > >
> > > does not work.
> > >
> > > (this special case could possibly be handled using 
> container managed
> > > authorization and it's roles etcbut it's not really 
> the point here)
> > >
> > > _
> > > MSN 8 with e-mail virus protection service: 2 months FREE*
> > > http://join.msn.com/?page=features/virus
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >--
> >Best regards,
> >
> >Can Zheng
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> _
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> -
> 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

RE: How to embed a method in a link inside a jsp file?

2004-08-26 Thread Paul McCulloch
You could start with the documentation:

http://struts.apache.org/userGuide/struts-html.html#link

Paul

> -Original Message-
> From: PC Leung [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 1:39 PM
> To: [EMAIL PROTECTED]
> Subject: How to embed a method in a link inside a jsp file?
> 
> 
> My JSP file contains a link like this.
> 
> 
> 
> 
> 
>   
> 
> This link points to AddUserProfile.jsp.
> 
> When I click on the link, it gives invalid path error message.
> How can I embed "?method=setup" inside a html:link?
> 
> Thnx
> 
> -
> 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: how to reset form

2004-08-26 Thread Paul McCulloch
The method I use to is to remove & recreate the form bean. I wouldn't use
the reset method - this is not for resetting the form bean in the way you
suggest - it is called for you by Struts. Here is the method I use to do
this:

public ActionForm recreateFormBean(ActionMapping mapping, ActionForm
form, HttpServletRequest request,
   HttpServletResponse response) throws
ServletException {

String attr = mapping.getAttribute();
String scope = mapping.getScope();

if (scope.equals("session")) {
request.getSession().removeAttribute(attr);
} else {
request.removeAttribute(attr);
}
ActionForm f = RequestUtils.createActionForm(request, mapping,
mapping.getModuleConfig(), servlet);

if (scope.equals("session")) {
request.getSession().setAttribute(attr, f);
} else {
request.setAttribute(attr, f);
}
//call reset, as struts would do befor the use of any form bean
f.reset(mapping, request);

//populate the form bean with any request parameters - from
RequestProcessor.processPopulate
if (mapping.getMultipartClass() != null) {
request.setAttribute(Globals.MULTIPART_KEY,
 mapping.getMultipartClass());
}
RequestUtils.populate(f, mapping.getPrefix(), mapping.getSuffix(),
  request);

// Set the cancellation request attribute if appropriate
if
((request.getParameter(org.apache.struts.taglib.html.Constants.CANCEL_PROPER
TY) != null) ||

(request.getParameter(org.apache.struts.taglib.html.Constants.CANCEL_PROPERT
Y_X) != null)) {
request.setAttribute(Globals.CANCEL_KEY, Boolean.TRUE);
}

return f;

}


Paul

> -Original Message-
> From: Sebastian Ho [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 9:07 AM
> To: Struts Users Mailing List
> Subject: RE: how to reset form
> 
> 
> 1. I need to use session for this one.
> 
> 2. The textfield in the JSP didn't load the value from the 
> bean. It is a
> normal textfield.
> 
> How do I reset in my case?
> 
> 
> On Thu, 2004-08-26 at 16:07, Yves Sy wrote:
> > I mean your "actionform" is stored in session scope by default :)
> > 
> > Regards,
> > -Yves- 
> > 
> > > -Original Message-
> > > From: Yves Sy [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 26, 2004 4:02 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: how to reset form
> > > 
> > > 
> > > This is happening because your session is stored in 
> session scope by
> > > default.
> > > 
> > > You should explicitly specify scope="request" in your 
> actionmapping.
> > > 
> > > Regards,
> > > -Yves-
> > > 
> > > > -Original Message-
> > > > From: Sebastian Ho [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, August 26, 2004 3:33 PM
> > > > To: Struts Users Mailing List
> > > > Subject: how to reset form
> > > >
> > > > hi
> > > >
> > > > A user submits a form and the action class forward it 
> back to the
> > same
> > > > JSP. The values entered previously is still there. How 
> do I clear it
> > > > before action returns actionforward?
> > > >
> > > > Thanks
> > > >
> > > > Sebastian Ho
> > > >
> > > >
> > > >
> > 
> -
> > > > 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]
> 


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

RE: Exception Handler Help!

2004-08-24 Thread Paul McCulloch
Is using forward as an exception handler's path valid? I didn't know you
could do that.

Anyway, I'd reduce the complexity of what you are doing: Start by using an
html page as your path, then try a JSP, then an action.

Paul

> -Original Message-
> From: Keith Bottner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 24, 2004 11:43 AM
> To: Struts Users Mailing List
> Subject: Exception Handler Help!
> 
> 
> Configuration of global exceptions looks very simple. So I 
> cannot understand
> why the configuration of my global-exception refuses to pick up any
> exceptions. If an error occurs I just get the blank white 
> page. Here is my
> global-exception configuration section.
> 
> 
> 
>  type="java.lang.Exception" /> 
> 
> Then I have a global-forward that looks like this
> 
> 
> 
> I tried specifying /errors.do as the path for the 
> global-exception and that
> did not work either. Any ideas on why Exceptions may not be 
> getting routed?
> 
> Thanks,
> 
> Keith
> 
> 
> -
> 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: localizing the browse button

2004-08-23 Thread Paul McCulloch
I'd imagine that a localised version of a browser will display 'Browse' in
the appropriate langauge. Not easy to test though!

Paul

> -Original Message-
> From: struts lover [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 23, 2004 4:20 PM
> To: [EMAIL PROTECTED]
> Subject: localizing the browse button
> 
> 
> Hi,
> I am using the  tag for file upload. It has
> a button whose text displays Browse in English. Is
> there any way of localizing the Browse button, so that
> it displays the text from the properties file
> depending on the locale selected by the user.
> 
> Thanks
> 
> 
>   
> ___
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter now.
> http://promotions.yahoo.com/goldrush
> 
> -
> 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]



  1   2   >