Convention plugin can't find Actions

2011-08-28 Thread chengas123
Hi, I created the action below in a package ending with action and extended ActionSupport. Yet, the convention plugin is not finding the action. I installed the config browser plugin and it does not see the action. Any tips on how I can debug this? I'm running this in embedded Jetty. Does

Re: Convention plugin can't find Actions

2011-08-28 Thread chengas123
Thanks for the suggestion. Didn't help though. Shouldn't the fact that it extends ActionSupport be enough anyway? -- View this message in context: http://struts.1045723.n5.nabble.com/Convention-plugin-can-t-find-Actions-tp4744110p4744116.html Sent from the Struts - User mailing list archive at

Re: Convention plugin can't find Actions

2011-08-28 Thread chengas123
Got it working. I needed to set the constants below in my struts.xml. Could be good to add this to the docs for other people using Jetty in embedded mode. constant name=struts.convention.action.fileProtocols value=jar,code-source / constant name=struts.convention.exclude.parentClassLoader

Current version of Struts 2?

2009-08-06 Thread chengas123
Hi, What's the current released version of Struts 2? The homepage says it's 2.1.7, but when I go to download it, I can only download 2.1.6. I've noticed this problem many times in the past and it's always confused me. If 2.1.7 is out, I really need a copy for the new

Struts 2 Tutorials

2008-09-20 Thread chengas123
Hi, I wanted to give back to the community, so I wrote up some tutorials on Struts 2. They're available at: http://www.lumidant.com/blog/struts-2-tutorial-getting-started/ http://www.lumidant.com/blog/struts-2-tutorial-getting-started/ Hopefully, they're helpful. They might be good to list

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-14 Thread chengas123
Ahh, yes, that was my problem. I'm afraid I wasn't expecting that. I don't really see how allowing static method access presents a security problem. I am opening myself up to any obvious risks by turning this on? Thanks, Ben DNewfield wrote: Have you turned off this capability (or

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-14 Thread chengas123
PROTECTED] wrote: chengas123 wrote: Ahh, yes, that was my problem. I'm afraid I wasn't expecting that. I don't really see how allowing static method access presents a security problem. Am I opening myself up to any obvious risks by turning this on? If someone submits a value in a form

Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
Hi, I want to use the struts property tag to set a JavaScript variable. Ordinarily, it would look something like: var testValue = 's:property value=testValue /'; However, this does not work if the value has a single quote in it, so that character needs to be escaped. It should be easy, but I

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
That does not escape the single quote. -Ben DNewfield wrote: chengas123 wrote: var testValue = 's:property value=testValue /'; However, this does not work if the value has a single quote in it Try: var testValue = s:property value='%{testValue}'/; -Dale -- View

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
Escape is true by default. It escapes HTML characters such as and and not single quotes. -Ben Wes Wannemacher wrote: what about 's:property value=testValue escape=true /' -Wes -- View this message in context:

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
Ahh, I'm afraid I'd missed that you reversed the order of the quotation marks. I was not aware that could be done. However, what I'm actually doing is putting the value into an onclick attribute. I'm not sure I can use this trick because then I end up with something like

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
Thanks. I will be sure to look at that. That brings me back to my original question though which is how do I call that from within the property tag? -Ben DNewfield wrote: chengas123 wrote: I think escaping would still be best for me Then you're looking

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
]@escapeJavaScript(comments)} / returns nothing. Thanks, Ben newton.dave wrote: --- chengas123 [EMAIL PROTECTED] wrote: That brings me back to my original question though which is how do I call that from within the property tag? http://struts.apache.org/2.x/docs/ognl-basics.html See

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
DNewfield wrote: chengas123 wrote: s:property value=%{comments} / returns what I am expecting. s:property value=[EMAIL PROTECTED]@escapeJavaScript(comments)} / returns nothing. Do you have a commons-lang jar in your WEB-INF/lib? -- View this message in context: http

Validation of Ajax Tags

2007-10-23 Thread chengas123
Does anyone have any ideas on how the dojo ajax tags can be validated (autocompleter, datetimepicker, etc.)? I was told this was fixed in 2.1, which I am using, but I cannot get it to work. I'd like to make my autocompleter required and have it validate the same as my other fields. Can I

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-08 Thread chengas123
that from Dojo and changing it would break backward compatibility. regards musachy chengas123 wrote: Converting the tags to use the new library wasn't very hard except that I can't seem to get the new tags to work. I turned the debugging on in the head tag and the only debug

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-08 Thread chengas123
. -Ted. On 10/8/07, chengas123 [EMAIL PROTECTED] wrote: Ahh! That was my problem. I think it would be worth mentioning this in the documentation, especially since it is the reverse of 2.0.x. It's not real clear in the state example which is the key and which is the value. I tried

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-08 Thread chengas123
Ahh. I'm afraid I never would have figured that out without explanation since I get permission denied when hitting the edit link. -Ben Ted Husted wrote: It's a bit kludgy. If you select edit page, and you are not logged in, it will prompt for your credentials. Once past that, you

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-08 Thread chengas123
The speed issues are much better in 2.1. However, now when I load the page, every autocompleter on that page is issuing a request. Is this a bug or have I configured something incorrectly? I believe the default behavior for this should be to issue a request only after three characters have

RE: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-05 Thread chengas123
Converting the tags to use the new library wasn't very hard except that I can't seem to get the new tags to work. I turned the debugging on in the head tag and the only debug message I got was DEBUG: please consider using a mimetype of text/json-comment-filtered to avoid potential security

RE: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-05 Thread chengas123
, it works when a list is given: sx:autocompleter name=test label=test list={'AL', 'AK'} autoComplete=false/ -Ben chengas123 wrote: Converting the tags to use the new library wasn't very hard except that I can't seem to get the new tags to work. I turned the debugging on in the head tag

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-05 Thread chengas123
that there isn't mention of using a Map for the list= attrib, but I assume that it acts the same as it did in 2.0.x -W chengas123 wrote: Converting the tags to use the new library wasn't very hard except that I can't seem to get the new tags to work. I turned the debugging on in the head tag

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread chengas123
(or whatever it's called). I am building from trunk with the below change w/o any difficulty, at least as of about a week ago. --- chengas123 [EMAIL PROTECTED] wrote: If this is a known issue, why doesn't someone commit the change? I understand this is the development branch, but it's

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread chengas123
what else. -Ben --- chengas123 [EMAIL PROTECTED] wrote: If this is a known issue, why doesn't someone commit the change? I understand this is the development branch, but it's a pretty critical issue to not be able to build the project. Among other things, it has to be a deterrent

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread chengas123
Yes, it is working for me now. I checked out the project and did not have to change any of the pom.xml files. I will let you know how my performance tests go with the new plug in. Thanks, Ben Musachy Barroso wrote: The dependency seems to be fine (it was broken before). On core:

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread chengas123
Thank you all for your responses. I apologize that mine is so delayed. I am going to try using 2.1 with the cache attribute and see what the difference is. It sounds like it should be a major improvement. I believe the problem was that it was requesting so many files and it appeared the

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread chengas123
chengas123 wrote: Thank you all for your responses. I apologize that mine is so delayed. I am going to try using 2.1 with the cache attribute and see what the difference is. It sounds like it should be a major improvement. I believe the problem was that it was requesting so many files

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread chengas123
with the manual download. -Ben Musachy Barroso wrote: I don't think it is on the snapshots. musachy On 10/3/07, chengas123 [EMAIL PROTECTED] wrote: I found some error messages buried in my log file. It seems 2.1 is not working for me because Dojo was moved to a plugin which I do not have

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread chengas123
--- chengas123 [EMAIL PROTECTED] wrote: Ok. I tried downloading from SVN, but got a build error. Maven could not find xwork-2.1-SNAPSHOT-sources.jar. I had to download it manually from maven.opensymphony.com. However, despite following the instruction maven was giving me I could

[s2] Struts head tag KILLS ( 10s) page load time

2007-09-20 Thread chengas123
Hi, I am working on a Struts 2 page and page load times are way too high. I tracked it down to the Struts head tag, which I have as follows: s:head theme=ajax / Without the tag, my page issues 3 requests and takes 453ms to load. With the tag, the page issues 54 requests taking 12.24s to load.

Re: [S2] Accessing autocompleter value from JavaScript

2007-07-25 Thread chengas123
Ravi Kumar-26 wrote: On 7/25/07, chengas123 [EMAIL PROTECTED] wrote: I had an HTML input I was accessing in script as follows: document.inputForm.city.value I replaced it with a Struts autocompleter and cannot access it in that manner anymore. Hey , I think it is not text filed

Re: [S2] Accessing autocompleter value from JavaScript

2007-07-25 Thread chengas123
Awesome! That worked like a charm :o) Thanks so much! -Ben Musachy Barroso wrote: http://www.nabble.com/Extract-autocompleter-value-from-javascript%2C-when-autocompleter-is-in-a-%3Cs%3Adiv-object-tf3883593.html#a11007078 On 7/25/07, chengas123 [EMAIL PROTECTED] wrote: Ravi Kumar

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
More specifically I have: s:head theme=ajax / chengas123 wrote: Yep, I do. Roberto Nunnari wrote: Do you have the s:head tag? It won't work without that. -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11764525

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
I thought I would add that I put some debug code in my Action and I can see it being called when I type in the box. Yet there does not appear to be anything happening on the client side. Is my JSON not formatted properly? What's the problem here? Thanks, Ben chengas123 wrote: Hi, I'm

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
newton.dave wrote: --- chengas123 [EMAIL PROTECTED] wrote: Is my JSON not formatted properly? http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-autocompleterTag Has the Ajax tag been updated to use JSON from the JSON result type? If so, the docs should be changed, otherwise

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
Musachy Barroso wrote: It looks ok to me, not sure what is going on. Check: http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Autocompleter for an example of working with both together. musachy The example has a method called getOptions

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
Musachy Barroso wrote: It looks ok to me, not sure what is going on. Check: http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Autocompleter for an example of working with both together. musachy OK! I'm in action now! Thanks for pointing

[S2] Tabindex not working on autocompleter

2007-07-24 Thread chengas123
Hi, I have a bunch of inputs with tabindex defined on each. Some are regular HTML inputs and some are struts autocompleters as shown below: s:autocompleter name=city theme=ajax href=%{jsonList} size=22 tabindex=5 dropdownWidth=200 showDownArrow=false autoComplete=true

[S2] Accessing autocompleter value from JavaScript

2007-07-24 Thread chengas123
Hi, I had an HTML input I was accessing in script as follows: document.inputForm.city.value I replaced it with a Struts autocompleter and cannot access it in that manner anymore. Can anyone tell me how I can access it? Thanks, Ben http://www.benmccann.com benmccann.com -- View this

[S2] Autocompleter with JSON plugin

2007-07-23 Thread chengas123
Hi, I'm having trouble getting the autocompleter working. When I type in the box, nothing happens. I am using Struts 2.0.8 with JSON plugin 0.15. The relevant lines from my JSP are: s:url id=jsonList value=/AutocompleteField.action/ s:autocompleter name=city theme=ajax href=%{jsonList}

Re: [S2] Autocompleter with JSON plugin

2007-07-23 Thread chengas123
Yep, I do. Roberto Nunnari wrote: Do you have the s:head tag? It won't work without that. -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11754924 Sent from the Struts - User mailing list archive at Nabble.com.

Re: [S2] Accessing HTTP Header

2007-06-13 Thread chengas123
Thank you both for your responses. While I had tried going down the ActionInvocation.getInvocationContext(...) road I didn't see anything interesting that way and probably would have never thought to cast it to a ServletActionContext (although hopefully I will next time). I'm using the

[S2] Accessing HTTP Header

2007-06-12 Thread chengas123
Hi, How do I access the request variable or HTTP request headers? I want to do something like the following in my action: request.getHeader(Accept).toLowerCase().indexOf(vnd.wap) I am trying to detect whether the user is using a wireless device such as a Blackberry in my action to determine

Re: [S2] Accessing HTTP Header

2007-06-12 Thread chengas123
nuwan chandrasoma-2 wrote: http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html Struts Documentation wrote: It is more difficult to test Actions with runtime dependencies on HttpServletRequest. Only implement ServletRequestAware as a last resort. If the use

Push vs. Set

2007-05-30 Thread chengas123
I'd like to be able to access the first element of my people list as a person in a property tag later on in an included page as follows: s:property value=person.firstName / I know that s:property value=people[0].firstName / would work, but I unfortunately cannot do that because I may enter

Re: [S2] Formatting inside Iterator tag

2007-04-24 Thread chengas123
Mark Menard wrote: s:text name=format.dates:param name=value value=orderDate //s:text That will do the date, there are some other formats listed on the Wiki I think. *shrug* Mark When I put the exact text you gave me into my .jsp the text format.date is printed out to the page.

Re: [S2] Formatting inside Iterator tag

2007-04-24 Thread chengas123
Dave Newton-4 wrote: --- chengas123 [EMAIL PROTECTED] wrote: Can this be any properties file or are you referring to struts.properties? It needs to be one of the normal properties files used for messages etc. that S2 searches for, where you keep the rest of your messages/properties

[S2] Formatting inside Iterator tag

2007-04-23 Thread chengas123
I am using the iterator tag as follows: s:iterator value=orders status=status id=order tr tds:property value=orderid //td tds:property value=orderDate //td tds:property value=total //td /tr