cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KN Yasa <KNY...@Efavorites.com>
Subject performance issue.. urgent..
Date Tue, 21 Nov 2000 21:22:03 GMT
Hi Folks,

Here is one of the programs we have written in XSP. The problem we have here
is lacking the performance.
Anybody can suggest how to improve the performance..

environment:  weblogic 5.1
                     ejb 1.1
                     oracle 8i
                     cocoon 1.7.4
                  

<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet type="text/xsl" href="addafav.xsl"?>
<xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">

<xsp:structure>
	<xsp:include>com.bf.util.*</xsp:include>
</xsp:structure>
                                                                 
 <page>
        <xsp:logic>
        try
        {
            String client_id = request.getParameter("client_id");

            String action = "AddFavoriteWB";
            String client_member_id =
request.getParameter("client_member_id");
            String machine_id = request.getParameter("machine_id");
            String product_number = request.getParameter("product_number");
            String product_std_num =
request.getParameter("product_std_num");
            String product_name = request.getParameter("product_name");
            String product_url = request.getParameter("product_url");
            String client_category_num =
request.getParameter("client_category_num");
            String product_attrib1 =
request.getParameter("product_attrib1");
            String member_screen_name =
request.getParameter("member_screen_name");
            String member_email = request.getParameter("member_email");
            String member_first_name =
request.getParameter("member_first_name");
            String member_last_name =
request.getParameter("member_last_name");           
            String status = "A";
            String list_flag = "F"; 
            String private_flag = "N"; 

            <xsp:content>
 
<servlet_url><xsp:expr>SiteConstants.efavServlet</xsp:expr></servlet_url>
                <action><xsp:expr>action</xsp:expr></action>
                <client_id><xsp:expr>client_id</xsp:expr></client_id>
 
<client_member_id><xsp:expr>client_member_id</xsp:expr></client_member_id>
                <machine_id><xsp:expr>machine_id</xsp:expr></machine_id>
 
<product_number><xsp:expr>product_number</xsp:expr></product_number>
 
<product_std_num><xsp:expr>product_std_num</xsp:expr></product_std_num>
 
<product_name><xsp:expr>product_name</xsp:expr></product_name>
                <product_url><xsp:expr>product_url</xsp:expr></product_url>
 
<client_category_num><xsp:expr>client_category_num</xsp:expr></client_catego
ry_num>
                <status><xsp:expr>status</xsp:expr></status>
                <list_flag><xsp:expr>list_flag</xsp:expr></list_flag>
 
<product_attrib1><xsp:expr>product_attrib1</xsp:expr></product_attrib1>
 
<member_screen_name><xsp:expr>member_screen_name</xsp:expr></member_screen_n
ame>
 
<member_email><xsp:expr>member_email</xsp:expr></member_email>
 
<member_first_name><xsp:expr>member_first_name</xsp:expr></member_first_name
>
 
<member_last_name><xsp:expr>member_last_name</xsp:expr></member_last_name>
 
<private_flag><xsp:expr>private_flag</xsp:expr></private_flag>
            </xsp:content>
        }
        catch(Exception e)
        {
            System.out.println("addafav.xml Exception: "+e.getMessage());
            String message = DBConstants.GENERIC_ERROR;
            <xsp:pi target="xml-stylesheet"> href="message.xsl"
type="text/xsl"</xsp:pi>
 
<xsp:content><message><xsp:expr>message</xsp:expr></message></xsp:content>
        }
        </xsp:logic>
       
	</page>
</xsp:page>



thanks
kn Yasa

Mime
View raw message