Re: REST Show case

2008-01-18 Thread Roberto Nunnari
Thank you Jeromy. I'll look into that and experiment a bit! humm.. just one more question.. is it ready for production use? From your statements I understand that you use them all for production use, but if I look at the struts 2.0.11 distribution there's no rest plugin and on the wiki I see

Re: Problem with using Muliple tiles-defs.xml and multiple struts-config.xml in a web application

2008-01-18 Thread Antonio Petrelli
2008/1/18, [EMAIL PROTECTED] [EMAIL PROTECTED]: I want my pages to travel from one module to another module using the information in two tiles-defs.xml's. And I am not able to do that Tiles Definitions in one module are not visible in the other module. Antonio

Re: Pretty urls without .action

2008-01-18 Thread jignesh.patel
Hi, thanks for your reply,but unfortunationatily it is not working I just want only action name without any domain like .actiion,.do,.com anything (only category) The double comma above means blank is a valid extension is not able to call respected action. Is there anything missing ? Jeromy

Problem with using Muliple tiles-defs.xml and multiple struts-config.xml in a web application

2008-01-18 Thread [EMAIL PROTECTED]
Hi, I have been developing a web application using struts, which has number of modules in it. Also I am using tiles in it for views. So I am configuring different struts-config.xml for each module. And I think there is nothing wrong with that. And I want to use different tiles-defs for each

Re: File Upload

2008-01-18 Thread Pablo Vázquez Blázquez
Yes yes, that debugging statement is executed. That´s why I know my plugin is created. Anadido plugin + uploadFileName means Added plugin + uploadFileName. And then, it goes to ShowPlugins and the debugging statement log.debug(Obtenidos plugins); (Getted all plugins) is also executed.

Re: Problem with using Muliple tiles-defs.xml and multiple struts-config.xml in a web application

2008-01-18 Thread [EMAIL PROTECTED]
Thanks for ur reply. Even i know that it is the problem. How can i make the tiles definitions of one module to other? Naveen From: Antonio Petrelli [EMAIL PROTECTED] Sent: Friday, January 18, 2008 2:20 PM To: Struts Users Mailing List

Re: Problem with using Muliple tiles-defs.xml and multiple struts-config.xml in a web application

2008-01-18 Thread Antonio Petrelli
2008/1/18, [EMAIL PROTECTED] [EMAIL PROTECTED]: Thanks for ur reply. Even i know that it is the problem. How can i make the tiles definitions of one module to other? In your struts-config-masters, when you configure Tiles plugin, you can add a comma-separated list of Tiles definition files:

Re: Pretty urls without .action

2008-01-18 Thread Jeromy Evans
It should work without any other settings. Do you get an exception or something else? It allows URLs like: https://kily.myseaversite.com/category Make sure you're only testing in tomcat so you can isolate the problem. jignesh.patel wrote: Hi, thanks for your reply,but unfortunationatily it

Problem with loading form control when actionError return

2008-01-18 Thread quinquin2209
Hi All, In my web page main.jsp, I have a form defined, which contains a select box and a list of checkbox. The page works as follow: 1. user checks on the box to select member to be deleted 2. user presses the submit button 3. Member is deleted from DB 4. Return SUCCESS with actionMessage if

Re: File Upload

2008-01-18 Thread Jeromy Evans
hmm...that's interesting. My approach would be to create a new blank struts application that just contains a file upload action. Get it to work without ajax as there still seems to be a configuration problem. Then, when you're satisfied the configuration is correct... unfortunately you

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-18 Thread Ted Husted
On Jan 17, 2008 10:20 PM, Tony Zhang [EMAIL PROTECTED] wrote: For YUI + struts2, do you prefer to use YUI plugin for struts2 or just use YUI directly? Do we need to use DWR to transfter data? You can just use YUI directly. Essentially, what's being replaced is the JSPs. With Ajax, we can start

Re: File Upload

2008-01-18 Thread Pablo Vázquez Blázquez
Error de lectura XML: contenido incorrecto tras un elemento XML del documento Ubicación: http://localhost:8080/scheduler-admintool-1.0/AddPlugin.do Número de línea 8, columna 1:form id=addPluginForm name=addPluginForm onsubmit=return true; action=/scheduler-admintool-1.0/AddPlugin.do

Re: REST Show case

2008-01-18 Thread Jeromy Evans
No, all my statements relate to Struts2.1.1. The RestfulActionMapper in Struts2.0.11 is an entirely different beast Due to the dependency on CodeBehind and the major changes affecting that plugin it can't be claimed to be ready for production use at this time. There are still a few features

Re: File Upload

2008-01-18 Thread Jeromy Evans
Are you deliberately trying to do an XHR file upload? Have you tried it without the ajax theme on the form? Pablo Vázquez Blázquez wrote: Yes yes, that debugging statement is executed. That´s why I know my plugin is created. Anadido plugin + uploadFileName means Added plugin +

tile definition as an action forward path gives error

2008-01-18 Thread Amulya Yadavilli
Hi, I am getting the error java.lang.IllegalArgumentException: Path page.welcome does not start with a / character when trying to display a jsp. The tile definition is given as an Action forward path. This is the first page after login. And I am not sure if the tiles plugin in struts-config.xml

Re: tile definition as an action forward path gives error

2008-01-18 Thread Antonio Petrelli
2008/1/18, Amulya Yadavilli [EMAIL PROTECTED]: *description * *The server encountered an internal error () that prevented it from fulfilling this request.* *exception * java.lang.IllegalArgumentException : Path page.welcome does not start with a / character

Re: [S2] conversion and REPORT_CONVERSION_ERRORS

2008-01-18 Thread Dave Newton
--- Adam Hardy [EMAIL PROTECTED] wrote: Dave Newton on 17/01/08 17:18, wrote: Personally, I just removed the conversion interceptor for the bulk of my actions (particularly after development) to avoid it. So how do you retrieve the conversion errors? Do you call the getConversionErrors

Re: When is Struts 2.1 planned for release?

2008-01-18 Thread Dave Newton
--- Jayson Joseph Chacko [EMAIL PROTECTED] wrote: 1. When is Struts 2.1 release planned? It isn't; releases are dropped based on several factors with time being only a relatively minor consideration. 2. Is the Ajax support / Portlet support production ready in 2.1 ? I can't speak for

Dynamic Tree in JSP

2008-01-18 Thread naveen k
Hi, I am developing web application using struts. I want to create a dynamic tree in a Jsp page that shows some URL's. Is there any tag available in jsp to create it? If it there, then how i create it with the tags available in jsp? Which tags i have to use for that? If possible

REST vs Original

2008-01-18 Thread Frans Thamura
hi there i just want to know, how to mixe the code between S2 and with REST under one container. any idea? or anyone have an example that 'this is the old' and 'this is the REST' still cannot get how can .action become /bla/bla -- Frans Thamura Meruvian redefining civilization

Re: tile definition as an action forward path gives error

2008-01-18 Thread Amulya Yadavilli
Hi, Thanks, corrected the path and tiles-def.xml syntax. Regards, Amulya On Jan 18, 2008 3:57 PM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/1/18, Amulya Yadavilli [EMAIL PROTECTED]: tile definition = page.main path = pages/welcome.jsp Uh??? Congratulations! You invented a new

Re: [S2] conversion and REPORT_CONVERSION_ERRORS

2008-01-18 Thread Adam Hardy
Dave Newton on 17/01/08 17:18, wrote: --- Adam Hardy [EMAIL PROTECTED] wrote: Is there any other way of controlling whether XWorkConverter reports or ignores conversion errors, other than the application-wide servlet parameter REPORT_CONVERSION_ERRORS / report.conversion.errors? I would like

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-18 Thread Ted Husted
Check out the Slides and WAR from the AE session. * http://www.StrutsUniversity.org/Coding+Ajax+Applications+with+Struts I could extract a hello world example from these, but it might be a few days. HTH, Ted http://www.StrutsMentor.com/ On Jan 18, 2008 7:52 AM, bhaarat Sharma [EMAIL

Re: tile definition as an action forward path gives error

2008-01-18 Thread Antonio Petrelli
2008/1/18, Amulya Yadavilli [EMAIL PROTECTED]: tile definition = page.main path = pages/welcome.jsp Uh??? Congratulations! You invented a new Tiles definition syntax :-) Your Tiles definition file is completely wrong, add the DTD on top of your XML and validate it. And, again, check the

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-18 Thread bhaarat Sharma
is there a tutorial that shows how to set up struts 2 to use YUI. just a simple hello world. thanks -bhaarat On Jan 18, 2008 7:10 AM, Ted Husted [EMAIL PROTECTED] wrote: Under the heading, does Ajax need a web framework, there's an interesting nope blog here: *

RE: Pretty urls without .action

2008-01-18 Thread Burgess, Randall
What about the filter mapping? Seems like it should be like so: filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping Regards, Randy Burgess Senior Web Applications Developer Nuvox Communications -Original Message- From: Jeromy Evans

Re: OGNL Functions

2008-01-18 Thread Chris Pratt
On Jan 18, 2008 1:40 PM, Dave Newton [EMAIL PROTECTED] wrote: --- Chris Pratt [EMAIL PROTECTED] wrote: Is there an OGNL Equivalent to the JSP EL Function? I'd like to be able to do something like: s:textfield name=year value=%{v:year(user.birthDate)}/ but it doesn't seem to work.

Re: action variables persisting across invocations

2008-01-18 Thread Dave Newton
--- Chris Pratt [EMAIL PROTECTED] wrote: Make sure you set scope=request on your Spring action beans or it will create only one instance of the bean and reuse it forever. Is that better than setting scope=prototype? d. - To

Re: OGNL Functions

2008-01-18 Thread Dave Newton
--- Chris Pratt [EMAIL PROTECTED] wrote: Is there an OGNL Equivalent to the JSP EL Function? I'd like to be able to do something like: s:textfield name=year value=%{v:year(user.birthDate)}/ but it doesn't seem to work. Thanks. Do you mean calling static functions? If so, that's easy.

Re: how do to this in S2

2008-01-18 Thread Laurie Harper
bhaarat Sharma wrote: Hi, I\'m new to struts2. we\'r wondering how this can be achieved in S2. initially we are getting a list from the action class. this list contains bunch of objects and each object contains bunch of attributes. In the JSP we iterate over this list and for each Object we

Re: Struts2 - disabling the formatting

2008-01-18 Thread Laurie Harper
gundakiran wrote: I am using Struts2.0.8. By default tags like s:text.. , s:checkbox fieldValue=${questionId} / etc.. giving the value with commas (Ex: 2456 is displaying as 2,456). I don't want comma to be displayed. One way is to specify the format in .properties file and set the format such a

Re: REST vs Original

2008-01-18 Thread Jeromy Evans
Hi Frans, Unfortunately at the moment you can't mix conventions within the same Struts2 webapp. The trouble is the REST plugin overrides a lot of the default behaviour rather than augmenting it. Right now if your commit to REST conventions it'll apply to the entire webapp. With some effort

Re: Problem with loading form control when actionError return

2008-01-18 Thread Laurie Harper
quinquin2209 wrote: Hi All, In my web page main.jsp, I have a form defined, which contains a select box and a list of checkbox. The page works as follow: 1. user checks on the box to select member to be deleted 2. user presses the submit button 3. Member is deleted from DB 4. Return SUCCESS

Re: [S2]method not called

2008-01-18 Thread Laurie Harper
carmi_cd wrote: hi i have a table that has a checkbox, details of the record such as lastname, firstname with it. when user selects a record or records using checkbox corresponding to it, and click the delete button the record or records selected should be deleted. My problem is it is not able

Re: Dynamic Tree in JSP

2008-01-18 Thread Laurie Harper
naveen k wrote: Hi, I am developing web application using struts. I want to create a dynamic tree in a Jsp page that shows some URL's. Is there any tag available in jsp to create it? If it there, then how i create it with the tags available in jsp? Which tags i have to use for

Re: action variables persisting across invocations

2008-01-18 Thread Dave Newton
--- Ted Slusser [EMAIL PROTECTED] wrote: Yes. You've already solved the problem, but: (1) You only need to define your actions explicitly if you're wiring them manually. (2) Normally action beans are configured to the prototype scope (the current Spring plugin docs [1] are for Spring version

OGNL Functions

2008-01-18 Thread Chris Pratt
Is there an OGNL Equivalent to the JSP EL Function? I'd like to be able to do something like: s:textfield name=year value=%{v:year(user.birthDate)}/ but it doesn't seem to work. Thanks. (*Chris*) - To unsubscribe, e-mail:

Re: action variables persisting across invocations

2008-01-18 Thread Chris Pratt
On Jan 18, 2008, at 1:17 PM, Chris Pratt wrote: On Jan 18, 2008, at 1:02 PM, Dave Newton wrote: --- Ted Slusser [EMAIL PROTECTED] wrote: I have a struts2 action that is having some parameters set by the parameter interceptor. If I go to a second browser / computer and call the action

Re: action variables persisting across invocations

2008-01-18 Thread Ted Slusser
Great. thanks. That worked once I added this to the web.xml listener listener-classorg.springframework.web.context.request.RequestContextListener /listener-class /listener Does it 'throw away' objects per request? Is this a performance concern? What about object pooling, etc. I

action variables persisting across invocations

2008-01-18 Thread Ted Slusser
Hello, I have a struts2 action that is having some parameters set by the parameter interceptor. If I go to a second browser / computer and call the action I am seeing the same values on the Action that were previously set. Is this the normal behavior? Is there a way to turn it off?

Re: action variables persisting across invocations

2008-01-18 Thread Laurie Harper
Dave Newton wrote: --- Laurie Harper [EMAIL PROTECTED] wrote: Dave Newton wrote: --- Chris Pratt [EMAIL PROTECTED] wrote: Make sure you set scope=request on your Spring action beans or it will create only one instance of the bean and reuse it forever. Is that better than setting

Re: action variables persisting across invocations

2008-01-18 Thread Dave Newton
--- Laurie Harper [EMAIL PROTECTED] wrote: Dave Newton wrote: --- Chris Pratt [EMAIL PROTECTED] wrote: Make sure you set scope=request on your Spring action beans or it will create only one instance of the bean and reuse it forever. Is that better than setting scope=prototype?

Re: action variables persisting across invocations

2008-01-18 Thread Dave Newton
--- Ted Slusser [EMAIL PROTECTED] wrote: I have a struts2 action that is having some parameters set by the parameter interceptor. If I go to a second browser / computer and call the action I am seeing the same values on the Action that were previously set. Is this the normal behavior?

Re: REST Show case

2008-01-18 Thread Adam Hardy
I don't think this has been mentioned before, apologies if it has been. It can't do any harm though. I keep meaning to post here to encourage anyone who wants REST to work better to lobby for HTML 5 features. For example, form method= should accept HTTP delete, put etc. See the links below.

Re: tile definition as an action forward path gives error

2008-01-18 Thread Amulya Yadavilli
Hi, The tile definition exists. And still it gives me the same error. The application is starting up properly. Regards, Amulya On Jan 18, 2008 3:40 PM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/1/18, Amulya Yadavilli [EMAIL PROTECTED]: *description * *The server encountered an

Re: action variables persisting across invocations

2008-01-18 Thread Ted Slusser
Yes. On Jan 18, 2008, at 1:02 PM, Dave Newton wrote: --- Ted Slusser [EMAIL PROTECTED] wrote: I have a struts2 action that is having some parameters set by the parameter interceptor. If I go to a second browser / computer and call the action I am seeing the same values on the Action that

Re: action variables persisting across invocations

2008-01-18 Thread Chris Pratt
On Jan 18, 2008, at 1:02 PM, Dave Newton wrote: --- Ted Slusser [EMAIL PROTECTED] wrote: I have a struts2 action that is having some parameters set by the parameter interceptor. If I go to a second browser / computer and call the action I am seeing the same values on the Action that were

Re: action variables persisting across invocations

2008-01-18 Thread Laurie Harper
Dave Newton wrote: --- Chris Pratt [EMAIL PROTECTED] wrote: Make sure you set scope=request on your Spring action beans or it will create only one instance of the bean and reuse it forever. Is that better than setting scope=prototype? Equivalent in this case AFAIK, since Struts will create

Re: Dynamic Tree in JSP

2008-01-18 Thread naveen k
Thanks friend for ur kind reply. Naveen On Jan 19, 2008 4:05 AM, Laurie Harper [EMAIL PROTECTED] wrote: naveen k wrote: Hi, I am developing web application using struts. I want to create a dynamic tree in a Jsp page that shows some URL's. Is there any tag available in jsp to

STRUTS2 and Spring2

2008-01-18 Thread Niral Trivedi
Hi All, I am using RAD7.0, JDK 1.5, Struts2 and Spring 2.x. We have been using Struts1.x and Spring 1.x for a long time now and moving our app to Struts2 + Spring2 We are trying to have Spring manage all the value objects and action objects. And so followed steps in Struts document to add

Struts2 and Spring2 with session scoped beans

2008-01-18 Thread Niral Trivedi
Hi All, We've are trying to use Struts2 with Spring2 on Webspher 6.1 and JDK 1.5. Basically we are trying to use session scoped beans from Spring applicationContext in to Struts2 using Spring DI. but running in to issue. Following are my config files: web.xml

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-18 Thread Jayson Joseph Chacko
You may find this also useful. http://www.struts2.org/creating-a-cascading-application-menu-using-struts2-and-yui/ On Jan 18, 2008 6:29 PM, Ted Husted [EMAIL PROTECTED] wrote: Check out the Slides and WAR from the AE session. *

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-18 Thread bhaarat Sharma
that is an awesome site for struts2. has lot of good examples !! On Jan 19, 2008 2:36 AM, Jayson Joseph Chacko [EMAIL PROTECTED] wrote: You may find this also useful. http://www.struts2.org/creating-a-cascading-application-menu-using-struts2-and-yui/ On Jan 18, 2008 6:29 PM, Ted Husted