Re: You make the decision Velocity/Turbine vs. Struts/JSP

2001-03-04 Thread Martin Cooper
me" Hello World /logic:notPresent logic:present parameter="name" bean:parameter id="name" name="name"/ Hello, bean:write name="name"/ /logic:present /h1 /body/html Hope this helps. -- Martin Cooper - Original Message - From

Re: Problem in Struts example (struts-example.war)

2001-03-04 Thread Martin Cooper
Craig, If one Action chains to another using a ForwardingActionForward with no query string in the URL, will the form bean for the second Action still be created by Struts? -- Martin Cooper - Original Message - From: "Craig R. McClanahan" [EMAIL PROTECTED] To: [EMAIL PROTE

Re: MessageTag

2001-03-02 Thread martin . cooper
There is a warning in the .tld file (struts.tld) to the effect that all the tags in that taglib are deprecated. It doesn't appear to be documented in the release notes, although I believe it should be. (I'll submit a bug.) I'm not sure if it is documented anywhere else. -- Martin Cooper

Re: Drop-down list

2001-03-01 Thread martin . cooper
Add the attribute to your tag like so: html:select ... multiple="true" ... and make sure the corresponding property in your form bean is an array of values. See the docs for more details: http://jakarta.apache.org/struts/struts-html.html#select Hope this helps. -- Martin Cooper

Re: Using expressions as attribute values in html:link

2001-02-28 Thread Martin Cooper
r the string literal. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Anderson, Jessica" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 7:40 AM Subject: Using expressions as attribute values in html:link I have tried to use

Re: PLEASE HELP: How would I use the iterate tag here?

2001-02-28 Thread Martin Cooper
Yes, there is. See Craig McClanahan's explanation in the archives: http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg03625.html Hope this helps. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Shamdasani Nimmi-ANS004" [EMAIL PROTECTED]

Re: PLEASE HELP: How would I use the iterate tag here?

2001-02-28 Thread Martin Cooper
You should be able to use nested properties: bean:write name="item" property="value.code"/ bean:write name="item" property="value.country"/ bean:write name="item" property="value.countryName"/ -- Martin Cooper Tumbleweed Communica

Re: flow control

2001-02-28 Thread Martin Cooper
en support in the Action class to ensure the user doesn't try to skip around in your application. Hope this helps. -- Martin Cooper Tumbleweed Communications - Original Message - From: "bram" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 01, 2001

Re: stupid Q: setters are not called if properties are empty

2001-02-27 Thread martin . cooper
immediately before populating it with the values from the new request. That gives you the chance to clear out the old values, so that they are not left in the form bean if there is no corresponding value in the request. Hope this helps. -- Martin Cooper Tumbleweed Communications At 10:42 PM 2/27

Re: Where are form tags?

2001-02-27 Thread martin . cooper
is still there, but is marked as deprecated. 2) The struts-*.tld files are not part of the source distribution. They are generated from the struts-*.xml files as a part of the build process. Hope this helps. -- Martin Cooper Tumbleweed Communications At 10:41 AM 2/27/01 -0700, Sundar @eSaravana

Re: Stupd question about Struts and EJB.

2001-02-27 Thread martin . cooper
nteger.parseInt() to ensure that a valid integer was entered. -- Martin Cooper Tumbleweed Communications

Validating bean properties (WAS: Re: Stupd question aboutStruts and EJB.)

2001-02-27 Thread martin . cooper
ery unfun. Any thoughts? Regards, Nick -- Martin Cooper Tumbleweed Communications

Re: Iteration with html:link - BUG?

2001-02-27 Thread Martin Cooper
Jessica, You have not closed the link tag. After the %= display %, you need /html:link. Also, you might want to look into using the Struts logic:iterate tag instead of using a while loop in a scriptlet. Hope this helps. -- Martin Cooper Tumbleweed Communications - Original Message

Re: Newbie to Struts

2001-02-26 Thread Martin Cooper
Standard JSP tags behave the same way in a Struts application as they do in any other web application. You might want to check a general JSP resource, such as the JSP-INTEREST archives at: http://archives.java.sun.com/archives/jsp-interest.html Hope this helps. -- Martin Cooper Tumbleweed

Re: Missing http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd

2001-02-23 Thread Martin Cooper
Save Target As...". Hope this helps. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Sundar @eSaravana" [EMAIL PROTECTED] To: "Martin Cooper" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, February 23, 2001 10:15 PM Subject: Re: Missing http:

Re: File Upload

2001-02-22 Thread Martin Cooper
There's a file upload sample in the Struts distribution. You'll find it in the jakarta-struts/web/upload directory. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Ji Rong Hu" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 21, 20

Re: attribute blah has no value

2001-02-21 Thread Martin Cooper
You are trying to use nested double quotes, which is probably confusing the parser somewhat. Try this instead: hi:hello foo='%= request.getParameter("users") %' / Hope this helps. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Justin Kennedy&qu

Re: validator.xml - rules for a mask

2001-02-21 Thread Martin Cooper
. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Maya Muchnik" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 21, 2001 3:07 PM Subject: validator.xml - rules for a mask Hi, all. This email about David Winterfeldt's validator. What

Re: Strange Error with html:select

2001-02-19 Thread Martin Cooper
custom tags just to reduce the total number of tags on a page! -- Martin Cooper Tumbleweed Communications - Original Message - From: "Dan Connelly" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 19, 2001 8:26 AM Subject: Re: Str

Re: Conditional choice of action mapping based on html FORM andSELECT tag

2001-02-16 Thread martin . cooper
nd/or how sophisticated you want to get, another approach would be to follow Struts' lead: Define a SubAction (or Command) class, as a base class for all your command handlers, and use a HashMap to map cmd values to SubAction instances. Then your Action class just does the lookup and hands off t

Re: Digester: How to read the body of a tag?

2001-02-09 Thread martin . cooper
ount means "a single parameter from the body of this element". I don't know if there's any practical difference, other than being one line of code instead of two. :-) -- Martin Cooper Tumbleweed Communications At 01:40 PM 2/9/01 -0800, Craig R. McClanahan wrote: Jens Rehphler wrote:

Re: Forwarding to the same page

2001-02-07 Thread Martin Cooper
You can call mapping.getInput() in your Action class. This will get you the URI that provided your input, and is what Struts uses to send you back to your input form if the ActionForm validation fails. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Ki

Re: Forwarding to the same page

2001-02-07 Thread Martin Cooper
the errors. ;-) -- Martin Cooper Tumbleweed Communications - Original Message - From: "Mike Campbell" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 3:21 PM Subject: Re: Forwarding to the same page "MC" == Martin Cooper [EMAIL PROTECTED] write

Re: ActionForward: scope of modifications?

2001-02-02 Thread Martin Cooper
); Rather than cloning and modifying, I just create a new one with the parameters I need. Yes, sometimes one or other parameter comes from an existing ActionForward, but to me that still seems easier than cloning and modifying. Hope this helps. -- Martin Cooper Tumbleweed Communications - Original

Re: no 'application' init parameter for ActionServlet causesNullPoin terException in struts:errors / ??

2001-01-24 Thread Martin Cooper
tags which use them, then there is no default value and you must specify a valid value. The struts:errors/ tag needs to look up messages in the properties file, so you will need to specify a value for 'application' in your configuration if you want to use that tag. Hope this helps. -- Martin

Re: Action.xml

2001-01-22 Thread martin . cooper
Here's a link to the Ant FAQ item on this: http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/16/topic_id/196/question_id/752 Hope this helps. -- Martin Cooper Tumbleweed Communications At 01:28 PM 11/22/00 -0800, Craig R. McClanahan

Re: Documentation in nightly source distribution.

2001-01-11 Thread martin . cooper
The simplest way would be to run the struts-documentation web app in the distribution, and access the documentation that way. -- Martin Cooper Tumbleweed Communications At 02:41 PM 1/11/01 -0700, you wrote: There is a src/doc dir which contains the documentation in xml format

Re: Can I use a Map.Entry as a bean?

2001-01-11 Thread martin . cooper
At 09:57 AM 1/11/01 -0800, you wrote: Chris Wilson wrote: From: Martin Cooper [mailto:[EMAIL PROTECTED]] [snip] One interesting point that I discovered on my trails through the code is that the "type" attribute on the logic:iterate tag does not appear to be u

Re: Can I use a Map.Entry as a bean?

2001-01-10 Thread Martin Cooper
his is not something a lot of people will hit, and that Chris is just one of those unlucky folks. :-} -- Martin Cooper Tumbleweed Communications - Original Message - From: "Craig R. McClanahan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 09, 2001 12:32 PM Subj

Re: Can I use a Map.Entry as a bean?

2001-01-09 Thread Martin Cooper
Just a thought, but have you tried "java.util.Map$Entry" instead of "java.util.Map.Entry" when you specify the type? -- Martin Cooper Tumbleweed Communications - Original Message - From: "Chris Wilson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tues

Re: Problem with Digester used standalone

2001-01-04 Thread martin . cooper
to require the JSDK for a standalone Java application. Since what I'm doing is for my own use, it's not a big deal, but it would be an odd requirement to have to list if I was giving the app to other people. -- Martin Cooper Tumbleweed Communications

RE: Multi page form desing

2000-11-02 Thread martin . cooper
If you track the wizard steps (e.g. with a hidden field), then you can validate different sets of fields, depending on the current step. At the final step, you can do a more complete validation. -- Martin Cooper Tumbleweed Communications At 09:41 AM 11/2/00 -0300, Ansaldo, Gaston wrote

<    1   2   3   4   5   6