RE: Proper place for validation

2004-09-09 Thread Janne Mattila
Users Mailing List [EMAIL PROTECTED] Subject: RE: Proper place for validation Date: Wed, 8 Sep 2004 08:52:05 -0700 -Original Message- From: Janne Mattila [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 3:49 AM To: [EMAIL PROTECTED] Subject: RE: Proper place for validation

RE: Proper place for validation

2004-09-08 Thread Janne Mattila
: Janne Mattila [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 8:15 AM To: [EMAIL PROTECTED] Subject: Proper place for validation I am wondering what would be the propert place for some validation code. Let's say I have a registration page where user inputs his/her information

Proper place for validation

2004-09-07 Thread Janne Mattila
I am wondering what would be the propert place for some validation code. Let's say I have a registration page where user inputs his/her information for a new user account. There's a field for e-mail address. On one level that information is validated on the ActionForm, for things such as -

Re: Struts bean property capitalization - minor problem

2004-09-03 Thread Janne Mattila
, 02 Sep 2004 14:07:37 +, Janne Mattila [EMAIL PROTECTED] wrote: -formBean method getEeMail() and html:text size=30 maxlength=120 property=eeMail/ = works -formBean method getEmail() and html:text size=30 maxlength=120 property=email/ =works - formBean method getEMail() and html:text size=30

Height and width missing from html:image

2004-09-02 Thread Janne Mattila
Damn, why no width and height attributes for html:image? Disappointing. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus

RE: Height and width missing from html:image

2004-09-02 Thread Janne Mattila
html:img .../ which should have the appropriate attributes. The html:image .../ is for rendering input type=image .../ which does not have the height and width attributes. robert -Original Message- From: Janne Mattila [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 7:23 AM

Struts bean property capitalization - minor problem

2004-09-02 Thread Janne Mattila
-formBean method getEeMail() and html:text size=30 maxlength=120 property=eeMail/ = works -formBean method getEmail() and html:text size=30 maxlength=120 property=email/ =works - formBean method getEMail() and html:text size=30 maxlength=120 property=eMail/ = =

Re: AW: Design patterns used in Struts

2004-08-31 Thread Janne Mattila
about precise nomenclature in this matter, and you should too... From: Michael McGrady [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: AW: Design patterns used in Struts Date: Mon, 30 Aug 2004 08:05:12 -0700 Janne

Tiles - proper way for choosing a tile dynamically

2004-08-27 Thread Janne Mattila
I use Tiles to create pages that have their tiles selected dynamically based on some information that is created in an action. One simple example could be a menu tile, which is selected based on an attribute that is stored in session. I created simple definitions like: definition

Does Tiles support EL?

2004-08-26 Thread Janne Mattila
There does not seem to be a struts-tiles-el.tld - el tlds exist only for bean, html, and logic taglibs. Can I use EL with the Tiles tags? _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE*

Re: Does Tiles support EL?

2004-08-26 Thread Janne Mattila
Is there a way to use struts-EL tags with Struts 1.1? From: Nicolas De Loof [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Does Tiles support EL? Date: Thu, 26 Aug 2004 11:23:33 +0200 in Struts 1.2.x, contrib

[OT(?)] Comparing against a typesafe enum in JSTL

2004-08-26 Thread Janne Mattila
First, apologies for a slightly OT question; this is more about JSTL and less about Struts. Let's say I have a Role object in session. It is a typesafe enum, with values Role.ADMIN and Role.USER. How can I compare the object in session against those values, using JSTL? I can't figure out how

Re: [OT(?)] Comparing against a typesafe enum in JSTL

2004-08-26 Thread Janne Mattila
(cd.business.Role.ADMIN)} ... On Thu, 26 Aug 2004 12:09:56 +, Janne Mattila [EMAIL PROTECTED] wrote: First, apologies for a slightly OT question; this is more about JSTL and less about Struts. Let's say I have a Role object in session. It is a typesafe enum, with values Role.ADMIN and Role.USER. How

Complicated select - option structure?

2004-08-24 Thread Janne Mattila
I am toying around with a simple test application. In one page user creates a new record, and picks the artist for that record with a select pulldown. My artist object has a first name and a last name separately. Initially I displayed only last name: html-el:select property=artistId

RE: Learning the basics

2004-08-19 Thread Janne Mattila
I did not notice any book recommendations in answers to your question, and frankly, I am not surprised. For learning a new technology I prefer a good, well-written and well-structured book to harvesting scattered web pages to critical pieces of information. Unfortunately, I have read three

RE: Learning the basics

2004-08-19 Thread Janne Mattila
is not for Struts-Beginners! Happy Reading Alexander -Original Message- From: Janne Mattila [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 8:19 AM To: [EMAIL PROTECTED] Subject: RE: Learning the basics I did not notice any book recommendations in answers to your question, and frankly, I

Re: Tiles breaks my page that uses logic:iterate

2004-08-17 Thread Janne Mattila
on it seems! Anyhow, no problems now. From: Janne Mattila [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tiles breaks my page that uses logic:iterate Date: Tue, 17 Aug 2004 06:07:27 + With Tiles: action path

Re: Accessing bean properties problem

2004-08-16 Thread Janne Mattila
Janne Mattila wrote: OK, Cap't of the Eh Team! Maybe you should go and add Note: this is a clear, extensible, light, fast, loosely coupled, solution compared to a messy, solution specific, heavy, slow, tightly coupled version! to the Wiki page? After all, you have invented an elegant solution

Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Janne Mattila
I have a simple page for editing some form properties. It works. There's a select box, a multibox, single-select select and a text input field. Now I tried to Tiles-ify it, just using Tiles to add some silly decorations around the actual form. Using tiles seems to break the form, the exception

Re: Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Janne Mattila
that uses logic:iterate Date: Mon, 16 Aug 2004 15:09:57 +0100 I'm guessing you changed the action your form is pointing to (/TilesSaveInputs) - so is the form name still inputsForm? logic:iterate id=choice name=inputsForm property=allChoices Niall - Original Message - From: Janne

RE: Accessing bean properties problem

2004-08-13 Thread Janne Mattila
Oops, that was a typo. Should have read tdhtml:image src=delete.gif name=%= delete_ + choiceKey % //td If browsers did pick up value parameter, this problem would not even exist... Some browsers do. What is your problem? Why are you adding delete in here? There is no name attribute with

RE: Accessing bean properties problem

2004-08-13 Thread Janne Mattila
I described what I wanted to achieve in my original posting. To recap, I want to have a page with several delete buttons. Clicking on one button would produce parameter delete_23.x=56 to be sent = we parse that, and delete item with ID 23 from database. Choosing a different delete -button

Re: Accessing bean properties problem

2004-08-13 Thread Janne Mattila
From: Michael McGrady [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Accessing bean properties problem Date: Fri, 13 Aug 2004 06:22:38 -0700 Janne Mattila wrote: I am aware that I can use the approach you

Re: Accessing bean properties problem

2004-08-13 Thread Janne Mattila
solution involves making only one button and then nuking that button as soon as you determine what image was clicked. I just nuked the whole solution, since it is unnecessary. Michael Janne Mattila wrote: I described what I wanted to achieve in my original posting. To recap, I want to have a page

Accessing bean properties problem

2004-08-12 Thread Janne Mattila
Let's say I have a collection of Choice objects, each having attributes key and name. I want to iterate the collection on JSP, display it's contents and add a delete button for each choice. Delete button value should contain delete_ appended with each choice's key. Following works: (1)

Re: Accessing bean properties problem

2004-08-12 Thread Janne Mattila
Oops, that was a typo. Should have read tdhtml:image src=delete.gif name=%= delete_ + choiceKey % //td If browsers did pick up value parameter, this problem would not even exist... Do you realize, Janne, how few browsers will pick up the value of value? At 01:37 AM 8/12/2004, you wrote:

RE: OptionsCollectionTag with ActionForm and a collection attribute

2004-08-10 Thread Janne Mattila
No takers on this? If I am renderin a select box in JSP with selectTag and optionsCollectionTag, can my form bean store the selected options in a collection? (instead of an array, which seems to work fine) From: Janne Mattila [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

RE: OptionsCollectionTag with ActionForm and a collection attribute

2004-08-10 Thread Janne Mattila
be a String right ?? -Original Message- From: Janne Mattila [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 11:54 AM To: [EMAIL PROTECTED] Subject: RE: OptionsCollectionTag with ActionForm and a collection attribute No takers on this? If I am renderin a select box in JSP with selectTag

OptionsCollectionTag with ActionForm and a collection attribute

2004-08-09 Thread Janne Mattila
I am just studying the basic things about Struts, and have some trouble getting selectTag and optionsCollectionTag work as I would expect. Intention is to have two properties in a form: allChoices, that is a collection holding all possible choices for the select tag, and