Re: FormFile getPath() ?

2006-10-02 Thread Laurent Duparchy
ard("anywhereyouwant"); } Laurent Duparchy wrote: Hi, My front-end program upload files and then forward the file path to another server side program that handle them. The problem is that I have to read the FormFile data and store it into another temp file. It would increase performances

FormFile getPath() ?

2006-09-29 Thread Laurent Duparchy
the Struts temp file. I can't see how. I understand that there is maybe no file at all, as a small size a file will be stored in memory, but is the maybe existing underlying FileItem avaiable in anyway ? Laurent ---

Re: scriptlet not evaluated inside tag

2006-08-30 Thread Laurent Duparchy
I found that onclick="this.value=${labelPrinterButton}" is working Leon Rosenberg wrote: hi, try: onclick="<%="this.value='"+labelPrinterButton+"'"%>'" regards Leon On 8/29/06, Laurent Duparchy <[EMAIL PROTECTED]> wrot

scriptlet not evaluated inside tag

2006-08-29 Thread Laurent Duparchy
Hi, I'm forced to use a scriptlet to insert a localized label into a tag. The code is this ; (Note : this code is changing a button display by an image, defined in the css file. ) onclick="this.value='<%=labelPrinterButton%>'" styleClass="buttonPrinter" title=

Re: taglib nested-el

2006-07-17 Thread Laurent Duparchy
once you see the code, I'm sure you'll figure it out. Don't ignore the BeanInfo class. That's important to make sure you can use the same JSP attribute names as in the base taglib. -Original Message- From: Laurent Duparchy [mailto:[EMAIL PROTECTED] Sent: Wednesday, J

Re: taglib nested-el

2006-07-12 Thread Laurent Duparchy
ava.sun.com/products/jsp/jstl/ -Original Message- From: Laurent Duparchy [mailto:[EMAIL PROTECTED] Sent: 12 July 2006 07:41 To: user@struts.apache.org Hi, (Sorry if you already get this message, I'm sure if it had been sent.) is there a taglib "nested-el" ? If not, what

taglib nested-el

2006-07-11 Thread Laurent Duparchy
Hi, (Sorry if you already get this message, I'm sure if it had been sent.) is there a taglib "nested-el" ? If not, what is the turnarround to evaluate an expression within a tag ? - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Is there any optimization possible in Struts?

2005-12-07 Thread Laurent Fallet
would fasten my application. Regards, Laurent -- *Laurent Fallet* Assistant Chef de projet [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> *Groupe MdB* 6 rue Van Gogh 93360 Neuilly Plaisance Tel. 01.56.49.01.71 | Fax 01.56.49.01.67 www.MdBinformatique.com <http://www.MdBin

Is there any optimization possible in Struts?

2005-12-07 Thread Laurent Fallet
Hello, I would like to know if there is any possibility of optimization in Struts. Is there a cache of page to increase performance? Or memory allocation? Anything to speed up the processing of pages? Thx, Laurent - To

Formatting numbers in form's fields

2005-11-29 Thread Laurent Fallet
and I would like to have it as "32.00" I'm using the type Float for the form field (not String). Is there a way to do that? Thanks, Laurent -- *Laurent Fallet* Assistant Chef de projet [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> *Groupe MdB* 6 rue Van Gogh 93360 Ne

Re: elements appearance

2005-10-28 Thread Laurent
Anna Krajewska wrote: > I have a problem with tag. I want to set a styleclass or some > style parameters for the button, but when I set styleClass="button" and > styleId=""something" (I did not manage to find what this attribute is for, > and there is no difference beetween situations when it's

Tag library not detected

2005-10-28 Thread Laurent
Hi, In my project I have a tag library. Its associated tld file is in the webapp/WEB-INF directory. This works fine on my (linux) server but in the Netbeans IDE (windows) the tags are never parsed. They stay as in the HTML served to the browser. The xmlns also stays in the HTML. There are no erro

Re: Encoding Problem ISO to UTF-8

2005-05-15 Thread Laurent
Leon Rosenberg wrote: > Thanx Laurent, > > This was the closest reply sofar :-) > > The problem is, that I can't really debug, I get data through a web-form and > > send it via xml to the payment provider. Maybe you could try this: in XML it is perfectly legal to e

Re: Encoding Problem ISO to UTF-8

2005-05-15 Thread Laurent
Leon Rosenberg wrote: > Hi, > > I have a small encoding problem, which drives me crazy... > > Our complete site is in ISO-8859-1 (which is java-default, as I understand > it). I mean, the charset of the page is ISO, and meta-tags in HTML are > telling the > browser that the page is ISO too. >

Taglibs without RTExpr

2005-04-29 Thread Laurent
Hi, I am using the Cache taglib from Jakarta Taglibs. On the documentation page: http://jakarta.apache.org/taglibs/doc/cache-doc/ there are examples of attributes having RTExpressions (one example is key="${user}.${verbosity}"), but the tld says none of the attributes can be RTExpressions (you ca

Re: Tiles Exception

2005-04-29 Thread Laurent
Nimish Chourey , Tidel Park - Chennai wrote: > Are you sure there is no way out ? I really feel , there might be some way > out . Hi, I use tiles and I personnaly have no problem getting the error messages. I use the NetBeans IDE. All my logs and 'normal' exceptions (that occur in Java classes) c

Re: [OT] DOM & JavaScript

2005-04-28 Thread Laurent
[EMAIL PROTECTED] wrote: > // Only add a row when changing the last row of the table > if ("s"+(rowWithData) == selectId) { > var row = table.insertRow(lastRowInTable); > var className = "rowNormal"; > > if (lastRowInTable % 2 == 0) { > className = "rowAlter

Re: Struts & UTF-8 (POST working, GET not)

2005-04-15 Thread Laurent
Hond4 wrote: > I have fllowing problem with my Struts app on Jboss. Here is my filter > String defaultEncode = "UTF-8"; > HttpServletRequest req = (HttpServletRequest) request; > HttpServletResponse res = (HttpServletResponse) response; > req.setCharacterEncoding(default

Where to store application settings

2005-03-25 Thread Laurent
Hi, I have a few settings in my webapp (address of the LDAP server, location of 2 or 3 files), which are in the source code at the moment. This makes it difficult to change them (and I have to recompile every time). Where is the best place to store these kinds of settings? I thought of using a Res

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Laurent
StÃphane Zuckerman wrote: > > 2Â) When I select "foo", then some javascript reloads the page (it does > a post) with the "foo" argument, and the rest of the JSP is loaded. This > is the way I'd like to take, since some informations mustn't be in the > clear uselessly. > > My problem is that I don

Re: ???

2005-02-11 Thread Laurent
Andrew Try something like... " If that doesn't work try this: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Constants for property names

2005-02-11 Thread Laurent
Daffin, Miles (Company IT) wrote: What do people feel about using constants for property names? In general I feel one should use constants for such things, but it is far from easy in a web app to do so. I can't really see the point. A property name is like a variable name, it will never be displ

Re: JSP produces invalid XML?

2005-02-09 Thread Laurent
Jeff Beal wrote: Laurent wrote: Of course, I can perfectly understand that in non-XML JSP mode there may be glitches in the way the XML is parsed. However, I don't believe it is acceptable to output something that isn't XML when you've explicitly demanded to have XML. (For e

Re: JSP produces invalid XML?

2005-02-09 Thread Laurent
'&amp;' will allow '&' to be written to the response, which the XML parser at the other end can then handle appropriately. -- Jeff Laurent wrote: I just realised the problem only occures when my JSP files have the ".jspx" file extension. Files whose names

Re: JSP produces invalid XML?

2005-02-09 Thread Laurent
I just realised the problem only occures when my JSP files have the ".jspx" file extension. Files whose names end in ".jsp" do not have this problem. However, my question remains... Thank you. Laurent wrote: Hi, There is something I do not understand with the way JSP o

JSP produces invalid XML?

2005-02-08 Thread Laurent
Hi, There is something I do not understand with the way JSP outputs XML: If in my source JSP file, I have something like this: a & b The XML parser should interpret this string as "a & b" and represent it internally as "a & b". However, when it ouputs that data to the XML file being sent back to

Re: ActionError / ActionMessage

2005-02-03 Thread Laurent
Tim Christopher wrote: Hi, Can anyone let me know when an ActionError should be used in place of an ActionMessage, or visa versa. It seems like the ActionMessage is preferred as it does not encourage markup to be placed within the resources file. Does this mean I should always use the ActionMessag

Conditionaly setting an element attribute

2005-02-03 Thread Laurent
Hi, I need to do something like this: ${colspan} loads more JSTL tags i.e. set the colspan attribute of the element only if colspan is not 1. This doesn't work as must be a direct subelement of (here there is in between). How should I do this? Thanks. ---

Re: and char encoding

2005-01-12 Thread Laurent
Nicolas De Loof wrote: Can someone explain me what's wrong in HTTP / servlet API about char encoding : I'm using to build a link with parameters, whose values use french chars ('Ã', 'Ã' ...) I need to set useLocaleEncoding to get values in my servlet (that is not a struts action) using getPara

Re: Implementing dependence between form properties

2004-10-26 Thread Laurent Duperval
Joe Hertz wrote: Something like this if youre using 1.2.x: test ((item1 != null) or (item2 != null) or (*this* != null)) Thanks. Is this supposed to work with DynaActionForm's? I tried it and it still seems to pass the validation. Finally, do I have to do this for all three fields or is

Implementing dependence between form properties

2004-10-25 Thread Laurent Duperval
Hi, How does one implement dependence between property fields? Specifically, I have three String fields and at least one of them must be non-null. Can I write this in the validator.xml file? Or do I have to write a custom validation rule? Thanks, L --

Re: Extending DynaValidatorActionForm... or using something else?

2004-10-19 Thread Laurent Duperval
Eddie Bush wrote: Application-specific exceptions are one of the least used and most useful tools. That's exactly how I'd go about doing it, and I dare say it's the right way. Indeed. One thing I've found with this approcah: if I don't put all the mandatory data in the form, I get an error mes

Re: Extending DynaValidatorActionForm... or using something else?

2004-10-18 Thread Laurent Duperval
Laurent Duperval wrote: I'm sure others have done something similar. What approaches have you taken? Well, shortly after posting this, I remembered the tag could be added in an action. By defining a specific exception for the errors I'm trackin and sending them back to the conta

Extending DynaValidatorActionForm... or using something else?

2004-10-18 Thread Laurent Duperval
HI, We've created a bunch of forms to allow users to create new object in our database. All the forms have a "name" property in them, and depending on the object, there are other properties. Most of our validation is just a simple "required". However, we have a business rule which states that t

Using StrutsTestCase with 1.2, wildcards and MappingDispatchAction

2004-10-18 Thread Laurent Duperval
Hello, Does anyone have experience using (Mock)StrutsTestCase to test wildcard actions (actions that end in *) and MappingDispatchActions? Does it work? Are there any particular issues to be aware of? Thanks, L - To unsubscribe,

Re: Periods in form attribute names prevents retrieval

2004-10-08 Thread Laurent Duperval
Jeff Beal wrote: Have you tried ? Ahaaa! No I haven't. Thanks! L - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Periods in form attribute names prevents retrieval

2004-10-07 Thread Laurent Duperval
Hello, I have an opbject that looks like this: Profile { String name; Account account; String getName(); Account getAccount(); } Account { String name; String getName(); } In my jsp, I have code like this: ... ... ... ... ... ... This generates: I'm using DynaValidatorActionForm's t

Re: What is halting my action?

2004-10-06 Thread Laurent Duperval
Laurent Duperval wrote: The "foo" parameter should actually read "add". I changed it to see if my class was being called and it isn't. Otherwise, I would get a NoSuchMethodExcpetion. My class is defined as: Grmblb. I found it. There was an execute() method in the

Re: Tracing action dispatching

2004-10-06 Thread Laurent Duperval
[EMAIL PROTECTED] wrote: Hi, L. Did you upgrade your struts.jar recently? Yes. The new struts action servlet calls a different method on actions, and it's default implementation is to show an empty page. Stumbled over this one also. Sure, but I've got mappings that should load the correct page. I

What is halting my action?

2004-10-06 Thread Laurent Duperval
HI, While tracing my application, this is the debug output I get: [DEBUG] RequestProcessor - Processing a 'GET' for path '/mainHardwareProfile' [DEBUG] ActionConfigMatcher - Attempting to match '/mainHardwareProfile' to a wildcard pattern [DEBUG] BeanUtils - Cloning bean: org.apache.struts.action.

Tracing action dispatching

2004-10-06 Thread Laurent Duperval
Hi, Is there a flag I can set so that Struts tells me what it's doing? I'm having a problem with one of my actions: when I click on it, I get a blank page and I don't understand why. I'd like to be able to see what decisions Sruts is taking in order to load my pages, to determine where I made a