Hi,

I'm trying to migrate my application to use then new functions fillContext + getTemplate instead using the deprecated function handleRequest.

One of the problem is that I have usecases where I fetch a tool from the context, call some functions and if everything worked fine, the browser is redirected to a new location. But if an error occurs an error message is put into the context and displayed by the servlet using a given template.

What is the best practice to do this with the new splitted fillContext and getTemplate functions? Do I really need to overwrite doRequest and generate the Context on my own?

Furthermore I have usecases where I need to change the layout to use via context.put("layout", "plain.vm"); Of course I can do this in fillContext, but is this really context related? Because now I have the strange situation that I have to choose the template to use in getTemplate but the layout to use in fillContext.

Regards,
Martin


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

Reply via email to