Btw, Martin Gainty wrote me this by email:

Rick's suggestions are very helpful..

2 things would need to know
1)How will the data be represented visually.. starting with a working
example you can use Checkbox as illustrated
http://struts.apache.org/2.x/docs/checkbox-interceptor.html

public class ActivityInterceptor extends interceptor
{
    public String intercept(ActionInvocation ai) throws Exception
   {
        Map parameters = ai.getInvocationContext().getParameters();
        Map<String, String> newParams = new HashMap<String, String>();
        Set<String> keys = parameters.keySet();
        for (Iterator<String> iterator = keys.iterator();
iterator.hasNext();)
       {
            String key = iterator.next();
            if (key.startsWith("__checkbox_"))
            {
                String name = key.substring("__checkbox_".length());
                .....
           }
        } //end for loop
    } //end intercept
}; //end class ActivityInterceptor

2)You would also need to know the datatype of the entity you are
representing..for simplicity sake I would start with 'String'
and then graduate up to your Bean EoActivity class


This means I should add my own interceptor in the stack and fill up the
beans myself, this would without doubt work, but I want to have it done
automatically by Struts2, if possible: hopefully just by adding the right
lines into the *-conversion.properties file I'd get the requested
result...the quest continues :-)
-- 
View this message in context: 
http://www.nabble.com/Type-conversion-with-Generics-tp14695286p14701513.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to