Hmmm, I thought that you could use Struts just fine even if you did not use
Tiles at all?
From: Michael McGrady <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: tiles ForwardAction
Date: Thu, 09 Sep 2004
MAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts 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 [mailt
ass as it
most likely is validation that is valid across all application
logic and not for just one use case.
robert
> -Original Message-
> From: Janne Mattila [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 07, 2004 8:15 AM
> To: [EMAIL PROTECTED]
> Subject: Proper place f
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
- fiel
alization - minor problem
Date: Thu, 2 Sep 2004 20:48:39 -0700
On Thu, 02 Sep 2004 14:07:37 +, Janne Mattila
<[EMAIL PROTECTED]> wrote:
> -formBean method getEeMail() and
> property="eeMail"/> => works
> -formBean method getEmail() and
> property="email
-formBean method getEeMail() and => works
-formBean method getEmail() and =>works
- formBean method getEMail() and =>
=> org.apache.jasper.JasperException: No getter method for property eMail of
bean org.apache.struts.taglib.html.BEAN
I don't know what method struts tries to find. Eclipse cre
an then use
which should have the appropriate attributes.
The is for rendering
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
> To: [EMAIL PROTECTE
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
---
s used in Struts
Date: Mon, 30 Aug 2004 08:05:12 -0700
Janne Mattila wrote:
I think you have some confusion of terms there
MVC = a general (non-JSP specific) architectural Model-View-Controller
pattern
Model1 and Model2 = models (or patterns) for implementing web applications
with JSP techn
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:
asked this before on the list and didn't get a neat answer. I've
resorted to using c:set & scriptlets to extract the value from the static
and store it in a scoped attribute for use with JSTL.
Paul
> -Original Message-
> From: Janne Mattila [mailto:[EMAIL PROTECTED]
> S
method, which does not exist sice char is a primitive) to a Role?
Anyway, thanks for the suggestion, other ideas?
From: Can Zheng <[EMAIL PROTECTED]>
Reply-To: Can Zheng <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: [OT(?)] Comparing against a typ
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
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,
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*
http://join.msn.com/?page=features/
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:
Quite nice and compact.
not yet looked at it) from Manning: "Struts Recipes"
<http://www.manning.com/catalog/view.php?book=franciscus>. This one is not
for Struts-Beginners!
Happy Reading
Alexander
-Original Message-
From: Janne Mattila [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 8:19 AM
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 books
ince I though it was "not relevant".
Plenty of dumb-assness going 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:
ot; <[EMAIL PROTECTED]>
Subject: Re: Tiles breaks my page that uses logic:iterate
Date: Mon, 16 Aug 2004 15:36:07 +0100
OK so post the bits of your struts-config which show the forms and action
mappings for
1) The action which renders the page
2) The action the form will post to (i.e. "/
ks my page 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"?
>
Niall
- Original Message -
From: "Janne Mattila&q
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
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 e
get from indexing "_", then go for it! I have no more to
say.
Michael
Janne Mattila wrote:
I am well aware of the solution that you suggest and the fact that you
think other solutions are over-engineered - I did indeed try to search for
a solution before creating my own, and noticed the w
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
mageClicked;
That's all there is to it. Your button solution is too complicated in any
event. The better button 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.
Mi
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 woul
Oops, that was a typo. Should have read
"
/>
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 image. I assume you mean to use the
"property" attrib
Oops, that was a typo. Should have read
" />
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:
" />
-
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)
Thanks, that goes some way...but not all the way though. A common situation
where a dynamic page displays 0n items with different identifiers. For
example, an item list is fetched from database, and page contains delete
buttons for items 23, 67, 101 and 128. I do not think you can use this
Quite often I need to implement a form that has several submit buttons - for
example a page where several products are listed, and next to each product
is a "delete" -button. Since clicking on each button sends only one
parameter, I have to encode both the action and the id of the item into same
ou want to store it in a collection ??
The selected option would 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
attribut
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
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
selectedChoicesCollecti
35 matches
Mail list logo