Re: RESTful Crud clean url:s, advanced howto anybody?

2008-10-24 Thread Ryan Wong
hello, will u try the new feature NamedVariablePatternMatcher http://www.nabble.com/Some-Idea-On-REST-mapping-td19263471.html#a19263471 Leonard Broman wrote: > > Hey! > > I've been looking around quite some time for a solution how to build a > neat REST driven web application. What I basical

Re: Formating in Struts 2

2008-10-24 Thread Ryan Wong
for date u can use and more common usage can be refer at http://struts.apache.org/2.1.2/docs/formatting-dates-and-numbers.html if u are using freemarker, it will be more flexible with ftl syntax. nestorjb wrote: > > Hi > > > > Isn’t there a way to apply formatting of number and dates in S

Re: sitemesh decorator problem with struts action

2008-10-24 Thread Ryan Wong
I'm sorry for that I haven't notice u r using struts 1... here is an article which sample code contains an example using struts1 and site mesh. http://www.onjava.com/pub/a/onjava/2004/09/22/sitemesh.html?page=3 regards. sa10 wrote: > > Thanks Ryan. > > Here is my web.xml could you please adv

Re: sitemesh decorator problem with struts action

2008-10-23 Thread Ryan Wong
hello... may be the problem is the order of the filter here is mine set-encoding /j_spring_security_check struts-cleanup /* sitemesh /*

Using Rest with JSON, post error (jquery)

2008-10-06 Thread Ryan Wong
I using jquery to post the request with some content and expecting a JSON-format response here is my code.. $.post("/socialize/tags;addTag.json",{contentType:"TOPIC", resourceId:1, tags:"tag"},function(data)

Re: Problem with radiobuttons

2008-09-07 Thread Ryan Wong
I think all you need is some function provide by JavaScript. Mitxel Mitxelisimo wrote: > > Hi, I´m trying to make a form to fill in a questionform that is composed > by > some questions and one radiobutton for each, and this is the problem, > what can i do to this in my action? how i can fill in

Re: Displaying BLOB image in a jsp page through struts...

2008-09-07 Thread Ryan Wong
and besides, you could use a struts2 action with result stream, but I'm not sure how to do it in struts 1 but the pattern is the same.. Amir Hossein Sharifzadeh-2 wrote: > > Dear J2ee members > I am trying to display an image in a jsp page which is stored as a blob in > the oracle table. > I wro

Re: Displaying BLOB image in a jsp page through struts...

2008-09-07 Thread Ryan Wong
Well, in my previous project, using JasperReports, I need to display a server create Image to user. I used a Image Servlet (and I believe it's the standard method) the provide the Image data, set the response content-type to image/jpeg or what ever. and the action of struts is just to send the key

[S2]checkboxlist tag bug?

2008-09-07 Thread Ryan Wong
I've used checkboxlist tag with JDK 5 enum like: [EMAIL PROTECTED] key="resource.requestMethod" name="requestMethods" list="@[EMAIL PROTECTED]()" listKey="name()" listValue="name()" /] every thing is OK, and the data can be persist to the database correctly. but w

Re: Some Idea On REST mapping

2008-09-02 Thread Ryan Wong
Thanks so much for those replys I got much clear about the URL patterns I could use with the plugin. Jeromy Evans - Blue Sky Minds wrote: > > Ryan Wong wrote: >> But there is still a question. >> >> With the namespace we have to place the parameter like prefix... &g

Re: Some Idea On REST mapping

2008-09-02 Thread Ryan Wong
accept by user, isn't it? Jeromy Evans - Blue Sky Minds wrote: > > Ryan Wong wrote: >> Thanks Jeromy... >> >> There is not any document about this one.. >> So i missed that feature... >> >> > > Yeah, the NamedVariablePatternMatcher is onl

Re: Some Idea On REST mapping

2008-09-02 Thread Ryan Wong
Thanks Jeromy... There is not any document about this one.. So i missed that feature... Jeromy Evans - Blue Sky Minds wrote: > > Ryan Wong wrote: >> I have changed the rest action mapper class to apply Ruby Style . >> there is draft, post here to find a better way to buil

Some Idea On REST mapping

2008-09-01 Thread Ryan Wong
I have changed the rest action mapper class to apply Ruby Style . there is draft, post here to find a better way to build RESTful app with struts2 Rest style action mapper Using with struts2-rest-plugin, replace the orginal RestActionMapper class. With url patterns below to support CRUD operati

Re: Can anyone help me with an example of REST with mutiple paras

2008-08-26 Thread Ryan Wong
Thanks, Jeromy, that's a very useful example. Jeromy Evans - Blue Sky Minds wrote: > > Ryan Wong wrote: >> how can I apply the URL http://localhost:3000/ontrack/1/sprints/1 to >> action >> to show item with ontract id - 1 and sprints id - 1 >> > H

Re: Can anyone help me with an example of REST with mutiple paras

2008-08-25 Thread Ryan Wong
I found org.apache.struts2.dispatcher.mapper.Restful2ActionMapper in struts2-core support that url patern so why should we still need a rest plugin? to simplify the configuration? Ryan Wong wrote: > > how can I apply the URL http://localhost:3000/ontrack/1/sprints/1 to > action >

Can anyone help me with an example of REST with mutiple paras

2008-08-25 Thread Ryan Wong
how can I apply the URL http://localhost:3000/ontrack/1/sprints/1 to action to show item with ontract id - 1 and sprints id - 1 -- View this message in context: http://www.nabble.com/Can-anyone-help-me-with-an-example-of-REST-with-mutiple-paras-tp19154913p19154913.html Sent from the Struts - Use