I am trying to extract an int in the prepare method. I am not able to cast it. This is an example of what I am trying to do:


Map parameters = ActionContext.getContext().getParameters();
Integer task_id  = (Integer)  parameters.get("task.id");

I wanna try to avoid using Type conversion.
This didn't work either:

int task_id  = Integer.parseInt( parameters.get("task.id").toString()) ;

Do I have to use type conversion even for primitive types?

Any idea?


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

Reply via email to