There's no method in the Action class returning a String. Can you help me?
Thank you so much,
Paolo
Zheng, Qiang ha scritto:
You need to implement that in action.
-Original Message-
From: Paolo Niccolò Giubelli [mailto:paoloniccolo.giube...@itestense.it]
Sent: Friday, January 30, 2009
This is my idea: jsp should convert my float value to a String so to
display it in my textbox. I suppose jsp uses a subclass of NumberFormat
to do so... may I change this behaviour so to use
DecimalFormat.getCurrencyFormat()?
Thank you in advance...
Paolo
Paolo Niccolò Giubelli ha scritto:
Hi all,
I was just doing a test upgrade from Struts 2.0.11.1 to 2.1.6, with
the Spring plugin. I have a website the issues a couple back to back
ajax requests to the same Action class (different methods), and the
first time I call this Action after starting up the server I get
linkage duplication
On 31/01/2009, at 6:23 AM, Tom Pop wrote:
Hello,
please, can you show me on this example how to convert tiles from
struts1 to struts2?
This example defines localized page title attribute passed to
template in struts1:
bean:define id=messages name=%=
Hi,
It is possible to create a new theme extending the one you are using,
overriding the template for the fielderror tag.
http://struts.apache.org/2.0.14/docs/extending-themes.html
Or, you can override the fielderror for the theme without creating a
new one. You just need to create a
Hi,
here's my code.
I want to show an error message if it's impossible to commit. But it seems my
action still display the 'success' result.
can anybody help me?
public String intercept(ActionInvocation invocation) throws Exception {
String retour = Action.ERROR;
try {
Thanks boyz --
Are any of you using the Eclipse Maven plug-in? Also, is
http://mvnrepository.com an aggregate source for POM's? Lastly, is there a
buffet line POM builder where you can select the stack you desire and click
GO? It seems to me the combination/permutation of POMs spread across
Thanks Dave --
I am looking for a seed POM like the one you describe. Does it contain
gray poupon by chance?
Scott
On Fri, Jan 30, 2009 at 11:53 AM, Dave Newton newton.d...@yahoo.com wrote:
stanlick wrote:
I am SO DONE with mucking around in dependencies that I am about to
scream! Until
Darn, Ctrl+Enter is no good
So, one more try:
Musachy Barroso wrote:
what does s:property value=top / prints in the action result?
I updated my sample
(http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Action.war)
so that the JSP outputs this:
s:action
Thanks, but the last paragraph was what I was asking for - I want to know, how to get
localized message from bundle in scriptlet in JSP because I didn't find other way how
to insert localized message from bundle to tiles tag - and globaly to any tag from
some special tag library, where I can't
hi Scott,
this is what i typically do for creating a skeleton struts2 project:
1. create a blank web application project from the generic maven
archetype listing (mvn archetype:generate)
2. i select the appropriate POM dependencies from struts2's sample
application
David Erickson wrote:
java.lang.LinkageError: loader (instance of
org/apache/catalina/loader/WebappClassLoader): attempted duplicate
class definition for name: com/x/y/ZAction
I believe this error is thrown when there's more than one version of the
.class available in the classpath. Are you
Please start new threads for new issues.
François Rouxel wrote:
I want to show an error message if it's impossible to commit.
But it seems my action still display the 'success' result.
public String intercept(ActionInvocation invocation) throws Exception {
String retour =
stanl...@gmail.com wrote:
I am looking for a seed POM like the one you describe. Does it contain
gray poupon by chance?
I'm committing a new archetype-blank today along with some minor
documentation; it's pretty basic. I don't think I'll have time to update
archetype-starter in Feb but I'll
On Sat, Jan 31, 2009 at 7:31 AM, stanl...@gmail.com wrote:
Are any of you using the Eclipse Maven plug-in? Also, is
http://mvnrepository.com an aggregate source for POM's?
As far as I know, it's just a search site, it doesn't serve the
artifacts as a repo for Maven to automatically download
On Sat, Jan 31, 2009 at 8:38 AM, Dale Newfield d...@newfield.org wrote:
David Erickson wrote:
java.lang.LinkageError: loader (instance of
org/apache/catalina/loader/WebappClassLoader): attempted duplicate
class definition for name: com/x/y/ZAction
I believe this error is thrown when
I know this thread is a little old but maybe someone will find this useful.
The variable in this case, listEditEnabled, has to do with enabling editing
of an ajaxified list of items.
c:set var=listEditEnabled
sitemesh-decorator:getProperty property=meta.listEditEnabled /
/c:set
c:if
the problem is you are relying on your own ServletFilter
this is possibly a configuration problem
please display hibernate.xml,hibernate.properties
Fairly comprehensive example of configuring hibernate with struts is located at
http://www.hibernate.org/105.html
Martin
Martin Gainty wrote:
the problem is you are relying on your own ServletFilter
It's a Struts 2 interceptor.
this is possibly a configuration problem
please display hibernate.xml,hibernate.properties
The issue is with the interceptor and not knowing that the result is
executed within the
Agreed!
its *remotely* possible that this is a Classloader error ..system classloader
and app classloader both attempting to load different classes
This sort of thing shows up in weblogic/glassfish and websphere app servers
If you dont have it ..take a look at downloading the class here
Hi,
I extended simple theme and defined my own theme.
In that coreheadercontrol.ftl that i added and done some work
#assign hasFieldErrors = parameters.name?exists fieldErrors?exists
fieldErrors[parameters.name]?exists/
#if hasFieldErrors
div errorFor=${parameters.id}
#list
So is there any way to stop calling the action/ have one flag on action
Which determines this part of code in action need not be executed on click
on refresh button.
For this I think Token and/or Token Session interceptors will do the magic.
22 matches
Mail list logo