Digester bug, comments and enhancements

2001-03-14 Thread Pierre Métras
Hi, It seems that Bugzilla didn't swallowed the incidents I opened yesterday (I can't find them in Bugzilla queries), so I post them again in the list. [1] Digester enhancement. = I have set up a ObjectPushRule class that allows to have the digester use existing objects, instead

Re: Javascript + localized messages

2001-01-17 Thread Pierre Métras
Hi Denis, I'm using the i18n support in Struts in my applications, and am trying to localize my client-side Javascript validation messages using bean:message/. I've tried var msg='bean:message key="login.error.username"/'; alert(msg); and alert(bean:message

Re: Spaces in URL's

2001-01-11 Thread Pierre Métras
Hi James, I'm using Struts and I noticed a problem with my web application when I was running under Netscape 4.0. I was getting different results than if I ran under IE. It turns out that the reason is because my links have spaces in the parameter values: http://foo.com/app/foo.do?parm=I

Re: mapping.getInput() returns null

2001-01-09 Thread Pierre Métras
Hi George, Two months ago, when moving to 1.0, I was stroke by this one too... Extract from Craig's response: mapping.getInput() works OK if you have the "input" attribute set in the corresponding action tag in struts-config.xml So your strut-config.xml should be: action

Re: Baffled: classpath problem as usual?

2000-12-11 Thread Pierre Métras
. actionpath="/yourAction" actionClass="my.app.packages.TheActionClass" formAttribute="myForm" formClass="my.app.packages.TheActionForm" Pierre Métras

When locale negociation should occur?

2000-12-11 Thread Pierre Métras
iation has already occured, instead of ActionServlet? What do you think? Pierre Métras

Re: Proposed Solution to Non-Serializable MessageResources Class

2000-12-08 Thread Pierre Métras
Hi again, To temper my previous post. Yes, you can define org.apache.struts.MessageBundle to correct the serialization problem under some servlet containers. No, don't change the syntax of the message files. Pierre Métras

Re: Proposed Solution to Non-Serializable MessageResources Class

2000-12-08 Thread Pierre Métras
the configuration of the Struts application. But please, don't try to mix application configuration with application data... Pierre Métras I propose to load the messages from an XML file (so that you can declare the character set, and use an XML-based editor). For the Struts example app

Re: Question about localization

2000-12-01 Thread Pierre Métras
he locale, you template:insert / the corresponding localized page. This would allow a global framework for your application, but with various looks depending on the language selected by the user. Pierre Métras

Re: How to dynamically initialize form:select ?

2000-11-30 Thread Pierre Métras
shouldn't be concerned when you want initialization. If you're using version 0.5, bad luck! I did the move to 1.0 for that reason... Pierre Métras

Re: Preprocessing for a jsp

2000-11-30 Thread Pierre Métras
Hi Andre, It seems there's no problem with your configuration files. Could you post the top of your exception trace? Pierre Métras

Re: using tags within tag parameter field ?

2000-11-30 Thread Pierre Métras
ot;/ /tag:param /tag:mytag Else, you're stuck with ver.1 for now. Pierre Métras

Re: Moving from 0.5 to 1.0: an experience, and design comment

2000-11-29 Thread Pierre Métras
unused "action" parameter...). And Craig will have to rollback the CVS :,-( Am I alone to have fallen in that trap? Pierre Métras

Re: When Oh When Do We Validate?

2000-11-29 Thread Pierre Métras
Hi Craig, Pierre Métras wrote: As my design seems to be the *bad* one, I think I will have to change my code (explode my actions in struts-config.xml to create action /doSomethingInit and /doSomethingValid, and attach an "input" value only to /doSomethingValid, change all my

Re: Moving from 0.5 to 1.0: an experience, and design comment

2000-11-28 Thread Pierre Métras
version 1.1 to change my code. Pierre Métras

Re: logic:equal help ?!?

2000-11-24 Thread Pierre Métras
that it encountered a closing tag without opening... But take care that the comparison will try to check for String comparison, and not the boolean true... Pierre Métras - Original Message - From: Laufer, Michael To: 'Struts' Sent: Friday, November 24, 2000 6:41

Re: Difference between action.xml and struts-config.xml

2000-11-24 Thread Pierre Métras
/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param ... Pierre Métras - Original Message - From: "De Smet Koen&qu

Formless actions

2000-11-24 Thread Pierre Métras
re based on a request parameter, that's to say a big sequence of if-else. Subsidiary question: I have a menu option that is used to switch the language used for display, and then return to the calling feature. Can the menu know from which feature it is called, without having to add another parameter in the request? Is the Referer header available in that case? Any opinion welcome. Pierre Métras

Moving from 0.5 to 1.0: an experience

2000-11-23 Thread Pierre Métras
features when I was debugging a file. I have some work left to check that all features are running like before, but I think the most tedious part of the work is gone. Pierre Métras PS: I include my version of LinkTag.java to support JavaScript events, too. Though not HTML 4.0 conformant, I hope

Re: Re[2]: thought on design

2000-11-22 Thread Pierre Métras
y for now to render the error to the browser. What is missing is something like form:error name="fieldA" / that would display the associated error message on your form. You can try to write it and propose your code for 1.0 inclusion... Pierre Métras

Re: Some thoughts on / problems with Struts (mostly tag related)

2000-11-12 Thread Pierre Métras
Solutions have been suggested for the past months... Standard HTML attributes !! Matthias Pierre Métras

Re: Scripting variable from struts:message?

2000-11-10 Thread Pierre Métras
uot; / I don't think you can rely on a custom tag as recursion into attributes is not permitted. Pierre Métras - Original Message - From: "Vandana Gupta/Raleigh/IBM" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 10, 2000 4:08 PM Subject: Scripting variable from

Debug page

2000-11-09 Thread Pierre Métras
of the result when called as http://pluton:8080/myapp/test.do?action=Init Pierre Métras Struts Test page Requestorg.apache.tomcat.facade.HttpServletRequestFacade@44cbbe Authentication type null Character Encoding null Content Length -1 Content Type null

Re: The Struts question

2000-11-08 Thread Pierre Métras
it). But all this must be justified in the specifications for servlets containers... Pierre Métras - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 08, 2000 3:15 PM Subject: The Struts question Hi There: I get a question regarding for the struts

Problem with cookie

2000-11-08 Thread Pierre Métras
I add it and flush the response, then I should raise an IllegalStateException. Either I add it without commiting and then the response buffer (with all the headders?) is cleared before the forward. Pierre Métras

Re: Problem with cookie

2000-11-08 Thread Pierre Métras
an "IllegalArgumentException: can't find message associated to key: httpDate.pe" when I called request.getDateHeader(header). Pierre Métras - Original Message - From: "Craig R. McClanahan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 08, 2000

Can't obtain quote characters from struts message file

2000-11-01 Thread Pierre Métras
. And then it worked! I have "l'émission" on the displayed HTML page. Can someone explain this? Pierre Métras

Re: Exception in startup servlet?

2000-10-27 Thread Pierre Métras
s a US one. Morality of the story: ALWAYS use a ?xml version="1.0" encoding="ISO-8859-1"? header in ALL XML files! If some strange characters happens to get lost in the files, at least they will be digested by the parser... Pierre Métras - Original Message - From: &q

Re: Support for ComboBox

2000-10-21 Thread Pierre Métras
is to separate presentation (your combobox) from the data, so the need for an intermediate bean (the controller) to manage them. Pierre Métras