Hi Barry,

Yes, #1 and #4 were first and foremost in my mind.  I hadn't thought necessarily that they would go before any other parameters, but that might be possible to do.  And the formatting makes complete sense now that I actually think about it for more than a few seconds ;)

I'm going to add your comments as comments to the bug.

-t

On Sep 4, 2006, at 6:55 PM, Barry Davies wrote:

This sounds like an awesome idea. 
 
Would any of the following also be what you had in mind:
  • the URL-parameter values will go thru the registered converters when they are injected into the ActionBean
  • this would probably happen before any form submission values are injected. 
  • Stripes URL creation and linking tags would use the registered formatter (and then URL encode it) to create the URL
  • Those URL and link tags would know how to create the URL (param order) based on the annotation in the ActionBean

-BD aka RJ

----- Original Message ----
From: Tim Fennell (JIRA) <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, September 2, 2006 11:49:09 AM
Subject: [Stripes-dev] [JIRA] Created: (STS-262) Friendly URL support

Friendly URL support
--------------------

                 Key: STS-262
                 URL: http://mc4j.org/jira/browse/STS-262
             Project: Stripes
          Issue Type: New Feature
          Components: ActionBean Dispatching
            Reporter: Tim Fennell
         Assigned To: Tim Fennell
             Fix For: Release 1.5


One thing that comes up frequently is support for friendly URLs, e.g.:
  /blog/2006/08/22
  /user/6282/edit

and so on.  While it's possible to acheive URLs like this using 3rd party tools like UrlRewriteFilter it would be nice if they were built directly into stripes because then all URL information could be kept in a single place for each class.

I'm envisaging an annotation something like this:
[EMAIL PROTECTED]("/{year}/{month}/{day}")
[EMAIL PROTECTED]("/{userId}/{event}")
that would inform Stripes how to map the extra pieces of information encoded in the URL.

Optionally this could also be specified with the existing UrlBinding annotations, e.g.
[EMAIL PROTECTED]("/blog/{year}/{month}/{day}")

If done right, the stripes url and link tags could also take advantage of this information to put certain parameters into the URL instead of a parameter string.

I'm very open to hearing alternative ideas around how to specify this, and other functionality that would be desirable.



--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Stripes-development mailing list

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to