Re: Disadvantages of Struts?

2003-12-04 Thread Graham Leggett
Robert H. Tran wrote: I just wonder if Struts comes with any significant drawback. I mean not in terms of when to use Struts and when not to use it necessarily, but more in the line of anyone's wishes that it had been better. Any advice is very appreciated. I battled initially to get my head aroun

Struts throwing away exceptions

2003-11-14 Thread Graham Leggett
Hi all, I ran into this problem a while back, worked around it, but now it is back. Something has gone haywire with a struts web application I am trying to debug. When accessing an URL, I get an HTTP 400 error, with the explanation "The request sent by the client was syntactically incorrect ()

Can tiles contain tiles?

2003-11-12 Thread Graham Leggett
Hi all, I have a tile, and within that tile, I have attempted to insert another tile. The nested tag runs, but finds no definition in the tile-defs.xml file when the definition is there. If I copy the nested tiles:insert tag out of the tile and into the base jsp page where all the other tile

Struts v1.1 source: line termination

2003-10-28 Thread Graham Leggett
Hi all, I downloaded the struts v1.1 source as a tar.gz, and unpacked it to find that all the source files followed the Windows CRLF convention. Is it possible to make sure the .tar.gz version of the source is terminated with LF, and the .zip version of the source is terminated with CRLF? Reg

Re: Html tags and "indexed" property - how does it work?

2003-09-27 Thread Graham Leggett
Graham Leggett wrote: Is it possible to use an indexed property inside a DynaActionForm, and have the DynaActionForm populated correctly on submit? The HTML form is submitted with element names of the form "id[index].property", the trouble is that when this form is submitted, and

Re: Html tags and "indexed" property - how does it work?

2003-09-27 Thread Graham Leggett
Ted Husted wrote: This is really a USER list question, but you may be looking for the indexed properties how-to: http://jakarta.apache.org/struts/faqs/indexedprops.html I posted to the user list, but as yet I have had no reply. Searching google and the mailing list archives has shown other peop

Html tags and "indexed" property - how does it work?

2003-09-27 Thread Graham Leggett
Hi all, I am having some conceptual problems with the "indexed" property of the HTML tags, I have tried to find docs on this property, but apart from a brief one line description I can find none. I have some JSP that looks roughly like this: The form property "policycovers" contain

Re: Editable Fields V/S Static Text

2003-09-27 Thread Graham Leggett
Edgar P Dollin wrote: 1) It is fine that the basic tags in struts don't emit non-standard html, but why do struts tags have to 'police' the emission of non-html. For many intranet style projects, non standard html is important to achieve specific required functionality. To deny the need for such

Re: [PROPOSAL] Wildcard-matched actions

2003-07-05 Thread Graham Leggett
Don Brown wrote: Perhaps now that 1.1 is final, this would be a good time to bring this up. I've written a small extension to Struts that allows action mappings to use wildcards in matching URIs. I submitted a patch to bugzilla a while back that did prefix matching in matching URIs. A config call

Problems with vague Exception handling

2003-07-04 Thread Graham Leggett
Hi all, I have been plagued all afternoon by the following error message: [ServletException in:/WEB-INF/jsp/policy/policy.jsp] null' javax.servlet.ServletException It is the standard message that happens when a problem occurs in connection with a DynaActionForm bean, including but not limited

bean:define from a DynaActionForm containing a null causes ServletException

2003-07-04 Thread Graham Leggett
Hi all, On a jsp page, I am trying to retrieve a bean from a DynaActionForm like so: In my ActionForm, I set this bean to null, because I am testing the "requested policy not found" functionality, to be trapped by logic:empty tags: form.set("policy", null); When I do this however, the bean:

Re: Introduction and a proprosal to add new functionality to Struts: Automatic highlighting of errored form elements

2003-06-09 Thread Graham Leggett
Jeff Robertson wrote: Do you also have an alternate style for the input's label text? For instance, a form often looks like this: If the "address" property fails validation, then one would normally expect that the bean message (which probably just displays the word "Enter you Address Here"

Re: compiling 1.1 beta 3 problems

2003-01-22 Thread Graham Leggett
Robert Leland wrote: What version of commons logging should I be using? Download the latest nightly binary build and use those jars to build your patch against. With Struts v1.1b3 being declared RC1, why does a release candidate have a dependancy on another project's nightly build? Regards

[PATCH] allow relative actions in struts-config.xml

2003-01-09 Thread Graham Leggett
Hi all, The attached patch allows relative paths to be specified for actions defined in the action-mappings element of struts-config.xml. If the path attribute of the action element is specified without a leading slash, struts now suffix matches the action-mapping paths against the path in the