users@jersey.java.net

[Jersey] Date parameter in the url

From: jiangc1987 <jiangcheng198745_at_sina.com>
Date: Thu, 16 Jun 2011 19:40:10 -0700 (PDT)

Hi all
  I have a question about the date param in the URL, I wan't to transfer the
user into java.util.date automatic

for example; I have a request with the URL as below

.../date/2011%06%17

in the resource i receive this param with

@path("/date/{date}")
@Produces("text/plain")
public String getDate(@pathParm("date")Date date){
.......
}
How does jersey solution on this?
Thanks
ChengJiang

-----
name:Joyce
Email:jiangcheng198745_at_sina.com
address: hangzhou city, zhejiang province, china
--
View this message in context: http://jersey.576304.n2.nabble.com/Date-parameter-in-the-url-tp6485543p6485543.html
Sent from the Jersey mailing list archive at Nabble.com.