Re: [s2] Release 2.0.10 outstanding JIRA tickets

2007-08-15 Thread Ted Husted
In JIRA, There's a much longer list slated for 2.0.10 right now. Are you suggesting that the others be rolled over to 2.0.11? I also note that there are 30 issues that haven't had a Fix Version set. Someone should review those and set the version to a pending release or Future. There were two

Custom URL in Struts 2

2007-08-15 Thread rakeshxp
Hello Everyone, I am trying to figure out on how to implement custom URL format in Struts 2. Specifically, I needed URLs like - http://mysearchsite.com/XYZ+ABC = This should be calling a default Action class and pass XYZ , ABC as parameters - http://myseachsite.com/images/1 = This should be

Re: Custom URL in Struts 2

2007-08-15 Thread Brian Pontarelli
This is very rails like. This is a tough one because of the way that Struts handles the URL to find the action mapping. If you want to support the Rails ID concept inside your URLs, I would suggest writing a custom filter to change the URL as it comes in based on some pre-defined criteria.

Re: Custom URL in Struts 2

2007-08-15 Thread Ian Roughley
Writing a custom ActionMapper is the way to go - it maps the URL to an action configuration and back again. I would write one for the http://mysearchsite.com/XYZ+ABC; pattern, and then use the Restful2ActionMapper for the http://myseachsite.com/images/1; pattern. The CompositeActionMapper

Re: Custom URL in Struts 2

2007-08-15 Thread mraible
What's the advantage of using Restful2ActionMapper/CompositeActionMapper over something like the UrlRewriteFilter? http://tuckey.org/urlrewrite/ I like the UrlRewriteFilter because it can alter outgoing URLs to be RESTful-looking as well. Matt Ian Roughley wrote: Writing a custom

error testing struts 2.0.10 snapshot (s:a tag)

2007-08-15 Thread Pedro Herrera
In my tests is occurring the following error : ... According to TLD or attribute directive in tag file, attribute href does not accept any expressions ... the code : s:a href=portal!showContent.action?linkId=${codSubLinkContent} Go Item /s:a In this new release in not permited

Re: error testing struts 2.0.10 snapshot (s:a tag)

2007-08-15 Thread James Holmes
I believe this is related to a security issue that Don Brown is working to resolve. See these links: http://www.nabble.com/-s2--Possible-security-issue-when-using-JSP-FreeMarker-EL-in-Struts-tags-tf4259754.html https://issues.apache.org/struts/browse/WW-2107 James On Wed Aug 15 12:10 , Pedro

Re: error testing struts 2.0.10 snapshot (s:a tag)

2007-08-15 Thread Pedro Herrera
hu... makes sense... I´ll need to test my applicatin with more attention now, to prevent this feature Thanks . James Holmes-2 wrote: I believe this is related to a security issue that Don Brown is working to resolve. See these links:

Re: Ajax Theme

2007-08-15 Thread Musachy Barroso
The ajax validation depends on DWR musachy On 8/15/07, Ian Roughley [EMAIL PROTECTED] wrote: Is the ajax theme in the 2.0.x branch completely Dojo driven now? If so, there seems to be a lot of DWR code that could be removed (i.e. from the web.xml and form.ftl). I can open a ticket if this

Ajax Theme

2007-08-15 Thread Ian Roughley
Is the ajax theme in the 2.0.x branch completely Dojo driven now? If so, there seems to be a lot of DWR code that could be removed (i.e. from the web.xml and form.ftl). I can open a ticket if this is the case. /Ian - To

Re: [s2] Release 2.0.10 outstanding JIRA tickets

2007-08-15 Thread James Holmes
Yes, I knew the list was much longer. My plan was to move anything not fixed now to the 2.0.11 bucket. I think it would be best to have regular incremental releases so that we get fixes out to people sooner. Most people can't truly get access to the latest fixes until a GA release is made

Re: Custom URL in Struts 2

2007-08-15 Thread Ian Roughley
The Restful2ActionMapper will call different methods of the action class depending on the HTTP type. If this is not important, or you are using different actions then the UrlRewriteFilter is a great option. The Restful2ActionMapper is also part of Struts2 ;-) /Ian mraible wrote: What's the

Re: error testing struts 2.0.10 snapshot (s:a tag)

2007-08-15 Thread Pedro Herrera
I´m changing my app to dont use {$, but I found a problem. I´m using displayTag and the code is : this codes works is struts 2.0.9 (s:checkbox) dt:table name=listagem pagesize=15 id=primitivo dt:column s:checkbox name=sel fieldValue=${primitivo.codSubLink}

Re: error testing struts 2.0.10 snapshot (s:a tag)

2007-08-15 Thread Pedro Herrera
thanks so much ! fieldValue=%{#attr.primitivo.codSubLink} Herrera Musachy Barroso wrote: try: #attr.primitivo.codSubLink musachy On 8/15/07, Pedro Herrera [EMAIL PROTECTED] wrote: I´m changing my app to dont use {$, but I found a problem. I´m using displayTag and the

Re: error testing struts 2.0.10 snapshot (s:a tag)

2007-08-15 Thread Musachy Barroso
try: #attr.primitivo.codSubLink musachy On 8/15/07, Pedro Herrera [EMAIL PROTECTED] wrote: I´m changing my app to dont use {$, but I found a problem. I´m using displayTag and the code is : this codes works is struts 2.0.9 (s:checkbox) dt:table name=listagem pagesize=15

Re: [s2] nightly builds

2007-08-15 Thread Mark Chaimungkalanont
Folks, I've set up a few artifacts to mirror http://people.apache.org/builds/ struts/nightlies/2.0.x/ You can check it out at: http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN/latest and click on the Artifacts tab. Let me know if it's missing anything or you want me change how it

RE: svn commit: r566324 - in /struts/struts2/trunk: apps/portlet/src/main/webapp/WEB-INF/ plugins/portlet/src/main/java/org/apache/struts2/portlet/ plugins/portlet/src/main/java/org/apache/struts2/por

2007-08-15 Thread James Holmes
This commit was causing problems for me because of this code: @Inject(struts.portlet.dispatcherServletName) public void setDispatcherServletName(String dispatcherServletName) { this.dispatcherServletName = dispatcherServletName; } There was not a

Re: svn commit: r566324 - in /struts/struts2/trunk: apps/portlet/src/main/webapp/WEB-INF/ plugins/portlet/src/main/java/org/apache/struts2/portlet/ plugins/portlet/src/main/java/org/apache/struts2/por

2007-08-15 Thread Nils-Helge Garli
Thanks for fixing the mistake, James. Nils-H On 8/16/07, James Holmes [EMAIL PROTECTED] wrote: This commit was causing problems for me because of this code: @Inject(struts.portlet.dispatcherServletName) public void setDispatcherServletName(String dispatcherServletName) {