RE: Struts tag problem (bean:message and bean:write)

2004-03-25 Thread Paul McCulloch
Something like

bean:define id=type
bean:write name=product property=productType
/bean:define

bean:message key=%='prompt.productType.' + type%/

Paul

 -Original Message-
 From: Marco Mistroni [mailto:[EMAIL PROTECTED]
 Sent: 25 March 2004 16:03
 To: 'Struts Users Mailing List'
 Subject: Struts tag problem (bean:message and bean:write)
 
 
 Hi all,
   I was wondering if anyone of you have a solution
 For this dilemma.
 I have a collectin of product DTOs to show on my jsp. One of 
 DTO's property is, let's say, the type, which is listed in number.
 (let's say, 10 or 20).
 ON the DTO I will have the value 10,20 ecc but on the jsp I have to
 display
 The corresponding string (let's say, HouseProduct or Car or something
 else) which is listed in application.resources.
 
 I am looping thru the collection using logic:iterate, and
 as I have found out myself, following code does not work
 
 bean:message key='prompt.productType.bean:write name=product
 property=productType'/
 
 
 basically in app.resources I will have
 prompt.productType.10=HouseProduct
 prompt.productType.20=Car
 
 etc..
 
 above, I am outputting the message   prompt.productType.(productType)
 
 how can I solve my dilemma, keeping in mind that I am using also
 logic:iterate to loop thru the collection?
 
 With best regards
   marco
 
 
 -
 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: blocking bookmarked actions

2004-03-24 Thread Paul McCulloch
You code code your app to always use http POST, but block GETs. This may not
be suitable if you've already written the app though!

Paul

 -Original Message-
 From: Mark Shifman [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2004 18:17
 To: Struts Users Mailing List
 Subject: blocking bookmarked actions
 
 
 Suppose someone bookmarked an action such as 
 /yourhost/yourapp/someAction.do and you really want them to only go 
 through the html pages.
 
 How do your block or catch these actions and redirect them to the 
 appropriate place?
 
 mas
 
 
 -
 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: blocking bookmarked actions

2004-03-24 Thread Paul McCulloch
The way I achieved this was to extend ActionServlet so that a GET or POST
parameter was added to the request, and extended RequestProcessor to deal
with the get's differently.

If you just need to catch calls to dispatch actions without a method then
override execute() in your base DispatchAction class.

Paul

 -Original Message-
 From: Mark Shifman [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2004 18:32
 To: Struts Users Mailing List
 Subject: Re: blocking bookmarked actions
 
 
 where do I do the blocking?  The action I am having problems 
 with is a 
 LookupDispatchAction and I get this kind of error message
 
 javax.servlet.ServletException: Request[/RechartFiles] does 
 not contain handler parameter named method
   
 org.apache.struts.actions.LookupDispatchAction.execute(LookupD
 ispatchAction.java:199)
 
 ...
 
 Paul McCulloch wrote:
 
 You code code your app to always use http POST, but block 
 GETs. This may not
 be suitable if you've already written the app though!
 
 Paul
 
   
 
 -Original Message-
 From: Mark Shifman [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2004 18:17
 To: Struts Users Mailing List
 Subject: blocking bookmarked actions
 
 
 Suppose someone bookmarked an action such as 
 /yourhost/yourapp/someAction.do and you really want them to only go 
 through the html pages.
 
 How do your block or catch these actions and redirect them to the 
 appropriate place?
 
 mas
 
 
 
 -
 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: blocking bookmarked actions

2004-03-24 Thread Paul McCulloch
Actually, it's simpler than that (as I just saw on another thread). Just
implement unspecified() in your action to override the default behaviour
when no dispatch method is provided.

Paul

 -Original Message-
 From: Paul McCulloch [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2004 18:49
 To: 'Struts Users Mailing List'
 Subject: RE: blocking bookmarked actions
 
 
 The way I achieved this was to extend ActionServlet so that a 
 GET or POST
 parameter was added to the request, and extended 
 RequestProcessor to deal
 with the get's differently.
 
 If you just need to catch calls to dispatch actions without a 
 method then
 override execute() in your base DispatchAction class.
 
 Paul
 
  -Original Message-
  From: Mark Shifman [mailto:[EMAIL PROTECTED]
  Sent: 24 March 2004 18:32
  To: Struts Users Mailing List
  Subject: Re: blocking bookmarked actions
  
  
  where do I do the blocking?  The action I am having problems 
  with is a 
  LookupDispatchAction and I get this kind of error message
  
  javax.servlet.ServletException: Request[/RechartFiles] does 
  not contain handler parameter named method
  
  org.apache.struts.actions.LookupDispatchAction.execute(LookupD
  ispatchAction.java:199)
  
  ...
  
  Paul McCulloch wrote:
  
  You code code your app to always use http POST, but block 
  GETs. This may not
  be suitable if you've already written the app though!
  
  Paul
  

  
  -Original Message-
  From: Mark Shifman [mailto:[EMAIL PROTECTED]
  Sent: 24 March 2004 18:17
  To: Struts Users Mailing List
  Subject: blocking bookmarked actions
  
  
  Suppose someone bookmarked an action such as 
  /yourhost/yourapp/someAction.do and you really want them 
 to only go 
  through the html pages.
  
  How do your block or catch these actions and redirect them to the 
  appropriate place?
  
  mas
  
  
  
  -
  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]
 

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



RE: [OT] Database password

2004-03-12 Thread Paul McCulloch
Why not put the file in area that is accessible only to the right users and
have the app server run under a user account with the relevant privelages?

Paul

 -Original Message-
 From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
 Sent: 11 March 2004 18:59
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] Database password
 
 
 Users cant access this file, but the file can be accessed by 
 people that
 is not from Information Security area (Seguridad Informática). The
 password shouldnt be known neither by the application 
 deployer, nor the
 system administrator, but only by Information Security people.
 
 -Original Message-
 From: Lucas Gonzalez [mailto:[EMAIL PROTECTED] 
 Sent: Jueves, 11 de Marzo de 2004 03:56 p.m.
 To: Struts Users Mailing List
 Subject: Re: [OT] Database password
 
 
 If the problem is the user accesing the plain text file by typing the
 URL in the browser...
 
 a better solution would be to tell apache to hide those files...
 
 
 - Original Message - 
 From: Guillermo Meyer [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 3:49 PM
 Subject: [OT] Database password
 
 
  Hi:
  Our Struts application is currently in production. This applciation 
  uses an Oracle Database (we are using DBCP from jakarta). We access 
  this database through url, user a password and we need to 
 hide the 
  production database password. The password is stored in a 
  configuration file and is in plain text.
 
  Have you got some best practices in this scenario? How 
 are your Java
 
  Applications get connected to production databases and how is the 
  database password protected? If we encrypt the password 
 with 3DES, how
 
  should the key be protected?
 
  Cheers.
  Guillermo.
 
 
  NOTA DE CONFIDENCIALIDAD
  Este mensaje (y sus anexos) es confidencial, esta dirigido 
  exclusivamente
 a las personas direccionadas en el mail y puede contener informacion
 (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el
 secreto profesional. Cualquier opinion en el contenido, es 
 exclusiva de
 su autor y no representa necesariamente la opinion de 
 Interbanking S.A.
 El acceso no autorizado, uso, reproduccion, o divulgacion esta
 prohibido. Interbanking S.A no asumira responsabilidad ni obligacion
 legal alguna por cualquier informacion incorrecta o alterada contenida
 en este mensaje. Si usted ha recibido este mensaje por error, 
 le rogamos
 tenga la amabilidad de destruirlo inmediatamente junto con todas las
 copias del mismo, notificando al remitente. No debera 
 utilizar, revelar,
 distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si
 usted no es el destinatario. Muchas gracias.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 NOTA DE CONFIDENCIALIDAD
 Este mensaje (y sus anexos) es confidencial, esta dirigido 
 exclusivamente a las personas direccionadas en el mail y 
 puede contener informacion (i)de propiedad exclusiva de 
 Interbanking S.A. o (ii) amparada por el secreto profesional. 
 Cualquier opinion en el contenido, es exclusiva de su autor y 
 no representa necesariamente la opinion de Interbanking S.A. 
 El acceso no autorizado, uso, reproduccion, o divulgacion 
 esta prohibido. Interbanking S.A no asumira responsabilidad 
 ni obligacion legal alguna por cualquier informacion 
 incorrecta o alterada contenida en este mensaje. Si usted ha 
 recibido este mensaje por error, le rogamos tenga la 
 amabilidad de destruirlo inmediatamente junto con todas las 
 copias del mismo, notificando al remitente. No debera 
 utilizar, revelar, distribuir, imprimir o copiar este mensaje 
 ni ninguna de sus partes si usted no es el destinatario. 
 Muchas gracias.
 
 
 
 -
 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 

RE: need help converting from session to request scope

2004-02-26 Thread Paul McCulloch
My intuitive response would be that I'd use ram freely and let the O/S worry
about paging stuff to disk if it runs out of physical memory. I'd *guess*
that the O/S can use disk for paging significantly faster than a Java
programmer can via the JVM  the O/S.

I think that you'd have to run some pretty exhaustive tests in an
environment close to your production one to determine which method is more
efficient.

Personally I'd just spend the money on a bit more ram instead of developer
time...

Paul

 -Original Message-
 From: Mark Lowe [mailto:[EMAIL PROTECTED]
 Sent: 26 February 2004 13:24
 To: Struts Users Mailing List
 Subject: Re: need help converting from session to request scope
 
 
 Niall
 
 Any opinions on read and writing to flat files to avoid 
 additional ram 
 use? Or you reckon that the reading and writing would consume similar 
 amounts of ram? I'll get around to trying it when i get a moment.
 
 On 26 Feb 2004, at 14:04, Niall Pemberton wrote:
 
  Given your scenario, it sounds like a good candidate for a session 
  scoped
  form.
 
  I agree with what Mark Lowe said - usually/often ...theres no more 
  work
  invloved scoping to request - thats been the case for my 
 app. I would 
  also
  do what you said in a previous post - which is clean up 
 the session 
  stuff
  when they navigate away to another part of the app.
 
  I'm in the do it in request unless you have good reason(s) 
 to use the
  session camp - rather than the anti-session camp as it may have 
  appeared
  in previous threads.
 
  Niall
 
  - Original Message -
  From: Paul McCulloch [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Sent: Wednesday, February 25, 2004 4:13 PM
  Subject: RE: need help converting from session to request scope
 
 
  My application has an Asset search form. The user can enter many 
  criteria
  to
  search on.
 
  Most of these criteria themselves are looked up from the database 
  (e.g the
  Person associated with the Asset search). When the user selects a 
  search
  criteria (e.g. the Person) I store the DTO for that person on my 
  search
  form. The view element displays details about that Person on the 
  search
  form
  until the search form is cleared.
 
  Many requests will be made to find the criteria before the Asset 
  search
  itself is performed.
 
  To do this using a request scope form would require that I 
 transfer 
  all of
  the details I want to display about that person in hidden 
 inputs on 
  the
  form. If the details I want to display about a Person 
 change then I'd 
  also
  need to change the hidden fields. In addition once I ship the 
  application
  to
  my customers they may have their own JSP developer show extra 
  prpoerties
  of
  the selected Person.
 
  So, that's my justification for using session scoped form 
 beans. Any
  comments gratefully recieved.
 
  Paul
 
 
 
  
 -
  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: need help converting from session to request scope

2004-02-25 Thread Paul McCulloch
You don't neccessarily have to worry that much about storing things in
session. Once the session is terminated (either through logout, or via the
timeout of your container) the garbage collector will do that for you.

In my application all form beans are session scope. My users only use one
form at a time, so when they start using a new form I read through the
session and get rid of any other 'old' form beans.

There was a long discussion last week (or the week before) regarding whether
or not to use session scope. My feeling is that it makes life a lot easier,
so use it unless there is a compelling reason not to - memory is pretty
cheap, my time isn't. In my case my application tends to run out of CPU well
before I run out of memory (dual processor box with 2Gb of RAM).

Paul

 In response to Paul: I would like to start storing things in 
 the request so
 that I don't have to worry about cleaning up all the many objects I'm
 putting in the session.  I was doing some reading this 
 morning that implied


**
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 converting from session to request scope

2004-02-25 Thread Paul McCulloch
My application has an Asset search form. The user can enter many criteria to
search on. 

Most of these criteria themselves are looked up from the database (e.g the
Person associated with the Asset search). When the user selects a search
criteria (e.g. the Person) I store the DTO for that person on my search
form. The view element displays details about that Person on the search form
until the search form is cleared. 

Many requests will be made to find the criteria before the Asset search
itself is performed.

To do this using a request scope form would require that I transfer all of
the details I want to display about that person in hidden inputs on the
form. If the details I want to display about a Person change then I'd also
need to change the hidden fields. In addition once I ship the application to
my customers they may have their own JSP developer show extra prpoerties of
the selected Person.

So, that's my justification for using session scoped form beans. Any
comments gratefully recieved.

Paul

 -Original Message-
 From: Mark Lowe [mailto:[EMAIL PROTECTED]
 Sent: 25 February 2004 11:36
 To: Struts Users Mailing List
 Subject: Re: need help converting from session to request scope
 
 
 I have to say I'm changing sides in this debate. The only 
 'need' i see 
 to store forms in the session is for wizard type interfaces, although 
 I'm looking into a tidy solution into this.
 
 I agree that hardware it cheaper than time, and that sessions 
 are by no 
 means evil, but unless there's a wizard type situation where you want 
 to span across a number of forms there's no more work 
 involved scoping 
 to request.
 
 
 
 On 25 Feb 2004, at 12:23, Paul McCulloch wrote:
 
  You don't neccessarily have to worry that much about 
 storing things in
  session. Once the session is terminated (either through 
 logout, or via 
  the
  timeout of your container) the garbage collector will do 
 that for you.
 
  In my application all form beans are session scope. My 
 users only use 
  one
  form at a time, so when they start using a new form I read 
 through the
  session and get rid of any other 'old' form beans.
 
  There was a long discussion last week (or the week before) 
 regarding 
  whether
  or not to use session scope. My feeling is that it makes life a lot 
  easier,
  so use it unless there is a compelling reason not to - 
 memory is pretty
  cheap, my time isn't. In my case my application tends to run out of 
  CPU well
  before I run out of memory (dual processor box with 2Gb of RAM).
 
  Paul
 
  In response to Paul: I would like to start storing things in
  the request so
  that I don't have to worry about cleaning up all the many 
 objects I'm
  putting in the session.  I was doing some reading this
  morning that implied
 
 
  **
  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: Nested nest Tag

2004-02-25 Thread Paul McCulloch
Have you tried using the LocDTO properties? I think it will just work -
Struts uses bean utils which looks at the object you are trying to operate
on, rather than the type it is declared as.

Paul

 -Original Message-
 From: Daniel, Gillian [mailto:[EMAIL PROTECTED]
 Sent: 25 February 2004 14:31
 To: [EMAIL PROTECTED]
 Subject: Nested nest Tag
 
 
 Hi there, I am using Struts 1.1 and Java SE 1.4.2.02 and Java EE 1.4
 
  
 
 I have an object called SccDTO.java which is extended by many objects,
 but I will use LocDTO,java as the example here.
 
  
 
 In my SccBean.java - which extends the ValidatorForm - I have 
 getter and
 setter methods for a SccDTO object.
 
  
 
 I am using nested:nest property=sccDTO
 
nested:write property=type/
 
  
 
 This is fine, but I actually sometimes want to access methods in the
 LocDTO, and sometimes from the other objects which extend the SccDTO.
 
  
 
 Now I realise that the SccDTO has no getter and setter methods for the
 LocDTO methods, so this is not going to work, but is there a 
 way around
 this?
 
  
 
 Any help would be much appreciated, 
 
 Gillian Daniel
 
 


**
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: Nested nest Tag

2004-02-25 Thread Paul McCulloch
That should be fine as well. I'd test that you can read the property first
before trying to write it:
nested:nest property=sccDTO 
nested:write property=taskTitle/

Paul

 -Original Message-
 From: Daniel, Gillian [mailto:[EMAIL PROTECTED]
 Sent: 25 February 2004 18:07
 To: Struts Users Mailing List
 Subject: RE: Nested nest Tag
 
 
 Sorry to bother you again, but I have another stumbling 
 block.  Although
 I can get the details from the LocDTO with 
 
 nested:nest property=sccDTO 
   nested:write property=type/
 
 The problem is with this line.  taskTitle is an attribute of 
 LocDTO but
 not SccDTO.  When I submit my form, obviously an object of type SccDTO
 is created, since that is in the nested:nest tag, and the property
 taskTitle does not get set.  
 
   nested:text property=taskTitle size=55 maxlength=55
 styleClass=editorlargetextbox/
 
 Is there a way I can force the jsp to sometimes submit an 
 LocDTO rather
 than the SccDTO??
 
 Thanks again,
 Gillian Daniel
 
 -Original Message-
 From: Daniel, Gillian 
 Sent: 25 February 2004 16:27
 To: Struts Users Mailing List
 Subject: RE: Nested nest Tag
 
 Thanks very much for the advice, I tried it and it did work.  I had
 tried before but it didn't work, but I tried again and it did work, so
 thanks for prompting me to try again.
 Something must have been wrong the first time.
 
 Thanks again,
 Gillian
 
 -Original Message-
 From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
 Sent: 25 February 2004 16:23
 To: 'Struts Users Mailing List'
 Subject: RE: Nested nest Tag
 
 Have you tried using the LocDTO properties? I think it will 
 just work -
 Struts uses bean utils which looks at the object you are trying to
 operate
 on, rather than the type it is declared as.
 
 Paul
 
  -Original Message-
  From: Daniel, Gillian [mailto:[EMAIL PROTECTED]
  Sent: 25 February 2004 14:31
  To: [EMAIL PROTECTED]
  Subject: Nested nest Tag
  
  
  Hi there, I am using Struts 1.1 and Java SE 1.4.2.02 and Java EE 1.4
  
   
  
  I have an object called SccDTO.java which is extended by 
 many objects,
  but I will use LocDTO,java as the example here.
  
   
  
  In my SccBean.java - which extends the ValidatorForm - I have 
  getter and
  setter methods for a SccDTO object.
  
   
  
  I am using nested:nest property=sccDTO
  
 nested:write property=type/
  
   
  
  This is fine, but I actually sometimes want to access methods in the
  LocDTO, and sometimes from the other objects which extend 
 the SccDTO.
  
   
  
  Now I realise that the SccDTO has no getter and setter 
 methods for the
  LocDTO methods, so this is not going to work, but is there a 
  way around
  this?
  
   
  
  Any help would be much appreciated, 
  
  Gillian Daniel
  
  
 
 
 **
 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]
 

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



RE: ActionForward and onLoad()

2004-02-24 Thread Paul McCulloch
I'm a bit confused by what you are trying to do.

 I have a jsp page which I need to retrieve some values at 
 onLoad time, i.e.:
 body onload=javascript:getValues();

If you need to retrieve values then do that in the Action and put them
somewhere (e.g. a request scope attribute) so that you can access them in
your jsp.

It *sounds* like you could do with reading up on the basics of MVC in a web
environment..

Paul

 -Original Message-
 From: Leticia Golubov [mailto:[EMAIL PROTECTED]
 Sent: 24 February 2004 17:37
 To: Struts Users Mailing List
 Subject: RE: ActionForward and onLoad()
 
 
 I've tried
 
 window.open(editUrl, scope,
 width=380px,height=300px).document.forms[0].submit();
 
 but that doesn't behave very well...
 
 
 -Original Message-
 From: Leticia Golubov [mailto:[EMAIL PROTECTED]
 Sent: 24 February 2004 17:09
 To: Struts User Mailing List
 Subject: ActionForward and onLoad()
 
 
 Hello Gurus,
 
 I'm in a bit of a predicament, and my lack of expertise in 
 Javascript and
 Struts isn't helping... :(
 
 I have a jsp page which I need to retrieve some values at 
 onLoad time, i.e.:
 body onload=javascript:getValues();
 
 all getValues() does is submit the form on this page which 
 sets a bunch of
 bean values for me to retrieve further down this page...
 
 The problem is, on the Action for this form, I need to 
 redisplay the same
 page... As you can imagine I find myself in a never ending 
 onload loop using
 this setup of mine...
 
 Assuming anyone can understand my description of this 
 situation, my question
 is: how can I get a page to execute the onload first time but 
 not to do it
 second time around?  Basically, I would like the onload for 
 that window to
 be called from the parent window, but I've no idea how to do 
 it...  I've
 tried doing below from the parent window:
 
 window.open(editUrl, scope,
 width=380px,height=300px).onload(document.forms[0].submit());
 
 but that didn't work, i'd imagine that submitted the current 
 window, not the
 one about to be opened.
 
 thanks in advance
 
 Leticia
 
 
 
 
 
 
 
 
 
 
 
 -
 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: ActionForward and onLoad()

2004-02-24 Thread Paul McCulloch
 All of this worked, until I decided to use attributes to send 
 the data 'the
 other way'.  Does the data only flow one way?  I've been 
 experiment with

I'm not with you. The data flow is always only one way - the user makes a
request (possibly including data as either request parameters, and/or as
form values using POST); the action does some work and modifies that request
in some way (e.g. adding some request/session scope attributes); the jsp
displays something (probably using the attributes set in the action and/or
the request paramters set by the user)

So, I'm not really sure what yopu mean by 'the other way'. Up until that
part you seemed to be describing a prettyu standard Struts app..

Sorry if I'm teaching you to suck eggs..

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: need help converting from session to request scope

2004-02-24 Thread Paul McCulloch
Firstly I'd ask what is wrong with using session scope - has load testing
your applcation shown that session scope is too memory intensive?

It looks like the 'years' list was stored in the form bean. You will need to
recreate all of your lists etc (e.g. years) in every action if you are going
to move to request scope (or take 'years' out of the form and put it in a
session scoped attribute).

Paul

 -Original Message-
 From: Janice [mailto:[EMAIL PROTECTED]
 Sent: 24 February 2004 20:01
 To: [EMAIL PROTECTED]
 Subject: need help converting from session to request scope
 
 
 Hi Gang,
 
 I've been doing things badly... putting everything in session 
 scope.  The
 good news is that everything works beautifully :)  But now 
 that I've got
 100+ actions I've decided to go put stuff into request scope. 
  The bad news
 is that everything grinds to a halt.
 
 Here's an example of where I've added the scope to an action mapping:
 --- snip ---
 actionpath=/yearlyAllocation
input=.yearlyAllocationForm
parameter=action

 type=ca.bc.gov.srm.bart.actions.YearlyAllocationActions
scope=request
name=yearlyAllocationForm
validate=false
   forward name=form  path=.yearlyAllocationForm /
   forward name=list  path=.yearlyAllocationList /
   forward name=gotolist  
 path=/yearlyAllocation.do?action=showList
 /
 /action
 /--- snip ---
 Previously I'd left the scope line out.
 
 So my now jsp page can't find my form goodies on the page.  
 It falls apart
 here:
 --- snip ---
   html:select property=yearCode
 html:optionsCollection property=years label=yearFull
 value=yearCode /
   /html:select
 /--- snip ---
 with a NullPointerException.  But it did make it past here:
 --- snip ---
 html:form action=/yearlyAllocation?action=submitForm
   name=yearlyAllocationForm
   type=org.apache.struts.validator.DynaValidatorForm
   focus=yearCode
 /--- snip ---
 which I guess I'm surprised at.
 
 I'd love to put up all kinds of code, but I'm using 
 DispatchActions, tiles,
 DynaValidatorForms, etc, so I'm not really sure where to 
 start cutting and
 pasting.  If anyone has any requests for more info, I'd be 
 happy to oblige.
 
 Oh, this one looks important: in my method where I set up the 
 form before
 passing it to the .jsp, I set up my form all pretty with lots 
 of Strings and
 ArrayLists and then I do one of these:
 --- snip ---
   if ( request.equals(mapping.getScope()) ) {
 request.setAttribute(mapping.getAttribute(), form);
   } else {
 HttpSession session = request.getSession();
 session.setAttribute(mapping.getAttribute(), form);
   }
 /--- snip ---
 which I thought was designed to handle this.
 
 So, to make a long story short, what else do I need to do to 
 switch from
 putting all my form beans in session scope to putting them in 
 request scope?
 Do I need to tell the .jsp page to look somewhere else or something?
 
 Thanks very much in advance,
 Janice
 
 
 -
 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 create a No Action ActionForward for return from an Action's execute() ?

2004-02-19 Thread Paul McCulloch
I use a a Servlet Filter to achieve this. This filter intercepts request
before Struts gets it's hands on the request.

Paul
 -Original Message-
 From: James Adams [mailto:[EMAIL PROTECTED]
 Sent: 19 February 2004 18:17
 To: [EMAIL PROTECTED]
 Subject: How to create a No Action ActionForward for return from an
 Action's execute() ?
 
 
 I have created an Action class which does session
 validation by checking to see if a loggedIn flag is
 set in the session - if it is absent, or set to false,
 then I want to forward to the login page.  However if
 it is set to true then I don't want to do anything -
 the execute() method should just complete and control
 should return to the calling page.  But the execute()
 method must return an ActionForward, and it is
 impossible to specify a forward name/path for this
 case in the struts-config.xml since the path should be
 the path of the page that the action is being called
 from, and there is no way to know this information
 beforehand.  So I am wondering how can I (within the
 execute() method of the SessionValidatorAction) create
 an ActionForward to return which will indicate the
 path of the calling page ?  Is there a way to create
 and return a No Action ActionForward ?  Can I just
 return null ? 
 
 I am including the action at the top of the JSPs via
 
 
 jsp:include page=SessionValidator/
 
 
 The action mapping I'm currently using looks like this
 
 
 action path=/SessionValidator
 type=mypkg.action.SessionValidatorAction
 forward name=invalid
 path=Login.jsp/
 !-- it's here that I'd specify the path to forward to
 when the session is valid, but I can't know this path
 beforehand, since the validator is being included in
 multiple pages --
 /action
 
 
 Is this the right approach/design ?  If so how can I
 return an ActionForward from the
 SessionValidatorAction's execute() method which
 forwards control back to the calling page ?  If not
 then how else should I go about this ?
 
 Thanks in advance for your feedback.  Please Cc: any
 rsponses to this email address.
 
 
 -James
 
 __
 Do you Yahoo!?
 Yahoo! Mail SpamGuard - Read only the mail you want.
 http://antispam.yahoo.com/tools
 
 -
 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:select

2004-02-17 Thread Paul McCulloch
Surely your application is responsible for creating the options in the first
place? Why not create a map of the key,value pairs at that time  refer to
it later?

Paul

 -Original Message-
 From: Gonzalez, Sergio Eduardo [mailto:[EMAIL PROTECTED]
 Sent: 17 February 2004 16:13
 To: Struts Users Mailing List
 Subject: html:select 
 
 
 
 Hello . 
 I have to get the description  from a html:select  example  in html 
 
 select name =xx 
 option value=zz/option
 /select
 
 how can I do to get the z value ???  ( using struts ) 
 
 
 thamks .. 
 
 serge
 
 
 --
 --
 Aquest missatge electronic pot  contenir informacio 
 confidencial o privilegiada.
 Si voste no es el destinatari del  missatge, o l'ha rebut per 
 error, si us plau
 notifiqui-ho al remitent i destrueixi el missatge amb tot el 
 seu contingut.
 Esta completament  prohibida  qualsevol  copia, us o 
 distribucio no autoritzada
 del contingut d'aquest missatge electronic.
 --
 --
 Este mensaje electronico puede contener informacion 
 confidencial o privilegiada.
 Si usted  no es  el destinatario de este mensaje o lo ha 
 recibido por error, por
 favor notifiquelo al remitente y destruya el mensaje con todo 
 su contenido.
 Queda  expresamente  prohibida  cualquier  copia, utilizacion 
 o  distribucion no
 autorizada del contenido de este mensaje electronico.
 --
 --
 This e-mail may contain confidential and/or privileged information.
 If you  are  not the  intended recipient (or have received 
 this e-mail in error)
 please notify the sender immediately and destroy this e-mail.
 Any  unauthorized  copying,  disclosure  or distribution of 
 the material in this
 e-mail is strictly forbidden.
 --
 --
 
 -
 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: Could not find resource error

2004-02-17 Thread Paul McCulloch
And this is struts related how?

 -Original Message-
 From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
 Sent: 17 February 2004 17:22
 To: 'Struts Users Mailing List'
 Subject: Could not find resource error
 
 
 Can't figure out why this code is giving me an error:
 
  
 
 import java.io.Reader;
 
 import com.ibatis.common.resources.Resources;
 
  
 
 Reader reader =
 Resources.getResourceAsReader(properties/sql-map-config.xml);
 
  
 
  
 
 The error I'm getting is:
 
  
 
 java.io.IOException: Could not find resource 
 properties/sql-map-config.xml
 at 
 com.ibatis.common.resources.Resources.getResourceAsStream(Ljava.lang.
 
 String;)Ljava.io.InputStream;(Unknown Source)
 
  
 
 I verified the file is there, but my app can't find it. Is 
 there a setting
 somewhere I have messed up somehow? Any suggestions on things 
 I can check?
 
  
 
 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: Could not find resource error

2004-02-17 Thread Paul McCulloch
Looks like an ibatis issue to me. How about you RTFM then look for an ibatis
mailing list and search it's archive?

 -Original Message-
 From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
 Sent: 17 February 2004 17:29
 To: 'Struts Users Mailing List'
 Subject: RE: Could not find resource error
 
 
 Good point! :) The only reason it is struts related is because it's
 happening my struts app. (A pretty weak link I must admit.) I 
 suspect it's
 more of a general java development environment issue. Got any 
 good java
 development environment issue mailing lists?
 
 
 -Original Message-
 From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 17, 2004 10:26 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Could not find resource error
 
 And this is struts related how?
 
  -Original Message-
  From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
  Sent: 17 February 2004 17:22
  To: 'Struts Users Mailing List'
  Subject: Could not find resource error
  
  
  Can't figure out why this code is giving me an error:
  
   
  
  import java.io.Reader;
  
  import com.ibatis.common.resources.Resources;
  
   
  
  Reader reader =
  Resources.getResourceAsReader(properties/sql-map-config.xml);
  
   
  
   
  
  The error I'm getting is:
  
   
  
  java.io.IOException: Could not find resource 
  properties/sql-map-config.xml
  at 
  
 com.ibatis.common.resources.Resources.getResourceAsStream(Ljava.lang.
  
  String;)Ljava.io.InputStream;(Unknown Source)
  
   
  
  I verified the file is there, but my app can't find it. Is 
  there a setting
  somewhere I have messed up somehow? Any suggestions on things 
  I can check?
  
   
  
  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]
 
 -
 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: SecurityFilter with Struts quick and easy question

2004-02-17 Thread Paul McCulloch
Have a look at the Servlet spec.

Paul

 -Original Message-
 From: Nathan Maves [mailto:[EMAIL PROTECTED]
 Sent: 17 February 2004 19:09
 To: Struts Users Mailing List
 Subject: Re: SecurityFilter with Struts quick and easy question
 
 
 It does use a servlet that all request that match a filter 
 are sent to. 
   Are the filters called in the order that they appear in the web.xml 
 file?
 
 Nathan Maves
 Sun Microsystems
 
 


**
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: Default locale gets intermixed with other locales

2004-02-16 Thread Paul McCulloch
I think I found the same problem some time ago. 

I can't remember what the underlying issue was (maybe mixing the struts 
jstl ii18n tags?), but the solution was to create an explicit bundle for the
default locale - I have my build scripts copy Application.properties to
Application_en.properties.

hth,

Paul

 -Original Message-
 From: Torsten Römer [mailto:[EMAIL PROTECTED]
 Sent: 13 February 2004 20:57
 To: [EMAIL PROTECTED]
 Subject: Default locale gets intermixed with other locales
 
 
 Hello,
 
 I have made a quite simple web application using Struts 1.1 and Tiles,
 running on Tomcat 4.1.10. I have internationalized it using the
 html:html locale=true and the bean:message key=/ tags. I have
 created three message bundles, one default (English), one 
 German and one
 Swedish.
 
 It works as expected. German visitors get German pages, Swedish users
 Swedish pages and everybody else English pages.
 
 But after some weeks uptime there is a strange effect: When 
 the default
 locale is used where all pages should be English, some pages 
 show up in
 German. Often it's only the jsp placed in one tile which 
 shows the wrong
 language, sometimes the whole page.
 
 After a restart of Tomcat the problem is solved.
 
 Has anybody ever experienced something similar? What could be wrong?
 
 Thanks in advance!
 Torsten
 
 
 
 -
 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: ActionForward(mapping.getInput()) ....

2004-02-16 Thread Paul McCulloch
This is a bit of a guess

Are you using relative paths for your images?

When you access the jsp directly your current page is
/somewebapp/geral/geralLogin.jsp. So an image whichg refers to
../images/somepicture.gif will resolve to
/somewebapp/images/somepicture.gif.

When you get errors your current page is /somewebapp/gerallogin.do. So the
same relative image path will this time point to /images/somepicture.gif
which won't be valid as the context is missing. 

You can verify whether this is the case by looking at your access logs.

Try changing the path in struts-config to path=/geral/gerallogin

Paul

 -Original Message-
 From: Daniel [mailto:[EMAIL PROTECTED]
 Sent: 16 February 2004 13:20
 To: Struts Users Mailing List
 Subject: ActionForward(mapping.getInput()) 
 
 
 I'm using Tiles for manager the layout of my application and 
 it's a example of my geralLogin.jsp page, and works without 
 problem except when I have a exception and get the 
 mapping.getInmput() value for return tho the same page 
 (login.jsp) with ActionErrors etc... at  LoginAction.java. 
 When this happen the login.jps don't show the images, css and 
 other things about the page, show just the htmt:text , 
 htmt:password , htmt:submit, html: errors /. The 
 problem is just the images and css.
 
 Example of geralLogin.jsp:
 %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
 
 tiles:insert page=/layouts/loginLayout.jsp flush=true 
 
 tiles:put name=title value=Sistema de Gestão Integrada - Login /
 
 tiles:put name=body value=/geral/geralLoginBody.jsp /
 
 /tiles:insert
 
 
 
 
 
 Example of my struts-config.xml:
 
 action
 
 attribute=GeralLoginIBean
 
 name=GeralLoginIBean
 
 input=/geral/geralLogin.jsp
 
 path=/gerallogin
 
 type=com.topit.geral.action.LoginAction
 
 validate=false
 
 forward name=sucesso path=/geral/principal_teste.jsp 
 redirect=true /
 
 forward name=falha path=/geral/geralLogin.jsp redirect=true /
 
 /action
 


**
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:link instead of html:submit

2004-02-13 Thread Paul McCulloch
I don't beleve this will submit the values in the form's input fields. I've
achieved this functionality by having links which use javascript to set the
dispatch form value  call submit.

Paul

 -Original Message-
 From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED]
 Sent: 12 February 2004 19:45
 To: Struts Users Mailing List
 Subject: RE: html:link instead of html:submit
 
 
 Wouldn't query parameters work here?
 
 How abt using html:link page=/youraction?buttonName=testButton /
 
 
 HTH..
 
 -jayash
 
 
 
 -Original Message-
 From: Dieter Mummenschanz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 12, 2004 12:46 PM
 To: [EMAIL PROTECTED]
 Subject: html:link instead of html:submit
 
 
 Hello,
 
 I have a jsp page with some html:submit buttons. The 
 servlet identifies
 the klicked button by invoking httpservletrequest.getParameter(...).
 Is there a way to use links in my .jsp page using html:link 
 instead of
 html:submit?
 
 Thx for any help,
 Dieter
 
 -- 
 GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 
 EUR/Monat...)
 jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ 
http://www.gmx.net/derspiegel +++


-
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: Passing an ArrayList

2004-02-09 Thread Paul McCulloch
You really want to stick the data in session scope - that is what it is for.

Request scope really won't help - anything in there will have gone out of
scope immediately after the page is rendered for the user.

I'd *seriously* question why you aren't supposed to be using session scope.
Can you give us an idea why you are being asked to avoid it's use?

If you can't use session scope then I think the only place you can store the
data is the rendered html. You could use hidden input fields to store the
data - these values will then be provided to the action then next time it is
called. I think you should look at indexed properties - I haven't used them
myself.

Paul

 -Original Message-
 From: Brian Ivey [mailto:[EMAIL PROTECTED]
 Sent: 09 February 2004 17:44
 To: Struts - List
 Subject: Passing an ArrayList
 
 
 I'm working on an application that prompts a user to enter 
 data into 4 text
 fields.  The user then clicks on a button to submit these to 
 an Action.
 These 4 values are used to create an object that is added to 
 an ArrayList.
 The page used for data entry is refreshed with the just entered values
 appearing as a row in a table.  The user may do this as many 
 times as they
 wish.
 
 My problem is that the ArrayList is recreated every time the Action is
 called.  I understand that this a characteristic of the 
 transient nature of
 Actions.  Can anyone make any recommendations on possible 
 ways to preserve
 this ArrayList between calls to the Action.  I'm betting that 
 this could be
 resolved by stashing the ArrayList into the request as an attribute or
 something similar, but would like some commentary on this 
 issue.  BTW, the
 project this application is for mandates only request scope be used.
 
 Thanks,
 Brian Ivey
 
 
 -
 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: Can't make html:checkbox CHECKED by default

2004-02-05 Thread Paul McCulloch
The checkbox will display a value depending on the value of the 'foo'
property of your form bean. To make the value checked set the value on the
form bean before displaying the page.

Paul

 -Original Message-
 From: otisg [mailto:[EMAIL PROTECTED]
 Sent: 05 February 2004 12:58
 To: [EMAIL PROTECTED]
 Subject: Can't make html:checkbox CHECKED by default
 
 
 Hello,
 
 I am using html:checkbox Struts tag, but I am unable to set
 it
 to a CHECKED state by default (I read the docs).
 
 This is what I am using now: 
 
  html:checkbox property=foo value=true
 
 Is 'value' not the attribute I should use for that?
 Which attribute should I use then?
 
 Any help would be appreciated.
 Thanks,
 
 Otis
 
 
 
 Get your own 800 number
 Voicemail, fax, email, and a lot more
 http://www.ureach.com/reg/tag
 
 -
 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 export the html table contents (records) to an Excel f ile.

2004-02-05 Thread Paul McCulloch
By default (no requestURI attribute) sorting just makes another request to
the .jsp to do the work - the action isn't executed again.

I tend to use a 'redraw' dispatch action so that every server request still
goes through an action. 

Paul
 -Original Message-
 From: Desai, Sunny [mailto:[EMAIL PROTECTED]
 Sent: 05 February 2004 14:28
 To: Struts Users Mailing List
 Subject: RE: How to export the html table contents (records) 
 to an Excel
 f ile.
 
 
 Does anybody know if Display Tag' performs 'in memory ' sorting?
 
 What I mean is once I give a collection of records to the 
 'Display Tag' 
 user clicks on column header to sort on, does the 'Display 
 Tag' send a new
 request to the Action every time or 'Display Tag' sorts the 
 collection by
 itself using 'In Memory' sorting.
 
 Thanking you in advance for your help.
 
 -Original Message-
 From: Andrew Peck [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 04, 2004 7:19 PM
 To: 'Struts Users Mailing List'
 Subject: RE: How to export the html table contents (records) 
 to an Excel
 file.
 
 
 You could try the displaytag tag library on sourcefourge:
 http://displaytag.sourceforge.net. It includes nice table export
 functionality for excel, csv and xml.
 
 Regards,
 Andy Peck
 
  -Original Message-
  From:
  [EMAIL PROTECTED]
  pache.org
  [mailto:[EMAIL PROTECTED]
  akarta.apa
  che.org]On Behalf Of [EMAIL PROTECTED]
  Sent: Wednesday, 4 February 2004 8:07 PM
  To: [EMAIL PROTECTED]
  Subject: How to export the html table contents (records) to an Excel
  file.
 
 
  Hi,
 
  I have webpage (.jsp) which lists out 4 to 5 records (having
  say 4 to 5 columns)
  inside html table tag.  This page, has an Export button, at
  the bottom.  On
  click of this button, I need to export the records (that the
  current page is
  displaying) to an .xls (Excel format) file.
 
  Shall be greatful if anyone can tip me on this.
 
  Thanks,
  S.Srikanth
 
 
 
  
 -
  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: duplicate form object

2004-02-05 Thread Paul McCulloch
 --- I commented the usebean that was pointed out in prev. thread
 
 !-- jsp:useBean id=subscription scope=session
 class=com.borneo.beans.SubscriptionForm /--

No you didn't - you commented out the result of the tag from the rendered
html. You need to comment it out in the world of jsp %-- --%

Paul

 -Original Message-
 From: rob rowntree [mailto:[EMAIL PROTECTED]
 Sent: 05 February 2004 18:01
 To: [EMAIL PROTECTED]
 Subject: RE: duplicate form object
 
 
 
 I made the suggested changes and still get the same result =
 there are 2 subscriptionForm beans instead of a single one.
 
 The properties set in saveSubscription action are no longer
 avaiable when the forward to Welcome.jsp occurs.
 
 
 
 config file now contains
 
   form-bean
   name=subscriptionForm
   type=com.borneo.beans.SubscriptionForm
 /form-bean
 
 
 actionpath=/saveSubscription
 
   type=com.borneo.beans.SaveSubscriptionAction
   name=subscriptionForm
   scope=session
   validate=true
   input=/subscription.jsp
   forward name=successpath=/Welcome.do/
   forward name=subscriptionpath=/subscription.jsp/
   !-- forward name=success 
 path=/Welcome/ --
 /action
 
 
 action
 
 path=/Welcome
   name=subscriptionForm
 type=org.apache.struts.actions.ForwardAction
   parameter=/Welcome.jsp
 /
 i made the changes as per the reply...
 
 JSP's now contain 
 
 subscription.jsp
 
 %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
 %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
 
 --- I commented the usebean that was pointed out in prev. thread
 
 !-- jsp:useBean id=subscription scope=session
 class=com.borneo.beans.SubscriptionForm /--
 
 
 Welcome.jsp
 
 %@ taglib uri=/tags/struts-bean prefix=bean %
 %@ taglib uri=/tags/struts-html prefix=html %
 %@ taglib uri=/tags/struts-logic prefix=logic %
 
 html:html locale=true
 head
 titlebean:message key=welcome.title//title
 html:base/
 
 h3bean:message key=welcome.heading//h3
 pbean:message key=welcome.message//p
 a href='bean:write name=subscriptionForm  property=jnlpaddr/
 
 'Launch JWS App./a
 
 
 -
 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 timeout -- time limit

2004-01-30 Thread Paul McCulloch
It's a setting in web.xml:

session-config
session-timeout10/session-timeout
/session-config

 -Original Message-
 From: Oliver Thiel [mailto:[EMAIL PROTECTED]
 Sent: 30 January 2004 10:31
 To: [EMAIL PROTECTED]
 Subject: session timeout -- time limit
 
 
 Hi all,
 
 
 where can I set a time limit for a session?
 I want the session's to be invalid after 10
 minutes! How can i archive this?
 
 
 
 Thanks 
 Oliver 
 
 -- 
 +++ GMX - die erste Adresse für Mail, Message, More +++
 Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail
 
 
 -
 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: stop user from clicking the submit button twice

2004-01-30 Thread Paul McCulloch
Here's a bit of JS to disable all the buttons etc on a form

function disablesubmit (forma) {
for (var frm = 0; frm  document.forms.length; frm++) {
for (var i = 0; i  document.forms[frm].elements.length;
i++) {
thisform = document.forms[frm];
thiselement = document.forms[frm].elements[i];
if
(document.forms[frm].elements[i].type.toLowerCase() == 'button' ||
document.forms[frm].elements[i].type.toLowerCase() == 'submit' ||
document.forms[frm].elements[i].type.toLowerCase() == 'image'){
document.forms[frm].elements[i].disabled = true;
}
}
}
return;
}

 -Original Message-
 From: Simon McCaughey [mailto:[EMAIL PROTECTED]
 Sent: 30 January 2004 10:26
 To: Struts Users Mailing List
 Subject: Re: stop user from clicking the submit button twice
 
 
 From: Ashish Kulkarni [EMAIL PROTECTED]
 Sent: Thursday, January 29, 2004 10:30 PM
 Subject: stop user from clicking the submit button twice
  Hi
  I have a process which takes about 30 seconds, i want
  to show some kind of image or disable the submit
  button untill the process is complete and tell user
  that the process is running
  How can i do it, i m using struts1.1
  any code example or article will greatly help
 
 
 You could use some simple JavaScript to disable the button 
 once its been
 clicked, or a simple JavaScript function to count the number 
 of clicks and
 increment, if count!=1  then pop up an OK dialog saying page 
 processing -
 please wait.
 
 If you want to stay away from JS, you could set up your form submit to
 redirect to a processing please wait type page, and then do 
 the actual
 processing as a submission of that page. Should be fairly simple.
 
 HTH
 
 S.
 
 
 
 -
 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: Can i access session or request object from a bean which is A ctionform variable

2004-01-29 Thread Paul McCulloch
My base ActionFrom has a session attribute on it. In the base reset() method
I set the ActionForm's session to the current session. 

I considered having a request attribute on the from bean, but that looked
like a problem waiting to happen if I used session scoped forms.

Paul

 -Original Message-
 From: Yajamanyam Venugopal
 [mailto:[EMAIL PROTECTED]
 Sent: 28 January 2004 17:50
 To: [EMAIL PROTECTED]
 Subject: Can i access session or request object from a bean which is
 Actionform variable
 
 
 
 Hi 
 
 I have a nested bean in my ActionForm.
 Is there any way to access the session object or HttpRequest 
 from that nestedbean.
 
 class MyActionForm extends ActionForm{
 
 private Tree  myTree;
 }
 
 class Tree{
 
  I would like to access session or http request 
 from this bean
 
 }
 
 Thnaks in advance,
 Venu
 
 -
 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: no process to read data written to a pipe ??

2004-01-29 Thread Paul McCulloch
This looks like what happens if the the browser gives up on the reqest in
question and makes a new one. I don't use Websphere so I can't be sure, but
the Tomcat error in that situation is very similair.

Try and reproduce it in development - make a request to your app then
navigate anywhere else in your browser.

Paul

 -Original Message-
 From: Khalid K. [mailto:[EMAIL PROTECTED]
 Sent: 28 January 2004 16:45
 To: Struts Users Mailing List
 Subject: no process to read data written to a pipe ??
 
 
 If anyone has seen this error, your input is appreciated, I can't
 seem to find any references to this on the web. 
 
 Looks like the error is thrown during the rendering of jsp: 
 billingInfo.jsp. 
 Since this happens in production, I am not sure what is the 
 outcome etc.
 
 stack trace:
 
 [1/28/04 8:38:00:380 PST] 21e97599 WebGroup  
 X Servlet Error: There is no process to read data written to a pipe.: 
 java.io.IOException: There is no process to read data written 
 to a pipe.
 
   at java.net.SocketOutputStream.socketWrite(Native Method)
   at 
 java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled 
 Code))
   at com.ibm.ws.io.Stream.write(Stream.java(Compiled Code))
   at 
 com.ibm.ws.io.WriteStream.flushMyBuf(WriteStream.java(Inlined 
 Compiled Code))
   at 
 com.ibm.ws.io.WriteStream.flush(WriteStream.java(Inlined Compiled 
 Code))
   at 
 com.ibm.ws.http.ResponseStream.flush(ResponseStream.java(Compiled 
 Code))
   at 
 com.ibm.ws.io.WriteStream.flush(WriteStream.java(Compiled Code))
   at com.ibm.servlet.engine.http11.HttpConnection.flush
 (HttpConnection.java(Inlined Compiled Code))
   at 
 com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java
 (Compiled Code))
   at 
 com.ibm.servlet.engine.srt.SRTOutputStream.flush(SRTOutputStream.java
 (Compiled Code))
   at 
 java.io.OutputStreamWriter.flush(OutputStreamWriter.java(Compiled 
 Code))
   at com.ibm.servlet.engine.srt.BufferedWriter.flushChars
 (BufferedWriter.java(Compiled Code))
   at 
 com.ibm.servlet.engine.srt.BufferedWriter.flush(BufferedWriter.java
 (Inlined Compiled Code))
   at com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer
 (BufferedWriter.java(Compiled Code))
   at com.ibm.servlet.engine.srt.SRTServletResponse.flushBuffer
 (SRTServletResponse.java(Compiled Code))
   at 
 com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer
 (HttpServletResponseProxy.java(Compiled Code))
   at 
 com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer
 (HttpServletResponseProxy.java(Compiled Code))
   at 
 org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java
 (Compiled Code))
   at _billingInfo_jsp_30._jspService(_billingInfo_jsp_30.java:763)
   at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
 (Compiled Code))
   at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled 
 Code))
   at 
 org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
 (JspServlet.java(Compiled Code))
   at 
 org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java
 (Compiled Code))
   at org.apache.jasper.runtime.JspServlet.service(JspServlet.java
 (Compiled Code))
   at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled 
 Code))
   at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
 (ServletManager.java(Compiled Code))
   at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
 (StrictLifecycleServlet.java(Compiled Code))
   at com.ibm.servlet.engine.webapp.IdleServletState.service
 (StrictLifecycleServlet.java(Compiled Code))
   at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
 (StrictLifecycleServlet.java(Inlined Compiled Code))
   at com.ibm.servlet.engine.webapp.ServletInstance.service
 (ServletManager.java(Compiled Code))
   at 
 com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
 (ServletManager.java(Compiled Code))
   at 
 com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
 (ServletManager.java(Inlined Compiled Code))
   at 
 com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWe
 bAppDispatch
 (WebAppRequestDispatcher.java(Compiled Code))
   at 
 com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
 (WebAppRequestDispatcher.java(Compiled Code))
   at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
 (WebAppRequestDispatcher.java(Compiled Code))
   at org.apache.struts.action.ActionServlet.processActionForward
 (ActionServlet.java(Compiled Code))
   at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java
 (Compiled Code))
   at 
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java
 (Compiled Code))
   at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled 
 Code))
   at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled 

[OT] How to use java constants as bean identifiers in jsps

2004-01-26 Thread Paul McCulloch
Hi,

Is there a common solution to using Constants for bean identifiers in your
views?

For example in some action I have
...
Collection foo = new SomeCollection();
request.setAttribute(Constants.SOME_THING, foo);


I want to access this collection via the JSTL in my view. Something like

c:forEach items=${Constants.SOME_THING} var=thing
c:out value=thing.name/
/c:forEach

Is there a decent way of doing this? What does everyone else do? 

thanks,

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: [DisplayTag] Use of ID= Parameter

2004-01-23 Thread Paul McCulloch
This has been raised before. See 

http://sourceforge.net/tracker/index.php?func=detailaid=813006group_id=730
68atid=536613

I've patched the taglib to support an additional tableId attribute which can
be dynamic. This is a simple change to TableTag.java  the supporting TLD.
The other change is to encodeParameter() to use the new attribute for
pagination and sorting URL generation.

change

String stringIdentifier = x- + getId() + this.name;

to

String stringIdentifier = x- + getId() + this.tableid +
this.name;

Paul

 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
 Sent: 22 January 2004 16:27
 To: '[EMAIL PROTECTED]'
 Subject: [DisplayTag] Use of ID= Parameter
 
 
 All,
 
 I'm in the process of implementing the new display/ taglib, 
 and am really
 excited about the ability to have multiple, independent, 
 tables on the same
 page.  In order to make this work, though, the ID= parameter 
 for each table
 has to be different.  This is where I'm running into 
 problems.  I've got my
 display:table/ inside of a nested:iterate/ so I can 
 generate 1-n tables
 - this works fine.  However, when I try to vary the ID= 
 parameter, I get
 ClassCastExceptions in org.displaytag.tags.TableTagExtraInfo on the
 following line:
 
   Object tagId = data.getAttributeString(TagAttributeInfo.ID);
 
 I've tried to define a page-scope variable and include it in 
 a small chunk
 of scriptlet code, but I just can't seem to get around this.  
 Does anyone
 have any ideas?
 
 Thanks!
 
 Jerry Jalenak
 Development Manager, Web Publishing
 LabOne, Inc.
 10101 Renner Blvd.
 Lenexa, KS  66219
 (913) 577-1496
 
 [EMAIL PROTECTED]
 
 
 This transmission (and any information attached to it) may be 
 confidential and
 is intended solely for the use of the individual or entity to 
 which it is
 addressed. If you are not the intended recipient or the 
 person responsible for
 delivering the transmission to the intended recipient, be 
 advised that you
 have received this transmission in error and that any use, 
 dissemination,
 forwarding, printing, or copying of this information is 
 strictly prohibited.
 If you have received this transmission in error, please 
 immediately notify
 LabOne at the following email address: 
 [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: [DisplayTag] Use of ID= Parameter

2004-01-23 Thread Paul McCulloch
It's just a pity I don't have time right now to produce patches for all the
mods I've made to the taglib. As it is I have to reapply my chnages every
release :-(

Paul

 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 14:29
 To: 'Struts Users Mailing List'
 Subject: RE: [DisplayTag] Use of ID= Parameter
 
 
 Paul -
 
 Thanks!  I modifed the TLD, added the get/set methods for the 
 tableId parm,
 and modified the encodeParameter() method as suggested, and 
 everything is
 working as I expected.  Thanks again!
 
 Jerry Jalenak
 Development Manager, Web Publishing
 LabOne, Inc.
 10101 Renner Blvd.
 Lenexa, KS  66219
 (913) 577-1496
 
 [EMAIL PROTECTED]
 
 
  -Original Message-
  From: Paul McCulloch [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 23, 2004 4:20 AM
  To: 'Struts Users Mailing List'
  Subject: RE: [DisplayTag] Use of ID= Parameter
  
  
  This has been raised before. See 
  
  http://sourceforge.net/tracker/index.php?func=detailaid=81300
  6group_id=730
  68atid=536613
  
  I've patched the taglib to support an additional tableId 
  attribute which can
  be dynamic. This is a simple change to TableTag.java  the 
  supporting TLD.
  The other change is to encodeParameter() to use the new 
 attribute for
  pagination and sorting URL generation.
  
  change
  
  String stringIdentifier = x- + getId() + this.name;
  
  to
  
  String stringIdentifier = x- + getId() + 
 this.tableid +
  this.name;
  
  Paul
  
   -Original Message-
   From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
   Sent: 22 January 2004 16:27
   To: '[EMAIL PROTECTED]'
   Subject: [DisplayTag] Use of ID= Parameter
   
   
   All,
   
   I'm in the process of implementing the new display/ taglib, 
   and am really
   excited about the ability to have multiple, independent, 
   tables on the same
   page.  In order to make this work, though, the ID= parameter 
   for each table
   has to be different.  This is where I'm running into 
   problems.  I've got my
   display:table/ inside of a nested:iterate/ so I can 
   generate 1-n tables
   - this works fine.  However, when I try to vary the ID= 
   parameter, I get
   ClassCastExceptions in 
 org.displaytag.tags.TableTagExtraInfo on the
   following line:
   
 Object tagId = data.getAttributeString(TagAttributeInfo.ID);
   
   I've tried to define a page-scope variable and include it in 
   a small chunk
   of scriptlet code, but I just can't seem to get around this.  
   Does anyone
   have any ideas?
   
   Thanks!
   
   Jerry Jalenak
   Development Manager, Web Publishing
   LabOne, Inc.
   10101 Renner Blvd.
   Lenexa, KS  66219
   (913) 577-1496
   
   [EMAIL PROTECTED]
   
   
   This transmission (and any information attached to it) may be 
   confidential and
   is intended solely for the use of the individual or entity to 
   which it is
   addressed. If you are not the intended recipient or the 
   person responsible for
   delivering the transmission to the intended recipient, be 
   advised that you
   have received this transmission in error and that any use, 
   dissemination,
   forwarding, printing, or copying of this information is 
   strictly prohibited.
   If you have received this transmission in error, please 
   immediately notify
   LabOne at the following email address: 
   [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

RE: [DisplayTag] Use of ID= Parameter

2004-01-23 Thread Paul McCulloch
Another thought. I believe that EL support has been added to the CVS version
of the taglib (or at least a special EL version) - maybe the standard EL
version supports a dynamic Id attribute?

 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 14:29
 To: 'Struts Users Mailing List'
 Subject: RE: [DisplayTag] Use of ID= Parameter
 
 
 Paul -
 
 Thanks!  I modifed the TLD, added the get/set methods for the 
 tableId parm,
 and modified the encodeParameter() method as suggested, and 
 everything is
 working as I expected.  Thanks again!
 
 Jerry Jalenak
 Development Manager, Web Publishing
 LabOne, Inc.
 10101 Renner Blvd.
 Lenexa, KS  66219
 (913) 577-1496
 
 [EMAIL PROTECTED]
 
 
  -Original Message-
  From: Paul McCulloch [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 23, 2004 4:20 AM
  To: 'Struts Users Mailing List'
  Subject: RE: [DisplayTag] Use of ID= Parameter
  
  
  This has been raised before. See 
  
  http://sourceforge.net/tracker/index.php?func=detailaid=81300
  6group_id=730
  68atid=536613
  
  I've patched the taglib to support an additional tableId 
  attribute which can
  be dynamic. This is a simple change to TableTag.java  the 
  supporting TLD.
  The other change is to encodeParameter() to use the new 
 attribute for
  pagination and sorting URL generation.
  
  change
  
  String stringIdentifier = x- + getId() + this.name;
  
  to
  
  String stringIdentifier = x- + getId() + 
 this.tableid +
  this.name;
  
  Paul
  
   -Original Message-
   From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
   Sent: 22 January 2004 16:27
   To: '[EMAIL PROTECTED]'
   Subject: [DisplayTag] Use of ID= Parameter
   
   
   All,
   
   I'm in the process of implementing the new display/ taglib, 
   and am really
   excited about the ability to have multiple, independent, 
   tables on the same
   page.  In order to make this work, though, the ID= parameter 
   for each table
   has to be different.  This is where I'm running into 
   problems.  I've got my
   display:table/ inside of a nested:iterate/ so I can 
   generate 1-n tables
   - this works fine.  However, when I try to vary the ID= 
   parameter, I get
   ClassCastExceptions in 
 org.displaytag.tags.TableTagExtraInfo on the
   following line:
   
 Object tagId = data.getAttributeString(TagAttributeInfo.ID);
   
   I've tried to define a page-scope variable and include it in 
   a small chunk
   of scriptlet code, but I just can't seem to get around this.  
   Does anyone
   have any ideas?
   
   Thanks!
   
   Jerry Jalenak
   Development Manager, Web Publishing
   LabOne, Inc.
   10101 Renner Blvd.
   Lenexa, KS  66219
   (913) 577-1496
   
   [EMAIL PROTECTED]
   
   
   This transmission (and any information attached to it) may be 
   confidential and
   is intended solely for the use of the individual or entity to 
   which it is
   addressed. If you are not the intended recipient or the 
   person responsible for
   delivering the transmission to the intended recipient, be 
   advised that you
   have received this transmission in error and that any use, 
   dissemination,
   forwarding, printing, or copying of this information is 
   strictly prohibited.
   If you have received this transmission in error, please 
   immediately notify
   LabOne at the following email address: 
   [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

RE: Session Problem

2004-01-22 Thread Paul McCulloch
This feature seems to have been dropped in IE 5.01  later.

http://support.microsoft.com/?kbid=240928

Pitty - sounded like a useful way of demoing multiple users accessing the
system from a single machine.

Paul

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
 Sent: 23 December 2004 06:43
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: RE: Session Problem
 
 
 Better late than never (hot cpu chip literally fried a 
 motherboard) ...
 
 Quoting Andrew Hill [EMAIL PROTECTED]:
 
  snip
  How do I make sure the session on both the browsers will be 
 different other
  than URL Rewriting.
  /snip
  
 
 For Netscape (and I presume Mozilla but haven't checked), I 
 don't believe there
 is any way to do this.  For IE, there's a configuration 
 setting called Browse
 In New Process or something like that which makes each 
 window collect its own
 pool of cookies, rather than sharing them.
 
 Craig McClanahan
 
 
 -
 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: editor

2004-01-22 Thread Paul McCulloch
The Blacksun HTML editor plugin for Eclipse will do tyhat for you.

Paul

 -Original Message-
 From: dirk [mailto:[EMAIL PROTECTED]
 Sent: 22 January 2004 12:27
 To: Struts Users Mailing List
 Subject: editor
 
 
 Does anybody knows a good and free struts editor ? 
 Does anybody knows an editor that is able to make code more 
 readable, user friendlier...
 eg. formatting the following code:
 
  trtdbla/td/tr
 
 into:
 tr
 td
   bla
  /td
 /tr
 
 Thanks !
 


**
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: HttpSession size - is this code correct?

2004-01-22 Thread Paul McCulloch
It is possible to reference the same object through multiple session
attributes. I often do this to allow shorthand access to heavily nested
properties.

Your method would count multiple references to the same object multiple
times.

An alternative approach would be to look at the amount of memory used by
your application running with 200 users, then destroy 100 sessions and force
grabage collection (or wait for it to happen). The difference in memory
usage would tell you how much memory 100 sessions actually needed.

Paul

 -Original Message-
 From: Khalid K. [mailto:[EMAIL PROTECTED]
 Sent: 22 January 2004 04:01
 To: 'Struts Users Mailing List'
 Subject: HttpSession size - is this code correct?
 
 
 Hi,
 
 I am trying to dertemine the size of the session object, 
 I've looked around and have written the following, please let 
 me if this
 is correct.
 
   Enumeration e = session.getAttributeNames();
   ByteArrayOutputStream  bos = new ByteArrayOutputStream();
   ObjectOutputStream s = new ObjectOutputStream(bos);
 
   while (e.hasMoreElements()) {
   Object o = session.getAttribute((String)
 e.nextElement()); 
   s.writeObject(o);
   s.flush();
   }
   System.err.println(size =  + bos.size());
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/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: Access Applicationresources.properties from Action

2004-01-16 Thread Paul McCulloch
Is there an easy way to get the 'closest match' on terms of locales in the
request?

For example, my browser has it's request languages set to
Italian;French;English. My application's default properties file is in
English. There is a French properties file but not an Italian one.

So, when I ask for a value I want to get the French one. But getMessage()
will always return a value if the key exists in the default locale, so there
seems to be no way to try Italian first, then French, then English.

Any ideas?

Paul

 -Original Message-
 From: Otto, Frank [mailto:[EMAIL PROTECTED]
 Sent: 16 January 2004 11:46
 To: 'Struts Users Mailing List'
 Subject: AW: Access Applicationresources.properties from Action
 
 
 Hi Eric,
 
 use:
 
 MessageResources resources = 

 (MessageResources)request.getAttribute(Globals.MESSAGES_KEY);
 String msg = resources.getMessage(locale, key);
 
 
 Regards,
 
 Frank
 
 -Ursprüngliche Nachricht-
 Von: Eric C [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 16. Januar 2004 12:42
 An: Struts Users Mailing List
 Betreff: Access Applicationresources.properties from Action
 
 
 Hi all,
 
 i'd like to access my properties file from the Action. My 
 purpose is deliver
 an error message to my result page. Any sample code showing 
 the use of the
 MessageResources object ?
 
 Regards,
 ERic
 
 
 -
 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: Ling Tag client

2004-01-16 Thread Paul McCulloch
The approach I use when I want to leverage another tags functionality is to
nest the tag I want to use inside my own tag body. My own tag then processes
the result of the other tag.

e.g.

mytags:sometag
html:link/
/mytags:sometag

I don't know if this will help in your situation or not.

Paul

 -Original Message-
 From: Renato Romano [mailto:[EMAIL PROTECTED]
 Sent: 16 January 2004 11:37
 To: 'Struts Users Mailing List'
 Subject: Ling Tag client
 
 
 I'm trying to define a Tag that does some work, and defines a link to
 some resource. To define this link I was trying to use the struts
 html:link tag in this way:
 
   LinkTag linkTag = new LinkTag();
   linkTag.setPageContext(pageContext);
   linkTag.setHref(http://myhost/mypage;);
   linkTag.doStartTag();
   try
   {
   pageContext.getOut().print(Go to myHost);
   }
   catch (IOException e)
   {
   e.printStackTrace();
   return SKIP_PAGE;
   }
   linkTag.doEndTag();
   return SKIP_BODY;
 
 Is this the correct way to utilize an external Tag definition ??
 Thanks
 
 
 Renato Romano
 Sistemi e Telematica S.p.A.
 Calata Grazie - Vial Al Molo Giano
 16127 - GENOVA
 
 e-mail: [EMAIL PROTECTED]
 Tel.:   010 2712603
 _
 
 
 
 -
 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: Text (A4-Page) inside a jsp-page

2004-01-12 Thread Paul McCulloch
I define the path to the locale specific page in the application.resources
file.

For example my application.resources file might have an entry like:

locale.dependant.page=english.html

and the french .properties file:

locale.dependant.page=french.html

The JSP to include the relvant version looks like:

bean:define id=messagePage
fmt:message key=locale.dependant.page/
/bean:define

nested:empty property=event.value
jsp:include page=%=messagePage%
flush=true/
/nested:empty

 -Original Message-
 From: Stefan Berger [mailto:[EMAIL PROTECTED]
 Sent: 12 January 2004 18:20
 To: [EMAIL PROTECTED]
 Subject: Text (A4-Page) inside a jsp-page
 
 
 Hi,
  
 I want to add to my jsp-page a long text but depending on locale. For
 the simple button and so on I know how to use MessaageResources, but
 for bigger text (more then one line) i dont know how to include text
 depending from locale.
  
  
 Has someone an idea or better an example ?
  
 Best regards 
 Stefan 
 


**
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: Dependent Drop Down Boxes

2004-01-07 Thread Paul McCulloch
Have a look at http://www.mattkruse.com/javascript/dynamicoptionlist/

Paul

 -Original Message-
 From: David Erickson [mailto:[EMAIL PROTECTED]
 Sent: 07 January 2004 18:00
 To: Struts Mailing List
 Subject: Dependent Drop Down Boxes
 
 
 Hi I was wondering if anyone knew of any taglibraries or 
 javascript related
 code that is meant to handle dependent drop down boxes.  IE 
 your choice in
 drop down box 1 choses the options you get in drop down box 
 2.  Ideally this
 would not require a refresh of the browser.  An example of this is
 carpoint.msn.com where you chose the vehicle manufacturer and 
 in the next
 box it shows you only cars made by that manufacturer.  They are using
 javascript coded in house... I was wondering if there is an 
 open source
 project or solution to work with this.
 Thanks!
 -David
 
 
 -
 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: Problem with CSS after validation

2003-11-28 Thread Paul McCulloch
Is the URL for the page the same in both cases? 

One way I can see this happening is that you enter the page with a URL like
http://myhost/myapp/foo/bar.jsp but when you have gone through validation
you have a URL like http://myhost/myapp/someaction.do

If that is the case then look at usibg html:rewrite to get the correct
path the the CSS.

Paul

 -Original Message-
 From: VENKATESH GANGAL [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2003 09:07
 To: [EMAIL PROTECTED]
 Subject: Problem with CSS after validation
 
 
 Hi ,
 
 I am working on a web application based on struts which uses 
 CSS to render various JSP pages.
 
 I have a typical problem when I try to validate a form and it 
 will be directed to the same JSP along with the errors.but 
 the view(JSP) after the validation is not rendered by the CSS links.
 
 Here is the code where I am trying to define the CSS links.
 
 html 
 html:html locale=true
 [EMAIL PROTECTED] import=java.util.*,java.lang.* %
 
 HEAD
 TITLEbean:message key=something.title//TITLE
 META HTTP-EQUIV=Content-Type CONTENT=text/html; 
 charset=iso-8859-1
 
 link rel=stylesheet href=../css/xxx.css
 link rel=stylesheet href=../css/yyy.css
 link rel=stylesheet href=../css/zzz.css
 /HEAD
 BODY leftmargin=0 topmargin=0 marginwidth=0 
 marginheight=0 onLoad=
 html:errors/
 html:form action=/logon
 /html:form
 /body
 /html:html
 html
 
 
 Can anyone let me know how to refer to the stylesheets after 
 the validation is done as it is not picking up the stylesheets.
 
 Thanks in advance...
 
 Cheers...
 Venkatesh
 
 
 
 
 
 
  
 


**
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: Dynamic value in customer tag ??

2003-11-28 Thread Paul McCulloch
Look at the paramId  paramName attributes of html:link.

Pauk

 -Original Message-
 From: Eric Chow [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2003 09:01
 To: Struts Users Mailing List
 Subject: Dynamic value in customer tag ??
 
 
 Hello,
 
 In the customer tag, how can I add a dynamic value with it?
 
 As the following example, how can I dynamic put the variable id in the
 ??? ???
 
 %
String id = 123456;
 %
 
 html:link page=/delete.do?id=???DEL/html:link
 
 Eric
 
 
 ==
 If you know what you are doing,
 it is not called RESEARCH!
 ==
 
 
 -
 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: request.setAttribute

2003-11-28 Thread Paul McCulloch
You are storing it in the request with the name myObejct but trying to
retrieve it with the name o. Use:

 MyObject o2 = (MyObject)request.getAttribute(myObejct);

Paul

 -Original Message-
 From: Honza Spurn [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2003 11:40
 To: [EMAIL PROTECTED]
 Subject: request.setAttribute
 
 
 Hi there,
 
 I have small problem with adding some objects to the request. 
 I need to
 store quite huge object into request variable
 
 MyObject o = new MyObject();
 o.setObjectName(name);
 request.setAttribute(myObejct, o);
 
 These are correct steps how to make it, aren't they? But the 
 object MyObject
 is really huge. Is it possible, tak the huge objects are not 
 store into
 request variable? Because when I store there object that 
 surely exists, and
 then I call
 
 MyObject o2 = (MyObject)request.getAttribute(o);
 if (o2 == null) System.out.println(NULL);
 else System.out.println(o.getObjectName());
 
 I always get NULL on output.
 
 Can be there problem with the size of such object?
 
 Thanks
 Sporak
 
 
 -
 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: request.setAttribute

2003-11-28 Thread Paul McCulloch
It still isn't correct. You staore it as myObejct and try and retrieve it
as myObject

Paul

 -Original Message-
 From: Honza Spurn [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2003 11:51
 To: Struts Users Mailing List; Honza Spurn
 Subject: Re: request.setAttribute
 
 
 Corrected version:
 
 MyObject o = new MyObject();
 o.setObjectName(name);
 request.setAttribute(myObejct, o);
 
 MyObject o2 = (MyObject)request.getAttribute(myObject);
 
 if (o2 == null) System.out.println(NULL);
 else System.out.println(o.getObjectName());
 
 
 The problem still occures. I'm not able to download from request such
 MyObject as I have stored in. Can it be caused by the huge 
 size of object?
 
 Sporak
 
 
 -
 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: request.setAttribute

2003-11-28 Thread Paul McCulloch
Have something print out all of the request scope attributes and see what's
there. I've attached a bit of jsp which I use to diagnose this sort of
issue. Alternatively set a breakpoint in your code after setting the
attribute and have a look in the debugger.

bean:page id=this_request property=request /
%
java.util.Enumeration e2 =
this_request.getAttributeNames();
while (e2.hasMoreElements()) {
String element =
(String)e2.nextElement();
out.write(br + element +  :  +
this_request.getAttribute(element).getClass().getName());
out.write(brbr +
this_request.getAttribute(element).toString() + br);

}


%


Paul
 -Original Message-
 From: Honza Spurn [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2003 11:59
 To: Struts Users Mailing List
 Subject: Re: request.setAttribute
 
 
 Paul McCulloch wrote:
  It still isn't correct. You staore it as myObejct and try and
  retrieve it
  as myObject
 
 OK OK, that is only overwrite, sorry... but this is not 
 copied from code,
 this is written to make easy view of the problem... In code I 
 have correct
 values, realy.
 
 so:
 MyObject o = new MyObject();
 o.setObjectName(name);
 request.setAttribute(myObject, o);
 
  MyObject o2 = (MyObject)request.getAttribute(myObject);
 
 if (o2 == null) System.out.println(NULL);
  else System.out.println(o.getObjectName());
 
 
 
 
  Paul
 
  -Original Message-
  From: Honza Spurn [mailto:[EMAIL PROTECTED]
  Sent: 28 November 2003 11:51
  To: Struts Users Mailing List; Honza Spurn
  Subject: Re: request.setAttribute
 
 
  Corrected version:
 
  MyObject o = new MyObject();
  o.setObjectName(name);
  request.setAttribute(myObejct, o);
 
  MyObject o2 = (MyObject)request.getAttribute(myObject);
 
  if (o2 == null) System.out.println(NULL);
  else System.out.println(o.getObjectName());
 
 
  The problem still occures. I'm not able to download from 
 request such
  MyObject as I have stored in. Can it be caused by the huge
  size of object?
 
  Sporak
 
 
  
 -
  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: request.setAttribute

2003-11-28 Thread Paul McCulloch
Please send some real code. I think you may have over simplfified what you
are showing us.

Paul

 -Original Message-
 From: Honza Spurn [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2003 12:09
 To: Struts Users Mailing List
 Subject: Re: request.setAttribute
 
 
 Paul McCulloch wrote:
  Have something print out all of the request scope attributes and see
  what's there. I've attached a bit of jsp which I use to 
 diagnose this
  sort of issue. Alternatively set a breakpoint in your code after
  setting the attribute and have a look in the debugger.
 
  bean:page id=this_request property=request /
  %
  java.util.Enumeration e2 =
  this_request.getAttributeNames();
  while (e2.hasMoreElements()) {
  String element =
  (String)e2.nextElement();
  out.write(br + element +  :  +
  this_request.getAttribute(element).getClass().getName());
  out.write(brbr +
  this_request.getAttribute(element).toString() + br);
 
  }
 
 
  %
 
 
 The MyObject is there, but always I want it download from 
 request, I get
 null object.
 
 Why?
 
 
 
  Paul
  -Original Message-
  From: Honza Spurn [mailto:[EMAIL PROTECTED]
  Sent: 28 November 2003 11:59
  To: Struts Users Mailing List
  Subject: Re: request.setAttribute
 
 
  Paul McCulloch wrote:
  It still isn't correct. You staore it as myObejct and try and
  retrieve it
  as myObject
 
  OK OK, that is only overwrite, sorry... but this is not
  copied from code,
  this is written to make easy view of the problem... In code I
  have correct
  values, realy.
 
  so:
  MyObject o = new MyObject();
  o.setObjectName(name);
  request.setAttribute(myObject, o);
 
   MyObject o2 = (MyObject)request.getAttribute(myObject);
 
  if (o2 == null) System.out.println(NULL);
   else System.out.println(o.getObjectName());
 
 
 
 
  Paul
 
  -Original Message-
  From: Honza Spurn [mailto:[EMAIL PROTECTED]
  Sent: 28 November 2003 11:51
  To: Struts Users Mailing List; Honza Spurn
  Subject: Re: request.setAttribute
 
 
  Corrected version:
 
  MyObject o = new MyObject();
  o.setObjectName(name);
  request.setAttribute(myObejct, o);
 
  MyObject o2 = (MyObject)request.getAttribute(myObject);
 
  if (o2 == null) System.out.println(NULL);
  else System.out.println(o.getObjectName());
 
 
  The problem still occures. I'm not able to download from
  request such
  MyObject as I have stored in. Can it be caused by the huge
  size of object?
 
  Sporak
 
 
 
  
 -
  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]
 
 
 -
 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: request.setAttribute

2003-11-28 Thread Paul McCulloch
The request attributes are all in a standard HashMap so I very much doubt
there is any intrinsic size limit. 

What shows in your page if you paste in the fragment of jsp I put in one of
my messages?

Are you sure that you aren't doing a redirect to the jsp?

Paul

 -Original Message-
 From: Honza Spurn [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2003 12:22
 To: Struts Users Mailing List
 Subject: Re: request.setAttribute
 
 
 Paul McCulloch wrote:
  Please send some real code. I think you may have over simplfified
  what you are showing us.
 
  Paul
 
 No no, this is realy all :)
 
 look:
 
 public final class CreateServerAction extends Action
 {
  public ActionForward execute(ActionMapping mapping, ActionForm form,
 HttpServletRequest request, HttpServletResponse response)
  {
   request.setAttribute(serverBean, new Server());
   return(mapping.findForward(success));
  }
 
 }
 
 
 in apropriate jsp page is used:
 jsp:useBean id=serverBean class=cz.master.is.tech.server.Server
 scope=request /
 
 but by my opinion the problem is in the Server class, since 
 it has about 125
 attributes (each attribute has setter and getter method), so 
 this object is
 realy huge...
 
 
  -Original Message-
  From: Honza Spurn [mailto:[EMAIL PROTECTED]
  Sent: 28 November 2003 12:09
  To: Struts Users Mailing List
  Subject: Re: request.setAttribute
 
 
  Paul McCulloch wrote:
  Have something print out all of the request scope 
 attributes and see
  what's there. I've attached a bit of jsp which I use to
  diagnose this
  sort of issue. Alternatively set a breakpoint in your code after
  setting the attribute and have a look in the debugger.
 
  bean:page id=this_request property=request /
  %
  java.util.Enumeration e2 =
  this_request.getAttributeNames();
  while (e2.hasMoreElements()) {
  String element =
  (String)e2.nextElement();
  out.write(br + element +  :  +
  this_request.getAttribute(element).getClass().getName());
  out.write(brbr +
  this_request.getAttribute(element).toString() + br);
 
  }
 
 
  %
 
 
  The MyObject is there, but always I want it download from
  request, I get
  null object.
 
  Why?
 
 
 
  Paul
  -Original Message-
  From: Honza Spurn [mailto:[EMAIL PROTECTED]
  Sent: 28 November 2003 11:59
  To: Struts Users Mailing List
  Subject: Re: request.setAttribute
 
 
  Paul McCulloch wrote:
  It still isn't correct. You staore it as myObejct and try and
  retrieve it
  as myObject
 
  OK OK, that is only overwrite, sorry... but this is not
  copied from code,
  this is written to make easy view of the problem... In code I
  have correct
  values, realy.
 
  so:
  MyObject o = new MyObject();
  o.setObjectName(name);
  request.setAttribute(myObject, o);
 
   MyObject o2 = (MyObject)request.getAttribute(myObject);
 
  if (o2 == null) System.out.println(NULL);
   else System.out.println(o.getObjectName());
 
 
 
 
  Paul
 
  -Original Message-
  From: Honza Spurn [mailto:[EMAIL PROTECTED]
  Sent: 28 November 2003 11:51
  To: Struts Users Mailing List; Honza Spurn
  Subject: Re: request.setAttribute
 
 
  Corrected version:
 
  MyObject o = new MyObject();
  o.setObjectName(name);
  request.setAttribute(myObejct, o);
 
  MyObject o2 = (MyObject)request.getAttribute(myObject);
 
  if (o2 == null) System.out.println(NULL);
  else System.out.println(o.getObjectName());
 
 
  The problem still occures. I'm not able to download from
  request such
  MyObject as I have stored in. Can it be caused by the huge
  size of object?
 
  Sporak
 
 
 
 
  
 -
  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

RE: request.setAttribute

2003-11-28 Thread Paul McCulloch
I'd concentrate on the bit of code in your action:

 request.setAttribute(serverBean, new Server());
 Server s = (Server)request.getAttribute(serverBean);
 if (s == null) System.out.println(s.getWmId());
 else System.out.println(null);

If this returns null then nothing else is going to work. Try using different
classes instead of Server - I'd start with String.

Paul

 -Original Message-
 From: Honza Spurn [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2003 12:33
 To: Struts Users Mailing List
 Subject: Re: request.setAttribute
 
 
 Paul McCulloch wrote:
  The request attributes are all in a standard HashMap so I very much
  doubt there is any intrinsic size limit.
 
  What shows in your page if you paste in the fragment of jsp I put in
  one of my messages?
 
 
 ...
 serverBean : cz.master.is.tech.server.Server
 [EMAIL PROTECTED]
 ...
 
 
  Are you sure that you aren't doing a redirect to the jsp?
 
 I don't understand well how do you mean it...
 
 the fragmnet of struts-config is:
 
 action path=/server/createServer
 type=cz.master.is.tech.server.CreateServerAction
 input=/server/showServers.do
forward name=success path=/server/editServer.jsp /
   /action
 
 the CreateServerAction i've attached last message.
 
 the editServer.jsp uses:
  jsp:useBean id=serverBean class=cz.master.is.tech.server.Server
 scope=request /
 
 Very strange is, that when I try to do in the Action-class this:
 
 request.setAttribute(serverBean, new Server());
 Server s = (Server)request.getAttribute(serverBean);
 if (s == null) System.out.println(s.getWmId());
 else System.out.println(null);
 
 NULL always appears... :(
 
 
  Paul
 
  -Original Message-
  From: Honza Spurn [mailto:[EMAIL PROTECTED]
  Sent: 28 November 2003 12:22
  To: Struts Users Mailing List
  Subject: Re: request.setAttribute
 
 
  Paul McCulloch wrote:
  Please send some real code. I think you may have over simplfified
  what you are showing us.
 
  Paul
 
  No no, this is realy all :)
 
  look:
 
  public final class CreateServerAction extends Action
  {
   public ActionForward execute(ActionMapping mapping, 
 ActionForm form,
  HttpServletRequest request, HttpServletResponse response)
   {
request.setAttribute(serverBean, new Server());
return(mapping.findForward(success));
   }
 
  }
 
 
  in apropriate jsp page is used:
  jsp:useBean id=serverBean 
 class=cz.master.is.tech.server.Server
  scope=request /
 
  but by my opinion the problem is in the Server class, since
  it has about 125
  attributes (each attribute has setter and getter method), so
  this object is
  realy huge...
 
 
  -Original Message-
  From: Honza Spurn [mailto:[EMAIL PROTECTED]
  Sent: 28 November 2003 12:09
  To: Struts Users Mailing List
  Subject: Re: request.setAttribute
 
 
  Paul McCulloch wrote:
  Have something print out all of the request scope
  attributes and see
  what's there. I've attached a bit of jsp which I use to
  diagnose this
  sort of issue. Alternatively set a breakpoint in your code after
  setting the attribute and have a look in the debugger.
 
  bean:page id=this_request property=request /
  %
  java.util.Enumeration e2 =
  this_request.getAttributeNames();
  while (e2.hasMoreElements()) {
  String element =
  (String)e2.nextElement();
  out.write(br + element +  :  +
  this_request.getAttribute(element).getClass().getName());
  out.write(brbr +
  this_request.getAttribute(element).toString() + br);
 
  }
 
 
  %
 
 
  The MyObject is there, but always I want it download from
  request, I get
  null object.
 
  Why?
 
 
 
  Paul
  -Original Message-
  From: Honza Spurn [mailto:[EMAIL PROTECTED]
  Sent: 28 November 2003 11:59
  To: Struts Users Mailing List
  Subject: Re: request.setAttribute
 
 
  Paul McCulloch wrote:
  It still isn't correct. You staore it as myObejct 
 and try and
  retrieve it
  as myObject
 
  OK OK, that is only overwrite, sorry... but this is not
  copied from code,
  this is written to make easy view of the problem... In code I
  have correct
  values, realy.
 
  so:
  MyObject o = new MyObject();
  o.setObjectName(name);
  request.setAttribute(myObject, o);
 
   MyObject o2 = (MyObject)request.getAttribute(myObject);
 
  if (o2 == null) System.out.println(NULL);
   else System.out.println(o.getObjectName());
 
 
 
 
  Paul
 
  -Original Message-
  From: Honza Spurn [mailto:[EMAIL PROTECTED]
  Sent: 28 November 2003 11:51
  To: Struts Users Mailing List; Honza Spurn
  Subject: Re: request.setAttribute
 
 
  Corrected version:
 
  MyObject o = new MyObject();
  o.setObjectName(name);
  request.setAttribute(myObejct, o);
 
  MyObject o2 = (MyObject)request.getAttribute(myObject);
 
  if (o2 == null) System.out.println(NULL);
  else System.out.println(o.getObjectName());
 
 
  The problem still occures. I'm not able to download from
  request such
  MyObject as I have stored in. Can it be caused by the huge
  size

RE: JSTL and Struts tags problem...

2003-11-27 Thread Paul McCulloch
What do you mean by doesn't work? 

Do you get error messages? What does the generated html look like? Does
fmt:message work on it's own? Does using bean:message instead of
fmt:message make any difference?

Paul

 -Original Message-
 From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
 Sent: 27 November 2003 09:21
 To: Struts Users Mailing List
 Subject: JSTL and Struts tags problem...
 
 
 Hello everybody,
 Any idea why the following shouldn't work:
 
 html:submit property=act   -- struts taglib
 
  fmt:message key=search.generic.reset/  -- jstl taglib
 
 /html:submit
 
 I also tried to replace the middle line with fmt:message 
 key=${search.generic.reset}/.
 
 I also have configured the web.xml to load the properties 
 file for jstl 
 to use with the following code:
 
 context-param
   
 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/pa
 ram-name
   param-valueApplicationResources/param-value
 /context-param
 
 Thanks a lot in advance,
 Todor
 
 
 -
 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] How to select an Option automatically?

2003-11-26 Thread Paul McCulloch
Have a look at http://www.mattkruse.com/javascript/autocomplete/
It seems to meet your requirements.

Paul

 -Original Message-
 From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
 Sent: 25 November 2003 21:57
 To: 'Struts Users Mailing List'
 Subject: [OT] How to select an Option automatically?
 
 
 I am converting a VB application to Web application.
 I need to select an option from a drop-down list box as the user
 enters a value in that box. 
 For example, there are four values in that drop-down box:
 one, two, three, four 
 As the user types say f or fo, I need to select the option four.
 Can anyone share some ideas to do that?
 BTW, I am using Struts actions and JSP to build the page that 
 contains the
 option list.
 
 Thanks 
 Reddy 
  
 
 
 
 -
 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:include problem - urgent..help!!

2003-11-26 Thread Paul McCulloch
What about the JSTL c:import tag? I use it with https without any issue.
I'm using JDK 1.4.2 which may explain why it works for me though.

Paul

 -Original Message-
 From: Khalid K. [mailto:[EMAIL PROTECTED]
 Sent: 26 November 2003 04:14
 To: 'Struts Users Mailing List'
 Subject: RE: bean:include problem - urgent..help!!
 
 
 Any solutions yet??? I found a couple of possible solutions.
 
 Download jsse jar files and then setup the  System property by using
 System.setProperty(, )  ('cant recall the correct class 
 names..i am
 home now :))
 
 My question is ...how to make this work in a server env. I can make it
 work in a stand alone test program, but where can I set 
 This attribute in a WebApp to make Strut happy so the 
 bean:include tag
 does not throw the unknown protocol: https  exception 
 
 Thanks
 
 
 
 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 25, 2003 6:35 PM
 To: Struts Users Mailing List; Daniel A. Torrey
 Cc: Struts Users Mailing List
 Subject: Re: bean:include problem - urgent..help!!
 
 
 Quoting Daniel A. Torrey [EMAIL PROTECTED]:
 
  I don't think that java.net.URL is capable of setting up an SSL 
  connection.
  
  -daniel
  
 
 Actually, it is possible if you have JSSE available (or you're running
 JDK 1.4 or later, which includes JSSE).
 
 http://java.sun.com/products/jsse/
 
  Daniel A. Torrey
  daniel at datorrey dot net
  
 
 Craig
 
 
  
  
  Quoting Khalid K. [EMAIL PROTECTED]:
  
   platform:  AIX/Websphere
   Struts V:  1.0.2
   
   Problem:  bean:include id=x name=/pages/page1.jsp/
 bean:write name=x filter=false/
   
   the above code works fine in windows - none SSL 
 environment. When we
 
   migrate the code to AIX/Websphere that has SSL installed.. 
   hence..https://blahblah... The above code throws:
   java.net.MalformedURLException: unknown protocol: https
   
   Last time I checked https is a valid protocol...HELP! THANKS!
   
   Thanks in advance!!! (cant use jsp:include ...custom wrappers 
   etc...)
   
   
   WebGroup  X Servlet Error: Cannot create include URL:
   java.net.MalformedURLException: unknown protocol: https:
   javax.servlet.jsp.JspException: Cannot create include URL:
   java.net.MalformedURLException: unknown protocol: https
   at
   
 org.apache.struts.taglib.bean.IncludeTag.doStartTag(IncludeTag.java)
   at 
 noticeofchange._notice_5F_of_5F_change_jsp_5._jspService
   (_notice_5F_of_5F_change_jsp_5.java:241)
   at 
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
   (Compiled Code))
   
   
   
   
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003
  
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003
  
 
 
 -
 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, 

RE: save form fields

2003-11-25 Thread Paul McCulloch
I've been looking at this recently. Their appear to be two classes of
solutions:

1) Client side logic in Javascript. All links, menu options etc. execute
some javascript which can decide not to change the current page, but
ask/force the user to save first.

2) Server side logic. All navigation etc. is done through the DispatchAction
for the current page. When the user navigates off the current page the
Action has an opportunity to prevent that, by forwarding back to the inout
page.

The server based solution seems preferable - otherwise there is a bunch of
control logic going into the view component.

HTH,

Paul

 -Original Message-
 From: koen boutsen [mailto:[EMAIL PROTECTED]
 Sent: 25 November 2003 14:09
 To: [EMAIL PROTECTED]
 Subject: save form fields
 
 
 hi
 
 In my form, a user enters data for an organisation. Via a 
 save button, these data are saved in the database.
 My problem is : when the user clicks on a link in the main 
 menu of my application before hitting the save button, he 
 looses the not-saved information and goes to another page.
 Does anyone know how I can get a pop-up message that alerts 
 my user if he pushes a button or link outside the form before 
 he has saved his information ?
 
 Thanks
 
 Koen
 
 
 
 
 Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
 http://login.mail.lycos.com/r/referral?aid=27005
 
 -
 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: URGENT:logic:iterate

2003-11-25 Thread Paul McCulloch
Do you really think shouting URGENT and repeatedly asking the same question
is going to encourage people to help you out?

Well, Not me.

Paul

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 25 November 2003 15:33
 To: [EMAIL PROTECTED]
 Subject: URGENT:logic:iterate
 
 
 
 Hi All
 I have tried this
 logic:iterate id=tsv collection=testScoresVector
 testScoresVector is a vector stored as a session Attribute as
 request.getSession().setAttribute(testScoresVector, 
 testScoresVector)
 Please let me know what the problem is.
 Now it says cannot create iterator for this collection.
 
 --Mohan
 
 
 
 
 
 
 -
 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: checkbox onclick event not getting called

2003-11-25 Thread Paul McCulloch
This is probably OT, but anyway...

It may be the way you are referencing the form. Try
'document.forms[0].add.disabled = ( element.checked );'

That worked for me - I didn't use struts though - I just messed around with
static html:

html
SCRIPT LANGUAGE=JavaScript
function check(element) {
//alert(element.checked);
document.forms[0].add.disabled = ( element.checked );
}
/script
body
form
input type=checkbox onclick=check(this) name=myname value=myvalue/
input type=submit name=add /
/form
/body
/html



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 25 November 2003 16:20
 To: [EMAIL PROTECTED]
 Subject: checkbox onclick event not getting called
 
 
 Hi,
  
 My code is like the following, when I click the checkbox, 
 nothing happened (the 'add' button suppose to get disabled). 
 I put a alert statment in the javascript, and didn't get it 
 showed when click the checkbox... seems the function didn't 
 get called at all, can anybody tell me why? Thanks a lot!
  
 SCRIPT LANGUAGE=JavaScript
 function check(element) {
 alert(getting called);
 document.myform.add.disabled = ( element.checked );
 }
 html:form action=myAction name=myForm
 html:submit propery=add value=Add/
 input type=checkbox onclick=check(this) name=myname 
 value=myvalue/
 
 
 
 
 -
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now
 


**
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:radio 'property' doesn't work with 'isBoolean()' type me thod call?

2003-11-25 Thread Paul McCulloch
There's a much better search available with what looks like a relevant post
for you:

http://marc.theaimsgroup.com/?l=struts-userm=99483696509329w=2

Paul

 -Original Message-
 From: Turansky, Mark [mailto:[EMAIL PROTECTED]
 Sent: 25 November 2003 16:48
 To: Struts Users Mailing List
 Subject: html:radio 'property' doesn't work with 'isBoolean()' type
 method call?
 
 
 I have a simple User object with two boolean values in the class:
   locked
   active
 
 I use the 'isLocked()' and 'isActive()' convention instead of 
 'getLocked()' and 'getActive()'.
 
 Does html:radio work with 'is' instead of 'get'?  I am having 
 page compilation problems telling me that 'getLocked' and 
 'getActive' cannot be resolved.
 
 btw, I searched the archives for this question to prevent a 
 redundant question, but Nagoya.apache.org is 1) way too slow 
 to be useful and 2) people don't use descriptive enough 
 subjects to be browseable.
 
 thanks in advance,
 mark
 
 -
 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:submit and html:button componant : value and text label

2003-11-24 Thread Paul McCulloch
This is an html issue, rather than a struts one. 

Read up on how input type=submit/ works for an in depth explanation.

Struts provides the LookupDispatchAction which is designed to deal with this
issue.

Paul

 -Original Message-
 From: Eric BELLARD [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2003 11:21
 To: [EMAIL PROTECTED]
 Subject: html:submit and html:button componant : value and text label
 
 
 hi,
 
 i'm dispatch action addicted developper and I go a
 recurent problem with html:button and html:submit
 componant.
 
 With these componants it's impossible to separate
 their label and their submitted value.
 
 I managed with some javascript like this to invoke the
 dispatch method i want :
 
 // submit form
 function submitForm(form, parameter) {
   
   form.action = form.action + ? + parameter;
   form.submit();
 
 }
 
 // valid and submit a form
 function validAndSubmitForm(form, parameter) {
 
   if (window.confirm('Are tou sure you want to delete
 the selected samples?')) {
   submitForm(form, parameter);
   }
 }
 
 So my question is why can't we separate the label and
 sumitted value of buttons in struts?
 
 Sorry if it's a déjà vu.
 
 
 
 =
 Eric BELLARD
 [EMAIL PROTECTED]
 mobile: 0614952791
 
 __
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now
 http://companion.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: [OT] Stress Test

2003-11-24 Thread Paul McCulloch
I use JMeter for this sort of thing. It's JSession aware which makes life a
bit easier.

Paul

 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2003 15:05
 To: '[EMAIL PROTECTED]'
 Subject: [OT] Stress Test
 
 
 Hi All,
 
 I've got a problem with my current web app where it stops 
 responding after
 about 6 hours.  I need to set up a test environment and 
 simulate multiple
 logon's so I can trap my way through the code and figure out 
 where it is
 failing.  I think there is a tool available that can be used 
 to do this -
 HTTPerf (I think), but I'm not sure if this will do what I want.  Does
 anyone have any experience with this?
 
 Thanks.
 
 Jerry Jalenak
 Development Manager, Web Publishing
 LabOne, Inc.
 10101 Renner Blvd.
 Lenexa, KS  66219
 (913) 577-1496
 
 [EMAIL PROTECTED]
 
 
 This transmission (and any information attached to it) may be 
 confidential and
 is intended solely for the use of the individual or entity to 
 which it is
 addressed. If you are not the intended recipient or the 
 person responsible for
 delivering the transmission to the intended recipient, be 
 advised that you
 have received this transmission in error and that any use, 
 dissemination,
 forwarding, printing, or copying of this information is 
 strictly prohibited.
 If you have received this transmission in error, please 
 immediately notify
 LabOne at the following email address: 
 [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: Key-based comparator tools

2003-11-21 Thread Paul McCulloch
Eclipse has this feature (built in I think). Just select two .properties
files and choose 'compare with each other'.

Paul

 -Original Message-
 From: Maurice Wijtten [mailto:[EMAIL PROTECTED]
 Sent: 21 November 2003 08:54
 To: Struts Users Mailing List
 Subject: Key-based comparator tools
 
 
 I wonder if anyone has a tip which makes working with ResourseBundle  
 (key-value) files
 a bit easier. I need to send my ResourceBundle files to a translation 
 department on a regular
 basis. While the ResourceBundle files are being translated, 
 development 
 procedes and the
 ResourceBundle files increase and change. When the translated 
 files are 
 returning, i have
 to compare them with my original files. My problem is that the diff 
 tools do not really
 understand the nature of key based files, and are (who can 
 blame them) 
 no able to really
 show the changes i want to see. Especially when the order in 
 which the 
 sentences are
 delivered is changed, problems occur and the diff tools aren't usable.
 Has anybody got a solution for these kinds of problems?
 
 Regards,  Maurice Wijtten
 
 
 
 -
 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: Actions which create sessions seem to hang

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

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

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

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

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

HTH,

Paul



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


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


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



Lazy questions on this list

2003-11-20 Thread Paul McCulloch
Is it my imagination or are the number of downright lazy requests to this
list getting worse?

If the only replies any lazy questions ever got was
http://www.catb.org/~esr/faqs/smart-questions.html then maybe people would
get the point. Has anyone got any other ideas about how we can reduce the
amount of lazy and totally off-topic posts to the list?


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: Lazy questions on this list

2003-11-20 Thread Paul McCulloch
There's a big difference between a lazy question and an easy one. 

If someone indicates that they've made some effort to find the answer but
could not then I'd be inclined to help. Even if I consider it a totally
basic question (with my whole 6 months Struts experience:-).

The questions that really hacks me off are the I NEED HELP - here is all
the src for my application. Please debug it for me. kind.

I may start replying with a quote from the ESR page: 

Before asking a technical question by email, or in a newsgroup, or on a
website chat board, do the following:

   1.Try to find an answer by searching the Web.
   2.Try to find an answer by reading the manual.
   3.Try to find an answer by reading a FAQ.
   4.Try to find an answer by inspection or experimentation.
   5.Try to find an answer by asking a skilled friend.
   6.You *are* a programmer, try to find an answer by reading the source
code.

Paul

-Original Message-
From: Carl [mailto:[EMAIL PROTECTED]
Sent: 20 November 2003 16:34
To: Struts Users Mailing List
Subject: Re: Lazy questions on this list


What is certain is that this mailibng list is an active one !

I think the lazy issue is common one for all mailing list. I'm myself 
quite new to struts and I had many questions in the begining. Even with 
the ducumentation effort on the Struts project, I found some 
difficulties to find the solutions quickly.

In those curcumstance, some people find more easy to sent help email on 
the list instead of trying to understand their pb by themself. And if 
the only response they can receive from users mailing-list is a 
http://www.catb.org/~esr/faqs/smart-questions.html
I don't think that we achieve the gaol of such mailing-list.

By the way, this activity show that more and more people are using 
Struts and that's a great news for an open source project.

Maybe a warning notice on the mail subscrubtion confiration could reduce 
lazy requests...

Carl




Paul McCulloch wrote:

 Is it my imagination or are the number of downright lazy requests to this
 list getting worse?
 
 If the only replies any lazy questions ever got was
 http://www.catb.org/~esr/faqs/smart-questions.html then maybe people would
 get the point. Has anyone got any other ideas about how we can reduce the
 amount of lazy and totally off-topic posts to the list?
 
 
 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]
 
 


-
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: Lazy questions on this list

2003-11-20 Thread Paul McCulloch
 -Original Message-
 From: Long, Robert [mailto:[EMAIL PROTECTED]
 Sent: 20 November 2003 17:36
 To: Struts Users Mailing List
 Subject: RE: Lazy questions on this list
 
 
 
 So from what I'm hearing here, as a newb,  it is safe to 
 assume that all answers to my questions will be www.google.com...

No, but as a newbie many of them will be. Many of them will also be in one
of the books that are out there, the docs, the source code or the archive of
this list:
http://marc.theaimsgroup.com/?l=struts-userr=1w=2

 
 Well, that is typically the first place to look. I guess my 
 next search should for a more newbie friendly list...

I think this is a pretty friendly list. There's next to no flaming, and
people *do* put in the effort to answer other's questions.

 
 Btw, the experts here have spent more time b*tching about 
 lazy questions than any other topic I've seen here. Kind of funny.

It's something people have opinions about I guess. 

 
 --- back to lurk mode ---
  
 
 
 
 -
 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: Lazy questions on this list

2003-11-20 Thread Paul McCulloch
I agree. I'm just hoping to cut down on the number of posts where this list
is used as the very first port of call when trying to solve a problem. 

Paul

 -Original Message-
 From: Gus Heck [mailto:[EMAIL PROTECTED]
 Sent: 20 November 2003 17:46
 To: Struts Users Mailing List
 Subject: Re: Lazy questions on this list
 
 
 
1.Try to find an answer by searching the Web.
2.Try to find an answer by reading the manual.
3.Try to find an answer by reading a FAQ.
4.Try to find an answer by inspection or experimentation.
5.Try to find an answer by asking a skilled friend.
6.You *are* a programmer, try to find an answer by 
 reading the source
 code.
   
 
 I think if one tries at least 50% of this list it is a reasonable 
 effort. People need to get work done quicly too. Trying all of these 
 things is time consuming. One should pursue the other 50% 
 while wating 
 for the post answer however. :).



**
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:message MessageFormat and number formating

2003-11-19 Thread Paul McCulloch
The jstl eqivalent of bean:message allows you to pass arguments via the tag
body, so you can use another tag inside the body:

fmt:message key=cart.amount
fmt:param
fmt:formatNumber value=${total}
type=CURRENCY/
/fmt:param
/fmt:message

Paul

-Original Message-
From: Carl [mailto:[EMAIL PROTECTED]
Sent: 18 November 2003 23:44
To: [EMAIL PROTECTED]
Subject: bean:message MessageFormat and number formating


Hi,

I've recently switch to a resource.properties file to externalize all
text from jsp (in the perspective of translation of the site)

The site is a classic e-commerce web site, so I dsiplay a Cart and the
amount of the products in the custumer's cart.

In my old jsp I wrote :
fmt:formatNumber value=${total} type=CURRENCY/
in order to format the price in a sentence like Total amount $ 150.

Now I'm writting
cart.amount=Total amount {0}.
in the resource.properties.

And in the JSP :
bean-el:message key=cart.amount arg0=${user.amount}/

finally I loose the price formatting porvided by the fmt:formatNumber 
tag.

Is there a way to use a MessageFormat and have the parameters formatted
like fmt:formatNumber  do ?

Thanks for all suggestions,

Carl


-
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: Map Backed Action Form

2003-11-19 Thread Paul McCulloch
Start here:

http://www.catb.org/~esr/faqs/smart-questions.html

Paul

-Original Message-
From: Agashivala, Vishal [mailto:[EMAIL PROTECTED]
Sent: 19 November 2003 12:17
To: Struts Users Mailing List
Subject: RE: Map Backed Action Form


Hi 
Can anyone help me to implement MAP BACKED ACTION FORM???
In this forum, I see 100 of mails but wht I am try to get help on is not
there..And NO ONE IS HERE TO HELP ME OUT?? AM I ASKING SOME irrelevant info
here?? If so atleast write to me so that i can think of other way to work
around..Atlest some one reply to my message
Regards,
Vishal Agashivala

-Original Message-
From: Agashivala, Vishal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 2:17 PM
To: Struts (E-mail)
Subject: Map Backed Action Form


can you pls reply how do i implemt the Map Backed ActionForm 
since its not
working at my end...if possible can u send snippet of 
struts-config.xml and
uractionform.java file for refrence

Regards,
Vishal Agashivala

-
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: [OT] generate HTML file from XML and XSLT

2003-11-14 Thread Paul McCulloch
Hava a look at the sample servlets etc. that come with the Apache Xalan-J
package.

Paul

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: 13 November 2003 19:14
To: [EMAIL PROTECTED]
Subject: [OT] generate HTML file from XML and XSLT


Hi,
I have a XML file and a XSLT file, i need to create a
HTML file in a temp directory then read this file to
get a String so can email this String or print the
String as HTML
is it possible to do it?? and how 
I am using jdk1.4.1 
Ashish


=
A$HI$H

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-
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: DispatchAction and Security

2003-11-14 Thread Paul McCulloch
One of the joys of using Struts is that you have access to all the source
code so you can answer these questions yourself.

I had a quick look at the source - only public methods with the same
signature as execute() will be called. So getServlet() cannot be called as
it has  the 'wrong' signature.

So, only methods which you delibaratly implement with the approrpriate
sifgnature can be executed via a dispatch action - you shouldn't be
concerned.

Paul

-Original Message-
From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]
Sent: 14 November 2003 14:15
To: Struts Users Mailing List
Subject: DispatchAction and Security




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


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Been mucking around with why I'd want to use DispatchActions, and I
understand that part, it's advantages and disadvantages, and I've read
the many threads explaining all that.  My concern is on how the various
methods in the actions are called, and how they pertain to security.

For example.  Say you have a parameter=method defined, as per the
example, and you pass method=addFoo in the URL or even as a hidden
field.  Struts will go and look through your action, see that addFoo
exists and do the processing.  All is fine so far.  However what if
someone decides to just type in the URL method=getServlet, and
getServlet() is a public method in Action, which DispatchAction extends,
or decides to type execute (which is not as much of a concern), will
using DispatchAction honor the call to getServlet or any other public
method in DispatchAction or Action classes?

Is there an easy way, besides extending the RequestProcessor (which is
not hard of course), to add a value to the parameter passed to the
DispatchAction?  What I mean is that if I specify method=addFoo, I
want to add a string to my parameter value (the one specified for
DispatchAction) so before my action is processed and tries to resolve
addFoo(), I can add param_ so that it will look for param_addFoo method.
~ If I can do that, then anyone trying to make a call to execute,
getServlet or anything like that will cause the process to look for
param_execute() or param_getServlet(), both of which don't exist of
course, hence locking down the app some more.

Perhaps this shouldn't even be a concern?

Thanks for any input you can provide.

R

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/tONl+cV9vuB27SARArA+AJ9XfLVJhva7pFqptBjhFzdZEI87mACgijpx
5oIZW5PPWb9ufNeoFzMLcYQ=
=Yis4
-END PGP SIGNATURE-


-
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 

RE: DispatchAction and Security

2003-11-14 Thread Paul McCulloch
The key method map relates to LookupDispatchAction, the original question
was about DispatchAction.

Paul

-Original Message-
From: Paananen, Tero [mailto:[EMAIL PROTECTED]
Sent: 14 November 2003 14:52
To: 'Struts Users Mailing List'
Subject: RE: DispatchAction and Security


 So, only methods which you delibaratly implement
 with the approrpriate sifgnature can be executed
 via a dispatch action - you shouldn't be
 concerned.

You also have to specify the allowed methods and
their lookup key in the key method map; see
getKeyMethodMap().

-TPP

-
This email may contain confidential and privileged material for the sole use
of the intended recipient(s). Any review, use, retention, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact the
sender by reply email and delete all copies of this message.  Also, email is
susceptible to data corruption, interception, tampering, unauthorized
amendment and viruses. We only send and receive emails on the basis that we
are not liable for any such corruption, interception, tampering, amendment
or viruses or any consequence thereof.


-
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: Line break and bean:write

2003-11-07 Thread Paul McCulloch
You need to replace newlines with brs:

workString.replaceAll(\n, \nbr);

Paul

-Original Message-
From: Mohamed Abu Zur [mailto:[EMAIL PROTECTED]
Sent: 07 November 2003 11:12
To: [EMAIL PROTECTED]
Subject: Line break and bean:write



Hi all:

 

 

I insert a text with various line breaks , paragrapgs etc in the database.
When i get the text back to show in the html page I do it with bean:write
tag.

 

The text mantain its format (line breaks, return carriage, end of line, etc)
when I show it in a text area to be modified, But when I show it in an html
page as text it does not appear with the line breaks, return carriage, etc.
What shal I do to make the text appear as have been edited?

 

 

Thank you in advance



-
Yahoo! Messenger
Nueva versioacute;n: Super Webcam, voz, caritas animadas, y maacute;s
#161;Gratis!


**
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 do un-load (destroy) a servlet after startup?

2003-11-07 Thread Paul McCulloch
Firstly, this isn't a struts question - there will be a far more appropriate
list somewhere.

Secondly - have you read the servlet spec? This will answer many questions.

A quick answer - no. There is no real need to unload the servlet (althought
the container may decide to do just that!) - just make sure you release any
resources used during initialisation. 

A special type of servlet, implementing ServletContextListener, might be a
better choice for context initialisation/

Paul

-Original Message-
From: Michael Cardon [mailto:[EMAIL PROTECTED]
Sent: 07 November 2003 13:17
To: [EMAIL PROTECTED]
Subject: How do un-load (destroy) a servlet after startup?


Hello,

I have a couple of servlets that I start with my struts application that
read some xml files and initialize my program for use.  After the
initialization is done, I no longer need the servlets and would like to
un-load (destroy) them. Does anyone know how to do this?

Thanks.


-
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-menu and internationalization

2003-11-06 Thread Paul McCulloch
I use struts menu, with the CoolMenu displayer, and everything works fine.
Your config looks ok. 

What exactly isn't working?

There is a struts-menu specific mailing list, which would be a more
approriate place to ask for help.

Paul

-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: 06 November 2003 10:44
To: [EMAIL PROTECTED]
Subject: struts-menu and internationalization


Has anyone used internationalization in the struts-menu ?

If so, could you explain me how I can do it.

I tried the following : 

menu-config.xml:
Menu name=organisation title=label.logout
Item name=organisationOverview title=label.overview
forward=/organisation/searchFirstLetter /
/Menu

and in listMenu.jsp:
menu:useMenuDisplayer name=listMenu
bundle=org.apache.struts.action.MESSAGE
menu:displayMenu name=organisation/
menu:displayMenu name=salesrep/
menu:displayMenu name=logout/   
/menu:useMenuDisplayer

but this did not work.

any help is very appreciated

Koen Boutsen



FREE ADHD DVD or CD-Rom (your choice) - click here!
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
AOL users go here:
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
This offer applies to U.S. Residents Only

-
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-menu and internationalization

2003-11-06 Thread Paul McCulloch
A quick look at the source code suggests that the locale used is either the
loacle of the request (set by your browser) or some locale object in some
scope. You need to tell the menu:useMenuDisplayer tag how to access your
locale object.

If for instance you put the user's locale in session scope with a key
user.locale then you should use the tag like:


menu:useMenuDisplayer name=listMenu
bundle=org.apache.struts.action.MESSAGE
locale=user.locale


Disclaimer: I don't use this functionality - I've just had a quick look at
the code.

Paul

-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: 06 November 2003 13:35
To: Struts Users Mailing List
Subject: RE: struts-menu and internationalization


When a user logs in, I give him a default language, e.g. English, and create
the appropriate Locale.  This user sees the menu in the correct language.
When this user switches his language, by clicking an image, I create another
Locale, e.g. French. All the other labels I use, change into the wright
language, but the menulabels stay in the original language.

Thanks in advance 
Koen
--

- Original Message -

DATE: Thu, 6 Nov 2003 12:46:13 
From: Paul McCulloch [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Cc: 

I use struts menu, with the CoolMenu displayer, and everything works fine.
Your config looks ok. 

What exactly isn't working?

There is a struts-menu specific mailing list, which would be a more
approriate place to ask for help.

Paul

-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: 06 November 2003 10:44
To: [EMAIL PROTECTED]
Subject: struts-menu and internationalization


Has anyone used internationalization in the struts-menu ?

If so, could you explain me how I can do it.

I tried the following : 

menu-config.xml:
Menu name=organisation title=label.logout
   Item name=organisationOverview title=label.overview
forward=/organisation/searchFirstLetter /
/Menu

and in listMenu.jsp:
menu:useMenuDisplayer name=listMenu
bundle=org.apache.struts.action.MESSAGE
menu:displayMenu name=organisation/
menu:displayMenu name=salesrep/
menu:displayMenu name=logout/   
/menu:useMenuDisplayer

but this did not work.

any help is very appreciated

Koen Boutsen



FREE ADHD DVD or CD-Rom (your choice) - click here!
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/56363
2
/131726/311392/311392
AOL users go here:
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/56363
2
/131726/311392/311392
This offer applies to U.S. Residents Only

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






FREE ADHD DVD or CD-Rom (your choice) - click here!
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
AOL users go here:
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
This offer applies to U.S. Residents Only

-
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

RE: Access message resources from Action?

2003-11-06 Thread Paul McCulloch
((MessageResources)
request.getAttribute(Globals.MESSAGES_KEY)).getMessage(locale,
message.key)

Paul

-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED]
Sent: 06 November 2003 14:51
To: Struts Users Mailing List
Subject: Access message resources from Action?


This seems like a simple thing to do, and I could swear I've seen it 
answered on the list - but I can't find it!

How do I access the message resources that I get at from a JSP using 
bean:write locale=localeObj key=message.key/ from an Action?

-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



-
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 Times Out

2003-11-03 Thread Paul McCulloch
I use a servlet filter - this way I can restrict access to actions  JSPs
without putting any code in either of them.

Paul

-Original Message-
From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
[mailto:[EMAIL PROTECTED]
Sent: 03 November 2003 10:20
To: Struts Users Mailing List
Subject: RE: Session Times Out


I think best way to check session is to extend requestProcessor Class and
override processPath method,

-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 12:06 PM
To: 'Struts Users Mailing List'
Subject: RE: Session Times Out



 Hi,
But be carefull because the actions will be executed before redirecting to
JSP, so I think it?s better to check the session in all the actions, isn?t
it?



 Make a custom tag like so :



 Create a tld file with this in  it :

 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP
 Tag Library
 1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd;
 taglib
   tlibversion1.0/tlibversion
   jspversion1.1/jspversion
   shortnameTag Libs/shortname
   infoustom Tags/info
   tag
 namecheckLogin/name

 tagclasscom.cpaglobal.cpadirect.tag.CheckLogin/tagclass
 bodycontentempty/bodycontent
 infoChecks the login status of a user and
 forward them to the
 login page if not logged in./info
 attribute
   nameloginPage/name
   requiredfalse/required
   rtexprvaluefalse/rtexprvalue
 /attribute
 attribute
   namedefault/name
   requiredfalse/required
   rtexprvaluefalse/rtexprvalue
 /attribute
   /tag
 /taglib



 Code for the custom tag :

 package com.cpaglobal.cpadirect.tag;

 import java.io.IOException;

 import javax.servlet.ServletException;
 import javax.servlet.http.HttpSession;
 import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.tagext.TagSupport;

 import com.cpaglobal.cpadirect.applicationlogic.SessionVariables;
 import com.cpaglobal.cpadirect.applicationlogic.User;


 public class CheckLogin extends TagSupport {


   private String loginPage = /JSP/Timeout.jsp;


   public void setLoginPage(String loginPage) {
 this.loginPage = loginPage;
   }

   public int doStartTag() throws JspException {
  return (SKIP_BODY);
   }

   public int doEndTag() {
 try {
   HttpSession session = pageContext.getSession();
   if (session != null) {
 User user = (User)
 session.getAttribute(SessionVariables.SESSION_LOGGED_ON_USER);
 if (user == null) {
   pageContext.forward(loginPage);
   return (SKIP_PAGE);
 }
   } else {
 pageContext.forward(loginPage);
 return (SKIP_PAGE);
   }
 } catch(ServletException e) {
   new JspException(e.toString());
 } catch(IOException e) {
   new JspException(e.toString());
 }
 return (EVAL_PAGE);
   }

 }

 How to use it :

 %@ taglib uri=/WEB-INF/cpa.tld prefix=cpa%
 cpa:checkLogin/

 Mike




 |-+
 | |   Caroline Jen |
 | |   [EMAIL PROTECTED]|
 | |   .com|
 | ||
 | |   03/11/2003 06:23 |
 | |   AM   |
 | |   Please respond to|
 | |   Struts Users|
 | |   Mailing List|
 |-+

 -
 -|
   |
|
   |   To:   [EMAIL PROTECTED]
|
   |   cc:
|
   |   Subject:  Session Times Out
|

 -
 -|




 I check if session expires for each action in the
 application.  If the session times out, I forward the
 user to index.jsp so that the user can log on again.

 How do I inform the user with a message that he/she is
 at the welcome page because the session has expired?

 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/

 -
 

RE: Eclipse + Ant + precompile - Tomcat

2003-10-31 Thread Paul McCulloch
In case you didn't know, you can precompile a specific jsp by simply making
a reqest to the page with a special paramter:

ttp://myapp/somepage.jsp?jsp_precompile

If you don't have a huge number of pages this might form the basis of a
quick and dirty hack.

Paul

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: 31 October 2003 15:14
To: Struts Users Mailing List
Subject: Eclipse + Ant + precompile - Tomcat


I've been doing some googling on having a webapp precompiled when 
deployed to Tomcat via an Ant task and I'm a bit intimidated with what's 
involved. Has anyone out there done this? Right now, I have an Ant build 
setup as an external build in Eclipse that does a variety of things, 
including building, packing up my WAR, and installing this WAR to Tomcat 
using the catalina-ant install command that uses the management URL 
and an external context file to install the webapp in a (local) running 
Tomcat instance.

I'd like to follow-up the install with a directive to Tomcat to 
precompile the JSPs in the web application - does anyone have an Ant 
task that I could adapt to this purpose that they'd be willing to share?

Thanks!

-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



-
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] RE: javascript question...

2003-10-30 Thread Paul McCulloch
I'm pretty sure you can do it:

  var newwin=window.open(a.html?Name= + namVal);


Paul

-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: 29 October 2003 21:41
To: Struts Users Mailing List
Subject: [OT] RE: javascript question...


No, you can't do it that way. But you could create an otherwise unused
hidden form element in your parent document, set it with the value you want
from within your JavaScript function, and then reference that value from the
child window.

-= J

 -Original Message-
 From: Jacob Wilson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 29, 2003 3:37 PM
 To: [EMAIL PROTECTED]
 Subject: javascript question...
 
 
 Hi...
  
 Is it possible to send a value of a form element from the 
 parent window to the child window like this???
  
 script
 function go() {
  var namVal = document.fm1.txtName.value;
  var newwin=window.open(a.html?Name=namVal);
 }
 /script
  
 form name=fm1 onSubmit=go()
  input type=text name=txtName 
  input type=submit value=go
 /form
  
 The above does not work... it will give me 'namVal' as the 
 value rather than the actual typed in value when I try to get 
 request.getParameter
  
 How can I achieve this functionality??? I need to pass a form 
 element value when opening a new window. This value is 
 essential at this point coz I perform an action based on this 
 value and then bring the pop up page
  
 Suggestions requested please...
  
 Thanks!
  
 Jacob
 
 
 -
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 

-
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: IMPORTANT: internationalize large chunks of text/HTML

2003-10-15 Thread Paul McCulloch
I use a similair approach, but get fmt:message to deal with selecting the
correct locale for me:

bean:define id=localePage
fmt:message key=some.langauage.specific.page/
/bean:define
jsp:include page=%=localePage% flush=true/

I then define the path to the locale specific html page in the relvant
.properties file.

Paul

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 10:14
To: Struts Users Mailing List
Subject: Re: IMPORTANT: internationalize large chunks of text/HTML


I haven't had to do this myself, but I believe that when you have entire 
pages that can be maintained separately, people start developing 
separate page trees. The idea being that you can have an Action check 
the locale and fork to one set of ActionForwards or another, based on 
the locale.

-Ted.

Mick Knutson wrote:

 I have posted this before, and I still am trying to understand the best
way
 to approach this.
 
 I have 100% of my labels in a Resource bundle currently. But I also have
 larger pages of text (1-2 pages at a time), that I need to be
 internationalized just like my labels. I am wondering what the best way to
 do this is?
 I just want to know what other people are doing that is easy on
maintenance.
 
 
 ---
 Thanks
 Mick Knutson
 
 The world is a playground...Play Hard, Play Smart.
 Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
 Contact System can help you Play Smart.
 
 +00 1 (708) 570-2772 Fax
 MSN: mickknutson
 ICQ: 316498480
 ICQ URL: http://wwp.icq.com/316498480
 
 ---
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
Ted Husted,
   Junit in Action  - http://www.manning.com/massol/,
   Struts in Action - http://husted.com/struts/book.html,
   JSP Site Design  - http://www.amazon.com/exec/obidos/ISBN=1861005512.



-
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: format string bean write - property editor

2003-10-15 Thread Paul McCulloch
I'd create a custom tag and pass bean:write as the body. 

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 14:53
To: struts-user
Subject: format string bean write - property editor


Hello

I read this mailing list since 1 year, but it is my first question :-)

I have a bean with a string property, this string is big and it is not a
trouble but in one use of the bean:write in a jsp, i wish to reduce on the
screen the size of the string (but not in the bean)

I can't find any use of PropertyEditor, perhaps is it a good idea?

perhaps do you have other idea ?

I can perhaps to extend the tag with a new attribut like maxscreensize, what
do you think about it ?

many think in advance

** L'ADSL A 20 EUR/MOIS** 
Avec Tiscali, l'ADSL est à 20 EUR/mois. Vous pourrez chercher longtemps
avant de trouver moins cher ! 
Pour profiter de cette offre exceptionnelle, cliquez ici :
http://register.tiscali.fr/adsl/
Offre soumise à conditions.



-
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: IMPORTANT: internationalize large chunks of text/HTML

2003-10-15 Thread Paul McCulloch
fmt get's the neccessary from the headers the broweser puts in the request
by default I believe. Have a look at the Jakarta JSTL examples application.

Paul

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 14:55
To: Struts Users Mailing List
Subject: Re: IMPORTANT: internationalize large chunks of text/HTML


Are you saying that the fmt will get com.baselogic.text by default, but if
the Globals.LOCALE = DE, then fmt will get com.baselogic.text_de?
Or am I missing where fmt gets it's locale information from?


---
Thanks
Mick Knutson

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

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

---

- Original Message - 
From: Paul McCulloch [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 2:21 AM
Subject: RE: IMPORTANT: internationalize large chunks of text/HTML


 I use a similair approach, but get fmt:message to deal with selecting the
 correct locale for me:

 bean:define id=localePage
 fmt:message key=some.langauage.specific.page/
 /bean:define
 jsp:include page=%=localePage% flush=true/

 I then define the path to the locale specific html page in the relvant
 .properties file.

 Paul

 -Original Message-
 From: Ted Husted [mailto:[EMAIL PROTECTED]
 Sent: 15 October 2003 10:14
 To: Struts Users Mailing List
 Subject: Re: IMPORTANT: internationalize large chunks of text/HTML


 I haven't had to do this myself, but I believe that when you have entire
 pages that can be maintained separately, people start developing
 separate page trees. The idea being that you can have an Action check
 the locale and fork to one set of ActionForwards or another, based on
 the locale.

 -Ted.

 Mick Knutson wrote:

  I have posted this before, and I still am trying to understand the best
 way
  to approach this.
 
  I have 100% of my labels in a Resource bundle currently. But I also have
  larger pages of text (1-2 pages at a time), that I need to be
  internationalized just like my labels. I am wondering what the best way
to
  do this is?
  I just want to know what other people are doing that is easy on
 maintenance.
 
 
  ---
  Thanks
  Mick Knutson
 
  The world is a playground...Play Hard, Play Smart.
  Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert

  Contact System can help you Play Smart.
 
  +00 1 (708) 570-2772 Fax
  MSN: mickknutson
  ICQ: 316498480
  ICQ URL: http://wwp.icq.com/316498480
 
  ---
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -- 
 Ted Husted,
Junit in Action  - http://www.manning.com/massol/,
Struts in Action - http://husted.com/struts/book.html,
JSP Site Design  - http://www.amazon.com/exec/obidos/ISBN=1861005512.



 -
 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: IMPORTANT: how to tell

2003-10-15 Thread Paul McCulloch
Try

http://marc.theaimsgroup.com/?l=struts-userr=1w=2

Paul

-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 17:23
To: Struts Users Mailing List
Subject: Re: IMPORTANT:  how to tell


The list does have an abundance of valuable information.
Am I correct in saying that the list only archives about 
a weeks worth of posts?  It would be great if the list
had a way of cataloging the information.  I find that 
a topic could be discussed for two days and then go away.
The next day someone will decide to post the same topic again.
It's like Here we go again!   What could be done so that
information that has already been posted can be available
to future questions or posts?

Barry


- Original Message - 
From: Brandon Goodin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 9:06 AM
Subject: Re: IMPORTANT:  how to tell


 How about we set up a review board that examines every post to the list.
 Discards pointless discussions (like this one) and rates them according
 to a scale of importance to the community. Then they place them into
 bugzilla where they will be propagated to the struts list subscribers as
 tasks.
 
 :-\
 
 Thoughts? Further Sarcasm? :-D
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


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


**
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: [SOLVED] Drop down boxes

2003-10-14 Thread Paul McCulloch
How about some javascript (to call submit()) on the onchange event of the
dropdown?

Paul

-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 12:42
To: Struts Users Mailing List
Subject: [SOLVED] Drop down boxes




Todor Sergueev Petkov wrote:
 Hello every body,
 any suggestions on the following :
 
 1. I use a drop down box associated with a Struts LookupDispatchAction.
 2. I Have another textfield form associated with the same action on the 
 same page.
 3. I would like when users selects something in the drop down box the 
 text field to be updated with the selection from the ddb-  a.k.a the 
 page has to be redisplayed...
 
 Anyone has done something similar before?
 
 Thanks, Todor
 
 
 -
 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: passing html:link tag to bean:message tag

2003-10-14 Thread Paul McCulloch
Use the jstl:

fmt:message key=cancel.message
fmt:param
html:link forward=emailemail us/html:link
/fmt:param
/fmt:message

You probably want the text of the link to come from the resources as well:

fmt:message key=cancel.message
fmt:param
html:link forward=email
fmt:message key=cancel.message.email
/html:link
/fmt:param
/fmt:message

Paul

-Original Message-
From: david chan [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 15:34
To: Struts Users Mailing List
Subject: passing html:link tag to bean:message tag


Hi,
 I am trying to do like this:

bean:message key=cancel.message arg0='html:link
forward=emailemail us/html:link' /

I am hoping the final cancel message will has the
email us link that is link to the email action. 

But of course this doesn't work because bean treat the
arg0 as a string only.

how can I do something like this?

Thanks.
David

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.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: passing html:link tag to bean:message tag

2003-10-14 Thread Paul McCulloch
fmt:message is pretty much a drop in replacement for bean:message. I don't
know about JSP 1.1 - I've got a *feeling* it's 1.2 only, but you'd better do
some research.

You can achieve the same with the struts tags:

bean:define id=the_link
html:link forward=email
bean:message key=cancel.message.email/
/html:link
/bean:define

bean:message key=cancel.message arg0=%=the_link%/

But it's a bit messier.

Paul

-Original Message-
From: david chan [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 16:17
To: Struts Users Mailing List
Subject: RE: passing html:link tag to bean:message tag


I am new to JSTL, it seems very nice, but has two
questions about JSTL:

Does JSTL compatiable with Struts 1.1, for example the
fmt:message, will it get same local as bean:message in
same context?

Also does the JSTL works on Webshere 4.x ? (Servlet
2.2 and JSP 1.1 only I think).

Thanks.
David


--- Paul McCulloch [EMAIL PROTECTED]
wrote:
 Use the jstl:

 fmt:message key=cancel.message
   fmt:param
   html:link forward=emailemail us/html:link
   /fmt:param
 /fmt:message

 You probably want the text of the link to come from
 the resources as well:

 fmt:message key=cancel.message
   fmt:param
   html:link forward=email
   fmt:message key=cancel.message.email
   /html:link
   /fmt:param
 /fmt:message

 Paul

 -Original Message-
 From: david chan [mailto:[EMAIL PROTECTED]
 Sent: 14 October 2003 15:34
 To: Struts Users Mailing List
 Subject: passing html:link tag to bean:message tag


 Hi,
  I am trying to do like this:

 bean:message key=cancel.message arg0='html:link
 forward=emailemail us/html:link' /

 I am hoping the final cancel message will has the
 email us link that is link to the email action.

 But of course this doesn't work because bean treat
 the
 arg0 as a string only.

 how can I do something like this?

 Thanks.
 David

 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product
 search
 http://shopping.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]



__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.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: JSP Expression inside Struts html:text property

2003-10-13 Thread Paul McCulloch
When using a runtime expression as an attribute value the whole attribute
must be a single expression:

html:text property=%=\person\ + x% value=/

Paul

-Original Message-
From: Jonathan Hawkins [mailto:[EMAIL PROTECTED]
Sent: 13 October 2003 15:27
To: Struts Users Mailing List
Subject: JSP Expression inside Struts html:text property


Howdy -

I have some JSP code that looks like this:



% for(int x=1;x =7;x++){ %
html:text property=person%=x% value=/
% } %


of course I was expecting the HTML output to be something like:

input type=text name=person1 value=
input type=text name=person2 value=
input type=text name=person3 value=
input type=text name=person4 value=
input type=text name=person5 value=
input type=text name=person6 value=
input type=text name=person7 value=

Instead I am getting :


input type=text name=person%=x% value=
input type=text name=person%=x% value=
input type=text name=person%=x% value=
input type=text name=person%=x% value=
input type=text name=person%=x% value=
input type=text name=person%=x% value=
input type=text name=person%=x% value=

Anyone have another way to achieve the desired output? I looked into 
the html:logic tag and think that may be the way to go, but I can't 
find an example
Please helpsuper powers..failing.must .stop 
evilbad code before it'stoo late


thanks
jonathan


-
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: newbie: Best Practice Struts/Value-Objects?

2003-10-03 Thread Paul McCulloch
I *think* the other option is to put your form bean ( it's emebedded VO) in
session scope (rather than request which you seems to have at the moment).

Doing this means that the unchanged values on your VO will remain unchanged
(rather than being nulled).

Paul



-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED]
Sent: 03 October 2003 14:26
To: Struts Users Mailing List
Subject: RE: newbie: Best Practice Struts/Value-Objects?


To make sure I understand, the options so far are to:
1. Pass the full VO to the view, create the 15 other fields as hidden tags
within the form, and then on submit Action create a blank VO and populate
with the fields and send to the DB.

2. Pass the full VO to the view, get the 5 fields that are changed from the
form, and then on submit Action re-create the original VO and simply change
the 5 fields within that newly created original and pass that back to the
DB.

3. Create specialized LightVO's that are only the field groupings that will
be changed for that submit Action (and send the LightVO's back to the DB
as-is with the changes from the form).

With #1 I mentioned some concerns with maintanence but some good options
came up on how to work around those. #3 seems the best approach for an
environment that will be setup and not likely to change and the 'end result'
for a good system (aka after there are NO more changes, and we know how
often that is).

But for my scenario/environment, of the options presented it seems #2 is the
best combination for low-maintanence and flexibility to get started on a
project and then as things settle down and performance becomes a motivator
move to #3 (which is an easy migration path).

Does this seem to correctly identify all the options of using Value-Objects
with Struts?

-D


-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 3:31 PM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


Maybe make what we call a displayBean in our app.  It is not a VO as we view
VO's to be more domain oriented.  It's just for the front end.  In your
action create the display bean and set it on the form.   Then in your action
have logic to take values from displayBean and set them in the VO.   We
don't want our API to get crowded with view oriented objects so the
displayBean is kept in the same package as the actions.  VO's are more
domain oriented and can go into API package.

-jm

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 2:20 PM
To: Struts Users Mailing List
Subject: RE: newbie: Best Practice Struts/Value-Objects?


Hi John,
Yeah, that is one (messy) solution to my problem. My concern is I would have
to do add those 15 fields in every JSP page that sends the VO back, and if I
have to make a change to the DB/VO, then go back over every JSP page again
to make more changes.

I'm trying to get to as low-maintanence as possible initially, even if it
means sacrificing some performance by not using light-value-objects in the
beginning.  Can always make it faster after it is working correctly, right?
;-)

I'm still lost as to how to handle Struts with Value Objects though
-D

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 12:16 PM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


you could use hidden variables on your jsp page to store the VO attributes
you are not changing and keep your VO intact only changing the 5 fields

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 11:05 AM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


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

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

HTH,
Brian

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

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

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

RE: Struts Design Issue - Search Functionality - Best Practices

2003-09-26 Thread Paul McCulloch
My aproach is as follows:

Each form bean property which can be searched is a descendant of
SearchableProperty. A SearchableProperty consists of:

*A String value representing the user's input
*The selected business entity (if the user has selected one)
*An object descended from Lookup, which implements the associated search
functionality

I have a base form  dispatch action. 

The base action contains methods which are called to show the search screen;
do a search ;use a searched value etc.

The base form contains hidden fields, populated via javascript, which tell
the dispatch action which property the search function is being invoked for,
and other 'paramaters' such as the id of a selected record.

The view of my application uses the struts nested tags, and JSP includes to
provide reuseable components to render a SearchableProperty and it's
associated search view. The search view is part of the same page - the app
only ever uses one browser window, with no frames.

The upside of this approach is that I can place, with little effort,
sophisticated searching functions anywhere is the app. Due to the inclusion
of the user selected business entity behind the scenes, my view can display
any properties of the selected entity, without a change to the form bean.

The downside of this is that the form bean must be stored in session scope.
I have done a bit of load testing and it didn't seem to be a problem, but I
didn't have much to compare with - this is my first Struts app.

So, that's the approach I use. I've no idea how that compares to the best
practices out there, nut I'm eager to find out!

Paul

-Original Message-
From: Chawla, Yogesh [mailto:[EMAIL PROTECTED]
Sent: 26 September 2003 08:19
To: 'Struts Users Mailing List'
Subject: Struts Design Issue - Search Functionality - Best Practices
Importance: High


Hi,

Design Requirement - Show a list of Search records. The screen will have
buttons for Previous/Next Month. On clicking these records would be shown.

Issues - 

a) How to store data and best practices to be followed in Struts. Return
back a Collection of Form Beans and iterate over these. However certain
other fields are required to be stored also which are not displayable. i.e.
Current Date which is a hidden parameter. Any comments ?

b) Use a single Form Bean which has variables like String[] to store the
array of Displayable Fields. However, this seems to be a less than perfect
solution. Any comments ???

c) Use Generic Search - Search on different modules, with different fields ?
Any Brilliant Guru contributions for this one..Sure need some wizard out
here...

Pls. advise on the best approach for the Search functionality. We need to
design an application which has Search on each and every page.

Thanks for your time ,

Regards,

Yogesh
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. 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: bean:write Not Working With Tiles

2003-09-19 Thread Paul McCulloch
Looks like you haven't declared the bean taglib in the page!

Paul

-Original Message-
From: Alex Araujo [mailto:[EMAIL PROTECTED]
Sent: 19 September 2003 15:55
To: [EMAIL PROTECTED]
Subject: bean:write Not Working With Tiles


I'm migrating a struts/jsp app to tiles and I'm having a hard time figuring
out why my bean:write tags are no longer working.  Before, I used a
body.jsp page that included a header.jsp and a footer.jsp page, both
containing working bean:write tags.  Now I have a layout.jsp page that has

tiles:insert attribute=header
 tiles:put name=titletiles:getAsString name=title
ignore=true//tiles:put
 tiles:put name=sectiontiles:getAsString name=section
ignore=true//tiles:put
/tiles:insert
tiles:insert attribute=body
tiles:insert attribute=footer

The content in both the header and footer jsp files has not changed and to
further perplex me, there are logic:present tags around my bean:write
tags that reference the same bean and are working (i.e. the logic:present
tags are evaluating properly and disappear in the final html but the
bean:write tags are being displayed as actual code).  For example, the
following:

logic:present name=user_objectsome htmlbean:write name=user_object
property=emailsome html/logic:present

outputs:

some htmlbean:write name=user_object property=emailsome html

when the logic tags evaluate correctly.  Can anyone shed some light on how I
should be doing this?

-
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:write property= Format a Date ?

2003-09-17 Thread Paul McCulloch
An easy way is to use JSTL's fmt:formatDate tag.

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 17 September 2003 13:31
To: Struts-User
Subject: bean:write property= Format a Date ?


one of my Bean propertys is a Date and i want to output it formated,
is there a way to do that with struts ?


Mit freundlichen Grüßen

Christian Reps, Dipl. Inf. (FH)
Web Applications


-
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:write with a not simple property

2003-09-16 Thread Paul McCulloch
It's easier than you think:

bean:write name=currentLoopUser property=address.street/

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 September 2003 12:38
To: Struts-User
Subject: bean:write  with a not simple property


hello,

i use logic:iterate to output some userdata.
i have a little problem now.

one of the properties is not a simple datatype like string or int, its a new
class with 2 attributes.
in my list i want to output one of this attributes, but how can i do that ?

bean:write name=currentLoopUser property=address.getStreet()/
this is wrong of course, just want to show what i want to do.


Mit freundlichen Grüßen

Christian Reps, Dipl. Inf. (FH)
Web Applications


-
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 output value in text field?

2003-09-12 Thread Paul McCulloch
Why not set the default value on the form bean in an Action and let
html:text render it for you?

Paul

-Original Message-
From: Rick Col [mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 17:27
To: [EMAIL PROTECTED]
Subject: how to output value in text field?


Hi,

I am trying to output a default value in a textfield.
I did something like this:
html:text property=myValuebean:write
name=myValue//html:text

It should work, but it does not seem to work. What did
I do wrong?

regards,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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: Struts EL

2003-09-12 Thread Paul McCulloch
It's in the contrib directory of the struts distribution. I can't help you
much on using JSTL  struts-el together I'm afraid.

But, wouldn't html-el:text property=${bean.key} value=${bean.value}/
be a bit more ELish?

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 12 September 2003 15:11
To: Struts Users Mailing List
Subject: Struts EL


One, where do I get it?

Two, where do I get a bit more info on its use?  I know both struts and JSTL
but I am not sure how to integrate the tags...

for example if I want to run
c:forEach items=${myitems} var=bean

html-el:text property=bean.key value=bean.value/

/c:forEach

would that work?


**
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 the bean:message tag as a parameter for itself

2003-09-11 Thread Paul McCulloch
Using struts tags:

bean:define id=key2
bean:message key=something.else/
/bean:define

bean:message key=somthing arg0=%=key2% /

Using JSTL:

fmt:message key=somthing
fmt:param
fmt:message key=something.else /
/fmt:param
/fmt:message


Paul

-Original Message-
From: Mehdi EL AKARI [mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 09:02
To: [EMAIL PROTECTED]
Subject: Using the bean:message tag as a parameter for itself


Hello everybody,
I'm a new struts developper, and i need to do the following thing:
bean:message key=somthing arg0=bean:message key='something.else'
/ / 
but this does not work! 
Do yo have any suggestions please?
Thank you


**
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: client side sorting.

2003-09-11 Thread Paul McCulloch
If you can live with a server side solution then the display taglib does
this  much more.

Paul

-Original Message-
From: imran ali [mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 16:23
To: Struts Users Mailing List
Subject: client side sorting.


Hi All,

I have a struts page with a table of many rows. contents of rows 
comes from a collection of forms. I have to sort contents of table 
based on which column user is clicking. How can I acieve it using 
struts, java script etc.

Thanks  Regards
Imran.



Imran
___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp



-
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: i18n with struts / JSTL

2003-09-09 Thread Paul McCulloch
Bear in mind that there are bugs in the jstl code that aren't in the struts
equivalents:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16932

My approach has been to use the jstl tag and hope that the bug is fixed
before I have to release!

Paul

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: 09 September 2003 09:27
To: Struts Users Mailing List
Subject: Re: i18n with struts / JSTL


It's not necessarily a question of which is best, rather which has the 
biggest future. In this respect you should use the JSTL fmt: taglib.


Adam

On 09/09/2003 08:18 AM Siva wrote:
 Dear Friends,
 
 Could anyone suggests which is best among the
 
 Struts tags   and
 JSTL tags
 
 for I18n of struts based application.
 
 Thanks,
 Sivakumar
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


-
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: Combining struts and JSTL tags...

2003-09-08 Thread Paul McCulloch
This can happen if you have included the bean taglib twice. 

Is the page with which you get an error included via an %@ include
statement?

Paul

-Original Message-
From: Loren Hall [mailto:[EMAIL PROTECTED]
Sent: 06 September 2003 00:13
To: Struts Users Mailing List
Subject: RE: Combining struts and JSTL tags...


i haven't found a resolution to a problem previously posted under another
subject, since it fits this topic I thought
i'd put it out there again.

I started my app using struts tags, and recently incorporated jstl.

Unfortunately I get an error when I import both struts-bean.tld and c.tld

c.tld:   urihttp://java.sun.com/jstl/core/uri)
struts-bean.tld:
urihttp://jakarta.apache.org/struts/tags-bean-1.0.2/uri)

i.e. when these 2 taglib directives appear on a single .jsp

%@ taglib uri=/WEB-INF/c.tld prefix=c %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %

i get the following exception:  jsp.error.tlv.invalid.page

null: org.xml.sax.SAXParseException: Attribute xmlns:bean was already
specified for element jsp:root.



FULL ERROR MESSAGE
```

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

org.apache.jasper.JasperException:

jsp.error.tlv.invalid.page

null: org.xml.sax.SAXParseException: Attribute xmlns:bean was already
specified for element jsp:root.

at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:105)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430
)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:112
)
at
org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:661)
at
org.apache.jasper.compiler.Validator.validate(Validator.java:613)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:230)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne

RE: click on button--save data--go to another page?

2003-09-08 Thread Paul McCulloch
The action class that handles the saving of your data returns an
ActionForward - your execute() code determines what that forward is.

To go to sample2.jsp you want to end your execute() with:

return mapping.findForward(sample2);


Paul

-Original Message-
From: Rick Col [mailto:[EMAIL PROTECTED]
Sent: 08 September 2003 14:03
To: [EMAIL PROTECTED]
Subject: click on button--save data--go to another page?


Hi,

If I have a go button like this:

html:submitbean:message
key=button.go/html:submit

once I click on this button on sample1.jsp, I want to
save some data to
database, then go to another jsp page sample2.jsp. I
definne
an action class to handle data saving.

Thus, once user clicks on go button, user should be
directed to
the data saving action class first to save data, then
go to
sample.jsp page. In struts-config, I define mapping as
the following:

action path=/saveData.do
type=SaveDataAction
input=/sample.jsp
name=saveDataForm
..
forward
name=sample2
path=/sample2.jsp
/action

Will that work?

And I am not sure how I can make go button go to
action class first and save data, then go to
sample12.jsp?


regards, 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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: Display Taglib vs HtmlTable

2003-08-29 Thread Paul McCulloch
I have only tried the display taglib. I've found it to be powerful, easy to
use  easy to extend.

My requirements are such that I've had to use the un-released 'display09'
stream. But it does everything I need, seems stable, and the code is easy
enough, for a developer with only a few months of Java, to understand.

Paul

-Original Message-
From: thomas Sontheimer [mailto:[EMAIL PROTECTED]
Sent: 29 August 2003 09:17
To: 'Struts Users Mailing List'
Subject: Display Taglib vs HtmlTable


http://edhill.its.uiowa.edu/display/

http://htmltable.yuriy-zubarev.com/jsp/index.jsp

Has anyone tried these two taglibs?
which one do you recommend?

thomas


-
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: Remote Debugging facility

2003-08-29 Thread Paul McCulloch
I use this facility without a problem. My CATALINA_OPTS  Eclispse settings
are identical to yours.

How are you startimg Tomcat? The icon installed in the Start menu *does not*
use catalina.bat. 

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 29 August 2003 07:00
To: [EMAIL PROTECTED]
Subject: Remote Debugging facility


Has any one successfully used the Remote Debugging facility of ECLIPSE
with TOMCAT 4.0.X ? I tried using it but am getting a message that says
Failed to connect to remote VM, Connection refused. Below is how I setup
TOMCAT  ECLIPSE for debugging.

Added the below statement to CATALINA.bat
SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
and started TOMCAT.

On the ECLIPSE configuration for Remote debugging I gave
Host : localhost
Port : 8000
Connection Type : Standard (Socket Attach).

Is there anything that I am missing ?

Regards
Sreekant G




**
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: variable in tag

2003-08-29 Thread Paul McCulloch
That is exactly how you do it! If that isn't working then it may be beacuse
you are using the html-el taglib rather than the standard one.


Paul

-Original Message-
From: LUCERO,DENNIS (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]
Sent: 28 August 2003 22:23
To: ' ([EMAIL PROTECTED])'
Subject: variable in tag


Is there any way to do this:
 
html:button property = %=variable% blah/html:button
 
 
thanks
 
We come from the land of the ice and snow
With the midnight sun, where the hot springs glow
The hammer of the gods, will drive our ships to new lands
Fight the horde, Sing and cry
Valhalla I am coming
 


**
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: 2 Parameters

2003-08-29 Thread Paul McCulloch
You might have more luck on the list for that tag:
http://lists.sourceforge.net/lists/listinfo/displaytag-user

I use decorators to do this sort of thing.

Paul

-Original Message-
From: Mehta, Chirag (IT) [mailto:[EMAIL PROTECTED]
Sent: 29 August 2003 12:02
To: Struts Users Mailing List
Subject: 2 Parameters


Does anyone know if it possible to pass 2 parameters using the display
tag?

Current code:

display:column property=sqltitle title=SQL Name
href=GIM2Results.do paramId=sqltitle paramProperty=sqltitle/

Produces link:
http://localhost:8080/wact/pages/GIM2Results.do?testsqlscript=select
http://localhost:8080/wact/pages/GIM2Results.do?testsqlscript=select
corp,lname,sname from corporat order by lname 
for example but I want
 
http://localhost:8080/wact/pages/GIM2Results.do?testsqlscript=select
http://localhost:8080/wact/pages/GIM2Results.do?testsqlscript=select
corp,lname,sname from corporat order by lnamesqltitle=corpbroker
 
 
Anyone have any suggestions?
 
Chirag


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



  1   2   >