• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

How to do...

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok it seem that our old code (version 8i) is not "portable" to 9i... so i need your help with this...
If there is any documentation relating to this let me know, I've check at oracle but it's a real maze...
First, i have a BC4J that create a .jar contaning an application, a view object and so on...
I whant to write a JSP that will connect to the aplication module and my view. Then I want to manually add a where clause to this view (in the JSP) and then render it to obtain a XML. If possible, transform it (XSLT) with a XSL. Easy enough?? Look at my old code that dosent work now:
------------------------------------------------
String strAppModule = "infogen.InfoGen_app";
String strConnection = "jdbc racle:thin rioq_interv/drioq@drioq_bd_cen:1521:CEN";
Hashtable env = new Hashtable(10);
env.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
env.put(JboContext.DEPLOY_PLATFORM , JboContext.PLATFORM_LOCAL);
Context ic = new InitialContext(env);
ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(strAppModule);
ApplicationModule objAppModule = home.create();
objAppModule.getTransaction().connect(strConnection);
session.putValue("JBOApplication_infogen_InfoGen_app", objAppModule);
objViewObject = objAppModule.findViewObject("menu_view");
objViewObject.setWhereClause("Utilisateur.ID_UTILISATEUR = ?");
objViewObject.setWhereClauseParam(0, strIdUtilisateur);
<jsp:useBean id="XSLTProcesseur" class="drioq.XmlExt.XmlDataExt" scope="request">
<%
XSLTProcesseur.initialize(application, session , request, response, out, "infogen_InfoGen_app.menu_view");
XSLTProcesseur.setStylesheet("/xsl/DRIOQ2_Recherche.xsl");
XSLTProcesseur.render();
XSLTProcesseur.setReleaseApplicationResources(true);
%>
</jsp:useBean>
<%
session.removeValue("JBOApplication_infogen_InfoGen_app");
%>
------------------------------------------------
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to wrap some code tags around your code ie. [ code ] [ / code ] (remove all spaces)
Although I do like all the faces in the code!
Sorry, I can't help you with question though.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic