Hi,
I have faced the same problem..
But i am successfully able to crop it just by adding basicStack
interceptors exact before execAndWait.
E.g:-
interceptor-ref name=basicStack/
interceptor-ref name=execAndWait/
Best Regards,
Jignesh
mleneveut wrote:
Hi,
Hi all,
I just give up the datetimepicker component, due to a 2s more page load
time. I put anoter JS calendar (YUI calendar), but the problem is that in my
Actions I have java.util.Date attributes. So I need to format my Date into a
String that the calendar will understand (dd/MM/ in my
which part do you mean? Is this?
html:form action=projection.do
...
logic:iterate id=loop indexId=idx name=data
...
td class=celBorder
html:select name=loop property=sts_1
onchange=checkStsCombo(this, 'hasil_1', '%=idx%');
html:option value=/html:option
html:options
You can call a static method using the OGNL syntax.
s:property value=@[EMAIL PROTECTED](myDate) /.
(More info can be found here
http://www.opensymphony.com/ognl/html/LanguageGuide/)
However i suggest you have a look at the s:date tag.
max
mleneveut wrote:
Hi all,
I just give up the
Dave,
Thanks for your efforts.
Is it worth me using your setup to test here?
And yes I'm using the default interceptor stack.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: 10 October 2007 01:10
To: Struts Users Mailing List
Subject: RE: Bug in 2.0.9 regarding
I've just done a very simple test too and it appears to be working.
I'll endeavour to find out what's wrong and report back.
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 10 October 2007 08:53
To: Struts Users Mailing List
Subject: RE: Bug in 2.0.9 regarding
Thanks for your answer.
The s:date tag is fine, but how to pass it to a s:textfield tag ?
s:textfield id=date name=date
size=10 maxlength = 10
value=s:date name=myDate format=%{getText('date.format')}//
maxmil wrote:
You can call a static method using the OGNL syntax.
Ok sorry for stupid question, I have found :)
s:date name=myDate format=%{getText('date.format')} var
=myDateFormatted/
s:textfield id=date name=date
size=10 maxlength = 10
value=${myDateFormatted}/
mleneveut wrote:
Thanks for your answer.
The s:date tag is fine, but how
I think I got a result named * to work like this with wildcards
On 10/9/07, Dave Newton [EMAIL PROTECTED] wrote:
--- Wes Wannemacher [EMAIL PROTECTED] wrote:
Do you mean that you don't have a foo_input.jsp?
No, I mean that since I have no named input result
that it pukes and won't take me
Dear all,
I have been with Struts Users Mailing List for the past one and
half year and the advice,knowledge,experience I get here is awesome. I
wonder whether are there any similar groups relates to Java,J2ee,Spring
where we can get daily mails like here? Though I am a member of
Well well well
I've found the problem. And it's an odd one.
The Action class was extending another class, which had in it the
following:
private Locale locale;
public Locale getLocale()
{
return locale;
}
public void setLocale(Locale locale)
{
Maybe I simply shouldn't of over-ridden getLocale from ActionSupport...
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 10 October 2007 11:51
To: Struts Users Mailing List
Subject: RE: Bug in 2.0.9 regarding validation localization?
Well well well
I've found
Since projects like Struts wear our code on our sleeve, there's
always a discussion over whether the website should represent the
latest documentation or the documentation for the best available
release. Over the years, we've done it one way and the another, and
now we do it both ways :)
The
I am using struts2+spring+jpa+ajax+sitemesh
WHile onload only execute method should be called,
but update is also called.Why
this is my struts.xml
action name=login class=login
result name=inputlogin.jsp/result
result name=errorlogin.jsp/result
2007/10/10, Ted Husted [EMAIL PROTECTED]:
Sadly, not everyone can file a CLA. Many organizations still use
aggressive IP agreement that assign rights to our every stray thought
to the company, 24/7.
Once I thought my mind was mine, but now I know it's property of my company
:-)
This is a
Here is an example from
struts2-showcasehttp://localhost:8080/struts2-showcase/viewSource.action?page=/ajax/autocompleter/index.jsppage
is referenced from webapp/viewSource.jsp e.g.
h3${empty page ? Unknown page : page}/h3
which populates page and renders
h3/ajax/autocompleter/index.jsp/h3
I found a strange behaviour in action after execAndWait interceptor.
I have
1. lt;action name=doSearch class=s2.action.SearchAction
lt;interceptor-ref name=basicStack/
lt;interceptor-ref name=execAndWait
lt;param name=delay2000lt;/param
lt;param
take a look at accessor and mutator for 'page' in the ViewSourceAction.java
sourceMartin Gainty__Disclaimer and
confidentiality noteEverything in this e-mail and any attachments relates to
the official business of Sender. This transmission is of a
public class SearchAction extends ActionSupport implements
ServletRequestAware {
protected HttpServletRequest request;
private HttpSession sess;
public String execute() throws Exception{
/*I*/ sess = request.getSession();// not NULL !
try {
// выполняется поиск и опрос
I have been with Struts Users Mailing List for the past
one and half year and the advice,knowledge,experience I get
here is awesome. I wonder whether are there any similar
groups relates to Java,J2ee,Spring where we can get daily
mails like here? Though I am a member of
--- Dean Pullen [EMAIL PROTECTED] wrote:
Maybe I simply shouldn't of over-ridden getLocale
from ActionSupport...
:D
Probably not. I did much the same thing with another
ActionSupport-implemented method once; didn't catch it
for 3+ weeks :/
Glad you found it!
d.
You can, if you grab the ValueStck and traverse up it till you get to your
previous action.
Igor Vlasov wrote:
I have action one and it calls action two throw:
result name=success type=chain two/result
I can use ChainingInterceptor to copy properties of one action to two
I have action one and it calls action two throw:
result name=success type=chain two/result
I can use ChainingInterceptor to copy properties of one action to two
action.
I get behaviour : one.param-two.param.
But the property param must be in javaBeans specification(have setter and
getter
I try this in action two.execute():
ValueStack stack=ActionContext.getContext().getValueStack();
CompoundRoot root = stack.getRoot();
List list = new ArrayList(root);
This list does not contain my previous action one. It contains only
TextProviderObject.
Can you write how to grab
I have a jsp page named tvshow.jsp, wherein I am populating the characters
dropdown as and when the TV Show dropdown value changes , by calling the
javascript in the “onchange()” of the select box.
have added a html link, and I want to call the same function from my action
class and I need to
I am new to Strus.I am running a small Struts program. At tomcat startup I am
having an error.
INFO: Loading chain catalog from jar:file:C:/Program Files/Apache Software
Foundation/Tomcat
5.0/common/lib/struts-core-1.3.8.jar!/org/apache/struts/chain/chain-config.xml
Oct 10, 2007 3:15:47
Hi,
We have this problem of having to repeat certain validations for the same
fields in multiple validation xml files because they occur in multiple
scenarios and we have different validation files for the different
scenarios. Now this brings about duplication of code in the sense that in
Okay, this might be a question for the dev list, but bear with me for a
minute.
My application is currently using Struts 2.0.8. I read about some
security and bug fixes in 2.0.9 and 2.0.10. According to the Struts
JIRA server, 2.0.10 has been complete since September 9th, so I figured
I'd wait
Have you looked at the visitor validator? It might serve your purposes
if the fields are on objects in the action.
/Ian
Arup Francis wrote:
Hi,
We have this problem of having to repeat certain validations for the same
fields in multiple validation xml files because they occur in multiple
I believe this exact example is included with the AjaxParts Taglib,
which works well with Struts (1 or 2). If anyone is going to be using
Ajax and JSP tags together, AjaxParts is a great way to go (and easy
to learn!).
* http://www.omnytex.com/articles/apt/
HTH, Ted.
http://husted.com/ted/blog
The use case for the chain result is that JavaBean properties on
ActionTwo that match JavaBean properties on ActionOne are copied
forward. This sounds like the same use case that you describe, and
it's unclear why it isn't working, or why you would need to do
anything manually.
The most helpful
You don't need to do anything special to make the request. Any
standard Ajax approach will work just fine. The request can be to a
servlet or other resource, or to a Struts 2 Action. If it's to a
Struts 2 Action, it should return a HTML/Text result, or use the JSON
plugin.
*
You can open up the struts 2.0.9 jar and pull out the template folder from .
Copy that into your project, then modify template/xhtml/head.ftl and
template/simple/head.ftl to refer to the dojo.js file in your directory
instead of the one imbedded with struts.
Session A. Mwamufiya
Carnegie Mellon
Awesome
--- [EMAIL PROTECTED] wrote:
I think I got a result named * to work like this
with wildcards
On 10/9/07, Dave Newton [EMAIL PROTECTED]
wrote:
--- Wes Wannemacher [EMAIL PROTECTED] wrote:
Do you mean that you don't have a foo_input.jsp?
No, I mean that since I have no
Just an FYI, that article is a little outdated... APT's feature set is a
bit larger than the article talks about now for one thing, although in
glancing over it again, I don't see anything that's not applicable now.
Also note that the link to Rick Reumann's article is no longer valid, it
is now
I noticed something broken in showcase on trunk once and brought it up -
https://issues.apache.org/struts/browse/WW-2206
In discussion, I realized that the dev team is moving away from other
expression languages in favor of OGNL only (or whatever is plugged-in
in struts 2.1.x).
-W
On 10/10/07,
Pardon me for being totally new to OGNL, but what would be the
equivalent of ${not empty rules}?
-Original Message-
From: Wes Wannemacher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 10, 2007 2:44 PM
To: Struts Users Mailing List
Subject: Re: [S2] s:if test attribute not a runtime
%{rules != null rules.size() 0}
(I didn't test it, I'm just guessing)
-W
On 10/10/07, Jake Robb [EMAIL PROTECTED] wrote:
Pardon me for being totally new to OGNL, but what would be the
equivalent of ${not empty rules}?
-Original Message-
From: Wes Wannemacher [mailto:[EMAIL
Not to detract at all from the great JWP project but you can also do
this with AjaxTags.
The ajax:select tag is described here:
http://ajaxtags.sourceforge.net/usage.html
I used ajax:select to call an action that returned XML using the handy
AjaxXmlBuilder that came with AjaxTags.
Cheers,
Grant
thanks at all, my application work fine now, the load of pages took too much
time.
Juan Carlos
Musachy Barroso wrote:
Oh, that makes more sense :), in 2.1 there will also be a property to
specify the base url to load dojo, so you could use a different dojo
distribution (served from any
If you find your missing ${parameters.templateDir} then you wont get
simple/head.ftl you'll need djConfig baseRelativePath so struts can find root
dojo.js e.g.
// Dojo configurationdjConfig = {baseRelativePath: @s.url
includeParams='none' value='/struts/dojo' includeParams=none
Thanks, that seems to have done the trick. :)
-Original Message-
From: Wes Wannemacher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 10, 2007 2:50 PM
To: Struts Users Mailing List
Subject: Re: [S2] s:if test attribute not a runtime expression?
%{rules != null rules.size() 0}
(I
Hi,
Within a custom validator for field1, i need access to another field, say
field2 to perform some comparison. getFieldValue(field2, object) does not
help. Please advise.
Thanks,
Joseph
You already have the code, you posted it! :) If you're having some
*specific* problem, you'll find many helpful people here, but just saying
my code doesn't work, please help won't elicit too many (helpful)
replies.
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex
Can someone provide me with an example code.I need to implement ajax in my
struts project, when html link is clicked.
ghodgins wrote:
Not to detract at all from the great JWP project but you can also do
this with AjaxTags.
The ajax:select tag is described here:
In my code
/jsp/tvshow.jsp Click here
when the html link is clicked, it does not populate the second drop down
box with values.
I dont know what the problem is?
Frank W. Zammetti wrote:
You already have the code, you posted it! :) If you're having some
*specific* problem, you'll find
Well, what debugging have you attempted? Are you running in Firefox with
Firebug for instance and seeing some client-side error? Have you verified
that your Action is getting called? Have you examined the returned data
to ensure it's correct?
--
Frank W. Zammetti
Founder and Chief Software
No.I am running in I.E.
Have you verified
that your Action is getting called?
Action class is not being called.
Have you examined the returned data
to ensure it's correct?
returned data is correct.but I don't get any data back from the action
class.
Frank W. Zammetti wrote:
Well, what
Okay, so I figured out the right syntax for the question I posted
yesterday (subject: List properties in Struts 2).
Let's say I have a List of key-value pairs and I want to render the
entire list to the user as a form. In Struts 1.x, here's the JSP
snippet:
logic:iterate list=pairs
--- aarthy [EMAIL PROTECTED] wrote:
No.I am running in I.E.
Unless you are using one of the IE plugins for web
development you are making things more difficult than
necessary. Test on Firefox with the Firebug plugin
then verify it works under IE.
Have you examined the returned data to ensure
I am writing a plugin that consists of a new interceptor. I would like its
struts-plugin.xml to append to the defaultStack so the interceptor works out
of the box for packages leveraging the default interceptor stack. What is
the ethical thing to do as it relates to a plugin modifying the
Scott,
I would say that you are okay overriding the defaultStack since it is
a plugin. For a user to actively install your plugin, then they are
seeking the functionality you are providing. I don't know much about
the plugin you are writing, but if it works similar to other
interceptors, meaning
I thought you could also specify validation rules against model classes
as well, which might help if the rules that are repeated are always the
same for a particular model property; I can't find mention of that
capability in the validation docs off-hand, though.
You may also be able to
Hi Tim-
If you want to use Spring to configure automatic configurations of ORM Mapping
Tool such as hibernate start
herehttp://www.thearcmind.com/confluence/display/SpribernateSF/Configuring+Hibernate,+Spring,+OpenInSessionViewFilter+and+MyFaces+JSF
be careful as misconfigurations of Spring or
Rock on my brother! And however did you guess that it might be a breadcrumb
plugin? :) Karin has been patiently waiting to see code, so I finished it
this morning at 3:00 AM around watering my lawn (with a flashlight) and
making coffee! By noon today I was too tired to workout the
Jake Robb wrote:
Okay, this might be a question for the dev list, but bear with me for a
minute.
My application is currently using Struts 2.0.8. I read about some
security and bug fixes in 2.0.9 and 2.0.10. According to the Struts
JIRA server, 2.0.10 has been complete since September 9th, so
Let us know how overriding the default stack turns out. In other
plugins, I've been creating new stacks, then assuming a user would
just use that stack. Also, I'd make that stack the default stack in
the plugin package, something like myplugin-default, so that if a user
extended it, my stack
I think it could go either way, depending on the nature of the
interceptor/plugin. As for Scott's question, since I had a good idea
of what he was working on (like the Value Stack, it was magic baby!),
I think he should override the defaultStack. I agree with Don, though
that larger apps should
Hey Don! I feel as though I know you. Aren't you writing the infamous
Struts 2 in Action book? :)
Thanks for the tips. I too would like things to just work once the jar is
dropped. I'll mess around with the plug-in this evening after I shake off
the commute.
Scott
On 10/10/07, Don Brown
On 10/11/07, Wes Wannemacher [EMAIL PROTECTED] wrote:
I was mainly thinking from a support perspective. An experienced
struts2 developer would not have much problem configuring their
interceptor stack, whereas others are probably using struts-default,
with defaultStack as their interceptor
If something overrides struts-default then it's no
longer struts-default.
I'd rather that it was always explicit when something
other than struts-core is involved in normal request
processing; I'm not sure that adding a plugin JAR to a
project in itself is enough to make it obvious that
something
On 10/11/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hey Don! I feel as though I know you. Aren't you writing the infamous
Struts 2 in Action book? :)
To be fair, I'm operating in more of a reviewer capacity, as the large
majority of the work is being written by the excellent author, Chad
Hi
I worked in My eclipse and Tomcat for a project. I have both of them
configured in my system. Yesterday night I worked on one application which was
working fine for me. Today I went to back to My eclipse and started the server
again, I got following error messages which I typed the
Hi,
We are still using an old version of Struts (1.0.2) and at this point
upgrading to a newer version would require a really compelling reason, which
I might have found. While investigating reasons behind slowness of our
website under a heavy load, I stumbled upon a very heavy contention issue
hi All
how to make Action Form and a form in session scope in strut 2
help needed.
Thanks in advance
Joseph
--
View this message in context:
http://www.nabble.com/how-to-make-ActionForm-in-session-scope-tf4604877.html#a13148752
Sent from the Struts - User mailing list archive at Nabble.com.
As suggested, I've added these instructions to the community wiki.
http://cwiki.apache.org/confluence/display/S2WIKI/Creating+a+custom+Dojo+profile+for+Struts+2.0.9
Wes Wannemacher wrote:
This was my original suggestion to post it into the community wiki
because any changes that would be made
--
View this message in context:
http://www.nabble.com/Configure--Message%2BStore%2BInterceptor-tf4604931.html#a13148924
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL
Hi,
Is there a way to configure the message store interceptor via annotations?
I started experimenting with the smarturls plugin for Struts 2
(http://code.google.com/p/smarturls-s2/) in order to get rid of my XML
configuration but noticed that I need the message store interceptor to have
Copying of properties with ChainingInterceptor working GOOD.
I have very complex object as a property to copy and i MUST make every part
of it in javaBean specification. For me it is too tedious. Then i want
manually copy whole property from actionOne to actionTwo.
The second cause is
69 matches
Mail list logo