|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
BuiltinHandler.render(String command, RequestContext ctx) |
« View previous topic :: View next topic » |
Author |
Message
|
zudduz |
Posted: Fri Aug 07, 2009 11:14 am Post subject: BuiltinHandler.render(String command, RequestContext ctx) |
|
|
Newbie
Joined: 07 Aug 2009 Posts: 2
|
I am coming up to speed on an MQ Workflow implementation. I'm confused as to what com.ibm.workflow.servlet.client.BuiltinHandler.render(String command, RequestContext ctx) does. Can someone explain the render method to me? I took a look at the Javadoc in the documentation and found no explanation.
An excerpt of where it's being used in my code is included below. The class that this code is from extends com.ibm.workflow.servlet.client.GenericCommandHandler
public ResponsePage doLogoff(HttpServletRequest request,
HttpServletResponse response) throws ClientException {
RequestContext context = new RequestContext(request);
BuiltinHandler builtin = context.getBuiltinHandler();
ResponsePage ret = null;
try {
HttpSession session = request.getSession();
SessionContext sessionContext = getSessionContext(request);
// Store the OID
String OID = (String) request.getParameter("id");
// If on a wizard page, a workitem is checked out, undo the checkout
if (OID != null) {
if (OID.length() > 1) {
UndoCheckout(request, response);
}
}
// Call the super's logoff method
super.onLogoff(sessionContext);
ret = builtin.render("doLogoff", context);
} catch (ClientException e) {
ret = reportError(e, context, builtin);
}
return ret;
} |
|
Back to top |
|
 |
jmac |
Posted: Sat Aug 08, 2009 6:42 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
I am a bit confused by the code below. But generally speaking the render method will execute the command and return the page that should be displayed next. For instance if I have a command that is going to do a checkout, I will generally end the method with a
Code: |
return builtinHandler.render(Command.WI_CHECKOUT.getCommand(), reqCtx) |
This will perform the checkout and by default invoke the jsp to display the activity being checked out _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
zudduz |
Posted: Mon Aug 10, 2009 3:49 am Post subject: |
|
|
Newbie
Joined: 07 Aug 2009 Posts: 2
|
I believe I was able to figure it out when I found the JSPViewer class. It's functions line up with strings being passed in. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|