Hi Howard,
Thanks for your reply. As per developer_guide, I have creatd one jsp and tested in jboss application. I have faced one problem.
Please help me....
my jsp code:
String sFormQuery = "LeaveRequestForm.xdp";
String sFormPreference = "MSDHTML";
String sContentRootURI = "http://localhost:8080/LeaveRequest/forms";
String sTargetURL = "http://localhost:8080/LeaveRequest/LeaveRequestForm";
String sApplicationWebRoot = "http://localhost:8080/LeaveRequest";
try
{
EJBClient formServer = new EJBClient();
Hashtable props = new Hashtable();
props.put("INITIAL_CONTEXT_FACTORY","org.jnp.interfaces.NamingContextFactory");
props.put("URL_PKG_PREFIXES","org.jboss.naming");
props.put("PROVIDER_URL", "localhost:8080");
InitialContext initialContext = new InitialContext(props);
formServer.setInitialContext(initialContext);
com.adobe.formServer.interfaces.IOutputContext myOutputContext = (com.adobe.formServer.interfaces.IOutputContext)formServer.renderForm(sFormQuery,sFormPreference, null, "CacheEnabled=false",
null, sApplicationWebRoot, sTargetURL, sContentRootURI, null );
ServletOutputStream oOutput = response.getOutputStream();
response.setContentType(myOutputContext.getContentType());
byte[] cContent = myOutputContext.getOutputContent();
oOutput.write(cContent);
}
catch(Exception e)
{
out.println(e);
}
Error Message:
com.adobe.formServer.interfaces.RenderFormException: java.lang.ClassCastException