A long time coming, it is now possible (and practical) to get rid of
extensions altogether, hence the subject, the death of the .action
extension. With WW-2163 [1], Struts can make the distinction between
a setting that has Struts match all URL's, and one that only matches
URLs with no extension,
Nice work!
I've just started working on a Rails app to get more familiar with the Rails
framework and I must say I like the Rails routing scheme a lot! The closer
we can get to the way Rails does things, the better we are in my opinion.
James
-Original Message-
From: Don Brown
What kind of strange new world will it be without .action? I've grown
so used to it I can't imagine not using it. So you're saying you would
have the same url without the .action part?
Now that we have all these options for mapping url's to
actions/parameters, is there a new recommended
On 9/8/07, Tom Schneider [EMAIL PROTECTED] wrote:
What kind of strange new world will it be without .action? I've grown
so used to it I can't imagine not using it. So you're saying you would
have the same url without the .action part?
Yes.
Now that we have all these options for mapping
Ok, so take that last bit I said about wanting to keep with OGNL tied
throughout our code and scrap it. I've just finished the first step
in a major refactoring of our OGNL usage, both in XWork and Struts,
and have found a way to put all code that references OGNL in any way
in its own package,
Don Brown wrote:
Right, and that's why I didn't move to kill it off for 2.1. Give it
some time, let the feature get some exercise, then if all agree, we
could change the default later. As with any new feature, I'd put it
in a sort of experimental category for at least one major release.
So,
The project Struts 2 SVN - Main Build has the following 1 change by 1 author:
*phil* made the following changes at
Comment:
Made some minimal changes to improve the JFreeChart Result:
- chart getter can be specified
- type (png/jpg) can be specified
- throws NPEs if required fields are missing
The project Struts 2 SVN - Main Build (Java 6) has the following 1 change by 1
author:
*phil* made the following changes at
Comment:
Made some minimal changes to improve the JFreeChart Result:
- chart getter can be specified
- type (png/jpg) can be specified
- throws NPEs if required fields
The project Struts 2 SVN - Main Build has the following 1 change by 1 author:
*phil* made the following changes at
Comment:
Missed JUnit test in last commit. Still having troubles to get the testcases to
run normally. If this commit doesn't solve it, I might need some more time to
fix this.
The project Struts 2 SVN - Main Build (Java 6) has the following 1 change by 1
author:
*phil* made the following changes at
Comment:
Missed JUnit test in last commit. Still having troubles to get the testcases to
run normally. If this commit doesn't solve it, I might need some more time to
The project Struts 2 SVN - Main Build has the following 1 change by 1 author:
*phil* made the following changes at
Comment:
Fixed class to pass unit test. Don't really like the solution, but for now it
should work.
The project Struts 2 SVN - Main Build (Java 6) has the following 1 change by 1
author:
*phil* made the following changes at
Comment:
Fixed class to pass unit test. Don't really like the solution, but for now it
should work.
Hehe.
I actually did this same exercise for the SmartURLs plugin. It is
running on a number of live sites we built and works well. I'm glad to
see that this will be incorporated into core.
One of the things I made sure to handle as well were the indexes for
URLs like:
1.
Personally, I think we have a lot to learn from rails as they play
very well off the strengths of the action-based Model2 architecture.
Action-based frameworks strengths:
* Simple workflow as in URL - Action - View
* Intuitive (using conventions) URL - Action mappings
* RESTful by being close
14 matches
Mail list logo