Re: Dynamic parameters in struts.xml

2007-05-02 Thread Marcin Zduniak
Thank you. I actually solved the problem. When I added another one parameter: param name=parsetrue/param myParameter5 started working. Thanks. Marcin On 5/2/07, Laurie Harper [EMAIL PROTECTED] wrote: Marcin Zduniak wrote: Hello everyone, I am using Struts2 and I am curious how to pass

javax.servlet.jsp.JspException: No getter method available for property

2007-05-02 Thread prasad kumar
I am trying to populate an html drop down with the Struts select and options tags. The cancelList bean referenced in the collection is an ArrayList of struts LabelValue beans. Here is the tag snippet: bean:define id=cancelList property=cancel name=detailsForm /

javax.servlet.jsp.JspException: No getter method available for property

2007-05-02 Thread prasad kumar
I am trying to populate an html drop down with the Struts select and options tags. The cancelList bean referenced in the collection is an ArrayList of struts LabelValue beans. Here is the tag snippet: bean:define id=cancelList property=cancel name=detailsForm /

Invalid for tag html according to TLD

2007-05-02 Thread wong wayne
Dear All I'm new to Struts and building a prototype with struts, ,hibernate and spring follow the instruction at http://www.roseindia.net/struts/hibernate-spring/index.shtml When I execute the example, exception generated (Attribute locale invalid for tag html according to TLD). After I remove

Re: javax.servlet.jsp.JspException: No getter method available for property

2007-05-02 Thread Nuwan Chandrasoma
Hi, try this below code., i just add the type attribute. bean:define id=cancelList property=cancel name=detailsForm type=java.util.ArrayList/ html:select property = cancelReason option value = --Select--/option html:options collection=cancelList property=myValue

Re: Invalid for tag html according to TLD

2007-05-02 Thread Nuwan Chandrasoma
Hi, Its something to do with your TLD files., the attribute 'locale' is removed from the TLD file you are using., are you using the same struts version that is sepcified for this tutorial?. this may be due to different TLD files you have in the librareis you are using. Thanks, Nuwan -

Re: Invalid for tag html according to TLD

2007-05-02 Thread Nuwan Chandrasoma
Hi, Well it is DEPRECATED in struts 1.2.9 http://struts.apache.org/1.2.9/userGuide/struts-html.html#html Thanks, Nuwan - Original Message - From: Nuwan Chandrasoma [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, May 02, 2007 11:18 AM

Re: Fw: logic:iterate how to test the 1st and last iteration ?

2007-05-02 Thread piloupy GOTTAPIL
Sorry guys, I don't know why the mailer tells me that my mail is spam... I've answered 3 times to give the solution using the JSTL Core, but the mailer blocked them. I think it's because of the code that I put. --- This is an automatically generated Delivery Status Notification Delivery to the

Re: Invalid for tag html according to TLD

2007-05-02 Thread wong wayne
thanks Nuwan. Finally get it work and next step would be moved this prototype into latest version 1.3.8 :) --- Nuwan Chandrasoma [EMAIL PROTECTED] wrote: Hi, Well it is DEPRECATED in struts 1.2.9 http://struts.apache.org/1.2.9/userGuide/struts-html.html#html Thanks, Nuwan -

Re: [S2] populating user roles

2007-05-02 Thread Flemming Seerup
Am I missing something? I have a working version of an AuthInterceptor, but still no examples on how to control isUserInRole(). On manning.com I found a lightbody_src.zip from WW in action, but it doesn't handle roles. Could anybody tell me the location of Mark Mernards blog? /Flemming

Re: [S2] populating user roles

2007-05-02 Thread Nuwan Chandrasoma
i think your saying abt this gr8 tutorila right? Creating a Login Interceptor in Struts 2 http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor Thanks again Mark.. Thanks, Nuwan - Original Message - From: Flemming Seerup [EMAIL PROTECTED] To:

Re: [S2] populating user roles

2007-05-02 Thread Alexis Pigeon
Hi Flemming, On 02/05/07, Flemming Seerup [EMAIL PROTECTED] wrote: Am I missing something? I have a working version of an AuthInterceptor, but still no examples on how to control isUserInRole(). On manning.com I found a lightbody_src.zip from WW in action, but it doesn't handle roles. Could

Re: When will Struts 2.1 be released?

2007-05-02 Thread Ted Husted
On 5/1/07, Pedro Herrera [EMAIL PROTECTED] wrote: when is 2.0.8 release coming up ? Anyone interested in forthcoming releases should follow the dev list. All development discussions take place on the dev list, and anyone who follows the dev list knows as much as the rest of us :) A good way

Re: Books Reference Material

2007-05-02 Thread Ted Husted
AFAIK, the most up-to-date S1 book is still Struts: The Complete Reference. * http://struts.apache.org/index.html#Newbies HTH, Ted. http://husted.com/ted/blog/ On 5/1/07, Richard Kroll [EMAIL PROTECTED] wrote: Hello All, I'm moving into a position that requires me to work with S1. I have been

[S2] ArchTech Tutorial

2007-05-02 Thread Ted Husted
Has anyone tried the ArchTech S2 tutorial yet? * https://www.arctechsoftware.com/tutorial/tutorial.do?subcatId=4 -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Books Reference Material

2007-05-02 Thread Ted Husted
I haven't read of his books yet myself, but I notice that Budi Kurniawan has a new Struts 1 book out now * http://www.amazon.com/exec/obidos/tg/detail/-/0975212818/apachesoftwar-20/ and a Struts 2 book due out in the fall *

Re: [s2] use remoteUser with struts tags

2007-05-02 Thread Marcin Orlinski
Hello I disable el because '#' is used by the JSP EL under JSP 2.1 and I use this character in OGNL expressions. This information is from http://struts.apache.org/2.x/docs/ognl.html. OK, disable is wrong word, I should wrote that I set isELignored to true :-) My first idea was that I can use:

Re: [S2] populating user roles

2007-05-02 Thread Zoran Avtarovski
Am I missing something? I have a working version of an AuthInterceptor, but still no examples on how to control isUserInRole(). To control the isUserInRole() you will have to look at your Servlet container and customise the AuthInterceptor to interact with your container's implementation of

Re: [s2] use remoteUser with struts tags

2007-05-02 Thread Dave Newton
--- Marcin Orlinski [EMAIL PROTECTED] wrote: s:property value=%{#request.getRemoteUser()} / Does %{#request.remoteUser} work? d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

ERROR 500 when trying to execute struts2-blank-2.0.6.war

2007-05-02 Thread bigtdps2004
Hi Folks, I get the following Error 500 message when starting Tomcat on my Windows XP computer: Settings could not parse struts.locale setting, substituting default ... locale I think possible solutions include: 1. changing port# back to 8080; even thought Tomcat installation

Re: [s2] use remoteUser with struts tags

2007-05-02 Thread Marcin Orlinski
Does %{#request.remoteUser} work? No, it doesn't work (result null). It works when I set attribute remoteUser in request. This is request.getAttribute(remoteUser), no request.getRemoteUser(). Best regards Marcin Orlinski -- View this message in context:

Re: ERROR 500 when trying to execute struts2-blank-2.0.6.war

2007-05-02 Thread Musachy Barroso
Is that one the only error on the log? musachy On 5/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Folks, I get the following Error 500 message when starting Tomcat on my Windows XP computer: Settings could not parse struts.locale setting, substituting default ... locale I think

Re: [s2] use remoteUser with struts tags

2007-05-02 Thread Marcin Orlinski
Works: [EMAIL PROTECTED]@getRequest().getRemoteUser()} Best regards Marcin Orlinski Dave Newton-4 wrote: Does %{#request.remoteUser} work? No, it doesn't work (result null). It works when I set attribute remoteUser in request. This is request.getAttribute(remoteUser), no

How to capture an event when changing the selectedTab in a TabbedPannel?

2007-05-02 Thread Felipe Rodrigues
Hi guys, I've got a question. How to trigger somerhing when change from one tab to another one? Thanks, Felipe -- View this message in context: http://www.nabble.com/How-to-capture-an-event-when-changing-the-selectedTab-in-a-TabbedPannel--tf3680726.html#a10286356 Sent from the Struts - User

Re: S2: Autocompleter and focus

2007-05-02 Thread Scott Nesbitt
var TEAM_LOOKUP = 2; function onbodyload() { var f = document.getElementById('mainForm'); var t = f.elements[TEAM_LOOKUP]; t.value = parent.originalValue; t.focus(); // this does not work! why? } Scott --- jdmr [EMAIL PROTECTED] wrote: Would you mind posting the onload

Re: S2: Autocompleter and focus

2007-05-02 Thread Musachy Barroso
There are 3 input for each autocompleter, the one with the value, and the one with the key are hidden, so setting the focus on them won't work, you need to use the visible one. regards musachy On 5/2/07, Scott Nesbitt [EMAIL PROTECTED] wrote: var TEAM_LOOKUP = 2; function onbodyload() {

Re: How to capture an event when changing the selectedTab in a TabbedPannel?

2007-05-02 Thread Musachy Barroso
There is an open issue for this, but I haven't got to it yet musachy On 5/2/07, Felipe Rodrigues [EMAIL PROTECTED] wrote: Hi guys, I've got a question. How to trigger somerhing when change from one tab to another one? Thanks, Felipe -- View this message in context:

Re: ERROR 500 when trying to execute struts2-blank-2.0.6.war

2007-05-02 Thread bigtdps2004
Yes, It is the only warning message when starting up Tomcat. All others are prefaced by INFO. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

reset the value of a datetimepicker using java script

2007-05-02 Thread kris16
Hi, I am trying to reset the value of a datetimepicker in a jsp page using struts2 (2.0.6). I can not reset the value. See code below. The onchange and the call to the Java script function (planStatuschanged ) seems to work, but the datetimepicker's value is not set to . If I use an ordinary

Re: How to capture an event when changing the selectedTab in a TabbedPannel?

2007-05-02 Thread Felipe Rodrigues
Yeah, I remembered. I reported it. But the hope is just like mother-in-law. The last to be dead. Thanks Anyway. Felipe Musachy Barroso wrote: There is an open issue for this, but I haven't got to it yet musachy On 5/2/07, Felipe Rodrigues [EMAIL PROTECTED] wrote: Hi guys, I've

DefaultActionValidatorManager does not recognize model driven

2007-05-02 Thread Gunnar.Bostrom
Hi, I try to junit test my field-validators by using DefaultActionValidatorManager. It does work but with one problem. My action class implements ModelDriven so to be able to test my validations in *-validations.xml I have to add model. before every OGNL-expression and afterwards remember to

Re: Release date 2.0.7 ? 2.0.8?

2007-05-02 Thread James Mitchell
At this time, no. Stay tuned though! -- James Mitchell On May 1, 2007, at 8:44 AM, David Harland wrote: Hi Have you any probable release dates for the next version of struts 2. Thanks Dave. __ Ufi Limited Registered

Re: S2: submit tag and handler

2007-05-02 Thread Musachy Barroso
The whole idea behind the handler function is that you are going to make the request yourself, instead of letting struts do it for you. The handler is just a plain javascript function like: function superHandler(widget, domNode) { //use some other framework to do the ajax request, Dojo,

Re: reset the value of a datetimepicker using java script

2007-05-02 Thread Musachy Barroso
You need to call the setDate(date) method on the *widget* for the datepicker, assuming you have a datepicker with the id dp0: dojo.widget.byId(dp0) .setDate(new Date()); musachy On 5/2/07, kris16 [EMAIL PROTECTED] wrote: Hi, I am trying to reset the value of a datetimepicker in a jsp page

ui tags behaviour

2007-05-02 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I'm using the textfield ui form inside an a form tag like below: s:form action=create

Re: S2: submit tag and handler

2007-05-02 Thread Scott Nesbitt
Yes, I would like to do the request in the JavaScript because I need to do some other work there before the request happens. If I knew how Struts did the request I would just do the same thing at the bottom of my function. Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: The whole idea

Re: reset the value of a datetimepicker using java script

2007-05-02 Thread kris16
Hi Musachy, yes that works thanks. But i do not want to set the value to new Date(). I want to set i to , or erase the text field from the date so to say. Is that possible ? /Krister Musachy Barroso wrote: You need to call the setDate(date) method on the *widget* for the datepicker,

Re: [S1] Application container during development for fastest code/test cycle?

2007-05-02 Thread James Mitchell
Hi, for a 2 minute demo of how nice the maven jetty integration is, try this: (You must have Maven and SVN client installed) $ svn co http://svn.apache.org/repos/asf/struts/struts2/tags/ STRUTS_2_0_6/apps/mailreader/ $ cd mailreader $ mvn jetty:run Open your browser to

Re: S2: submit tag and handler

2007-05-02 Thread Musachy Barroso
If you are using submit, or anchor tag you can call reloadContents() on the widget passed as a parameter, if you are using the div tag, you can call refresh() on it. These functions are not really part of the api and might change in the future (although it would be nice if they were right?).

Re: reset the value of a datetimepicker using java script

2007-05-02 Thread Musachy Barroso
dojo.widget.byId(dp0).inputNode.value = ; Use at your own risk, you are using Dojo internals there :) musachy On 5/2/07, kris16 [EMAIL PROTECTED] wrote: Hi Musachy, yes that works thanks. But i do not want to set the value to new Date(). I want to set i to , or erase the text field from the

Re: ui tags behaviour

2007-05-02 Thread Martin Gainty
As in setting theme =cssxhtml-theme to incorporate your css classes..more information available at http://struts.apache.org/2.x/docs/cssxhtml-theme.html Anyone else? M This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom

Re: Release date 2.0.7 ? 2.0.8?

2007-05-02 Thread Ted Husted
On 5/1/07, David Harland [EMAIL PROTECTED] wrote: Hi Have you any probable release dates for the next version of struts 2. Thanks Anyone interested in forthcoming releases should follow the dev list. All development discussions take place on the dev list, and anyone who follows the dev list

Re: S2: submit tag and handler

2007-05-02 Thread Scott Nesbitt
Hmm, this: function handler(widget, node) { widget.reloadContents(); } Gives Stack overflow at line: 4872 Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: If you are using submit, or anchor tag you can call reloadContents() on the widget passed as a parameter, if you are using the

Re: S2: submit tag and handler

2007-05-02 Thread Musachy Barroso
My bad, the notifyTopics are published inside that function so it won't work. Warning: Hack ahead :) var beforeTopicsArray = widget.beforeNotifyTopicsArray; widget.beforeNotifyTopicsArray = null; widget.reloadContents(); widget.beforeNotifyTopicsArray = beforeTopicsArray; I will add a

why does s:checkbox render 2 input elements?

2007-05-02 Thread Allen Gilliland
why is it that when i create a checkbox using the s:checkbox tag that i end up with 2 html inputs? s:checkbox name=bean.active / yields ... input type=checkbox name=bean.active value=true checked=checked id=weblogConfig_bean_active/ input type=hidden name=__checkbox_bean.active value=true/

How to avoid hard coding input result

2007-05-02 Thread stanlick
How do I get the Action input to return to *the* page that failed the validation? It could be addPage, UpdatePage, or deletePage. result name=input type=tiles *_tileThatFailedValidation_* /result -- Scott [EMAIL PROTECTED]

Re: How to avoid hard coding input result

2007-05-02 Thread Musachy Barroso
Struts never knows what is *the page* that failed. The action gets an http request, but it doesn't know what was the page, with the submit in it, that caused the request. You can pass a hidden field with the name of the page(let's say inputPage), and then have a result like this: result

Re: why does s:checkbox render 2 input elements?

2007-05-02 Thread Dave Newton
--- Allen Gilliland [EMAIL PROTECTED] wrote: why is it that when i create a checkbox using the s:checkbox tag that i end up with 2 html inputs? This way you don't have to do anything special for non-checked checkboxes (like in S1 you had to use the ActionForm reset method). Non-checked

Re: Tiles 2 woes

2007-05-02 Thread stanlick
Thanks Dave -- Perhaps if I explain this in a different context we can arrive at the optimum solution. To begin, I am writing a generic CRUD where all my results are complex tiles pages. I have a single Action that handles each of the CRUD user gestures as follows: action name=course_*

Re: Tiles 2 woes

2007-05-02 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Actions work with beans/OGNL in a custom tag friendly way; tiles does not. The ViewPreparer works fine for stashing collections of beans in the request scope and then manually working them into the JSP. I don't think the list supports attachments; at least I

Re: How to avoid hard coding input result

2007-05-02 Thread stanlick
Thanks brother! Is this old school technique still used in S2? I would have guessed S2 would hold on to previous request information in the ActionContext so developers would no longer have to do this riff raff. On 5/2/07, Musachy Barroso [EMAIL PROTECTED] wrote: Struts never knows what is

Re: How to avoid hard coding input result

2007-05-02 Thread stanlick
Is there a soft way to get the name of the tile definition into this hidden field without hard coding it someplace? I really dislike coding names and places beyond the XML file itself. I already have a BaseAction that extends ActionSupport that is starting to make me ill! I really would have

Re: Tiles 2 woes

2007-05-02 Thread stanlick
In short... workflow. I am trying to leverage XML validation, wildcards, tiles, and a Spring injected Action. Also, I'm trying to wire the results in the action mapping in such a way that I am not recreating the wheel each time I need another CRUD. It just seems like some of the parts within

Re: Tiles 2 woes

2007-05-02 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: In short... workflow. Oh. I just know about the Tiles/OGNL stuff :) d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: S2: submit tag and handler

2007-05-02 Thread Scott Nesbitt
Well, I tried this: function handler(widget, node) { var beforeTopicsArray = widget.beforeNotifyTopicsArray; widget.beforeNotifyTopicsArray = null; widget.reloadContents(); widget.beforeNotifyTopicsArray = beforeTopicsArray; } and now I do not get a stack overflow, but the action is

Re: [s2] is there an equivalent for the old html:multibox tag?

2007-05-02 Thread Allen Gilliland
In case someone else is trying to do the same thing, here is the solution I came up with. Using a multiple s:checkbox instances with a name that points to a String[] did not give the results I wanted so I had to bag that idea. Instead I did this ... Action: private String[] deleteIds = new

Dynamic resource bundle?

2007-05-02 Thread Alan Treece
Still using the 1.2.9 version of Struts and was posed an interesting question. Considering the fact that dropping a modified JSP file in the web container will force a re-compile of the JSP thereby rendering a changed display. What are the possibilities if you drop a new

[s2] Form/action data binding not working

2007-05-02 Thread Luciano Costa
Hi! I'm trying to use a submit button outside the form I want to submit, but it's not working. @s.submit type=submit theme=ajax label=Salvar targets=divNewsForm formId=formNews href=${urlNewsForm_Save} / In this case I want to submit the

Re: accessing ognl from jsp 2.0 el?

2007-05-02 Thread John M Flinchbaugh
Synopsis: FilterDispatcher may not cleanup completely and causes the StrutsRequestWrapper to be omitted in some executions (race condition). Adding ActionContextCleanUp filter seems to alleviate the issue. As advertized, I'd expect FilterDispatcher to be able to function on its own. Long story:

Re: How to avoid hard coding input result

2007-05-02 Thread stanlick
Are you sure about this technique? I have the hidden field in my page and I can see that it is set to the correct string, however, when this page is POSTed, I get the following error. It appears that the hidden field is not quite making it into the struts.xml result. 15:04:38,762 WARN

Re: How to avoid hard coding input result

2007-05-02 Thread Musachy Barroso
I'm not sure what that error is, but you can use OGNL expression on results, using ${expression}, and the request parameters are available in #parameters, so yes, it should work :) musachy On 5/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are you sure about this technique? I have the

Re: Dynamic resource bundle?

2007-05-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan, Alan Treece wrote: is there a way to force the change in the resource bundle? I assume that you mean that you want the server to /automatically/ reload the resource bundle? Some servers provide a mechanism for watching specific files for

Re: [S1] Application container during development for fastest code/test cycle?

2007-05-02 Thread Antony Stubbs
Yes, I was playing with Maven last night... Unfort this is a short term project, and the powers that be wouldn't let me rearrange our structure to fit Maven. Plus we have some funny security configuration and JNDI stuff on Websphere that I'm not sure Jetty would support But I'm definitely

Re: [S1] Application container during development for fastest code/test cycle?

2007-05-02 Thread James Mitchell
Actually, you can use Maven with any structure you like. As far as dealing with funky jndi, combining the powers of Maven and Spring would take care of those concerns. What issue are you having? -- James Mitchell On May 2, 2007, at 6:16 PM, Antony Stubbs wrote: Yes, I was playing

Re: [S1] Application container during development for fastest code/test cycle?

2007-05-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Antony, Antony Stubbs wrote: We're developing a Struts application which will be deployed onto Websphere eventually. Honestly, it's best to develop on the save application server that you intend to use for production. Standard APIs are all well

Re: Invalid for tag html according to TLD

2007-05-02 Thread wong wayne
thanks Nuwan. Finally get it work and next step would be moved this prototype into latest version 1.3.8 :) --- Nuwan Chandrasoma [EMAIL PROTECTED] wrote: Hi, Well it is DEPRECATED in struts 1.2.9 http://struts.apache.org/1.2.9/userGuide/struts-html.html#html Thanks, Nuwan -

Struts 2.0.6 with Tomcat 6.0

2007-05-02 Thread Rohit Dewan
I am considering the use of Tomcat 6.0 which implements Servlet 2.5 and JSP 2.1. Should I expect any issues using it with Struts 2.0.6? Regards, Rohit

[S2] Action Forward?

2007-05-02 Thread Daniel Ruan
I come from the Struts 1 world, and am trying to find out how to do this properly in Struts 2. This is a common issues. Let's say we have a Web site that has both protected (needs login) and public resources. If users click a link to a protected resource, the site will direct users to log in;