Re: Avis.com J2EE website

2005-08-10 Thread delbd
you can have nice multilingual calendar component using struts-layout :)

Le Mercredi 10 Août 2005 11:35, James Neville a écrit :
 Or even better:-
 
 http://www.dynarch.com/demos/jscalendar/
 
 Our users love this :)
 
 [EMAIL PROTECTED] wrote:
 
 These usually involve JavaScript. Here's a link:
 
 http://www.mattkruse.com/javascript/calendarpopup/
 
 Regards,
 Geeta
 
 
 
 
 C.F. Scheidecker Antunes [EMAIL PROTECTED] 
 08/09/2005 07:25 PM
 Please respond to
 Struts Users Mailing List user@struts.apache.org
 
 
 To
 Struts Users Mailing List user@struts.apache.org
 cc
 
 Subject
 {Spam?} Avis.com J2EE website
 
 
 
 
 
 
 Hello all,
 
 This is an interface question. www.avis.com is a J2EE/Struts website for 
 what I can tell.
 They have a nice feature to make a reservation which is the popup 
 calendar they have for
 the pick-up Date and Return Data. Would anyone know how could I have 
 this kind of interface
 for a user to select a date rather then using the drop down menus for 
 Month and Day?
 
 Thanks,
 
 C.F.
 
 -
 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]
 
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Composite datatypes - dynaform, is it faisaible?

2005-07-29 Thread delbd
Hello,

I am wondering if it is possible to adress this problem using struts:

Form must show/edit datas (this is quite simple :p)

Some datas are read-only, other are read-write. (ok, not too difficult)
The datas to show/edit are different based upon an id given to the action 
(Thinking about a dynaform to realize this)
The data types are Strings, Date, Numerics, choice lists, but also arbitrary 
types, assuming i create some kind of
editor class which will reduce this complex type to a set of basic types (This 
is the tricky part)

Any idea of what i should look at to adress this?


Btw, have a nice w-e eveyrone!

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: [OT] Re: Unacceptable Behaviour of Mark Galbreath

2005-07-01 Thread delbd
Since when does opera support SOAP protocol?

Le Jeudi 30 Juin 2005 21:21, Brandon Goodin a écrit :
 I love this drama. It's like watching a soap opera. *urmph* Did i just
 admit that i like soap operas? And just think, our favorite troll is
 savoring every moment of this :D.
 
 Brandon
 
 On 6/30/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Sheesh man, I'm not calling for a ban on anyone, but give Niall a break. 
  Niall is one of the most helpful people I've ever met online. Mark comes in 
  here and says Struts is dead and calls everyone faggots, etc., ad 
  nauseum. He might behave that way on many lists, but all of us who don't 
  know him don't know that, and we're not used to it. It doesn't bother me 
  what people say in general, but if it bothers Niall, and Joe, then suddenly 
  it bothers me too. These guys work too hard -- for us (at least partially 
  for us). This list is supposed to be about volunteering -- providing 
  support for Struts. If I was a new user and I walked into this list 
  yesterday, I'd be saying to myself, how can Struts really be any good (or 
  worth it) if this is what it's like to hang out in the community? The 
  committers don't deserve that. It's just a matter of showing respect for 
  others. I wouldn't come into your house and purposely grind mud into your 
  carpet. This is not the Internet at-large, this is the Apache Struts-user 
  list.
  
  Independent thought and trolling aren't the same in my opinion. I'm still 
  not for a ban on anyone, but if the committers (who do all the work) are 
  bothered, whose side are you on? How sucky would this list *really* be if 
  those guys (and all the other guys and gals who volunteer help every day) 
  went away, and left us with nothing but a mail version of IRC?
  
  Erik
  
  
  -Original Message-
  From: Larry Meadors [EMAIL PROTECTED]
  Sent: Jun 30, 2005 12:33 PM
  To: Struts Users Mailing List user@struts.apache.org,
  Brandon Goodin [EMAIL PROTECTED]
  Subject: Re: Unacceptable Behaviour of Mark Galbreath @ 
  elections.state.md.us
  
  Well, IMO, the funny part of them is that 50% are accurate and valid.
  
  So, do we now ban people whose opinions do not match ours because they
  are disruptive?
  
  Great way to build up the community Niall - ban independent thought.
  
  Larry
  
  
  On 6/30/05, Brandon Goodin [EMAIL PROTECTED] wrote:
   i find this thread massively humorous. Can someone collect more of
   marks quotes. I was crying with laughter while i read them :)
  
   Brandon
  
   On 6/30/05, Mark Galbreath [EMAIL PROTECTED] wrote:
Carlos, this sounds like a threat.  That is REALLY intolerable, u 
obtuse little shmuck.
   
On Wed, Jun 29, 2005 at 08:50:47PM -0700, Carlos Duque wrote:
} Actually, I wonder just how happy the State of Maryland would be know 
the
} amount of time this fellow expends pontificating on topics far removed
} from any work for the Department of Elections.
   
   
   
   
   

This email and any file transmitted with it may be confidential and is 
intended solely for the use of the individual or entity to whom it is 
addressed.  If you received this email in error please notify the DBM 
Service Desk by forwarding this message to [EMAIL PROTECTED]
   
   
This email has been scanned by networkMaryland Antivirus Service for 
the presence of computer viruses.
   
   
-
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]
  
  S
  
  -
  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]
 
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?


Re: [OT] Off topic threads

2005-06-30 Thread delbd
You know what?
I was presuaded it's Friday today. Still one more day of work before week-end 
:'(

Le Jeudi 30 Juin 2005 15:43, Marsh-Bourdon, Christopher a écrit :
 I know this would stifle the debate, but can we just stop the very
 off-topic debates on:
 
 My IDE vs. Your Text Editor
 Struts vs. Anything else (especially Microsoft) 
 
 It's not Friday and it only encourages the trolls.
 
 It really doesn't have a place here.  I personally do attempt (however
 poorly) to answer questions on Struts.  I for one will remove myself for the
 list if I have to sift through this drivel for another day.
 
 Cheers
 
 Christopher Marsh-Bourdon
 www.marsh-bourdon.com
 
 
 
 The information contained herein is confidential and is intended solely for 
 the
 addressee. Access by any other party is unauthorised without the express
 written permission of the sender. If you are not the intended recipient, 
 please
 contact the sender either via the company switchboard on +44 (0)20 7623 8000, 
 or
 via e-mail return. If you have received this e-mail in error or wish to read 
 our
 e-mail disclaimer statement and monitoring policy, please refer to 
 http://www.drkw.com/disc/email/ or contact the sender. 3167
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: Use UTF-8 encoded proerties file

2005-06-27 Thread delbd
Couldn't you include native2ascii as part of the compilation process?
This way you always edit UTF-8 files but they are converted when 
you build your application.
Le Lundi 27 Juin 2005 15:11, Antony Paul a écrit :
 On 6/27/05, Paul Moody [EMAIL PROTECTED] wrote:
  This looks like the same problem discussed in the
  native2ascii thread. I will copy in my input below,
  you can search on the mailing list site for the
  complete list of messages for this thread:
  
  **
  
  Re: native2ascii
  
  Paul Moody
  Fri, 24 Jun 2005 02:43:30 -0700
  
  Below is my understanding of the solution. It is a bit
  annoying that property files can not be UTF-8 encoded
  but that seems to be the case. Anyway, here is what I
  have done and it seems to work...
  
   - you should store your Turkish strings in a text
  file with UTF-8 format (you can open the file in
  notepad and when saving choose the UTF-8 format).
  
   - you run the native2ascii to convert the UTF-8
  strings into the required format with the strange
  looking things like \ufffd (or whatever). Don't worry,
  this is what is needed for the property files used by
  struts.
  
   - your JSPs should have a directive telling your
  browser that they are in UTF-8 format. Near the top of
  every JSP we have %@ page
  contentType=text/html;charset=UTF-8
  pageEncoding=UTF-8 language=java %
  
  Hopefully this should work. Good luck.
  
  **
  
 
 Thanks for the reply. I dont want to use native2ascii tool. I want to
 read properties file in Arabic so that it is easy to edit. When I
 looked at API for java.io.InputStreamReader, there is an option to
 pass the encoding but I cant find a similar mechanism with subclasses
 of InputStream.
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: Use UTF-8 encoded proerties file

2005-06-27 Thread delbd
Quote from sun java doc of java.util.Properties:

'When saving properties to a stream or loading them from a stream, the ISO 
8859-1 character encoding is used. 
For characters that cannot be directly represented in this encoding, Unicode 
escapes are used; 
however, only a single 'u' character is allowed in an escape sequence.
The native2ascii tool can be used to convert property files to and from other 
character encodings.'


Le Lundi 27 Juin 2005 15:20, Antony Paul a écrit :
 On 6/27/05, Jana Parvanova [EMAIL PROTECTED] wrote:
  Readers deal with character data - while streams do not. Which is to say
  that encoding (which is interpreting bytes) is not applicable to streams.
 
 Then what the hell InputStream has to do with properties file ?. Do
 people store properties file as in binary file ?.
 
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: BeanUtils.populate error

2005-06-15 Thread delbd
You most probably have the wrong setter parameters for one or several of your 
from's properties.
like have you have a setDate(Date date) instead of setDate(String date)
The only allowed signatures, if am not wrong are setXXX(String) and 
setXXX(FormFile)

Le Mercredi 15 Juin 2005 15:07, Jan Ziniewicz a crit :
 I get this error when I click on a buttons in my forms. Some buttons work,
 some don't and I don't know where is the error. Any suggestions?

 I can give you more detailed information but i guess that it is quite
 typical error.


 javax.servlet.ServletException: BeanUtils.populate
   org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
   
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor
.java:805)
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203
) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
 com.newitech.struts.controller.AccessController.process(AccessController.ja
va:261)
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 com.newitech.struts.controller.AccessController.doPost(AccessController.jav
a:254) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   com.newitech.struts.filter.LoginFilter.doFilter(LoginFilter.java:62)
   
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.
java:75)

 root cause

 java.lang.IllegalArgumentException: argument type mismatch
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:25) java.lang.reflect.Method.invoke(Method.java:585)
   
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils
.java:1789)
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.
java:1684)
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1
713) org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.
java:805)
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203
) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
 com.newitech.struts.controller.AccessController.process(AccessController.ja
va:261)
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 com.newitech.struts.controller.AccessController.doPost(AccessController.jav
a:254) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   com.newitech.struts.filter.LoginFilter.doFilter(LoginFilter.java:62)
   
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.
java:75)

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: Confused

2005-06-14 Thread delbd
I could add, use EJBs only if you really can't do without them :D
Things like Hibernate are more flexible an easy to use than EJB 2.0 and i 
heard the EJB 3.0 specs will be very similar to what current ORMapping like 
Hibernate does! 

Le Mardi 14 Juin 2005 10:08, Daniel Perry a écrit :
 No,
 J2EE is a NOT EJBS!
 J2EE is a collection of technologies, including servlets, jsp, EJBs, etc.

 Tomcat hosts various parts of J2EE - servlets, jsps, etc, but it is not a
 full J2EE container - it doesnt host EJBs. But you can use servlets, JSP
 and taglibs without using EJBs. I do. I've never used an EJB.

 Daniel.

  -Original Message-
  From: Pierre Thibault [mailto:[EMAIL PROTECTED]
  Sent: 14 June 2005 04:51
  To: Struts Users Mailing List
  Subject: Re: Confused
 
 
  Yes, I want to use Beans.
 
  Do you mean that I can use servlets, JSP and taglibs without J2EE?
 
  Le 13 juin 2005 à 16:42, Dave Newton a écrit :
   Pierre Thibault wrote:
   There are talking about Tomcat but not about JBoss. I'll continue
   with JBoss because I want to access J2EE.
  
   I think you might be confused about what J2EE is. If you need
   EJBs, then yeah, JBoss would be one way to go. If you don't,
   there's a lot of other parts of J2EE, like servlets, JSP, taglibs,
   etc..
  
   Dave

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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: [fully-OT] File replication between webapps

2005-06-13 Thread delbd
Just my two cents

I'll suggest storing the datas on a central database (which could be clustered 
amongst your servers)


Le Lundi 13 Juin 2005 14:06, Nicolas De Loof a écrit :
 Hi all,

 this mail is totaly of topic, so sory sory sory...
 ... but there is so much java masters on this list !

 I have to replicate some datas between two servers running my app (with
 a load balancer, but not using a cluster mode). We are going to build a
 home-made solution, and I wonder if any open-source tool could help me
 on this.
 I'm looking for something like a 2 phase commit or rsync Java lib,
 that could be used to assert an update on one server will be
 automagically replicated on the other one.

 Thanks.

 Nico.

 This message contains information that may be privileged or confidential
 and is the property of the Capgemini Group. It is intended only for the
 person to whom it is addressed. If you are not the intended recipient,  you
 are not authorized to read, print, retain, copy, disseminate,  distribute,
 or use this message or any part thereof. If you receive this  message in
 error, please notify the sender immediately and delete all  copies of this
 message.


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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: [fully-OT] File replication between webapps

2005-06-13 Thread delbd
Le Lundi 13 Juin 2005 14:27, Nicolas De Loof a écrit :
 Our customer defines architecture restriction for it's applications. One
 of them is that the (only) usable database is Oracle. As we don't use a
 database for the app, adding orcale only to get DB replication may be
 difficult to explain (and will add a significant cost)

Sure it does :)
If oracle is only 'clustered' database possible but other non lcustered ones 
are available, maybe C-JDBC could help you (it provide RAID like ontop of any 
database).

If not, maybe the transactional Collections in 
http://jakarta.apache.org/commons/transaction/ may be of interrest (they 
supports 2 phases commits using XAressources if am not wrong)


 delbd a écrit :
 Just my two cents
 
 I'll suggest storing the datas on a central database (which could be
  clustered amongst your servers)
 
 Le Lundi 13 Juin 2005 14:06, Nicolas De Loof a écrit :
 Hi all,
 
 this mail is totaly of topic, so sory sory sory...
 ... but there is so much java masters on this list !
 
 I have to replicate some datas between two servers running my app (with
 a load balancer, but not using a cluster mode). We are going to build a
 home-made solution, and I wonder if any open-source tool could help me
 on this.
 I'm looking for something like a 2 phase commit or rsync Java lib,
 that could be used to assert an update on one server will be
 automagically replicated on the other one.
 
 Thanks.
 
 Nico.
 
 This message contains information that may be privileged or confidential
 and is the property of the Capgemini Group. It is intended only for the
 person to whom it is addressed. If you are not the intended recipient, 
  you are not authorized to read, print, retain, copy, disseminate, 
  distribute, or use this message or any part thereof. If you receive this
   message in error, please notify the sender immediately and delete all 
  copies of this message.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 This message contains information that may be privileged or confidential
 and is the property of the Capgemini Group. It is intended only for the
 person to whom it is addressed. If you are not the intended recipient,  you
 are not authorized to read, print, retain, copy, disseminate,  distribute,
 or use this message or any part thereof. If you receive this  message in
 error, please notify the sender immediately and delete all  copies of this
 message.


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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: Howto put current users into the application context?

2005-06-08 Thread delbd
Le Mercredi 8 Juin 2005 15:44, Nils Liebelt a écrit :
 Hi all,

 I want to show list of currently logged in users. Now in my idea this is
 something which should belong into application context. Putting it in there
 Is not too difficult. I do it in my extended ActionServlet. But how do I
 get it outta there? What listeners do I use in order to get notified when a
 session var unbinds also nowing where to find ApplicationContext Map?


put an object implementing HttpSessionBindingListener in the sessions 
attributes to get notified when session invalidates or times out.


 GreetZ

 Nils


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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Dispatch action and validation, howto?

2005-06-06 Thread delbd
Hello, i have a form using a dispatch action, amongst the actions in the 
DispatchAction is the add of new fields to the form. I need some of those 
dispatch action to be validated. But some actions need to take place whever 
the form is valid or not (eg adding field to the form should add the fields 
whether or not the users has finished his work).
If validation occurs and the form is invalid, the action to add fields never 
occurs.

Any suggestion on how to deactivate validation based on the action choosen? I 
thought about setting this in the form validate methode (if (dispatch.equals 
(blabal)) no error), but this mean i need to put some dispatch logic in the 
form. 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



HOWTO: multiple values field.

2005-05-31 Thread delbd
Hello, 
in a form user is allowed to enter multiple values for a field foo. There can 
be an unlimited number of those entries. I saw there is the possibility to do 
this:
logic:iterate property=fooArray id=foo
html:text property=foo indexed=true/
/logic:iterate
which should create an entry for each foo value in the form, using 
public String getFoo(int index)
public void setFoo(int index, String value);

I'd like to know if there is a recommanded way to do the following:
- have a minimum of 5 entries visible (even if empty)
- have something like a 'add 5 more entries' button (wich will simply grow 
fooArray with nulls)
- getRid of the getFooArray() property (and have iterate do something like 
for(index=0;ibean.getFooSize();i++) )


Also, what should be the prefered way to handle multiple rows of the entries 
(bar and baz)?
- should getFoo(index) return a FooBean having properties bar and baz and then 
do
logic:iterate property=fooArray id=dumb
html:text property=foo.bar indexed=true/
html:text property=foo.baz indexed=true/
/logic:iterate
- or should i create a getFooBar(index) and getFooBaz(index) on my form and do 
this:
logic:iterate property=fooArray id=dumb
html:text property=fooBar indexed=true/
html:text property=fooBaz indexed=true/
/logic:iterate

Thanks for helping.
-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: HOWTO: multiple values field | please don't mix threads

2005-05-31 Thread delbd
Please don't use a replay to another mail as the basis of your questions. This 
mixes the mail Threads and make it more difficult to manage!

Well this all doesn't answer my original question on multivalue fields, still 
pending ^_^

Le Mardi 31 Mai 2005 10:48, [EMAIL PROTECTED] a écrit :
 onclick and ondblclick events on a html:hidden tag are provided ? What
 are its uses if at all?

 Amitava Basak
 Tata Consultancy Services Limited


 Notice: The information contained in this e-mail message and/or attachments
 to it may contain confidential or privileged information.   If you are not
 the intended recipient, any dissemination, use, review, distribution,
 printing or copying of the information contained in this e-mail message
 and/or attachments to it are strictly prohibited.   If you have received
 this communication in error, please notify us by reply e-mail or telephone
 and immediately and permanently delete the message and any attachments. 
 Thank you

-- 
David Delbecq
Royal Meteorological Institute of Belgium

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



Re: request.getCharacterEncoding always return null ?

2005-05-24 Thread delbd
There is a similar problem with encoding defaulting to ISO-8859 what ever the 
browser did send as encoding. This is because the servlet container is unable 
to interpret the multi-part encoding a solution is to use a constant 
enconding in your forms (using the acceptEncoding parameter) and always 
assume this is what browser will use. :/

Le Mardi 24 Mai 2005 09:33, Lixin Chu a écrit :
 Hi,
 I always get null from request.getChaaracterEncoding(), do not know why.

 I am using Tomcat 5.5.7, Struts 1.1. Tested IE 6.0 and FireFox. Which
 ever encoding I select in browser, my servlet always reprots as null
 from the above call.

 thanks for any info!
 li xin

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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: [FRIDAY] Re: [POLL] What do you use action forms for?

2005-05-13 Thread delbd
Why would you want to trade our beautiful java world acronyms for other ones 
like MP3, OGG, WMA, RIAA, MPAA or SABAM (in belgium)

Ok 2 more hours then it's the really interesting part of the friday: traffic 
to get back home from the capital when trains are in strike. Cheers.

Le Vendredi 13 Mai 2005 13:27, Ted Husted a écrit :
 On 5/13/05, Leon Rosenberg [EMAIL PROTECTED] wrote:
  It would also be cool if you could give a short comparison to common
  design methods, like OOD/COD with AOA, SOA and MDA.
 
 :) Oooh ... acronyms!  :)
 :
 :) That rock band idea is sounding better and better ... :)

 -Ted.

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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

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



Re: seeking advice on authorization and authentication

2005-04-26 Thread delbd
Here we have application using struts and giving priviledges to some users or 
some roles. We rely on container security to handle login. We simply put a 
link to /jsp/admin which redirects to the / and, in web.xml, we ask for 
everything under /jsp/admin to require authentification. This way 
request.getUserPrincipal() does now and for as long as session goes contains 
the authentified user. This has the advantage of being easy to put in place. 
I like to think 'As long as the container can do the job for you, let the 
container do it, it's faster to code' :)

Regards,
-- 
David Delbecq
Royal Meteorological Institute of Belgium

Le Lundi 25 Avril 2005 20:21, Dave Newton a écrit :
 Scott Purcell wrote:
 I am creating a shopping-cart type application using struts and have a
  question. The site itself does not have any authentication on it, as
  people just browse and add stuff to the cart.
 
 But the site does require some data manipulation into the database. Upon
  thinking about this, I would like to be able to have certain users
  click a administration link and be able to administer some product
  details, quantities, colors, etc.
 
 I am trying to lay out a way to achieve this, and be secure at the same
  time. I had thought about using the web-server authentication mechanism,
  or form-based, and got confused. Most sites I have done use form-based,
  where we pull out name, password from database, but I also believe some
  may use the containers authentication scheme.
 
 Can anyone give me some advice, pros-cons, examples, links of how to move
  foward with this.

 There were a few recent threads about the pros and cons of writing a
 custom request processor vs. filters vs. a combination of the two vs.
 container-managed etc; the archive might be of high value.

 My own take on it is that if everything is done in Struts I like the
 custom request processor coupled with a filter to make sure the
 appropriate objects are always in session, but I already had fairly
 general-purpose filters in place.

 If not everything on the site is in Struts then a filter approach might
 work better, if it's all Struts then you could (should?) do it all in a
 request processor: this allows very easy declarative role-based security
 in the struts config file. One possible caveat is that the struts tags
 that take role parameters do not know anything about a custom role
 processor (is that still true???) so if you want role-based
 content-level decision making you might need to write your own tags,
 customize existing tags, etc.

 But check out the recent threads to get more input.

 Dave




 -
 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: MessageTag set specific Local

2005-04-26 Thread delbd
You can also change the locale by mapping 
org.apache.struts.actions.LocaleAction to locale.do in your struts-config.xml, 
using a dynaform.
The user can then switch language using somthing like 
locale.do?language=frcountry=bepage=/jsps/myjsptogoto.jsp

country and page are optional arguments.

regards,
-- 
David Delbecq
Royal Meteorological Institute of Belgium
Le Lundi 25 Avril 2005 22:25, Marcel Stör a écrit :
 vinod perla mailto:[EMAIL PROTECTED] wrote:
  vinod wrote:
  u can set to a specific Locale in the Action Class by
  calling the method setLocale(HttpServletRequest
  request,java.util.Locale locale).The default scope of this is session.

 So, what you're saying is, that one cannot set the specific Locale in the
 JSP where the tag is employed?

 Regards,
 Marcel


 -
 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: content management tool

2005-04-19 Thread delbd
Slide jakarta project does provide a struts based taglib to access content 
management :/

Le Lundi 18 Avril 2005 23:52, sudip shrestha a écrit :
 Just curious if there are any struts based content managment tools out
 there!

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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

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



Re: [HELP] html:text encodes special characters automatically?

2005-04-15 Thread delbd
I assume you mean you input japanese character but the form bean gets a messed 
result. If you have a multi-part/formdata encoding for form (used for file 
uploads) keep in ming there are problem detecting at the character encoding 
used by submitter. Browser is supposed to send the data in the same encoding 
as web page, but fileupload utility  seems to be unable to catch the encoding 
used by web browser and the form validation bean get datas as if entered 
using iso-8859-1 (which is problematic when the web browser did in fact send 
an utf-8 stream).

To soluce this, we always put this in multi part forms:
html:form action=/someAction.do enctype=multipart/form-data 
acceptCharset=ISO-8859-1

This way we are sure the encoding used by borwser is the same as the one 
fileupload tool defaults to.

Le Vendredi 15 Avril 2005 07:19, Pham Anh Tuan a crit :
 Hi all,

 I got a problem, again :)

 when I input special characters like japanese or vietnamese character into
 html:text, html:text automatically encodes that characters Decimal NCRs
 before mapping to bean property.

 Example 1:
 meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 or
 meta http-equiv=Content-Type content=text/html; charset=utf-8 ...
 html:text property=myPro/
 I input japanese characters: 
 Before it is mapped to bean property myPro: #12431;#12383;#12375;

 Example 2:
 meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 or
 meta http-equiv=Content-Type content=text/html; charset=utf-8 ...
 html:text property=myPro/
 I input vietnamese characters: Ti Qua
 Before it is mapped to bean property myPro: T?i Qua;

 So, I wonder that does html:text encodes special character automatically
 when it find some character like japanese or vietnamese?

 plz help me!

 Pham

-- 
David Delbecq
Royal Meteorological Institute of Belgium

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



Re: [HELP] bean:write tag can not write Japanese or Vietnamese

2005-04-13 Thread delbd
How about using the java capabilities to store unicode string and just let the 
bean:write do the necessarry convertion to html form?

String myStr= \u308f\u305f\u3057;
bean:write name=myStr/

see
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#44591
for details on unicode characters in source code.

-- 
David Delbecq
Royal Meteorological Institute of Belgium
Le Mercredi 13 Avril 2005 14:49, Jeff Beal a crit :
 The bean:write/ tag, by default, escapes any HTML special
 characters, like the '' in your case.  This can be an important
 security consideration to prevent malicious users of your site from
 injecting HTML markup into your website.  To override this behavior,
 set filter=false:

  bean:write filter=false name=myStr/

 On 4/13/05, Pham Anh Tuan [EMAIL PROTECTED] wrote:
  Hi all,
 
  I got a problem when I write out data on jsp.
 
  I have a String = #12431;#12383;#12375
 
  which means  in Japanese
 
  I use bean:write name=myStr/
 
  it only shows #12431;#12383;#12375
 
  plz show me how to solve this problem.
 
  thanks.

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



Re: [HELP] What's wrong with my html:link syntax... :(

2005-03-16 Thread delbd
I thought, inside a jsp tag parameter (here the page parameter) the only  
substitutions allowed were in the following syntax:
${bean.property}
%= someExpression() %

and so to have your expected result you need to export the value of 
treetag:nodeId to a bean and then use that bean value in html:link

Am i wrong?

Le Mercredi 16 Mars 2005 09:42, Jan-Jaap Endenburg - Vera a écrit :
 Pham,

 To, it looks as if the quotes will not be interpreted correctly in the
 following part:

 html:link page=/student/getScore.jsp?id=treetag:nodeId
 node=tree.node/

 The text 'tree.node' will not be inside quotes, contrarely to what I
 understand below that you would want.
 Perhaps you should use single quotes for the outside quotes and double
 quotes for the inside (or vice versa).

 Jan-Jaap

 Pham Anh Tuan wrote:
  Hi all,
 
  I got a problem when I code like below:
 
  html:link page=/student/getScore.jsp?id=treetag:nodeId
  node=tree.node/Go/html:link
 
  I can not get value of treetag:nodeId node=tree.node/
 
  if my code is incorrect, plz help me solve it.
 
  thanks
 
  Bowl
 
 
  -
  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]



How to get the user locale from a jsp

2005-03-09 Thread delbd
Hello

How could i get the the user locale, as a page scoped bean, from struts.
I know there is a struts util class to get the user locale, but i would like 
to get it without resorting to the use of a scriptlet.

Is there a more elegant way of doing this?

I need pass the user selected language as a parameter to a flash.

Thanks.
-- 
David Delbecq
Royal Meteorological Institute of Belgium 

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



Re: How to get the user locale from a jsp

2005-03-09 Thread delbd
Unfortunately, this is the locale sent by browser only. Struts store the user 
locale in session under the key Globals.LOCALE_KEY. There is a util class 
which get this info from session and, if this is empty, return the browser 
locale. So it is possible to programmatically change the user locale.
Unless there is some magic filter in struts which alters the locale stored in 
the request object by copying the session locale into it, accessing ther 
request.getLocale() is of no help as end user can not change his locale by 
clicking on a link.

So what am asking is , is ther a way to use that util class of struts without 
resorting to the use of a scriptlet.

Le Mercredi 9 Mars 2005 11:44, Flemming G. Jensen a écrit :
 You get the local object from the request with the getLocale() method..

 --Flemming

 -Oprindelig meddelelse-
 From: delbd [EMAIL PROTECTED]
 Date: Wed,  9 Mar 2005 10:14:36 +0100
 To: user@struts.apache.org
 Subject: How to get the user locale from a jsp

  Hello
 
  How could i get the the user locale, as a page scoped bean, from struts.
  I know there is a struts util class to get the user locale, but i would
  like to get it without resorting to the use of a scriptlet.
 
  Is there a more elegant way of doing this?
 
  I need pass the user selected language as a parameter to a flash.
 
  Thanks.
  --
  David Delbecq
  Royal Meteorological Institute of Belgium
 
  -
  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]

-- 
David Delbecq
Royal Meteorological Institute of Belgium 

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



bean:write and property editor

2005-03-03 Thread delbd
Hello
On an error jsp page, i get from a bean a collection of messages send by the 
process which lead to the error. One of the informations is the Throwable 
which produced the error.

I want the jsp to show the stack trace. I tried to use

bean:write name=error property=throwable/

(which call error.getThrowable())
But all i get is the throwable message, not the stacktrace.
I saw bean:write uses the propertyeditor of the property to render it's 
output.

My question is, how can i register a propertyeditor for all Throwables so i 
can implement the getAsText() method?

Thanks for help.

-- 
David Delbecq
Royal Meteorological Institute of Belgium 

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



url rewriting fails with multipart/form-data

2005-02-28 Thread delbd
Hello,

Using struts and tomcat to handle a file upload form, i noticed the following 
problem. If the browsers doesn't accept cookies or tomcat does not yet use 
cookies with the involved session (ie we are at first page so tomcat is still 
probing the browser), tomcat is unable to read the jsessionid from the url of 
the multipart/form-data encoded POST. Method request.getUserPrincipal() 
returns null. This does not happens if cookies are used (browser accept 
cookies and tomcat has finished probing the browser) or if the form is a non 
multipart one.

Does anyone knows how to, either
- Have tomcat be able to extract jsessionid from url when it is a multipart 
POST
- Have tomcat use exclusively cookies (no url rewriting)

This is a big problem here as it prevent us to send emails with links to 
fileupload struts form where authentification is required.

Thanks for help if any

-- 
David Delbecq
Royal Meteorological Institute of Belgium 

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



actions, session and multipart problem

2005-02-25 Thread delbd
Hello
We have a system here chich send mails to user asking the  to do some actions 
on the system via some url

This is restricted area with container managed login using the auth-basic 
system.

When user click the link, browser strts and a popup ask the user for name 
password.

Problem:
login is ok, user see the form.

The struct action in the resulting form is
'/intranet/00/scpubSubmit.do;jsessionid=F1FF07FDBB567AB9CF5783CA56AB17CB'
(notice the jsessionid)
If user submit the form, in the struts action,
request.getUserPrincipal() is null

if user refresh the first page (after the login), the jsessionid disappear and 
then, there is a user principal()

Where does this problem come from?

Any idea? 
Thanks for help

-- 
David Delbecq
Royal Meteorological Institute of Belgium 

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



how to link to an url stored in actionform?

2005-02-23 Thread delbd
Hello,

I'm a bit lost with the way am supposed to create a link using informations 
stored in the actionform in a JSP page.

I looked at the html:link but it looks like you can only extract the part 
after the '?' from the actionForm.

I was thinking about simply using a classical jsp tags after setting my 
actionform as a jsp bean using bean:struts but it seems it maps a 
DynaActionBean representing the xml fragment of my struts-config.xml. That's 
not what i need.

So now am blocked. I have an class which extends ActionForm, this class has a 
getter and a setter for a property named 'url'. This ActionForm is prefilled 
with datas from an other action and i can't find how to get it back!
To be more precise, the url property contains something like 
'/files/section/myfile.pdf' and i need to create a link to 
'http://theserver/thewebapp/DAV/files/section/myfile.pdf'

Some help would be usefull, i can't find any doc on how to do it :)

Regards,
-- 
David Delbecq
Royal Meteorological Institute of Belgium 

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



Re: how to link to an url stored in actionform?

2005-02-23 Thread delbd
The URL comes as a result of form filled by user A.

This is then stored in system.
Later, User B show the same form as user A in edit mode. 
An additionnal section appear showing the link to the ressource created by A. 
As those forms maps datas from a workflow it's quite cumbersome to put all 
those datas also as request attributes, not to mention i have to think about 
it for each action which leads to the same jsp.

I could do it using the request (i think so). But i'd really like to know how 
i am supposed to access my actionform in jsp. Can't find any doc on it. And 
bean:write request the name of the bean to use. It does not seems to default 
to the actionform. So the basic question is simply, where on hell is this 
actionform??


Le Mercredi 23 Février 2005 15:08, Jeff Beal a écrit :
 Is the URL entered by a user or does it come from the system?  If it
 comes from the system (as you seem to indicate), I wouldn't store it
 in the ActionForm at all.  Store it as a request attribute, then use
 standard methods (JSTL or bean:write/ or even a scriptlet if you're
 feeling rebellious) to write it out in your JSP page.

 -- Jeff

 On Wed, 23 Feb 2005 15:04:39 +0100, delbd [EMAIL PROTECTED] wrote:
  So now am blocked. I have an class which extends ActionForm, this class
  has a getter and a setter for a property named 'url'. This ActionForm is
  prefilled with datas from an other action and i can't find how to get it
  back!

-- 
David Delbecq
Royal Meteorological Institute of Belgium 

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