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
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
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
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
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
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
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
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
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
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:
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
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
]@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
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
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
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
.
-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
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
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
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
, 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
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
(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
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
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:
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
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
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
--- 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
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.
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
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
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
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
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
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
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
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
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
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}
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.
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
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
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
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
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.
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
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
48 matches
Mail list logo