Dany Thivierge

Greenhorn
+ Follow
since Jun 21, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Dany Thivierge

Thanks for the quick answer Srikanth,
I've just review the TOC, seems like it will cover a lot of things for just under 300 pages... I may have to look closely at that book (for the next struts book to get)
Not sure it's an exrecice you want to take but it could be fun, can you compare your book with the other best books out there about struts?
Books Like:
Struts in Action: A Practical Guide to the Leading Java Web Framework -- by Ted Husted
The Struts Framework: Practical Guide for Java Programmers
by Sue Spielman
Pro Struts Applications: Building Web Sites with Struts, Object-Relational Bridge, Lucene, and Velocity
by John Carnell
Thanks again.
21 years ago
Hi Srikanth,
I've been using Struts for a year now, never build an web application from scratch, always maintain and develop new content to it.
My question is: Is this book going to tell me more about tweaking performance and improoving realibility or is it just for beginner and will not cover advance struts application?
I use BEA 6.1 (not in progress of converting to 8.1) with struts and it's great, I look for a good book that will not only been there for me at the begining of the learning process.
Thanks for taking time to help us understand this great framework.
21 years ago
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");
%>
------------------------------------------------
22 years ago
Thanks again Mark!
But as we are migrating an old applicatin (in 8i) it is not an option to redo all our JSP. We need to use the BC4J view object and application.initialise and rendre to ouput our XML-XSl. We plan to redo all the product in OC4J but later...
we are still open to get some help!
see ya
22 years ago
Thanks Mark for the repply,
Yes i've check the query and it dosent contain the where clause... lok like the XSLTProcesseur.initialize(application, session , request, response, out, "infogen_InfoGen_app.menu_view");
dosent use the things set in the objViewObject.setWhereClause("...") It was working fine before we migrate to 9i... look at what i've found in the class XmlDataEXT:
/* Slightly changed version of XmlData , in order to support customization
* of detail views while rendering.
* The change consist in changing the type of the xrr attribute from
* XmlRowSetRenderer to XmlRowSetRendererExt , also a custom class that
* looks for a criteria on the session context.
* The value name should be of the form
* <view_name>_DetailCriteria
* Example: myViewName_DetailCriteria
* The clause should not contain bind variables. ( The overcrowding of the
* pool might be prevented by using the CURSOR_SHARING=FORCE setting in the
* init.ora file)
* A second change consists in adding a call to the setSession method of
* the mentioned xrr attribute, in the body internalInitialize method
* ALSO, pay attention that the JSP application needs to be STATE-LESS in order
* for the where clause on the the master query, ( dealt with by the DataWebBeanImpl
* class) to work
*/
I dont quite understand what it is but we are using a custum class (made by Oracle back in 1999). And now it seem not to use the same "magic" to run...
Any help will be appreciate!
Thanks again!
23 years ago
Hi there!
We used to have this code running fine in 8i in a JSP file:
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.initialize(pageContext,"infogen_InfoGen_app.menu_view");
XSLTProcesseur.setReleaseApplicationResources(true);
XSLTProcesseur.setStylesheet("/xsl/my.xsl");
XSLTProcesseur.render();
%>
</jsp:useBean>
-------------------------------------------
That was running fine (returning the view menu_view with the query change to the one we set in the "setWhereClause". But now that we run this on 9i it dosent run well... Now it run the menu_view without the "setWhereClause" so it return all the row and not only those that we want.
Did anyone seen this kind of problem?
Thank for the help guys.
23 years ago