Hello,
I got a problem with type conversion errors.
I have several custom type converters which throw a
TypeConversionException in case the conversion fails. However, the
conversionError interceptor does not add any field errors to the action
in that case; furthermore, it seems that struts ra
[EMAIL PROTECTED] wrote:
which resolves to be:
The namespace is "/charts", but you use "charts".
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
If I want to edit my domain objects directly, how can I handle
transactions? Example:
My action has getLogin(), which returns a database-persistent object. In
order to let struts set properties of the object, a transaction must be
active.
I wonder if there is a "common way" to do thi
Daniel Baldes wrote:
Hi,
I have a select box:
Ok, I found it myself:
this works. It seems the code which does the pre-selection does not use
the type-converted value of "user.property" but the original value.
Chee
Hi,
I have a select box:
"availableObjects" is a list of objects having an id and a name
property, where id is of type "long". "user.property" is 'converted' to
its id (as String) by a type converter.
Now, setting user.property works well with this, but the current value
is not pre-selec
Brian Relph wrote:
Hi, I am concerned about security in my struts2 actions. I am using spring
to auto-wire my actions by name, but this leads me to believe that a
malicious user can set action properties that i do not want them to. For
example, i have a .jsp with a form input of "name". My act
Laurie Harper wrote:
Daniel Baldes wrote:
[...]
[...]
This way I could use getMyObjects() for displaying my objects and
setMyObjects() for setting them (using only their IDs).
Doesn't this imply that the myObjects property represents both the set
of values that can be selected
Hi Jeromy,
Jeromy Evans wrote:
Ah, I see the problem better now. In your select:
you're trying to access myObjects as both a list of objects (list=) and
as a string (name=). You can't do what you're describing because
convertToString needs to provide the currently selected value for the
s
Hi Jeromy,
Jeromy Evans wrote:
Daniel Baldes wrote:
[...]
2. Is there a way to define a type converter application wide, like
"always use this type converter for setting types which are subclasses
of X" and "for setting types which are Collection"?
This way I could defin
Jeromy Evans wrote:
[...]
Now my questions:
1. extending StrutsTypeConverter forces me to implement String
convertToString(Map context, Object o). I think there is no common
sense way of converting a collection back to a String in this context.
It would, maybe, make sense to convert it to a S
Hello Martin,
this would be ok, but that method doesn't exist in StrutsTypeConverter
as of struts 2.0.11, and most likely the framework won't call it when I
implement it. Or am I missing something?
Daniel
Martin Gainty wrote:
package org.apache.struts2.showcase.conversion
public class EnumT
Hello,
I have a web form where you can, generally speaking, assign objects to
groups. This is done via a multiple select box which displays an
object's name and uses its ID property as value.
So, usually, my action would get back a String array containing the IDs
of the selected objects. I w
Matthew Seaborn wrote:
Why is this happening and short of creating my own TypeConverter or
blocking it in the logger config, how can I stop this error being logged
for GET requests?
AFAIK this error is only logged in devMode.
---
13 matches
Mail list logo