User provisioning and maintenance systems
This is tangentially related to struts but it seems to come up often enough that I figured I would ask this group. For most applications, I use Struts (mostly 1 but I'm coming up to speed on 2) with Spring Security. For user provisioning and and maintenance I usually use the systems that come with other applications on the site such as a forum or blog. This isn't ideal but it gets the job done. For bigger systems with larger budgets, SiteMinder (and other stand alone systems) works fine but it is expensive and requires specialized skills. I'd like to use an open source user maintenance system written in Java and preferably Struts 2 and Spring. Is there such an animal? So what does everyone use with their Struts applications? Does everyone roll their own? -- cordially, Marty Milligan PO Box 434, Falling Waters, WV 25419 http://milligansisland.com/ http://byteslinger.com/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Errors during unzip of 2.1.8
Works fine for me using linux too, but not using WinZip on Windows XP - Windows does not support question marks (?) in file names. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Wednesday, September 30, 2009 8:06 PM To: Struts Users Mailing List Subject: Re: Errors during unzip of 2.1.8 works fine for me on rhel 5, are you on windows? musachy On Wed, Sep 30, 2009 at 4:33 PM, Lee Clemens wrote: > Hello, > > Winzip is giving me dozens (maybe more) of these errors when attempting to > unzip struts-2.1.8-all.zip. > > The following invalid filename was encountered in the archive: > "struts-2.1.8\docs\WW\quickstart.data\index.html?C=M;O=D.html" > > File names/paths are change, but they all seem to be in \docs\WW > > -Lee > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Errors during unzip of 2.1.8
works fine for me on rhel 5, are you on windows? musachy On Wed, Sep 30, 2009 at 4:33 PM, Lee Clemens wrote: > Hello, > > Winzip is giving me dozens (maybe more) of these errors when attempting to > unzip struts-2.1.8-all.zip. > > The following invalid filename was encountered in the archive: > "struts-2.1.8\docs\WW\quickstart.data\index.html?C=M;O=D.html" > > File names/paths are change, but they all seem to be in \docs\WW > > -Lee > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Errors during unzip of 2.1.8
Hello, Winzip is giving me dozens (maybe more) of these errors when attempting to unzip struts-2.1.8-all.zip. The following invalid filename was encountered in the archive: "struts-2.1.8\docs\WW\quickstart.data\index.html?C=M;O=D.html" File names/paths are change, but they all seem to be in \docs\WW -Lee - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[ANN] Struts 2.1.8 GA Release
The Apache Struts Team is pleased to announce that Struts 2.1.8 is available as a "General Availability" release. The GA designation is our highest quality grade. [http://struts.apache.org/download.cgi#struts218] The release is also available from the central Maven repository under Group ID "org.apache.struts". The 2.1.x series of the Apache Struts framework has a minimum requirement of the following specification versions: * Java Servlet 2.4 and JavaServer Pages (JSP) 2.0 * Java 2 Standard Platform Edition (J2SE) 1.5 The release notes are available online at: * [http://struts.apache.org/2.1.8/docs/version-notes-218.html] Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a ticket with JIRA. - The Apache Struts Team. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Localization and Dates
Properly handling dates in a fully internationalized application can be harder then you might think. As in your example "Dec. 20, 2009" is not an absolute value, it depends on which timezone the user is in because if may be Dec 20 in London, but it's already Dec 21 in Hong Kong. And of course 12/10/2009 means different dates depending on which country or region you are in. So a date is only fully defined if you know both the TimeZone and the Locale of the user. In the apps I've written I always include the Locale and TimeZone as part of the User object. Then I always use a DataFormat object and set both the Locale and TimeZone, if you don't set them they will default to the servers settings which often (but not always) are GMT ( which is almost always incorrect for the user). If you don't know the timezone or locale of the user (or have unregistered users) then you could provide a select dropdown list that lets them specify it as part of the request (then cookie it). As a last and worst resort you could always tell them which timezone the app is running in and what format you expect dates to be entered in. In either case you do not want to use automatic String to Date conversion for parameter setting. Have your 'date' field defined as a String and in your action convert it to a Date using a DateFormat object based on the TimeZone and Locale that you chose. On a related note, if you are selecting records from a database based on a Date field, (e.g. select orders for Dec 20, 2009) and your db column is a datetime then you really need to specify your select as a range e.g. "select orders where orderDate >= :startDate and orderDate < :endDate". To create the startDate and endDate you use a Calender object and again you must set the TimeZone and Locale (Calendar.getInstance(timeZone, locale);) you would then set the date to the date you want (Dec 20, 2009) and set the time portion to zero (Hours, minutes, seconds, milliseconds). For the the endDate you would add one day to the calendar. You range expression then gives you the 24 hour period that is considered "Dec 20, 2009" for a user in that timezone. Hope that helps. On Wed, Sep 30, 2009 at 5:18 AM, Robin Mannering wrote: > Hello, > > Can anyone give me some 'best practice' advice for dealing with dates in > an international app (Struts2). > > We are based in the UK and have an application running locally that > stores dates within action classes as java.util.Date. > > These dates are sometimes passed to the application via querystring in > the format: > > somePage.action?startDate=20/12/2009 > > The action class picks up this date and stores it correctly as the 20th > day of December when running locally. > > However, on installation to our US based server (Struts 2 / Glassfish) > where of course date formats are mm/dd/, the action class makes the > assumption that we are trying to refer to the 20th month of the year and > so returns control to the input page with an accompanying error message. > > I know this is to do with localization, but I am at a loss as to the > best practice for defining locales so that struts knows how to deal with > this kind of scenario. > > The problem is passing those localized value back to the server action > classes. > > Any advice would be gratefully received. > Thanks > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Create new theme in struts Tutorial
Hi Martin, I have two kinds of forms. Table view and Entity View for different entities and tables. The look-and-feel shall be the same, only the content and columns differ. I don't use any template library. CSS is planned. Eduard Neuwirt Martin Gainty schrieb: i would have to agree with patrick in saying its easier to wrap the simple theme than creating from scratch http://struts.apache.org/2.0.14/docs/extending-themes.html a few questions: what is the purpose of this theme? which Template Libraries would you be using? will you be using CSS? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 30 Sep 2009 21:03:27 +0200 From: eduard.neuw...@googlemail.com To: user@struts.apache.org Subject: Create new theme in struts Tutorial Hello, I am trying to create my own Struts theme. The topic seems to be rather rarely. I am looking for an tutorial or how to guide describing this. Does a tutorial exist ? Is it useful to create a won theme ? Regards Eduard - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Create new theme in struts Tutorial
i would have to agree with patrick in saying its easier to wrap the simple theme than creating from scratch http://struts.apache.org/2.0.14/docs/extending-themes.html a few questions: what is the purpose of this theme? which Template Libraries would you be using? will you be using CSS? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Wed, 30 Sep 2009 21:03:27 +0200 > From: eduard.neuw...@googlemail.com > To: user@struts.apache.org > Subject: Create new theme in struts Tutorial > > Hello, > > I am trying to create my own Struts theme. The topic seems to be rather > rarely. I am looking for an tutorial or how to guide describing this. > Does a tutorial exist ? Is it useful to create a won theme ? > > Regards > Eduard > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
Create new theme in struts Tutorial
Hello, I am trying to create my own Struts theme. The topic seems to be rather rarely. I am looking for an tutorial or how to guide describing this. Does a tutorial exist ? Is it useful to create a won theme ? Regards Eduard - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Convention Confusion [BUG]?
On Wednesday 30 September 2009 18:15:00 Musachy Barroso wrote: > that is pretty suspicious, can you open a jira ticket with the details? > > thanks > musachy > Will do. I need to construct a test case to remove all the DB activities etc. Is there a site with instructions on how to prepare a jira and where do I go to do this - I've never done this before. Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Convention Plugin - "Unable to find a result type for extension [svn/]"
convention uses the extension to figure out the result type, so it is getting confused and assuming that "svn" is a type. I think it is safe to ignore any file that starts with "." as it will have no file name, so no result could ever map to it (by convention at least). I fixed it in trunk, Jira is down at the moment, I will create a ticket when it comes back up. thanks for reporting musachy On Wed, Sep 30, 2009 at 10:00 AM, Christian Bockermann wrote: > Hi, > > I am a big fan of the struts-convention plugin, but have errors getting it > to > ignore my .svn-files. If I start my web-app using the maven-jetty plugin > (mvn jetty:run), it starts processing the resource-paths until it hits the > first > .svn-directory: > > > Caused by: Unable to find a result type for extension [svn/] in location > attribute [/WEB-INF/content/.svn/]. - [unknown location] > at > org.apache.struts2.convention.DefaultResultMapBuilder$ResultInfo.determineType(DefaultResultMapBuilder.java:452) > at > org.apache.struts2.convention.DefaultResultMapBuilder$ResultInfo.(DefaultResultMapBuilder.java:415) > at > org.apache.struts2.convention.DefaultResultMapBuilder.makeResults(DefaultResultMapBuilder.java:310) > at > org.apache.struts2.convention.DefaultResultMapBuilder.createFromResources(DefaultResultMapBuilder.java:234) > at > org.apache.struts2.convention.DefaultResultMapBuilder.build(DefaultResultMapBuilder.java:183) > at > org.apache.struts2.convention.PackageBasedActionConfigBuilder.createActionConfig(PackageBasedActionConfigBuilder.java:680) > at > org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildConfiguration(PackageBasedActionConfigBuilder.java:493) > at > org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:278) > at > org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:52) > at > com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:200) > at > com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55) > ... 43 more > > > Is there any way to ignore these .svn-directories? > I thought about patching the DefaultResultMapBuilder and adding a > "exclude"-config, but > am not sure if this would be the right way... > > (Sorry, if this has been asked before, I didn't find any good results in the > list archive) > > Best regards, > Chris > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Convention Plugin - "Unable to find a result type for extension [svn/]"
Hi, I am a big fan of the struts-convention plugin, but have errors getting it to ignore my .svn-files. If I start my web-app using the maven-jetty plugin (mvn jetty:run), it starts processing the resource-paths until it hits the first .svn-directory: Caused by: Unable to find a result type for extension [svn/] in location attribute [/WEB-INF/content/.svn/]. - [unknown location] at org.apache.struts2.convention.DefaultResultMapBuilder $ResultInfo.determineType(DefaultResultMapBuilder.java:452) at org.apache.struts2.convention.DefaultResultMapBuilder $ResultInfo.(DefaultResultMapBuilder.java:415) at org .apache .struts2 .convention .DefaultResultMapBuilder.makeResults(DefaultResultMapBuilder.java:310) at org .apache .struts2 .convention .DefaultResultMapBuilder .createFromResources(DefaultResultMapBuilder.java:234) at org .apache .struts2 .convention.DefaultResultMapBuilder.build(DefaultResultMapBuilder.java: 183) at org .apache .struts2 .convention .PackageBasedActionConfigBuilder .createActionConfig(PackageBasedActionConfigBuilder.java:680) at org .apache .struts2 .convention .PackageBasedActionConfigBuilder .buildConfiguration(PackageBasedActionConfigBuilder.java:493) at org .apache .struts2 .convention .PackageBasedActionConfigBuilder .buildActionConfigs(PackageBasedActionConfigBuilder.java:278) at org .apache .struts2 .convention .ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:52) at com .opensymphony .xwork2 .config .impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java: 200) at com .opensymphony .xwork2 .config .ConfigurationManager.getConfiguration(ConfigurationManager.java:55) ... 43 more Is there any way to ignore these .svn-directories? I thought about patching the DefaultResultMapBuilder and adding a "exclude"-config, but am not sure if this would be the right way... (Sorry, if this has been asked before, I didn't find any good results in the list archive) Best regards, Chris - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Localization and Dates
- Original Message > From: Tommy Pham > To: Struts Users Mailing List > Sent: Wednesday, September 30, 2009 9:06:47 AM > Subject: Re: Localization and Dates > > - Original Message > > From: Robin Mannering > > To: Struts Users Mailing List > > Sent: Wednesday, September 30, 2009 2:18:58 AM > > Subject: Localization and Dates > > > > Hello, > > > > Can anyone give me some 'best practice' advice for dealing with dates in > > an international app (Struts2). > > > > We are based in the UK and have an application running locally that > > stores dates within action classes as java.util.Date. > > > > These dates are sometimes passed to the application via querystring in > > the format: > > > > somePage.action?startDate=20/12/2009 > > > > The action class picks up this date and stores it correctly as the 20th > > day of December when running locally. > > > > However, on installation to our US based server (Struts 2 / Glassfish) > > where of course date formats are mm/dd/, the action class makes the > > assumption that we are trying to refer to the 20th month of the year and > > so returns control to the input page with an accompanying error message. > > > > I know this is to do with localization, but I am at a loss as to the > > best practice for defining locales so that struts knows how to deal with > > this kind of scenario. > > > > The problem is passing those localized value back to the server action > > classes. > > > > Any advice would be gratefully received. > > Thanks > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > Locale + DateFormat / SimpleDateFormat / DateFormatSymbols ? or http://struts.apache.org/2.1.6/docs/formatting-dates-and-numbers.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Localization and Dates
- Original Message > From: Robin Mannering > To: Struts Users Mailing List > Sent: Wednesday, September 30, 2009 2:18:58 AM > Subject: Localization and Dates > > Hello, > > Can anyone give me some 'best practice' advice for dealing with dates in > an international app (Struts2). > > We are based in the UK and have an application running locally that > stores dates within action classes as java.util.Date. > > These dates are sometimes passed to the application via querystring in > the format: > > somePage.action?startDate=20/12/2009 > > The action class picks up this date and stores it correctly as the 20th > day of December when running locally. > > However, on installation to our US based server (Struts 2 / Glassfish) > where of course date formats are mm/dd/, the action class makes the > assumption that we are trying to refer to the 20th month of the year and > so returns control to the input page with an accompanying error message. > > I know this is to do with localization, but I am at a loss as to the > best practice for defining locales so that struts knows how to deal with > this kind of scenario. > > The problem is passing those localized value back to the server action > classes. > > Any advice would be gratefully received. > Thanks > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org Locale + DateFormat / SimpleDateFormat / DateFormatSymbols ? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how to use autocompleter tag? Please......
__ From: taj uddin To: struts2 Sent: Tuesday, September 29, 2009 4:08:55 AM Subject: how to use autocompleter tag? Please.. Hi All, I am working on web application using struts 2.0.12 version. In my application there is a need to replace the select tag with autocompleter tag. I tried many ways using the list which i obtain from the action class and also tested with static list values but not able to acheive the functionality of autocompleter tag. Below is the snippet of my JSP Page code: *: Also in the header tag I have included the ajax theme--- To acheive the autocompleter tag functionality, I have replaced the above select tag with autocompleter tag as shown below: Also have tested by replacing the dynamically obtained list with that of the static values (as shown below) but in vain.. My application was completely developed using struts2 framework and javascript. Not anywhere in the application i have used either DOJOs or AJAX. The list of web libraries which i am using currently are: commons-fileupload-1.2.1, commons-io-1.4, commons-logging-1.0.4, freemarker-2.3.8, mysql-connector-java-5.1.6-bin, ognl-2.6.11, sitemesh-2.3, struts2-core-2.0.12, xwork-2.0.6 Do i need to include any further libraries for the proper functioning of autocompleter tag? Please help me out from this issue. Thanks, Tajuddin http://struts.apache.org/2.0.14/docs/autocompleter.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Convention Confusion [BUG]?
that is pretty suspicious, can you open a jira ticket with the details? thanks musachy On Wed, Sep 30, 2009 at 2:20 AM, RogerV wrote: > > > > RogerV wrote: >> >> I think it's a bug in the way the URL is being interrpreted. I tried your >> idea setting the namespace attribute on the url tag, made no difference. >> However if I drop the parameter from the URL then the action gets >> processed. So >> > > Yep - definite bug. If I change my annotation to > @Action("deletegroup?deleteId=1") in my action class and then click on the > corresponding button on the jsp, the action method gets called! If I press > the next button in the list I get "There is no Action mapped for namespace / > and action name deletegroup?deleteId=2." > > Regards > > -- > View this message in context: > http://www.nabble.com/Convention-Confusion-tp25658114p25677619.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Wondering that Struts2 is getting die?
rofl On Wed, Sep 30, 2009 at 6:31 AM, Nils-Helge Garli Hegvik wrote: > Now that is an impressive conclusion I didn't catch that, since I > was reading the lines instead of between them... > > Nils-H > > On Wed, Sep 30, 2009 at 3:25 PM, Martin Gainty wrote: >> >> if i read between the lines i think hes speaking of the hardcoded xwork >> dependency >> there are rumours (that I am spreading) about incorporating different >> Interceptor libraries (e.g. Spring) >> as this is decidedly non-trivial undertaking this would involve a major >> revision (not a point release) refactoring >> >> Martin Gainty >> __ >> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité >> >> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene >> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte >> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht >> dient lediglich dem Austausch von Informationen und entfaltet keine >> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von >> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. >> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le >> destinataire prévu, nous te demandons avec bonté que pour satisfaire >> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie >> de ceci est interdite. Ce message sert à l'information seulement et n'aura >> pas n'importe quel effet légalement obligatoire. Étant donné que les email >> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter >> aucune responsabilité pour le contenu fourni. >> >> >> >> >>> Date: Wed, 30 Sep 2009 13:15:58 +0200 >>> Subject: Re: Wondering that Struts2 is getting die? >>> From: nil...@gmail.com >>> To: user@struts.apache.org >>> >>> If you check out the dev mailing list, you'll see that there's >>> currently a vote for 2.1.8. That doesn't look like dead to me... >>> >>> Nils-H >>> >>> On Wed, Sep 30, 2009 at 1:12 PM, karaatli wrote: >>> > >>> > Hi all, >>> > Due to out of date struts wiki page, confllunece page & others relating to >>> > struts2 I am questioning myself what about Struts2 future days? >>> > >>> > Or >>> > >>> > Why there is no update at these pages? >>> > >>> > -- >>> > View this message in context: >>> > http://www.nabble.com/Wondering-that-Struts2-is-getting-die--tp25679069p25679069.html >>> > Sent from the Struts - User mailing list archive at Nabble.com. >>> > >>> > >>> > - >>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> > For additional commands, e-mail: user-h...@struts.apache.org >>> > >>> > >>> >>> - >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >> >> _ >> Lauren found her dream laptop. Find the PC that’s right for you. >> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290 > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: restful URL issue
I think it would be save to say that you might have to use xml mapping for those actions. When adding the "advanced wildards" I found some problem in convention, which are now fixed in trunk. If you are comfortable building struts, you might five it a try. musahcy On Wed, Sep 30, 2009 at 6:38 AM, struts-restful wrote: > > Is a possible reason that it may not be working that I am also using the > convention plugin?? > > > struts-restful wrote: >> >> I also tried this with a / in the namespace so >> >> @Namespace("test/{id}"} and >> @Namespace("/test/{id}"} give a namespace with "". >> >> >> >> struts-restful wrote: >>> >>> One more additional piece of information is that the namespaceMatcher >>> does contain the compiled pattern for my namespace. >>> >>> Another thing I noticed when messing around trying to figure this out is >>> that I created a different controller class ain a different package for >>> example test.MyTestController. >>> >>> when I tried the URL /test/-1/my-test.xml my namespace was set to "" and >>> my actionname was = "test" and methodname was populated with "my-test". >>> This is if I had a namespace annotation as follows >>> >>> @Namespace("test/{id}"} >>> public class MyTestController >>> >>> Thanks in advance >>> >>> >>> >>> struts-restful wrote: Yes I am putting it in the namespace annotation @Namespace("/person/name/test-example/{id}") Stepping through the namespace pattern matcher code it does replace the {id} with ([^/]+) but that is as far as i have got and still dont understand why it does not work Thanks in advance Musachy Barroso wrote: > > are you putting that in the @Namespace annotation? It will not work on > the @Action annotation. > > musachy > > On Tue, Sep 29, 2009 at 8:49 AM, struts-restful > wrote: >> >> Also I know that the default parameter is id but ideally i am trying >> to >> create a url as follows >> >> /person/name/{id}/{anotherId}/test-example >> >> >> struts-restful wrote: >>> >>> I amended my URL to be as follows then using the namespace pattern >>> matcher >>> >>> /person/name/{id}/test-example >>> >>> but this now maps the config as /person/name/{id}. How would I get >>> rid of >>> the {id} bit but still pass the parameter through? >>> >>> Thanks >>> >>> >>> >>> Musachy Barroso wrote: the namespace matcher, ad the name implies matches parameters only in the namespace (the part before the action). To map params after the action name, you have to use wildcards. Because this is confusing, we introduced the advanced regex patters which will sove all the cases, see this: http://cwiki.apache.org/confluence/pages/editpage.action?pageId=44247 all 3 approaches are there with examples. musachy On Tue, Sep 29, 2009 at 8:20 AM, struts-restful wrote: > > Ok after some further investigating the problem appears to be when > the > server > is starting up and it is building the namespaceActionConfig map. > > because my namespace on the action is set to > /person/name/test-example/{id} > when the action config is created the key is set to > /person/name/test-example/{id}. So when I call the url the rest > action > mapper parses the mapping and creates a namespace of /person/name, > and > subsequently when it tries to determine the corresponding action > config > associated with this key nothing is found because on start up it > had > been > mapped to /person/name/test-example/{id}. > > When i remove the namespace annotation and type in the url my > action is > then > correctly mapped with /person/name. > > So is this a bug or have i missed something in my configuration? > > thanks in advance > > > > struts-restful wrote: >> >> Thanks for the help and your reply. >> >> i implemented the named pattern matcher but cant get it to work. I >> have >> the following config in my struts.xml >> >> > name="namedVariablePatternMatcher" >> >> class="com.opensymphony.xwork2.util.NamedVariablePatternMatcher"/> >> >> > value="true"/> >> > value="namedVariablePatternMatcher"/> >> >> On my action I added the namespace annotation for example >> >> @Namespace("/person/name/test-example/{id}") >> >> this uses the restActionMapper but does not return a ActionConfig >> object >> with the namespace /person/name
Get struts action class
In my method signature have ActionMapping mapping, ActionForm form, HttpServletRequest request I want to get the associated "Action". How to get the action class? I would appreciate your help. Thanks. _ Hotmail® has ever-growing storage! Don’t worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009
Re: restful URL issue
Is a possible reason that it may not be working that I am also using the convention plugin?? struts-restful wrote: > > I also tried this with a / in the namespace so > > @Namespace("test/{id}"} and > @Namespace("/test/{id}"} give a namespace with "". > > > > struts-restful wrote: >> >> One more additional piece of information is that the namespaceMatcher >> does contain the compiled pattern for my namespace. >> >> Another thing I noticed when messing around trying to figure this out is >> that I created a different controller class ain a different package for >> example test.MyTestController. >> >> when I tried the URL /test/-1/my-test.xml my namespace was set to "" and >> my actionname was = "test" and methodname was populated with "my-test". >> This is if I had a namespace annotation as follows >> >> @Namespace("test/{id}"} >> public class MyTestController >> >> Thanks in advance >> >> >> >> struts-restful wrote: >>> >>> Yes I am putting it in the namespace annotation >>> >>> @Namespace("/person/name/test-example/{id}") >>> >>> Stepping through the namespace pattern matcher code it does replace the >>> {id} with ([^/]+) but that is as far as i have got and still dont >>> understand why it does not work >>> >>> Thanks in advance >>> >>> >>> >>> Musachy Barroso wrote: are you putting that in the @Namespace annotation? It will not work on the @Action annotation. musachy On Tue, Sep 29, 2009 at 8:49 AM, struts-restful wrote: > > Also I know that the default parameter is id but ideally i am trying > to > create a url as follows > > /person/name/{id}/{anotherId}/test-example > > > struts-restful wrote: >> >> I amended my URL to be as follows then using the namespace pattern >> matcher >> >> /person/name/{id}/test-example >> >> but this now maps the config as /person/name/{id}. How would I get >> rid of >> the {id} bit but still pass the parameter through? >> >> Thanks >> >> >> >> Musachy Barroso wrote: >>> >>> the namespace matcher, ad the name implies matches parameters only >>> in >>> the namespace (the part before the action). To map params after the >>> action name, you have to use wildcards. Because this is confusing, >>> we >>> introduced the advanced regex patters which will sove all the cases, >>> see this: >>> >>> http://cwiki.apache.org/confluence/pages/editpage.action?pageId=44247 >>> >>> all 3 approaches are there with examples. >>> musachy >>> >>> On Tue, Sep 29, 2009 at 8:20 AM, struts-restful >>> wrote: Ok after some further investigating the problem appears to be when the server is starting up and it is building the namespaceActionConfig map. because my namespace on the action is set to /person/name/test-example/{id} when the action config is created the key is set to /person/name/test-example/{id}. So when I call the url the rest action mapper parses the mapping and creates a namespace of /person/name, and subsequently when it tries to determine the corresponding action config associated with this key nothing is found because on start up it had been mapped to /person/name/test-example/{id}. When i remove the namespace annotation and type in the url my action is then correctly mapped with /person/name. So is this a bug or have i missed something in my configuration? thanks in advance struts-restful wrote: > > Thanks for the help and your reply. > > i implemented the named pattern matcher but cant get it to work. I > have > the following config in my struts.xml > > name="namedVariablePatternMatcher" > > class="com.opensymphony.xwork2.util.NamedVariablePatternMatcher"/> > > value="true"/> > value="namedVariablePatternMatcher"/> > > On my action I added the namespace annotation for example > > @Namespace("/person/name/test-example/{id}") > > this uses the restActionMapper but does not return a ActionConfig > object > with the namespace /person/name and the name test-example. When I > stepped > into this method in the DefaultConfiguration class the action > TestExampleController had not been added to the map when it tries > to > find > a config object. > > I then tried the same url but removed the namespace annotation > from the > action and typed the url into the browser. This went through the > same >>
RE: Wondering that Struts2 is getting die?
Impressive; I didn't get that at all from the context of their message. Do you read tarot cards, too? ;) > -Original Message- > From: Martin Gainty [mailto:mgai...@hotmail.com] > Sent: Wednesday, September 30, 2009 9:25 AM > To: Struts Users Mailing List > Subject: RE: Wondering that Struts2 is getting die? > > > if i read between the lines i think hes speaking of the > hardcoded xwork dependency > there are rumours (that I am spreading) about incorporating > different Interceptor libraries (e.g. Spring) > as this is decidedly non-trivial undertaking this would > involve a major revision (not a point release) refactoring > > Martin Gainty > __ > > > > > Date: Wed, 30 Sep 2009 13:15:58 +0200 > > Subject: Re: Wondering that Struts2 is getting die? > > From: nil...@gmail.com > > To: user@struts.apache.org > > > > If you check out the dev mailing list, you'll see that there's > > currently a vote for 2.1.8. That doesn't look like dead to me... > > > > Nils-H > > > > On Wed, Sep 30, 2009 at 1:12 PM, karaatli > wrote: > > > > > > Hi all, > > > Due to out of date struts wiki page, confllunece page & > others relating to > > > struts2 I am questioning myself what about Struts2 future days? > > > > > > Or > > > > > > Why there is no update at these pages? > > > > > > -- > > > View this message in context: > http://www.nabble.com/Wondering-that-Struts2-is-getting-die--t p25679069p25679069.html > > > Sent from the Struts - User mailing list archive at Nabble.com. Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Wondering that Struts2 is getting die?
Now that is an impressive conclusion I didn't catch that, since I was reading the lines instead of between them... Nils-H On Wed, Sep 30, 2009 at 3:25 PM, Martin Gainty wrote: > > if i read between the lines i think hes speaking of the hardcoded xwork > dependency > there are rumours (that I am spreading) about incorporating different > Interceptor libraries (e.g. Spring) > as this is decidedly non-trivial undertaking this would involve a major > revision (not a point release) refactoring > > Martin Gainty > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Wed, 30 Sep 2009 13:15:58 +0200 >> Subject: Re: Wondering that Struts2 is getting die? >> From: nil...@gmail.com >> To: user@struts.apache.org >> >> If you check out the dev mailing list, you'll see that there's >> currently a vote for 2.1.8. That doesn't look like dead to me... >> >> Nils-H >> >> On Wed, Sep 30, 2009 at 1:12 PM, karaatli wrote: >> > >> > Hi all, >> > Due to out of date struts wiki page, confllunece page & others relating to >> > struts2 I am questioning myself what about Struts2 future days? >> > >> > Or >> > >> > Why there is no update at these pages? >> > >> > -- >> > View this message in context: >> > http://www.nabble.com/Wondering-that-Struts2-is-getting-die--tp25679069p25679069.html >> > Sent from the Struts - User mailing list archive at Nabble.com. >> > >> > >> > - >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > For additional commands, e-mail: user-h...@struts.apache.org >> > >> > >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > > _ > Lauren found her dream laptop. Find the PC that’s right for you. > http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Wondering that Struts2 is getting die?
if i read between the lines i think hes speaking of the hardcoded xwork dependency there are rumours (that I am spreading) about incorporating different Interceptor libraries (e.g. Spring) as this is decidedly non-trivial undertaking this would involve a major revision (not a point release) refactoring Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Wed, 30 Sep 2009 13:15:58 +0200 > Subject: Re: Wondering that Struts2 is getting die? > From: nil...@gmail.com > To: user@struts.apache.org > > If you check out the dev mailing list, you'll see that there's > currently a vote for 2.1.8. That doesn't look like dead to me... > > Nils-H > > On Wed, Sep 30, 2009 at 1:12 PM, karaatli wrote: > > > > Hi all, > > Due to out of date struts wiki page, confllunece page & others relating to > > struts2 I am questioning myself what about Struts2 future days? > > > > Or > > > > Why there is no update at these pages? > > > > -- > > View this message in context: > > http://www.nabble.com/Wondering-that-Struts2-is-getting-die--tp25679069p25679069.html > > Sent from the Struts - User mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
Dojo plugin deprecation and use of modern Dojo widgets
I understand that the Dojo plugin is deprecated. We have an application that uses Dojo widgets for all input UI. Well, if we use Dojo widgets for all UI elements, it means we are not using struts form tags. That means we cannot truly use all built-in wonderful things like automagical field binding, validation, etc. Of course I understand that we could write our own theme where we render dojo widgets in templates as opposed to plain HTML. The question is -> Is there such thing as modern Dojo (1.3+) coexistence with Struts2 so that we can use all the great Struts2 built-in magic? Thank you Greg
Re: Wondering that Struts2 is getting die?
On Wed, Sep 30, 2009 at 4:59 AM, karaatli wrote: > of course thanks to community of struts2 but > I want to see that strust2 is more alive and more updated... I don't know what's more alive than a new release currently being voted on... If you have specific examples of documentation that needs updates, you can open a JIRA issue to point out the problem. https://issues.apache.org/struts/browse/WW -- Wendy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Wondering that Struts2 is getting die?
of course thanks to community of struts2 but I want to see that strust2 is more alive and more updated... Thanks... reiern70 wrote: > > Why not volunteer to help maintain them:-) It is opensource... Just follow > the list and you will see it is still very alive. > Ernesto > > On Wed, Sep 30, 2009 at 1:12 PM, karaatli wrote: > >> >> Hi all, >> Due to out of date struts wiki page, confllunece page & others relating >> to >> struts2 I am questioning myself what about Struts2 future days? >> >> Or >> >> Why there is no update at these pages? >> >> -- >> View this message in context: >> http://www.nabble.com/Wondering-that-Struts2-is-getting-die--tp25679069p25679069.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > -- View this message in context: http://www.nabble.com/Wondering-that-Struts2-is-getting-die--tp25679069p25679616.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Wondering that Struts2 is getting die?
Why not volunteer to help maintain them:-) It is opensource... Just follow the list and you will see it is still very alive. Ernesto On Wed, Sep 30, 2009 at 1:12 PM, karaatli wrote: > > Hi all, > Due to out of date struts wiki page, confllunece page & others relating to > struts2 I am questioning myself what about Struts2 future days? > > Or > > Why there is no update at these pages? > > -- > View this message in context: > http://www.nabble.com/Wondering-that-Struts2-is-getting-die--tp25679069p25679069.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Wondering that Struts2 is getting die?
If you check out the dev mailing list, you'll see that there's currently a vote for 2.1.8. That doesn't look like dead to me... Nils-H On Wed, Sep 30, 2009 at 1:12 PM, karaatli wrote: > > Hi all, > Due to out of date struts wiki page, confllunece page & others relating to > struts2 I am questioning myself what about Struts2 future days? > > Or > > Why there is no update at these pages? > > -- > View this message in context: > http://www.nabble.com/Wondering-that-Struts2-is-getting-die--tp25679069p25679069.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Wondering that Struts2 is getting die?
Hi all, Due to out of date struts wiki page, confllunece page & others relating to struts2 I am questioning myself what about Struts2 future days? Or Why there is no update at these pages? -- View this message in context: http://www.nabble.com/Wondering-that-Struts2-is-getting-die--tp25679069p25679069.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: restful URL issue
I also tried this with a / in the namespace so @Namespace("test/{id}"} and @Namespace("/test/{id}"} give a namespace with "". struts-restful wrote: > > One more additional piece of information is that the namespaceMatcher does > contain the compiled pattern for my namespace. > > Another thing I noticed when messing around trying to figure this out is > that I created a different controller class ain a different package for > example test.MyTestController. > > when I tried the URL /test/-1/my-test.xml my namespace was set to "" and > my actionname was = "test" and methodname was populated with "my-test". > This is if I had a namespace annotation as follows > > @Namespace("test/{id}"} > public class MyTestController > > Thanks in advance > > > > struts-restful wrote: >> >> Yes I am putting it in the namespace annotation >> >> @Namespace("/person/name/test-example/{id}") >> >> Stepping through the namespace pattern matcher code it does replace the >> {id} with ([^/]+) but that is as far as i have got and still dont >> understand why it does not work >> >> Thanks in advance >> >> >> >> Musachy Barroso wrote: >>> >>> are you putting that in the @Namespace annotation? It will not work on >>> the @Action annotation. >>> >>> musachy >>> >>> On Tue, Sep 29, 2009 at 8:49 AM, struts-restful >>> wrote: Also I know that the default parameter is id but ideally i am trying to create a url as follows /person/name/{id}/{anotherId}/test-example struts-restful wrote: > > I amended my URL to be as follows then using the namespace pattern > matcher > > /person/name/{id}/test-example > > but this now maps the config as /person/name/{id}. How would I get rid > of > the {id} bit but still pass the parameter through? > > Thanks > > > > Musachy Barroso wrote: >> >> the namespace matcher, ad the name implies matches parameters only in >> the namespace (the part before the action). To map params after the >> action name, you have to use wildcards. Because this is confusing, we >> introduced the advanced regex patters which will sove all the cases, >> see this: >> >> http://cwiki.apache.org/confluence/pages/editpage.action?pageId=44247 >> >> all 3 approaches are there with examples. >> musachy >> >> On Tue, Sep 29, 2009 at 8:20 AM, struts-restful >> wrote: >>> >>> Ok after some further investigating the problem appears to be when >>> the >>> server >>> is starting up and it is building the namespaceActionConfig map. >>> >>> because my namespace on the action is set to >>> /person/name/test-example/{id} >>> when the action config is created the key is set to >>> /person/name/test-example/{id}. So when I call the url the rest >>> action >>> mapper parses the mapping and creates a namespace of /person/name, >>> and >>> subsequently when it tries to determine the corresponding action >>> config >>> associated with this key nothing is found because on start up it had >>> been >>> mapped to /person/name/test-example/{id}. >>> >>> When i remove the namespace annotation and type in the url my action >>> is >>> then >>> correctly mapped with /person/name. >>> >>> So is this a bug or have i missed something in my configuration? >>> >>> thanks in advance >>> >>> >>> >>> struts-restful wrote: Thanks for the help and your reply. i implemented the named pattern matcher but cant get it to work. I have the following config in my struts.xml >>> name="namedVariablePatternMatcher" class="com.opensymphony.xwork2.util.NamedVariablePatternMatcher"/> >>> value="namedVariablePatternMatcher"/> On my action I added the namespace annotation for example @Namespace("/person/name/test-example/{id}") this uses the restActionMapper but does not return a ActionConfig object with the namespace /person/name and the name test-example. When I stepped into this method in the DefaultConfiguration class the action TestExampleController had not been added to the map when it tries to find a config object. I then tried the same url but removed the namespace annotation from the action and typed the url into the browser. This went through the same code but this time returned the correct ActionConfig object and the action executed successfully. Am i missing a step somewhere All help is appreciated. thanks in advance. Musachy Barroso wrote: > > You want to l
Re: restful URL issue
One more additional piece of information is that the namespaceMatcher does contain the compiled pattern for my namespace. Another thing I noticed when messing around trying to figure this out is that I created a different controller class ain a different package for example test.MyTestController. when I tried the URL /test/-1/my-test.xml my namespace was set to "" and my actionname was = "test" and methodname was populated with "my-test". This is if I had a namespace annotation as follows @Namespace("test/{id}"} public class MyTestController Thanks in advance struts-restful wrote: > > Yes I am putting it in the namespace annotation > > @Namespace("/person/name/test-example/{id}") > > Stepping through the namespace pattern matcher code it does replace the > {id} with ([^/]+) but that is as far as i have got and still dont > understand why it does not work > > Thanks in advance > > > > Musachy Barroso wrote: >> >> are you putting that in the @Namespace annotation? It will not work on >> the @Action annotation. >> >> musachy >> >> On Tue, Sep 29, 2009 at 8:49 AM, struts-restful wrote: >>> >>> Also I know that the default parameter is id but ideally i am trying to >>> create a url as follows >>> >>> /person/name/{id}/{anotherId}/test-example >>> >>> >>> struts-restful wrote: I amended my URL to be as follows then using the namespace pattern matcher /person/name/{id}/test-example but this now maps the config as /person/name/{id}. How would I get rid of the {id} bit but still pass the parameter through? Thanks Musachy Barroso wrote: > > the namespace matcher, ad the name implies matches parameters only in > the namespace (the part before the action). To map params after the > action name, you have to use wildcards. Because this is confusing, we > introduced the advanced regex patters which will sove all the cases, > see this: > > http://cwiki.apache.org/confluence/pages/editpage.action?pageId=44247 > > all 3 approaches are there with examples. > musachy > > On Tue, Sep 29, 2009 at 8:20 AM, struts-restful > wrote: >> >> Ok after some further investigating the problem appears to be when >> the >> server >> is starting up and it is building the namespaceActionConfig map. >> >> because my namespace on the action is set to >> /person/name/test-example/{id} >> when the action config is created the key is set to >> /person/name/test-example/{id}. So when I call the url the rest >> action >> mapper parses the mapping and creates a namespace of /person/name, >> and >> subsequently when it tries to determine the corresponding action >> config >> associated with this key nothing is found because on start up it had >> been >> mapped to /person/name/test-example/{id}. >> >> When i remove the namespace annotation and type in the url my action >> is >> then >> correctly mapped with /person/name. >> >> So is this a bug or have i missed something in my configuration? >> >> thanks in advance >> >> >> >> struts-restful wrote: >>> >>> Thanks for the help and your reply. >>> >>> i implemented the named pattern matcher but cant get it to work. I >>> have >>> the following config in my struts.xml >>> >>> >> name="namedVariablePatternMatcher" >>> >>> class="com.opensymphony.xwork2.util.NamedVariablePatternMatcher"/> >>> >>> >>> >> value="namedVariablePatternMatcher"/> >>> >>> On my action I added the namespace annotation for example >>> >>> @Namespace("/person/name/test-example/{id}") >>> >>> this uses the restActionMapper but does not return a ActionConfig >>> object >>> with the namespace /person/name and the name test-example. When I >>> stepped >>> into this method in the DefaultConfiguration class the action >>> TestExampleController had not been added to the map when it tries to >>> find >>> a config object. >>> >>> I then tried the same url but removed the namespace annotation from >>> the >>> action and typed the url into the browser. This went through the >>> same >>> code >>> but this time returned the correct ActionConfig object and the >>> action >>> executed successfully. >>> >>> Am i missing a step somewhere >>> >>> All help is appreciated. thanks in advance. >>> >>> >>> >>> Musachy Barroso wrote: You want to look at wildcards: http://struts.apache.org/2.x/docs/wildcard-mappings.html That feature that Alex is refering to (coined advanced wildcards for lack of imagination), is in trunk and has not been released yet. musachy On Mon, Sep 28, 2009 at 5:57 AM, Alex
Re: Convention Confusion [BUG]?
RogerV wrote: > > I think it's a bug in the way the URL is being interrpreted. I tried your > idea setting the namespace attribute on the url tag, made no difference. > However if I drop the parameter from the URL then the action gets > processed. So > Yep - definite bug. If I change my annotation to @Action("deletegroup?deleteId=1") in my action class and then click on the corresponding button on the jsp, the action method gets called! If I press the next button in the list I get "There is no Action mapped for namespace / and action name deletegroup?deleteId=2." Regards -- View this message in context: http://www.nabble.com/Convention-Confusion-tp25658114p25677619.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Localization and Dates
Hello, Can anyone give me some 'best practice' advice for dealing with dates in an international app (Struts2). We are based in the UK and have an application running locally that stores dates within action classes as java.util.Date. These dates are sometimes passed to the application via querystring in the format: somePage.action?startDate=20/12/2009 The action class picks up this date and stores it correctly as the 20th day of December when running locally. However, on installation to our US based server (Struts 2 / Glassfish) where of course date formats are mm/dd/, the action class makes the assumption that we are trying to refer to the 20th month of the year and so returns control to the input page with an accompanying error message. I know this is to do with localization, but I am at a loss as to the best practice for defining locales so that struts knows how to deal with this kind of scenario. The problem is passing those localized value back to the server action classes. Any advice would be gratefully received. Thanks - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Supporting Multiple Resource Bundle for validation
In my current project there is a need to support two different resource bundles simultaneously. Lets take an example, Login page-> usename field. For Role1, username cannot have numbers, i.e. only alphabets are allowed. For Role2, username can have numbers, i.e. only alphanumeric chars are allowed. I believe using the bundle attribute, I'll hard-bound a field to any one resource bundle. I cannot do that as per the requirement. Please provide alternate solution based on my requirement. I tried the bundle attribute. I found that by using this approach, I'm binding the fields' to a specific resource bundle but the requirement demands dynamic selection of the resource bundle based on the role. Please help me. This is very urgent. -- View this message in context: http://www.nabble.com/Supporting-Multiple-Resource-Bundle-for-validation-tp25677510p25677510.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: restful URL issue
Yes I am putting it in the namespace annotation @Namespace("/person/name/test-example/{id}") Stepping through the namespace pattern matcher code it does replace the {id} with ([^/]+) but that is as far as i have got and still dont understand why it does not work Thanks in advance Musachy Barroso wrote: > > are you putting that in the @Namespace annotation? It will not work on > the @Action annotation. > > musachy > > On Tue, Sep 29, 2009 at 8:49 AM, struts-restful wrote: >> >> Also I know that the default parameter is id but ideally i am trying to >> create a url as follows >> >> /person/name/{id}/{anotherId}/test-example >> >> >> struts-restful wrote: >>> >>> I amended my URL to be as follows then using the namespace pattern >>> matcher >>> >>> /person/name/{id}/test-example >>> >>> but this now maps the config as /person/name/{id}. How would I get rid >>> of >>> the {id} bit but still pass the parameter through? >>> >>> Thanks >>> >>> >>> >>> Musachy Barroso wrote: the namespace matcher, ad the name implies matches parameters only in the namespace (the part before the action). To map params after the action name, you have to use wildcards. Because this is confusing, we introduced the advanced regex patters which will sove all the cases, see this: http://cwiki.apache.org/confluence/pages/editpage.action?pageId=44247 all 3 approaches are there with examples. musachy On Tue, Sep 29, 2009 at 8:20 AM, struts-restful wrote: > > Ok after some further investigating the problem appears to be when the > server > is starting up and it is building the namespaceActionConfig map. > > because my namespace on the action is set to > /person/name/test-example/{id} > when the action config is created the key is set to > /person/name/test-example/{id}. So when I call the url the rest action > mapper parses the mapping and creates a namespace of /person/name, and > subsequently when it tries to determine the corresponding action > config > associated with this key nothing is found because on start up it had > been > mapped to /person/name/test-example/{id}. > > When i remove the namespace annotation and type in the url my action > is > then > correctly mapped with /person/name. > > So is this a bug or have i missed something in my configuration? > > thanks in advance > > > > struts-restful wrote: >> >> Thanks for the help and your reply. >> >> i implemented the named pattern matcher but cant get it to work. I >> have >> the following config in my struts.xml >> >> > name="namedVariablePatternMatcher" >> >> class="com.opensymphony.xwork2.util.NamedVariablePatternMatcher"/> >> >> >> > value="namedVariablePatternMatcher"/> >> >> On my action I added the namespace annotation for example >> >> @Namespace("/person/name/test-example/{id}") >> >> this uses the restActionMapper but does not return a ActionConfig >> object >> with the namespace /person/name and the name test-example. When I >> stepped >> into this method in the DefaultConfiguration class the action >> TestExampleController had not been added to the map when it tries to >> find >> a config object. >> >> I then tried the same url but removed the namespace annotation from >> the >> action and typed the url into the browser. This went through the same >> code >> but this time returned the correct ActionConfig object and the action >> executed successfully. >> >> Am i missing a step somewhere >> >> All help is appreciated. thanks in advance. >> >> >> >> Musachy Barroso wrote: >>> >>> You want to look at wildcards: >>> >>> http://struts.apache.org/2.x/docs/wildcard-mappings.html >>> >>> That feature that Alex is refering to (coined advanced wildcards for >>> lack of imagination), is in trunk and has not been released yet. >>> >>> musachy >>> >>> On Mon, Sep 28, 2009 at 5:57 AM, Alex Siman >>> >>> wrote: Look here: http://www.nabble.com/parameters-in-url-td25602877.html Restful plugin is not so good as it supposed to be. struts-restful wrote: > > Does anyone know how to get the restful web service to call a > method > different to show or edit. > > For example I have the following url > > http://localhost:8080/testeg/my/example/example-count/1/count.xml > > I want this to call the method count in my ExampleCountController. > The > URl > goes to the action and calls the setId method setting the Id 2 but > does > not go to the count method > > Thanks >
Re: Convention Confusion [BUG]?
Musachy Barroso wrote: > > does adding namespace="/" to the url tag make any difference? > > There is a good chance that it is related to "" vs "/" namespace. > > musachy > I think it's a bug in the way the URL is being interrpreted. I tried your idea setting the namespace attribute on the url tag, made no difference. However if I drop the parameter from the URL then the action gets processed. So which is interpretted as Delete throws a no action mapped exception, but which is interpretted as Delete calls the action deletegroup. I think struts is looking for an action called "deletegroup?deleteId=3" rather than deletegroup with parameter deleteId. Which leaves me with the problem of how to display individual "delete" buttons against a list :( Regards -- View this message in context: http://www.nabble.com/Convention-Confusion-tp25658114p25676062.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org