2008/3/5, john lee [EMAIL PROTECTED]:
Could any expert tell me how to upload file if use struts 1.x? any example
will be greatly appreciate.
Google struts file upload and the first result is:
http://www.roseindia.net/struts/strutsfileupload.shtml
Antonio
Return the locale of the user's browser.
Adam Gordon wrote:
dumb question, but does that return the locale of the user or the locale
of the server on which the web app is running? if the former, how does
it determine the user's locale? thanks.
--adam
aj2r wrote:
slideharmony
Hello. I've a problem.
Apostrophe in resource files of my application does not appear.
example:
Property1=L'ID è sbagliato
is showed (using text tag in the jsp page) as : LID è sbagliato
I'm using ISO-8859-1 in Eclipse editor and I include this on top of every
jsp page:
%@ page language=java
2008/3/5, Paranoid_Fabio [EMAIL PROTECTED]:
Hello. I've a problem.
Apostrophe in resource files of my application does not appear.
example:
Property1=L'ID è sbagliato
is showed (using text tag in the jsp page) as : LID è sbagliato
If you are using Struts 2, then the reason is that
In other world, do you mean that an action with an interceptor ref will
not work with struts 2.0.11 ?
An idea about the availlability of the 2.1 release ?
thanks.
Meissa
Dave Newton [EMAIL PROTECTED]
04/03/2008 17:50
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org
A
Is there any documentation regarding how to submit a Struts 2 form using
something other than the submit button whilst keeping all of the
AJAX/Javascript validation etc.
We are putting in drop down menus and would like to be able to do it
from there via a Javascript call.
Many thanks.
Solved! Thank you :)
Paranoid_Fabio wrote:
Hello. I've a problem.
Apostrophe in resource files of my application does not appear.
example:
Property1=L'ID è sbagliato
is showed (using text tag in the jsp page) as : LID è sbagliato
I'm using ISO-8859-1 in Eclipse editor and I
Thanks Nils..
On Wed, Mar 5, 2008 at 1:13 PM, Nils-Helge Garli Hegvik [EMAIL PROTECTED]
wrote:
You can store objects as request attributes, which lives as long as
the request. If you need an object to live between requests, use the
session.
Nils-H
On Wed, Mar 5, 2008 at 8:24 AM, Arpan
If I set a request param with ?professionId=3, this does not make the
professionId with value 3 selected. What am I doing wrong?
...
@s.select name = professionId key=profession
headerKey= headerValue=select_profession
list=professions
Hello,
I am using struts2 to validate form input. For some reason I can't figure
out, the short-circuit=true attribute is not working. Everything else
seems to be working fine. The validation rules are embedded in a
action_class_name-validation.xml file. Here's a sample from the xml file:
Hey folks, this is my first post. I have a little problem with an arrayList.
I'm trying to populate a drop down box in my main JSP. This is what's
happening. I have a dynaactionform with a years property which is an
arraylist of reportYear objects. A reportYear object has a getYear and a
--- [EMAIL PROTECTED] wrote:
In other world, do you mean that an action with an
interceptor ref will not work with struts 2.0.11 ?
I mean there's no interceptor annotations in 2.0.11 and, as I said, I don't
recall if it's been added in 2.1 or not.
An idea about the availlability of the 2.1
--- Matthew Seaborn [EMAIL PROTECTED] wrote:
Is there any documentation regarding how to submit a Struts 2 form using
something other than the submit button whilst keeping all of the
AJAX/Javascript validation etc.
We are putting in drop down menus and would like to be able to do it
from
--- Chamara Gunaratne [EMAIL PROTECTED] wrote:
I am using struts2 to validate form input. For some reason I can't figure
out, the short-circuit=true attribute is not working. Everything else
seems to be working fine. The validation rules are embedded in a
action_class_name-validation.xml
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 10:54 AM
To: Struts Users Mailing List
Subject: Re: short-circuit=true not working in field validator
--- Chamara Gunaratne [EMAIL PROTECTED] wrote:
I am using struts2 to validate form input.
I get the following error, but only after about 10 mins after a server
restart. To fix, I need to restart the server.
Unable to instantiate Action, xxx, defined for 'aaa' in namespace '/'
Error creating bean with name 'xxx' defined in class path resource
[spring/struts2/yyy.xml]:
Error setting
Same goes for getter. Does an Annotation exist to say get this value from
session if not in the request?
If these exist, it might take some boilerplate code way that would otherwise
involve http request/session objects in an action
Does this exist or anything on the roadmap?
Matt
--
View
--- Jonny Cavell [EMAIL PROTECTED] wrote:
I get the following error, but only after about 10 mins after a server
restart. To fix, I need to restart the server.
Unable to instantiate Action, xxx, defined for 'aaa' in namespace '/'
Error creating bean with name 'xxx' defined in class path
Hi,
I'm using: Struts 1.2.7; Tomcat 5.5.25; Java 1.5
I am having a problem using logic:equal in implementing a SELECT
statement on a page.
It should be simple.
The code snippet is this (stripped out scopes to simplify it):
select name=mobileEmailService
logic:iterate id=item
--- Ken Bowen [EMAIL PROTECTED] wrote:
logic:equal name=configCommsForm
property=mobileEmailService
value=bean:write name='item'
property='key'/SELECTED/logic:equal
That's not valid JSP; you can't nest custom tags like that.
Dave
by what Im seeing from XWork validators the first 'required' validator you
declared is unnecessary as the second regex validator will identify that
condition
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/va
lidator/Validator.html
Anyone?
M-
- Original Message
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 12:38 PM
To: Struts Users Mailing List
Subject: Re: short-circuit=true not working in field validator
by what Im seeing from XWork validators the first 'required' validator you
declared is
Argh! Can you point me at a technique for accomplishing this?
The input for the SELECT is a list of pairs of string (A1,A2) where A1
is to be the value tag of the option, and
A2 is the visible display for the option element. The list comes up out
of the database, and changes (slowly) over
2008/3/5, Ken Bowen [EMAIL PROTECTED]:
select name=mobileEmailService
logic:iterate id=item name=mobileEmailProviders
option value=bean:write name='item' property='key'/
logic:equal name=configCommsForm
property=mobileEmailService
value=bean:write
Im having 1 little problems with Practical Apache Struts2 Web 2.0 Projects
examples
The first one is that even EntityManager do not persist when submiting the
contestants says detached persist, I have solved it using
entityMgr.merge(event); instead of entityMgr.persist(event);
the second is a
Yes, ParameterAware is the interface if you want HTTP request parameters.
L.
Cheng Wei Lee wrote:
Should I be implementing ParameterAware interface instead since the
RequestAware gives me attributes instead of parameters from the form?
On Wed, Mar 5, 2008 at 1:15 AM, Ian Roughley [EMAIL
What does the index action look like? What does it return? And what's in
/jsp/index.jsp? It's not just a copt of /index.jsp is it, with the same
redirect directive...? ;-)
L.
Karr, David wrote:
Note that the index.jsp at the root of the webapp looks like this:
%
Jonny Cavell wrote:
If I set a request param with ?professionId=3, this does not make the
professionId with value 3 selected. What am I doing wrong?
@s.select name = professionId key=profession
headerKey= headerValue=select_profession
The list comes up out of the database, and changes (slowly) over time.
There will be other cases were the list changes rapidly. So I can't
hardcode it onto the page.
Antonio Petrelli wrote:
2008/3/5, Ken Bowen [EMAIL PROTECTED]:
select name=mobileEmailService
logic:iterate id=item
There have been cases (unfortunately not with myself or the tech
reviewer, otherwise it would have been corrected) when the same error
message (No object in the CompoundRoot has a publicly accessible
property named 'model' (no setter could be found). - [unknown location])
has been displayed.
2008/3/5, Ken Bowen [EMAIL PROTECTED]:
The list comes up out of the database, and changes (slowly) over time.
There will be other cases were the list changes rapidly. So I can't
hardcode it onto the page.
What do you mean with hard code? Can't you use EL to determine the
value that it has?
--- Ian Roughley [EMAIL PROTECTED] wrote:
The solution provided to me was to change the scope interceptor
reference to use a session value of Model rather than model - see
below.
interceptor-ref name=scope
param name=sessionModel/param
param name=keypartialEvent/param
Chamara Gunaratne wrote:
Dave:
Thank you for your reply. I changed type attribute to requiredstring. But
it doesn't help with the short-circuit problem.
Yes, both the first name and last name validators fire successfully and the
regex is correctly evaluated. Just the short-circuit part is not
Is anybody using the short-circuit attribute in the validations
successfully?
-Original Message-
From: Chamara Gunaratne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 12:56 PM
To: 'Struts Users Mailing List'
Subject: RE: short-circuit=true not working in field validator
--- Chamara Gunaratne [EMAIL PROTECTED] wrote:
Is anybody using the short-circuit attribute in the validations
successfully?
Yes.
I'm not in front of my dev machine so I can't do much more at the moment. I
don't recall seeing anything wrong with your configuration.
Dave
PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__ NOD32 2924 (20080305) Information __
This message was checked by NOD32 antivirus system.
http://www.eset.com
-
To unsubscribe, e-mail: [EMAIL
I'm not sure, and I'm only taking an educated guess at it being
OS/platform-dependent (since a JAR that worked for me had problems for
another user). Unfortunately I can't reproduce the error. I'm all for
doing the work to fix the problem if someone has the problem and cycles
to work through
Something like
html:select property=mobileEmailService
html:optionsCollection name=mobileEmailProviders
property=key value=value/
/html:select
should produce what you want. The option values/names will be retrieved
from the mobileEmailProviders each time the page is rendered;
Jeremy-
Dude, don't waste your time with this guy. He's been given all the
answers he needs and he ignores them. Basically, he needs to ensure
that his web app uses UTF-8 character encoding and it will work
correctly, but instead of following everyone's advice here, he keeps
posting new
Hi,
Using the REST-plugin (Struts 2.1.1) and with a requirement for i18n URLs. Is
it possible to have a single action that maps to different URLs using the
REST-plugin?
Ie.
OrdersController.index() kicks in on both the english and the norwegian word in
the URL:
/orders --
That's what I figured, so how does it determine the user's locale?
aj2r wrote:
Return the locale of the user's browser.
Adam Gordon wrote:
dumb question, but does that return the locale of the user or the locale
of the server on which the web app is running? if the former, how does
it
--- Adam Gordon [EMAIL PROTECTED] wrote:
That's what I figured, so how does it determine the user's locale?
The dispatcher gets it from the request and puts it in the context map.
Dave
aj2r wrote:
Return the locale of the user's browser.
Adam Gordon wrote:
dumb question, but does that
The code of IndexAction doesn't matter, as before I set actionPackages
it wasn't even going there at all. In any case, it's execute() method
just returns SUCCESS. The two index.jsp files are not identical. I
even tried renaming the second one to index2.jsp (and changing the
reference), but that
I usally use scriptlet in jsp to set some object in request is there a way tro
do this using any tag library
instead of this
%request.setAttribute(CustomReviewFormflowAction.IReviewFormFlowProperties.ATTRIBUTE_REVIEW_FORM_SECTION,vReviewFormSectionHeader);
%
can I use any exsisting
Hi,
Can anyone advise me on the best way to approach this problem? I have a
Struts2 application using Tiles 2 for UI. I have a page where the body
of my tiles composition needs to be generated dynamically from XSLT. I
want to transform XML into HTML tags including a form and inputs, which
Since this is a Struts user list, I assume that you're looking for a
Struts way to do this. In that case, the taglib documententation
would be a very good place to start! You don't specify which version
of Struts, so here are some references:
Struts 1:
Magnus Haraldsen Amundsen wrote:
Hi,
Using the REST-plugin (Struts 2.1.1) and with a requirement for i18n URLs. Is it possible to have a single action that maps to different URLs using the REST-plugin?
Ie.
OrdersController.index() kicks in on both the english and the norwegian word in the
On Wed, 2008-03-05 at 17:18 -0500, Griffith, Michael * wrote:
[snip]
Is this a good application for writing my own interceptor for?
You would want to write your own Result Type for this. Writing your
own results is not as well documented as writing your own interceptors,
but since you
I'm sure I have a simple error here, but I don't see it.
I'm trying to construct a simple hello, world app with v2.0.11. I
have an index.jsp that redirects to main.action. I started out with
the main action just having a result (name=success) going to
/main.jsp. That appears to work. I then
Hi there,
I wonder if anyone knows how to align the check-box list in groups of 10 (or
20). as you can see from the picture below, the list (US states) are aliened
vertically (not a user friendly) is there anyway to have them in a
matrix-style (meaning all states will be in a matrix of 10x5 (plus
Adam Gordon wrote:
Maybe if we invented magic, it would allow him to do what he needed
without following our advice.
--adam
Thanks Adam!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Wed, 2008-03-05 at 14:48 -0800, Karr, David wrote:
I'm sure I have a simple error here, but I don't see it.
I'm trying to construct a simple hello, world app with v2.0.11. I
have an index.jsp that redirects to main.action. I started out with
the main action just having a result
I don't see anything wrong with it, provided MainAction returns
success (MainAction.java wasn't attached).
Is it possible you have a conflicting struts.xml deployed in the webapp,
or any plugin jars deployed? The only other time I've seen the response
you're returning the correct result code
Hi,
Where is the Form bean into the request??? What is the label??
I want to put a actionform in the request and I dont know where...
(prepopulate???)
Thanks.
Jeromy Evans wrote:
*You're correct. ModelDriven does not give you much benefit other than
to put a single Model object, rather than the Action, at the top of the
ValueStack (the Action falls to second). In many respects, that's a
limitation rather than a benefit.*
It depends how the
In case this was not a Struts question, check out:
http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html
Hope this helps!
Alberto
On Wed, Mar 5, 2008 at 5:08 PM, temp temp [EMAIL PROTECTED] wrote:
I usally use scriptlet in jsp to set some object in request is there a way
tro do
Hi to everyone:
I'm trying to make a tag that has an add button and a remove button.
The add button adds and viceversa with the remove button.
Every cell can contain only one of the following type of fields, but you can
repeat type of fields in different cells: Text, Datepicker, select, radio,
You can use JSTL too.
On Wed, Mar 5, 2008 at 5:45 PM, Alberto A. Flores [EMAIL PROTECTED]
wrote:
In case this was not a Struts question, check out:
http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html
Hope this helps!
Alberto
On Wed, Mar 5, 2008 at 5:08 PM, temp temp [EMAIL
I just solved the same problem on a linux and windows servers. Please use
UTF-8.
On Wed, Mar 5, 2008 at 5:58 PM, Jeromy Evans
[EMAIL PROTECTED] wrote:
Adam Gordon wrote:
Maybe if we invented magic, it would allow him to do what he needed
without following our advice.
--adam
Can somebody tell us what was the security problem fixed with this version?
On Wed, Mar 5, 2008 at 11:41 AM, Rene Gielen [EMAIL PROTECTED] wrote:
Apache Struts 2.0.11.1 is now available from
http://struts.apache.org/download.cgi#struts20111.
This release is a fast track security fix release,
I think you have to do it like a huy called mark that has his blog called
vita rara.
There he explain and post a code of how you can change the layout that is
generated by the xhtml theme.
Of course there is not a complete solution for your case but i think it can
help you alot.
On Wed, Mar 5,
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 3:11 PM
To: Struts Users Mailing List
Subject: Re: Simple helloworld test fails with Could not
find action or result
I don't see anything wrong with it, provided MainAction
returns
--- Othon Reyes Sanchez [EMAIL PROTECTED] wrote:
Can somebody tell us what was the security problem fixed with this version?
Did you consider reading the links provided in the posting?
Dave
On Wed, Mar 5, 2008 at 11:41 AM, Rene Gielen [EMAIL PROTECTED] wrote:
Apache Struts 2.0.11.1 is now
Hi,
I am using validation framework and would like to disable validation for all
the query methods like getA(), getB(), getC().
There is a excludeMethods property using which I can turn off validation for
above methods by spelling out each method.
1. Is there a way to generalize this so that
* I do have the Spring plugin in there. Could that be an issue? I'm
going to want to use that soon, but I'm not really using it yet.
*
Not, it is not a problem.
Maybe it sounds dumb but where is lyour struts.xml located?
In your struts.xml your action named main2 has no class.
can you post
-Original Message-
From: Othon Reyes Sanchez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 4:24 PM
To: Struts Users Mailing List
Subject: Re: Simple helloworld test fails with Could not
find action or result
Maybe it sounds dumb but where is lyour struts.xml located?
I can't see anything wrong. My guess is still that it still hasn't
deployed correctly.
Time to use the source... Put a breakpoint in your action and trace
what happens after you return success.
Immediately you'll have access to the ActionInvocation and
ActionConfig. The latter will specify
Hi ppl, I got a lil doubt,
What do you guys are used to do when developing
simple applications such as a small BookStore?
I did mean what I should use:
* Action or DipatchAction ?
* form-bean or ActionForm ?
* Validate by calling the validate() method on an ActionForm or
something
--- akash agrawal [EMAIL PROTECTED] wrote:
I am using validation framework and would like to disable validation for
all the query methods like getA(), getB(), getC().
There is a excludeMethods property using which I can turn off validation
for above methods by spelling out each method.
1.
Jeromy is correct
At the very least we'll need to see the configuration files located in
/WEB-INF such as
web.xml
struts-xml
struts-config.xml
validation.xml
web.xml
struts-tags.xml
validation.xml
struts-tags.xml
struts-actionchaining.xml
struts-integration.xml
struts-jsf.xml
These configuration
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 6:07 PM
To: Struts Users Mailing List
Subject: Re: Simple helloworld test fails with Could not
find action or result
Jeromy is correct
At the very least we'll need to see the
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 4:53 PM
To: Struts Users Mailing List
Subject: Re: Simple helloworld test fails with Could not
find action or result
I can't see anything wrong. My guess is still that it still
Oh, and if it helps, this is the output on my browser when executing
with debug=xml:
debug
parameters/
context
struts.actionMapping
classclass org.apache.struts2.dispatcher.mapper.ActionMapping/class
namemain/name
namespace//namespace
/struts.actionMapping
attr/
I'm intrigued because of the strange problems you were also having a few
days ago. Can you email me me your project as a zip? (directly to the
address below)
Don't include the libs, but make sure it's clear where they out to be.
You're deploying into tomcat 5.x right?
Karr, David wrote:
David,
This has been bugging me since my first response... Although it may not
explain why it's not working, try adding 'namespace=/' to your package
declaration. I was reading through the docs, and I don't think it
indicates that it is necessary. But, just for testing sake, see if that
fixes it.
-Original Message-
From: Wes Wannemacher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 7:11 PM
To: Struts Users Mailing List
Subject: RE: Simple helloworld test fails with Could not
find action orresult
David,
This has been bugging me since my first response...
Struts 2.0.11, Tomcat 6.0.14, JDK 1.5.0_06.
This is probably due to my inexperience with HTML, but I'm experimenting
with the tabbedpanel component. I noticed statements that some of the
Ajax components don't work in IE. Ironically, when I tested my simple
tabpanel page, I found that it has a
I'm still a little puzzled by this.
If you have a chance could you remove the namespace bit on the package and
see what the config-browser reports? I'm also curious what happens if you
change the name of the package to default.
Thanks,
Dave
--- Karr, David [EMAIL PROTECTED] wrote:
How do you run the config-browser? The wiki page has some info on it,
but it's ambiguous. I copied the jar into WEB-INF/lib and redeployed,
but I'm not sure what to do now.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 8:05 PM
To:
Changing the package name to default didn't seem to have an impact on
the error. I assume you meant to do that while not having the namespace
attribute?
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 8:05 PM
To: Struts Users Mailing
Go to http://localhost:8080/YOUR_CONTEXT/config-browser/index.action
--- Karr, David [EMAIL PROTECTED] wrote:
How do you run the config-browser? The wiki page has some info on it,
but it's ambiguous. I copied the jar into WEB-INF/lib and redeployed,
but I'm not sure what to do now.
Hello,
I am trying to setup my first Struts 2 project with Spring, Hibernate,
and Tiles (and only my second Struts 2 project). I think I have Spring,
Hibernate, and Tiles all working correctly. I'm using Tomcat 6, with
the newest released versions of Struts, Spring, Hibernate, and Tiles. I
--- Karr, David [EMAIL PROTECTED] wrote:
Changing the package name to default didn't seem to have an impact on
the error. I assume you meant to do that while not having the namespace
attribute?
Correct.
I'll try to duplicate your issue tomorrow; you can send me a copy as someone
else
If you turn on devMode do you see any additional log messages that might
indicate a problem? I don't see anything immediately obvious, but it's late
and I'm crabby ;) You can also turn the logging levels up for both S2 and
XWork and see if any additional information is provided.
I'd also fire up
And when you visit that location it's giving you the error about not having a
result for success?
Dave
--- Karr, David [EMAIL PROTECTED] wrote:
Without the namespace attribute, config-browser reports this:
Action name: main
Namespace:
Action class:
Without the namespace attribute, config-browser reports this:
Action name:main
Namespace:
Action class: com.wamu.struts.helloworld.MainAction
Action method:
Parameters:
Default location: /struts-helloworld/main.action
-Original Message-
From: Dave Newton
No result defined for action com.wamu.struts.helloworld.MainAction and
result success
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 8:41 PM
To: Struts Users Mailing List
Subject: RE: Simple helloworld test fails with Could not
find
Dear fellow Struts users,
I am new in using Struts and I request your help.
Situation:
I am using Netbeans 6.0; Struts 1.2.9; Tomcat 6.0.14
I created an html:select property=formatList in my jsp page, what is it
does is for sorting purposes.
here's the snippet:
html:form
And the config browser isn't recognizing the success result configuration?
Normally it will list the configured results under the information you said
it listed. Man, I sure haven't been able to dupe this yet.
--- Karr, David [EMAIL PROTECTED] wrote:
No result defined for action
I am seeing some very unexpected behavior using OGNL in the Struts
tags. I have two objects that contain equivalent Name objects and
when I run the following code:
!-- Original: s:property value='%{originalMember.name}'/
(s:property value='%{originalMember.name.class.name}'/) --
!-- Current:
Below the main Action Information - main table, the contents of the
Results tab is empty.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 9:21 PM
To: Struts Users Mailing List
Subject: RE: Simple helloworld test fails with Could not
Chris Pratt wrote:
!-- Equals(): s:property
value='%{originalMember.name.equals(currentMember.name)}'/ --
Just to be pedantic, can you also verify that:
!-- Equals(): s:property
value='%{currentMember.name.equals(originalMember.name)}'/ --
yields:
!-- Equals(): true --
?
All correctly
Hello,
I am trying to integrate Struts 2 and GWT. I am using the tutorial on the
following link: http://cwiki.apache.org/WW/struts-2-gwt.html.
I have been able to create the deployment structure according to that
tutorial. But the problem is that my action does not submit. It doesnt do
From browser settings
request.getLocale()
request.getAttribute(org.apache.struts.action.LOCALE)
request.getSession().getAttribute(Globals.LOCALE_KEY)
-Original Message-
From: slideharmony [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2008 2:45 PM
To: user@struts.apache.org
On Wed, Mar 5, 2008 at 9:56 PM, Dale Newfield [EMAIL PROTECTED] wrote:
Chris Pratt wrote:
!-- Equals(): s:property
value='%{originalMember.name.equals(currentMember.name)}'/ --
Just to be pedantic, can you also verify that:
!-- Equals(): s:property
--- Chris Pratt [EMAIL PROTECTED] wrote:
Notice that the last statement (using the OGNL == operator) doesn't
return anything at all, which makes it useless in a s:if test.
OGNL actually checks for isAssignableFrom; if either class isAssignableFrom
the other it checks for Comparable and calls
I think you mentioned this, but is it still broken (no result config) when
you take out the actionPackages element? If it is, I have no clue; I can't
dupe. I'd have to start over again tomorrow.
Dave
--- Karr, David [EMAIL PROTECTED] wrote:
Below the main Action Information - main table, the
Chris Pratt wrote:
I added some instrumentation and it appears that OGNL is not calling
the equals method when I use the == operator, only when I explicitly
call .equals().
Look! A clue!
I believe the jar file is ognl-2.6.11.jar
Yep:
http://jira.opensymphony.com/browse/OGNL-96
Dave Newton wrote:
--- Chris Pratt [EMAIL PROTECTED] wrote:
Notice that the last statement (using the OGNL == operator) doesn't
return anything at all, which makes it useless in a s:if test.
OGNL actually checks for isAssignableFrom; if either class isAssignableFrom
the other it checks for
--- Dale Newfield [EMAIL PROTECTED] wrote:
There's a chance those bugs were introduced between 2.6.11 and 2.7, but
I'm betting not.
Nope; it's in 2.6.9 at least. The behavior happens because of the
isAssignableFrom sequence I mentioned in my previous post.
Dave
1 - 100 of 107 matches
Mail list logo