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.action.excludePatter
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 valida
ccurs regardless of whether I have filled in the
site field or not.
-Ben
Musachy Barroso wrote:
>
> That should work and you will get a validation error, the only problem
> is that it won't show up on the xhtml theme, so you will have to use
>
>
> musachy
>
&g
Hi,
I want to use the struts property tag to set a JavaScript variable.
Ordinarily, it would look something like:
var 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 can't figure out
how to do it.
That does not escape the single quote.
-Ben
DNewfield wrote:
>
> chengas123 wrote:
>> var testValue = '';
>>
>> However, this does not work if the value has a single quote in it
>
> Try:
> var testValue = "";
>
> -Dale
>
Escape is true by default. It escapes HTML characters such as < and > and
not single quotes.
-Ben
Wes Wannemacher wrote:
>
> what about ''
>
> -Wes
>
>
--
View this message in context:
http://www.nabble.com/Escaping-Characters-in-Struts-Property-Tag-tf4799846.html#a13733962
Sent from
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
onClick="myFunction('te
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
That is basically what I had been trying all along. Am I doing anything
wrong?
returns what I am expecting.
returns what I am expecting.
returns nothing.
returns nothing.
Thanks,
Ben
newton.dave wrote:
>
> --- chengas123 <[EMAIL PROTECTED]> wrote:
>> That brings me b
s a bug?
-Ben
DNewfield wrote:
>
> chengas123 wrote:
>> returns what I am expecting.
>> > value="[EMAIL PROTECTED]@escapeJavaScript(comments)}"
>> /> returns nothing.
>
> Do you have a commons-lang jar in your WEB-INF/lib?
>
>
--
View thi
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 r
> once they have the syntax).
>
> d.
>
> --- Dale Newfield <[EMAIL 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 acces
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:
I know that would work, but I
unfortunately cannot do that because I may enter the page another way in
which I set a person as a request attribute.
Can I u
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 w
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 th
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
ThreadLoc
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:
If I visit AutocompleteField.action?city=cle I get the following:
{"json":["CLEARFIELD","CLEA
Yep, I do.
Roberto Nunnari wrote:
>
> Do you have the 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.
---
More specifically I have:
chengas123 wrote:
>
> Yep, I do.
>
>
> Roberto Nunnari wrote:
>>
>> Do you have the tag? It won't work without that.
>>
>
>
--
View this message in context:
http://www.nabble.com/-S2--Autocompleter-with-JSON-p
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:
&g
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?
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 getOp
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 po
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:
The Struts tabindex is not working (I have tested in both Firexfox and IE).
Is this something I should report as a bug or am I doing somethin
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 messa
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 a
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 PR
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:
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.
Is there something
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 browse
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
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 m
> 2.1-SNAPSHOT
>
> sources
> @@ -289,7 +289,7 @@
>
>
>
> - com.opensymphony.xwork
> +opensymphony
> xwork
> 2.1-SNAPSHOT
>
>
> --- chengas123 <[EMAIL PRO
le as clearing your repo
> cache (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 d
that it's pretty
easy. It appears the pom.xml files are broken along with who knows what
else.
-Ben
>
> --- chengas123 <[EMAIL PROTECTED]> wrote:
>
>>
>> If this is a known issue, why doesn't someone commit
>> the change? I
>> understand t
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:
>
>
>
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 issue
Turns out the problem is that the autocompleter is broken for maps. Using
the map example given in the documentation
(http://struts.apache.org/2.x/docs/autocompleter.html) does not work:
However, it works when a list is given:
-Ben
chengas123 wrote:
>
> Converting the tags
; 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 tag
nstead of :
>
> {
>"Al" : "Alabama"
> }
>
>
> I know it is confusing, but we inherited that from Dojo and changing
> it would break backward compatibility.
>
> regards
> musachy
>
>> >
>> > chengas123 wrote:
>> >
able to add a
> comment.
>
> -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 n
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 s
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 been
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 on
I am using the iterator tag as follows:
This will give me an order date such as "20040513" and a total such as
"68.7700" when what I really want is 05/13/2004 and $68.77. I have not been
ab
Mark Menard wrote:
>
> />
>
> 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. After a little more research it looks like
format.date ne
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 fo
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
t
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.
-Ben
--
View this message in context:
http://struts.1045723.n5.nabble.com/Convention-plugin-can-t-find-Actions-tp4744110p4744666.htm
49 matches
Mail list logo