Hi,
On the Struts 2 start page one statement reads:
Flexible Cancel Buttons - Go directly to a different action on cancel.
Could anybody point me to a page where this statement is explained?
/Vlad
--
View this message in context:
2007/4/17, Rod Bollinger [EMAIL PROTECTED]:
Hi Antonio,
I agree that that works. In fact, both approaches function identically. That
is not the issue. The only issue I was raising was how to make the
SimpleMenuItem extension attributes validate properly in an IDE. Since, they
are not declared
On 4/16/07, Ken Miller [EMAIL PROTECTED] wrote:
Can someone point me (or at least give me a clue) where a potential
problem may exist? I've configured my server to have a shared set of
Commons and Struts jars (something I did before reading the above
paragraph), and it appears to work, but I'd
There's no problem in my Java Build Path. I have no error and no
warning on my WEB-INF/src. I only have errors and warnings on my
WEB-INF directory :
ERRORS :
Severity and DescriptionPathResourceLocation
Creation Time Id
Validation rule email doesn't exist.
hi,
Are you sure you have the validator-rules.xml in your WEB-INF directory?
Thanks,
Nuwan.
- Original Message -
From: piloupy GOTTAPIL [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, April 17, 2007 8:20 AM
Subject: Re: [OT] Re: Force clean /
Do you have a getValue(String key) method?
I am not a s2 user but I have read the OGNL spec so sorry if I'm wrong
but OGNL needs
public PropertyType getPropertyName(IndexType index)
and public void setPropertyName(IndexType index, PropertyType value)
--- Dale Newfield [EMAIL PROTECTED] wrote:
[...] so that implies only a single simultaneous use
of a single execAndWait action per login?
From the execAndWait JavaDoc:
This interceptor works on a per-session basis. That
means that the same action name (myLongRunningAction,
in the above
--- Ian Roughley [EMAIL PROTECTED] wrote:
s:a ... / generates a link in s2, you can use the
action and namespace attributes with it.
s:a.../ is pretty different than s:url.../ and I
would think not what the OP was looking for, which was
how to give links logical names.
I think the issue was
No, validator-rules.xml isn't in my WEB-INF directory. It's in the
struts-core.jar file at location
org.apache.struts.validator.validator-rules.xml.
Here is the plugin declaration in my struts-config.xml :
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Craig,
Craig McClanahan wrote:
The naive way for a library to do this is:
String className = ...; // Calculate the name of the class you want
Class clazz = Class.forName(className);
* If commons-foo.jar is stored in a shared classloader
s:a ... / generates a link in s2, you can use the action and namespace
attributes with it.
Dave Newton wrote:
--- Allen Gilliland [EMAIL PROTECTED] wrote:
s:url value=/ui/something.jsp/
okay, but at that point there is no real reason to
use the s:url tag at all
If you're
From the WebWork 2.2.5 release notes:
This 2.2.5 release, 6 months after WebWork 2.2.4, marks the final
chapter for the WebWork framework. Struts 2, its successor, had its
first GA release, and in a final push, the WebWork team wanted to do a
big effort to bring in as many optimizations and bug
I have a form with client side validation:
s:form validate=true action=myAction namespace=/ theme=xhtml
and an Action with some annotated validations:
@Validations(
requiredStrings = {
@RequiredStringValidator( message = Required, type =
ValidatorType.FIELD,
Hello,
I've used struts1 for several years and I'm now looking at Struts².
In struts1, to create a registerUser use-case I need a RegisterAction, a
RegistrationService and some business code.
My struts1 RegistrationService is only used to start a transaction using
Spring @Transactional
Hello,
I have scratched my head and googled this for hours to no avail, so maybe
you folks can give me a hand.
I am trying to migrate a Struts1 site to Struts2 (from maven, struts-core
2.0.6). So far everything is fine, except for Velocity (verison 1.4). The
Action is being called and
I'd still try it without it, because that's just the way I am ;)
I mean, it's obviously there if you're enumerating over it...
I switched that directive to % page session=true %, and it finds
Contact in Session context!
Apparently, specifying true makes the session implicit variable
Hi Tim,
For 2.4 the URIs have changed. They are now:
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
%@ taglib uri=http://java.sun.com/jsp/jstl/fmt; prefix=fmt %
HTH,
-Rod
-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 17, 2007
What version of Struts2 are you using? There is a bug in versions before 2.0.7,
where the select tag won't pre-select your values unless it is comparing
Strings.
See this Jira issue for details:
https://issues.apache.org/struts/browse/WW-1711
would it be possible to acomplish this in a staged environment in other
words
preprocess all your code with Velocity Macros from Ant script
http://vpp.sourceforge.net/
this way you can see your jsps and servlet code
then feed the vpp output to struts2?
M---
This email message and any files
Hello
Sorry for the persistence/naivete of this, however can someone tell me if this
is possible and how? It will be a learning experience for me and I appreciate
any insight.
Chris Pat [EMAIL PROTECTED] wrote: Hi Laurie
Thanks. All I need is to send a HTTP Post request to the php script
I'm not sure what the problem is, but adding $action to example.vm in
showcase, I see that it prints
[EMAIL PROTECTED] on the page, so the
reference is there. Can you post more details, like the mapping for your
action, the package declaration, etc?
regards
musachy
On 4/17/07, Michael [EMAIL
--- Slattery, Tim - BLS [EMAIL PROTECTED]
wrote:
I switched that directive to % page session=true
%, and it finds Contact in Session context!
Zounds.
%@ taglib uri=http://java.sun.com/jstl/core;
prefix=c %
%@ taglib uri=http://java.sun.com/jstl/fmt;
prefix=fmt %
I get this message for
Has anyone integrated FCKeditor with Struts2 ?
Can you point me the way ?
Thanks!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The problem was in my spring config. I was proxying the Action with the
TransactionProxyFactoryBean. When that was removed (juggling the Hibernate
Session management somewhere else) the Action was correctly set into the
Velocity context.
Thanks for the prompt reply, it forced to me to review my
My mistake (perhaps), I was scanning the email too fast. It doesn't
have the action and namespace attributes. But it's not just for making
dojo ajax requests either. The href attribute can use the %{} notation
to search the value stack and resolve expressions.
I usually use the two
Would you happen to know which attribute in dojo needs to be set or do I
need to wait for a newer version to be release with struts?
Musachy Barroso wrote:
I didn't even know there was a limit until I saw it the other day on
Dojo's
code. Just adding an attribute is easy, so it can be tackled
Hi
I am trying to use action chaining in struts2 and am stuck. Any help would
be really appreciated.
Scenario - I have a page that shows a list of records and also has a form to
add a new record. When user clicks on add I call addAction and chain it to
list action to go back to list page again
%@ taglib uri=http://java.sun.com/jstl/core;
prefix=c %
%@ taglib uri=http://java.sun.com/jstl/fmt;
prefix=fmt %
I get this message for both tags:
No tag library could be found with this URI.
Possible causes could be
that the URI is incorrect, or that there were errors
Note: The CFP announcement was inadvertently delayed, so the deadline
is unusually close this year. If you'd like to submit a proposal, get
busy!
-- Forwarded message --
From: Rich Bowen [EMAIL PROTECTED]
Date: Apr 16, 2007 10:40 AM
Subject: Call for Papers Opens for ApacheCon US
it would be easier just to wait for 2.0.8, which will probably happen this
week or next, Ted can confirm on that. If you want to hack around Dojo, you
can set it with something like
dojo.widget.byId(autocompleter_Id_here).dataProvider.searchLimit = 100;
regards
musachy
On 4/17/07, Adam Ruggles
Hello,
we integrated FCKeditor with Struts 2.0.3 trunk I think. It was done
the same way it is done in webwork 2.2.4
(http://opensymphony.com/webwork/). I just copied necessary files from
Webwork source and renamed imports. You'll need to rebuild your struts
jars.
Regards,
Andrew Stepanenko
On
On 4/17/07, Christopher Schultz [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Craig,
Craig McClanahan wrote:
The naive way for a library to do this is:
String className = ...; // Calculate the name of the class you want
Class clazz = Class.forName(className);
Is it possible to use JSTL to access the value stack? If so, what is
the syntax. If that doesn't work, what is the syntax for accessing it
with a scriptlet? That must be possible, because that is what the tags do.
Thanks very much,
Ray Clough
I don't know what, if anything, WL provides; you may
still need the jstl/standard libs, just a later
version.
--- Slattery, Tim - BLS [EMAIL PROTECTED]
wrote:
%@ taglib uri=http://java.sun.com/jstl/core;
prefix=c %
%@ taglib uri=http://java.sun.com/jstl/fmt;
prefix=fmt %
I
http://cwiki.apache.org/confluence/display/WW/Can+we+use+JSTL+with+the+framework
I shouldn't be linking to the wiki but the main doc has an error (fixed on
wiki already).
regards
musachy
On 4/17/07, Ray Clough [EMAIL PROTECTED] wrote:
Is it possible to use JSTL to access the value stack?
--- Ray Clough [EMAIL PROTECTED] wrote:
Is it possible to use JSTL to access the value
stack?
The StrutsRequestWrapper (?) will forward...
unfulfilled attribute requests to the OGNL stack. I
wouldn't be sure of the exact syntax; it may depend on
what, exactly, you're trying to access (and
Hi Chris,
HttpClient would be an alternative to generate HTTP POST request. For info.
refer
http://jakarta.apache.org/commons/httpclient/
/I
On 4/17/07, Chris Pat [EMAIL PROTECTED] wrote:
Hello
Sorry for the persistence/naivete of this, however can someone tell me if
this is possible and
The why is because I just really don't like the Struts-2 tags. I
especially don't like the fact that they don't expose a variable on the
page - for example the s:iterator tag does not explicitly expose a
variable which I can work with, or format using jstl. They don't play
nicely with the
Hi IG
That looks like the object. Thanks.
Information Guzzler [EMAIL PROTECTED] wrote: Hi Chris,
HttpClient would be an alternative to generate HTTP POST request. For info.
refer
http://jakarta.apache.org/commons/httpclient/
/I
On 4/17/07, Chris Pat wrote:
Hello
Sorry for the
--- Ray Clough [EMAIL PROTECTED] wrote:
The why is because I just really don't like the
Struts-2 tags. I especially don't like the fact
that
they don't expose a variable on the page - for
example the s:iterator tag does not explicitly
expose
a variable which I can work with, or format using
--- Dave Newton [EMAIL PROTECTED] wrote:
...but I'm telling you they do [expose variables to
JSTL], or at least s:iterator.../ does.
Let me re-phrase that... it's not so much that they
expose variables, but that the StrutsRequestWrappers
will pass variable requests (not sure what to call
this,
The do publish a variable, if they have to, as Dave mentioned, in the case
of the iterator, even if you don't specify and id, the current value will be
on top of the stack which you access using %{#top}. Other tags publish
values, like the url tag, etc.
musachy
On 4/17/07, Dave Newton [EMAIL
In ${expression}, expression will be evaluated against the Value Stack.
An Dave is right, the variable publishing name is probably not the best
description for it :)
musachy
On 4/17/07, Musachy Barroso [EMAIL PROTECTED] wrote:
The do publish a variable, if they have to, as Dave mentioned, in
To fix I extracted template/simple/select.ftl from the
struts2-core-2.0.7.jar to WEB-INF/classes/template/simple/select.ftl
I then
changed line 60 from:
option value=${itemKey?html}#rt/
to:
option value=${itemKeyStr?html}#rt/
and I inserted the following line before line 60:
#assign
Where do I find information about the diffrence between JSTL and struts
tags?
_
From: Hehl, Thomas
Sent: Tuesday, April 17, 2007 4:00 PM
To: '[EMAIL PROTECTED]'
Subject: Tiles refresh
I have a tile screen that is set up roughly thus:
A
B
C
When the user clicks a button, I change the value in C, but sometimes I want
to
I'm still not clear why you need the PHP script at all; why not call out
to the remote server directly from your Java webapp? That would seem to
be a simpler route.
However, if you really do need the PHP script in there something like
HttpClient, as suggested by another poster, would probably
--- Heidy Gutiérrez Guzmán [EMAIL PROTECTED]
wrote:
Where do I find information about the diffrence
between JSTL and struts tags?
I'm not sure what kind(s) of differences you're
looking for, but assuming you already know JSTL tags
I'd start by looking at the documentation for the S2
tags,
On 4/17/07 10:20 AM, nicolas de loof [EMAIL PROTECTED] wrote:
In struts2, AFAIK I can use any POJO as controler. Can I use my (maybe
adapted) RegistrationService as a Controller by simply changing to a
statefull model (user to register is not a method parameter anymore but a
bean property) ?
Jason
Thanks for the fix
Did you commit the patch?
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Craig,
Craig McClanahan wrote:
Craig McClanahan wrote:
Yep ... it's magic :-).
Actually, what happens is that the servlet container provides a
mechanism to acquire the ClassLoader instance for the web application
itself, from which you can
Hi Everyone,
Can anyone explain to me how I can use the new Restful2ActionMapper? I was not
able to find detailed documentation on it anywhere on the web.
I am trying to write a Rails style RESTful app in Java.
Thanks,
Drew Kutcharian
Venarc Inc. www.venarc.com
I'm not yet setup subversion so I did not create a patch. I did just report
the issue to JIRA, issue number (WW-1887)
On 4/17/07, Martin Gainty [EMAIL PROTECTED] wrote:
Jason
Thanks for the fix
Did you commit the patch?
Martin--
This email message and any files transmitted with it contain
--- Drew Kutcharian [EMAIL PROTECTED] wrote:
Can anyone explain to me how I can use the new
Restful2ActionMapper? I was not able to find
detailed documentation on it anywhere on the web.
I am trying to write a Rails style RESTful app in
Java.
For now, at least, I'd look at the original
Thanks Dave, I have read that. What I am trying to accomplish is to have URLs
like the following and I dont know how exactly I can pull it off using Struts 2.
The page that you have linked contains a Rails link
Now I'm even more confused about where dependency injection happens for
interceptors.
My long running process is importing large numbers of documents into my
system (extracted from an uploaded .zip file), which needs DB access
throughout the process. As such, I use something based upon:
On 4/17/07, Christopher Schultz [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Craig,
Craig McClanahan wrote:
Craig McClanahan wrote:
Yep ... it's magic :-).
Actually, what happens is that the servlet container provides a
mechanism to acquire the ClassLoader
My Action has a method public Exporter getExporter(). If I use the struts2
tags I can access the exporter with s:iterator
value=exporter.nameValuePairs , and it works fine. If I use the jstl
syntax c:forEach items=${exporter.dataMatrices} var=matrix , nothing
is found. How do I get the jstl
Ok. I read the OGNL spec and it looks like the way of using maps etc. is
subtley different from Struts1. My JSP now looks like
s:textfield name=attribute[#currentField.fieldname]/
and the associated Action class has methods
public void setAttribute(String key, Object value)
public Object
--- Ray Clough [EMAIL PROTECTED] wrote:
My Action has a method public Exporter
getExporter(). If I use the struts2
tags I can access the exporter with
s:iterator value=exporter.nameValuePairs ,
and it works fine. If I use the jstl syntax
c:forEach items=${exporter.dataMatrices}
The Exporter class is designed to make the data in my Model class available
for use in jsp. It has a method getDataMatrices() and another
getNameValuePairs(). I'm using the S2 tags for the NameValuePairs, and
it works fine. I'm trying to use JSTL for the DataMatrices, and it
doesn't work.
I asked this on the velocity lists, and they punted to this list.
We're currently using Struts1.x, Velocity, and Tiles for our project,
which is working great.
However, we want to upgrade to Struts2, but Velocity Tools calls
Struts1.2 to handle calls to Tiles, which obviously breaks.
So, the
--- Ray Clough [EMAIL PROTECTED] wrote:
I'm using the S2 tags for the NameValuePairs, and
it works fine. I'm trying to use JSTL for the
DataMatrices, and it doesn't work.
I'll examine this further when I get home.
Of course, I REALLY don't want to implement
ServletRequestAware, because I
Architecture is architecture, regardless of whether it is Struts-1, Struts-2,
or something else. A Service Layer has the benefits of giving clear
separation of function between the Controller (Struts) and the Application.
The web framework (here Struts) is primarily a vehicle for delivering
Hi,
I've written a simple PagingInterceptor in a Struts 2 project to do a
trivial calculation of the pageNumber used to display paged results, based
on whether the user pressed either a Search, Next Page or Previous
Page submit button.
I'm using the following interceptor stack:
Thank you, that was it. I updated to 2.0.7 and it works now. I can't believe I
didn't think to look through the Jira issues.
Thanks a bunch.
On Tue, 17 Apr 2007 14:41:11 + (UTC), Nate Drake [EMAIL PROTECTED] wrote:
What version of Struts2 are you using? There is a bug in versions before
66 matches
Mail list logo