Jsp - php integration

Hi all,
First up all I am very new to java. I have a web application developed on php.
I also have a CRM (customer relation management) delevoped on jsp.So I want
to pass some values from php to java so that a popup window showing details of customer will
generate on java (jsp).
I will explain my scenario..I have a php CRM which is used as a predictive dialer for asterisk.(voip).
But I also have customized CRM which is developed on jsp.
The use of php CRM is, I can use it as a predictive dialer and when a call connects to a customer
a popup is generated and will show that customers details.That popup is done by ajax in php CRM.
I want that popup to come on java CRM so that it have more options and fields.Is there any way for that...
I am expecting somebody's help.......

Prasad,
This forum is dedicated to JSR-208 (Java Business Integration), so it isn't too likely you'll find an answer to a JSP question here. The types of integration topics discussed here are related to enterprise application integration (EAI) and business-to-business (B2B) interoperation.
You might try the JSP forum, http://forum.java.sun.com/forum.jspa?forumID=45, or one of its sibling forums in the Web Applications area (http://forum.java.sun.com/category.jspa?categoryID=20).
I believe you'll find an answer to your question here: http://forum.java.sun.com/thread.jspa?threadID=703737&messageID=4080080
-Ron

Similar Messages

  • Need help on integrating htmldb with asp/jsp/php

    Hello there, we have a few existing htmldb applications running at the moment, and now we would like to develop some asp/jsp/php applications. However there is one issue we still haven't solved yet, which is the SESSION(Login) problem. We don't know how the session is being generated, how to pull out session values manually from db etc etc.
    If you have done this before or any ideas, will be much appreciated.
    Thanks very much
    James

    James,
    sometimes it makes sense to look at these things from a different (and broader) perspective.
    Especially in a context of a corporation it makes sense to use a Single Sign On (SSO) server for authentication (usually against LDAP) . Something like Netegrity Siteminder, Oracle SSO Server (as part of Oracle Internet Application Server) or something similar.
    Then you could have all your applications use the authentication method of the SSO server which will keep track of the valid session and the applications that participate in the SSO context.
    On the Apex side you would have to write a custom authentication scheme to leverage that functionality, the session handling will no longer be of any concern to you.
    Just a different way to look at it.
    ~Dietmar.

  • In Dreamweaver MySites[New Site] menu option , if I had a hosting JSP/PHP what I must declare the hosting JSP or PHP ?

    In Dreamweaver MySites[New Site] menu option , if I had a hosting JSP/PHP what I must declare the hosting JSP or PHP ?

    The simplest answer is to choose the language you work best with, and that fits the clients specification the best.
    I have mixed server languages on a site before, (would not recommend) when a client has decided they wish to change from their old one to a new(er) /different one, the only thing you must watch if doing this, is that you do not mix languages on the same page (will not work correctly, if at all), and parameter passing.
    PZ

  • Comparing JSP ,PHP AND ASP

    Hello
    Can you send me few reasons why is JSP better then ASP nad PHP.
    Thanks Jelena

    I don't know much of PHP but I can defintely compare it to ASP. ASP is a Windows proprietary technology that runs primarily on Windows machines. It uses either JavaScript or VBScript as the underlying language and has some limitations. For one there is the lack of multithreading which makes tasks that require asyncronous processing rather difficult. VBScript is a subset of Visual Basic which means there are a lot of things (objects and such) left out. You can create objects encompassing anymissing functionality out of COM using a CreateObject statement but if the objects were created using Visual Basic then there are threading issues that severly limit the amount of concurrent access. There is no direct support for polymorphism and inhereitance in VB which means Visual Basic is not a true object oriented language.
    JSP overcomes all of these limitations by using Java as the underlying programming language. Java has language level support for threading that eases the burden of concurrent access and makes asynchronous tasks a snap. It is based on the J2EE standard rather than a proprietary technology. There are various implementations of this standard that allow you to plug JSP apps into virtually any webserver running on almost any hardware. Java includes direct support for polymorphism and inheritance making it a true object oriented language.
    ASP.Net/VB.Net overcomes all of the mistakes made with ASP/VB by mimicking the Java/JSP platform. This shows that the ideas implemented in Java are rather strong ideas and have longevity. If you are writing your 1st web app and have limited knowledge of how the net works then maybe VB/ASP is a better starting point for it's simplicity and integrated environment. However, when you are ready to build scalable enterprise level web apps then JSP is definitely the better choice. Take it from someone experieinced in both.
    Cliff

  • JSP - PHP

    Hi,
    I want to include a PHP file in my JSP file. How to do that ? Please give me syntax or idea ?
    Thanks.

    In your JSP use <iframe src="PHP_Doc"></iframe>

  • Session variables in jsp,php

    Dear friends,
    is there any way tht i can pass the session variables set in a jsp file to a php file. Is there any way to do this apart from setting cookies?
    plz help!!
    bussa

    You can create POST or GET request.

  • Tomcat JSP & PHP

    I've installed Tomcat 4.0.1 I'd like to attach also PHP. Is it possible. Does anybody know this way? And is it possible to mix JSP with PHP
    <%
    out.print("Test");
    %>
    <?php
    echo "Test";
    ?>

    In theory, you should be able to use both technologies on the same page, whenever you can solve some configuration issues like file extension assigning, e.g: if you have a .php file, how can you run the jsp inside? you need to make some kind of "neutral" extension and refine your server to send to each server its own code.
    I�m trying to do it on windows 2000 (IIS 5.0), but haven�t still figured out how.

  • JSP , PHP, ASP???

    i read somewhere that php is far more powerful than JSP and PHP? is that rue??
    also for which is finding hosting, cheaper and easier???
    Ali

    PHP more powerful? Depends on what you mean by power.
    In terms of features, no. JSP and ASP have many more features. They have full fledged OO programming languages and API libraries backing them up.
    In terms of speed, it can be faster, just BECAUSE it doesn't have to bother with all the features that JSP/ASP provide.
    In terms of memory requirements, PHP wins hands down. Java/ASP can be quite memory hungry.
    They all do basically the same stuff at the end of the day - generate dynamic web pages.
    For a lot of simple small-medium size websites PHP is perfectly fine.
    ASP and .NET can provide many more features, but you are tied to MIcrosoft platforms.
    Java/JSP is the best (of course - how can I say other on a java forum) - provides a good balance of speed/power without tying you down to a specific platform
    You will probably find hosting easier for PHP/MySQL than you will for the other technologies, though I can't say with any certainty. I haven't really looked myself :-)
    Cheers.
    evnafets
    (let the flames begin)

  • SCOD-PHP integration

    hello,
    i am trying to develop a web service using provided wsdl file .
    Code:
    $crmdomain = "https://secureXXXX.crmondemand.com";
    $RowId="XXXXX";
    $sessionid = wslogin();
    function wslogin() {
    global $crmdomain;
    $url = $crmdomain . "/Services/Integration?command=login";
    $page = "/Services/Integration?command=login";
    $headers = array(
    "GET ".$page." HTTP/1.0",
    "UserName: myusername",
    "Password: mypassword",
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
    curl_setopt($ch, CURLOPT_HEADER, true);
    $data = curl_exec($ch);
    if (!curl_errno($ch)) {
    // Show me the result
    $sessionid = substr($data,(strpos($data,"Set-Cookie:")+23),(strpos($data,";")-strpos($data,"Set-Cookie:")-23));
    curl_close($ch);
    //echo $sessionid;
    return $sessionid;
    function getwsresponse($serverpath,$namespace,$soapaction,$method,$param,$headers="") {
    //require_once 'soapfunctions/nusoap.php';
    require_once 'nusoap/lib/nusoap.php';
    $client = new soapclient($serverpath);
    new nusoap_client($wsdl, true);
    if($headers != ""){
    $client->setHeaders("$headers");
    $response = $client->call($method,$param,$namespace,$soapaction);
    echo $response;
    return $response;
    class Contact {};
    class LisOfContact {};
    class ContactQueryPage_Input {};
    class Contact_ContactQueryPage_Output {};
    $opts= array(
    'classmap'=>array
    'Contact_ContactQueryPage_Input'=>'Contact_ContactQueryPage_Input',
    'Contact_ContactQueryPage_Output'=>'Contact_ContactQueryPage_Output',
    'ListOfContact'=>'ListOfContact',
    'Contact'=>'Contact'
    $wsdl="Contact.wsdl.xml";
    $client= new SoapClient($wsdl,$opts);
    $client->__setCookie('JSESSIONID',$sessionid);
    $contact= new Contact();
    $contact->ContactEmail="XXXXXX";
    $listofcontact= new LisOfContact();
    $listofcontact ->Contact=$contact;
    $listofcontact-> pagesize="100";
    $listofcontact-> startRownum="0";
    $listofcontact-> recordcountneeded="false";
    $input= new ContactQueryPage_Input();
    $input->LisOfContact= $listofcontact;
    $input->Echo=NULL;
    $output= $client->ContactQueryPage($input);
    if (is_array($output->ListOfContact->Contact))
    Foreach ($output->ListOfcontact-Contact as $contact)
    { echo $contact->ContactFirstName;
    else
    $contact=$output->ListOfContact->Contact;
    echo $contact->ContactFirstName;
    the first part of coding is correctly working and i can get a view my session ID, but the second part to retrieve a Contact information i got this error message:
    Fatal error:
    Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: object hasn't 'ListOfContact' property in D:\wamp\www\wss\script\php\login.php:131 Stack trace: #0 [internal function]: SoapClient->__call('ContactQueryPag...', Array) #1 D:\wamp\www\wss\script\php\login.php(131): SoapClient->ContactQueryPage(Object(ContactQueryPage_Input)) #2 {main} thrown in D:\wamp\www\wss\script\php\login.php on line 131
    i think that i have a problem on creating objects and mapping them to the wsdl file.
    Could you please help me resolving this issue and is there any tools that generate php classes from wsdl file ?
    thank you in advance

    a working example is in the following Re: Integration with PHP web service

  • Need help in jsp excel integration

    hello all
    plz help me in creating a excel file using jsp and writing data on to it .
    i also want to implement multi record additions ie create 2 rows of text fields and if i save the data it should be saved each in different rows(2 rows)

    Hi Katherine,
    you should update your version to Faces 1.0 Final and download the nightly build of struts-faces. It has been updated recently to work with the Final.

  • PHP integration

    We have Site Studio websites that have been deploying via SSPU that have embedded PHP code in them. This works fine in the deployed model because the IdocScript gets executed on Content Server, then published to the web server which executes the PHP.
    We would like to stop deploying these sites and use a dynamic model for Content Server. My questions are has anyone done this, and what's necessary for the Content Server to process both the IdocScript and PHP on the same pages?
    Thanks,
    -Jason
    Edited by: jschulz on Jan 29, 2010 12:14 PM

    That is quite a bit of food for thought, thanks a lot.
    You've confirmed a lot of my opinions about Oracle UCM: that its strengths are the ECM document management related features, and to a lesser degree the web content management features. However, we have been using it for enterprise web content management for some time using the SSPU publishing model. But the demands on the system have made it a tough model to administer and maintain.
    It would definitely be a huge sea change to move the frontend delivery to PHP-type applications, but might be possible for some of our sites. It does sound like a better solution than running all this on a dynamic server model, and probably easier than convincing site developers to rewrite their PHP functionality into IdocScript.
    I went through that document you linked and that would definitely open some possibilities. However, am I correct that its possible to edit the content within the external PHP application (not on the Content Server)? I was able to whip a PHP page that displayed the content using the WCM_PLACEHOLDER service, but the WCM_BEGIN_EDIT_SESSION tries to forward me to a link like this: /idc/idcplg?IdcService=WCM_EDIT_DATA_FILE&dDocName=PUBLIC_CONTENT_118809&dID=336417 which is relative and obviously not on my external server. I hope there is a way to edit the content externally and I'm just missing something.
    Do you (or anyone) know of sample external application code posted somewhere to call these services?
    Thanks again,
    -Jason

  • PHP integration to SBO

    our client need to use Claim software(conveyence,all expenses) in PHP. already SBO is running there. Client entries are pushed in to SBO? IT is possible .How....?Explain it?

    Hi,
    Welcome you post on forum.
    You need to stick on your question until it is closed. To ask the same question without response with other members' reply is not polite.
    You may check this too: SDK and PHP ?
    Thanks,
    Gordon

  • Jsp-spring integration

    Hi guys,
    I was trying to use jsf-spring.jar
    http://jsf-spring.sourceforge.net/2.4/org/springframework/web/jsf/package-summary.html
    I hv followed the instruction but got the following error msg in the log file
    12:23:53,793 WARN Digester:127 - [ConverterRule]{faces-config/converter} Merge(null,java.math.BigDecimal)
    12:23:53,803 WARN Digester:127 - [ConverterRule]{faces-config/converter} Merge(null,java.math.BigInteger)
    12:23:54,003 WARN Digester:120 - [ValidatorRule]{faces-config/validator} Merge(catalog.view.validator.SelectedItemsRange)
    12:23:55,946 INFO FacesConfigurator:179 - Reading standard config net/sourceforge/myfaces/resource/standard-faces-config.xml
    Aug 26, 2004 12:23:55 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Aug 26, 2004 12:23:55 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context startup failed due to previous errors
    pls help

    Hi,
    from the link you're providing, I see that you're using jsf-spring 2.4. We'll upload version 2.6 today - please try that one and see if your problem persists. Please note that you have to use jsf-spring slightly different:
    - Don't specify a VariableResolver in faces-config.xml - this is done by jsf-spring.jar
    - Specify a Listener to initialize Spring (just as you would when using Spring alone)
    Generally, the package names have changed, since jsf-spring isn't intended to be included in Spring any more.
    If your problem doesn't go away, it might as well be a problem with myfaces. There isn't any reference to one of our classes in your log file output. Do you have a stacktrace? If our classes are in there, please post it as a bug on jsf-spring.sf.net.
    Regards,
    Thomas

  • Passing values between jsp and php

    hi there, is it possible to pass values between jsp and
    php? i really need to find out the way if there is
    any. thanks in advance
    -azali-

    Yes, there are a few ways to do this.
    1) Think about using Cookies.
    2) Maybe use a Redirect passing the values in the Query string.
    3) Retain the data in a repository in the back end.
    4) Using Hidden fields within your pages.
    I am sure you can use these Idea's for a base to develop other methods on how to pass values back and forth from JSP -> PHP and vice versa.
    -Richard Burton

  • Need help on Modifying Jsp Code to establish relationships in iStore.

    I am currently working on iStore an internet enabled product
    from Oracle.
    In iStore one can establish relationships between products like
    cross sell , complimentary, substitute, conflict etc. However at
    the moment only one relationship works i.e: Related. This is
    because this is a bug in iStore. Only the relationship Related
    is defined in the jsp. We have been asked to modify the jsp
    ibeCCtdItemDetail.jsp
    Please find pasted below the jsp which only had the arrays for
    related i.e: relitems and service i.e service have added the
    array complimentary to establish such a relationship and pasted
    the relitems code once again and changed relitems to
    complimentary. I am stuck up on this since the past 2 weeks i
    would appreciate if anybody could help.
    <%@include file="jtfincl.jsp" %>
    <!-- $Header: ibeCCtdItemDetail.jsp 115.24 2001/06/16 15:21:05
    pkm ship $ -->
    <%--
    =================================================================
    ========
    | Copyright (c)2000 Oracle Corporation, Redwood Shores, CA
    | All rights reserved.
    +================================================================
    ===========
    |
    | FILE
    | ibeCCtdItemDetail.jsp - Item Detail display
    |
    | DESCRIPTION
    | Displays Item Detail page. Item's description, long
    description, large
    | image, flexfields, available services, and related items
    are displayed.
    | The list price and best price (selling price) for each of
    the Item's
    | available units of measure is displayed. Displays Add to
    Cart,
    | Express Checkout, Configure buttons (if appropriate).
    |
    | PARAMETERS (SOURCE)
    | party Id IN (RequestCtx) - user's party
    id
    | account Id IN (RequestCtx) - user's
    account id
    | currency code IN (RequestCtx) - currency code
    | item IN (URL) - Item ID
    | section IN (URL) - section ID of
    section we are
    | coming from
    (optional)
    | item IN (pageContext) - Item ID
    | section IN (pageContext) - Section ID
    | qty IN (pageContext) - Quantity
    entered by user
    | uom IN (pageContext) - UOM selected
    by user
    | errorMsg IN (pageContext) - error message
    from buy
    | routing page
    | * pageContext attributes for "item" and "section" are used
    when the URL
    | does not contain valid values for "item" and "section"
    (such as when an
    | error occurred in the buy routing page and the request is
    forwarded
    | back to this page)
    |
    | oneclick_obj OUT (pageContext) - OneClick
    object containing
    | user's
    Express Checkout
    | preferences
    | postingID OUT (pageContext) - Integer
    posting Id, for
    | iMarketing
    integration
    | itemIDs OUT (pageContext) - int[] itemIDs
    on the page
    | (for use by
    postings)
    | numRequested OUT (pageContext) - Integer
    number of postings,
    | for
    iMarketing integration
    | random OUT (pageContext) - Boolean
    whether to randomize
    | posting
    retrieved, for
    | iMarketing
    integration
    | type OUT (HTML form) - "single" (1
    item)
    | item OUT (HTML form) - Item ID
    | refpage OUT (HTML form) -
    "ibeCCtdItemDetail.jsp" plus any
    | parameters
    needed to return
    | to this page
    in case of error.
    | uom OUT (HTML form) - UOM code
    selected by user
    | qty OUT (HTML form) - quantity
    entered by user
    | Add to Cart.x OUT (HTML form) - user clicks
    Add to Cart
    | 1-Click.x OUT (HTML form) - user clicks
    Express Checkout
    | Configure.x OUT (HTML form) - user clicks
    Configure
    |
    | OBJECTS REFERENCED
    | oracle.apps.ibe.catalog.Item
    | oracle.apps.ibe.order.OneClick
    |
    | APIs REFERENCED
    | Item.getItemID() - get Item ID
    | Item.getDescription() - get item description
    | Item.getLongDescription() - get item long description
    | Item.isConfigurable() - whether item has
    configuration UI set up
    | Item.getFlexfields() - get Item flexfield
    prompts and values
    | Item.getRelatedItems() - get related items and
    service items
    | Item.getMediaFileName() - get media based on
    display context
    | OneClick.loadSettingFrDB() - load Express Checkout
    settings for
    | current user
    |
    | JSPs REFERENCED
    | ibeCCtpPostingI.jsp - set iMarketing
    parameters (include)
    | ibeCCtpSetItem.jsp - retreive and set item
    information (include)
    | ibeCCtpItmDspRte.jsp - Item display routing
    page (link)
    | ibeCCtpBuyRoute.jsp - Buy routing
    page (form POST)
    | ibeCCtdSctPath.jsp - Path Traversed
    Display (include)
    | ibeCXpdShowTag.jsp - Express Checkout Tag
    Area (include)
    | ibapstng.jsp - iMarketing integration
    page (include)
    |
    | ADDITIONAL NOTES
    | iMarketing posting ID can be changed by editing file
    ibeCCtpPostingI.jsp
    |
    | HISTORY
    | 08/01/2000 auyu Created.
    | 04/09/2001 auyu Added compile-time include for retrieving
    item
    | information
    |
    +================================================================
    =======--%>
    <%@page import="oracle.apps.ibe.order.*" %>
    <%@page import="oracle.apps.ibe.catalog.*" %>
    <%@page import="oracle.apps.ibe.store.*" %>
    <%@page import="oracle.apps.jtf.displaymanager.*" %>
    <%@page import="oracle.apps.jtf.base.Logger" %>
    <%@page import="oracle.apps.jtf.minisites.*" %>
    <%@include file="ibeCZzpHeader.jsp" %>
    <%@page import="oracle.jdbc.driver.*" %>
    <%@page import="java.sql.*" %>
    <%-- declaration --%>
    <%!
    /* Retrieve parent section ids for a given item.
    * int itemId - Item whose parent section ids will be retrieved
    int getParentSectionId(int itemId)
    int parentSectionId = -1;
    Connection conn = null;
    OraclePreparedStatement stmt = null;
    ResultSet rs = null;
    try {
    BigDecimal minisiteId = RequestCtx.getMinisiteId();
    conn = TransactionScope.getConnection();
    StringBuffer sql = new StringBuffer(400);
    sql.append("select jdsi.section_id ");
    sql.append("from jtf_dsp_section_items jdsi, ");
    sql.append("jtf_dsp_msite_sct_items jdmsi ");
    sql.append("where jdsi.inventory_item_id = ? ");
    sql.append("and jdsi.section_item_id =
    jdmsi.section_item_id ");
    sql.append("and jdmsi.mini_site_id = ? ");
    sql.append("and nvl(jdsi.start_date_active, sysdate) <=
    sysdate ");
    sql.append("and nvl(jdsi.end_date_active, sysdate) >=
    sysdate ");
    sql.append("and nvl(jdmsi.start_date_active, sysdate) <=
    sysdate ");
    sql.append("and nvl(jdmsi.end_date_active, sysdate) >=
    sysdate");
    stmt = (OraclePreparedStatement)conn.prepareStatement
    (sql.toString());
    stmt.setInt(1, itemId);
    stmt.setInt(2, minisiteId.intValue());
    stmt.defineColumnType(1, Types.INTEGER);
    rs = stmt.executeQuery();
    if (rs.next())
    parentSectionId = rs.getInt(1);
    } catch (Exception e1) {
    parentSectionId = -1;
    IBEUtil.log("ibeCCtdItemDetail.jsp",
    "Caught exception while retrieving parent
    section id");
    IBEUtil.log("ibeCCtdItemDetail.jsp", e1.getMessage());
    } finally
    try { if (rs != null) rs.close(); } catch (Exception e2) {}
    try { if (stmt != null) stmt.close(); } catch (Exception
    e2) {}
    try {
    if (conn != null) TransactionScope.releaseConnection
    (conn);
    } catch (Exception e2) {}
    return parentSectionId;
    %>
    <%-- end declaration --%>
    <%@include file="ibeCCtpSetItem.jsp"%>
    <%
    The compile-time inclusion of ibeCCtpSetItem.jsp will declare
    and set
    the following variables:
    boolean bItemLoaded - whether section was
    loaded
    Item lItem - Item
    boolean bItemCanBeOrdered - whether item can be
    ordered
    String[] uomCodes - Item's UOM Codes
    Vector itemSellPriceDisplayVec - vector containing
    item's selling
    prices in formatted
    strings
    Vector itemListPriceDisplayVec - vector containing
    item's list
    prices in formatted
    strings
    int nPriceDefined - number of prices
    defined for the item
    Perform the following actions:
    Set "itemIds" in the PageContext.REQUEST_SCOPE
    Set "item" in PageContext.REQUEST_SCOPE
    Set "section" in PageContext.REQUEST_SCOPE
    MessageManagerInter lMsgMgr =
    Architecture.getMessageManagerInstance();
    pageContext.setAttribute("_pageTitle",
    lMsgMgr.getMessage
    ("IBE_PRMT_CT_PRODUCT_DETAILS"),
    PageContext.REQUEST_SCOPE);
    %>
    <%@ include file="ibeCCtpPostingI.jsp" %>
    <%@ include file="ibeCZzdTop.jsp" %>
    <%@ include file="ibeCZzdMenu.jsp" %>
    <%
    if (bItemLoaded)
    OneClick lOneClickObj;
    String xprTagArea = "", confirmXpr = "";
    String lBuyRoutePage;
    String lSectionPathPage = "";
    int sectid = 0;
    Item[] services = new Item[0];
    Item[] relItems = new Item[0];
    Item[] complimentary = new Item[0];
    ItemFlexfield[] itemFlexfields = new ItemFlexfield[0];
    String lItemImage = "", lItemAddtlInfoFile = "";
    StringBuffer lRef = new StringBuffer("ibeCCtdItemDetail.jsp?
    item=");
    String qty = "", userSelUOM = "";
    String errorMsg = "";
    //--------------- load express checkout preferences ---------
    if (IBEUtil.useFeature("IBE_USE_ONE_CLICK"))
    xprTagArea = DisplayManager.getTemplate
    ("STORE_XPR_TAG_AREA").getFileName();
    if (xprTagArea == null)
    xprTagArea = "";
    confirmXpr = lMsgMgr.getMessage("IBE_PRMT_EXPR_CONFIRM");
    if (RequestCtx.userIsLoggedIn()) {
    //initialize OneClick if user is logged in
    BigDecimal partyId = RequestCtx.getPartyId();
    BigDecimal accountId = RequestCtx.getAccountId();
    lOneClickObj = new OneClick();
    lOneClickObj.loadSettingsFrDB(partyId, accountId);
    } // end user express checkout
    //------------ set "section", lSectionPathPage --------------
    String lSectionId = IBEUtil.nonNull(request.getParameter
    ("section"));
    if (lSectionId.equals(""))
    lSectionId =
    IBEUtil.nonNull((String)pageContext.getAttribute
    ("section", PageContext.REQUEST_SCOPE));
    if(IBEUtil.useFeature("IBE_USE_SECTION_PATH"))
    lSectionPathPage = DisplayManager.getTemplate
    ("STORE_CTLG_SCT_PATH").getFileName();
    try {
    sectid = Integer.parseInt(lSectionId);
    pageContext.setAttribute("section", String.valueOf
    (sectid), PageContext.REQUEST_SCOPE);
    } catch (NumberFormatException e) { }
    if(lSectionPathPage == null)
    lSectionPathPage = "";
    lBuyRoutePage = DisplayManager.getTemplate
    ("STORE_CTLG_BUY_PROCESS_ROUTE").getFileName();
    /* if error and forwarded back to this page, get values
    selected by user */
    qty = IBEUtil.nonNull((String)pageContext.getAttribute
    ("qty", PageContext.REQUEST_SCOPE));
    if (qty.equals(""))
    qty = "1";
    userSelUOM = IBEUtil.nonNull((String)pageContext.getAttribute
    ("uom", PageContext.REQUEST_SCOPE));
    errorMsg = IBEUtil.nonNull((String) pageContext.getAttribute
    ("errorMsg", PageContext.REQUEST_SCOPE));
    //set ref for returning to this page in case of error
    lRef.append(lItem.getItemID());
    if (sectid > 0)
    lRef.append("&section=");
    lRef.append(sectid);
    /* Get Bin Open and Bin Close Images */
    String binOpenImg = "", binCloseImg = "";
    try {
    Media binOpenMedia = DisplayManager.getMedia
    ("STORE_BIN_OPEN_IMAGE", true);
    if (binOpenMedia != null)
    binOpenImg = binOpenMedia.getFileName();
    } catch (MediaNotFoundException mnfe) {}
    if (binOpenImg == null)
    binOpenImg = "";
    try {
    Media binCloseMedia = DisplayManager.getMedia
    ("STORE_BIN_CLOSE_IMAGE", true);
    if (binCloseMedia != null)
    binCloseImg = binCloseMedia.getFileName();
    } catch (MediaNotFoundException mnfe) {}
    if (binCloseImg == null)
    binCloseImg = "";
    /* Get images, additional info, flexfields, related items,
    service items */
    lItemImage = lItem.getMediaFileName
    ("STORE_PRODUCT_LARGE_IMAGE");
    lItemAddtlInfoFile = lItem.getMediaFileName
    ("STORE_PRODUCT_ADDTL_INFO");
    // check for defaulting
    String defaultFromSection = "Y";
    if ("Y".equals(defaultFromSection))
    if (lItemImage == null || lItemAddtlInfoFile == null)
    try {
    int parentSectionId = getParentSectionId
    (lItem.getItemID());
    Section parentSection = Section.load(parentSectionId);
    if (lItemImage == null)
    lItemImage = parentSection.getMediaFileName
    ("STORE_SECTION_SMALL_IMAGE");
    if (lItemAddtlInfoFile == null)
    lItemAddtlInfoFile = parentSection.getMediaFileName
    ("STORE_SECTION_ADDTL_INFO");
    } catch (Exception e) {}
    itemFlexfields = lItem.getFlexfields();
    try {
    services = lItem.getRelatedItems("SERVICE");
    } catch (ItemNotFoundException e) {}
    try {
    relItems = lItem.getRelatedItems("RELATED");
    } catch (ItemNotFoundException e) {}
    try {
    complimentary = lItem.getRelatedItems("COMPLIMENTARY");
    } catch (ItemNotFoundException e) {}
    %>
    <!-- body section -----------------------------------------------
    ------------->
    <table border="0" width="100%">
    <%
    if (IBEUtil.showPosting()) {
    %>
    <!--------- iMarketing integration ----------------->
    <tr><td colspan="4" align="center">
    <% try {
    %>
    <jsp:include page="ibapstng.jsp" flush="true" />
    <% } catch (Throwable e) {
    IBEUtil.log("ibeCCtdItemDetail.jsp", "iMarketing error",
    Logger.ERROR);
    %>
    </td></tr>
    <% } //end iMarketing installed
    %>
    <tr><td> </td>
    <%
    if(!lSectionPathPage.equals(""))
    %>
    <td colspan="4" class="smallLink">
    <jsp:include page="<%=lSectionPathPage%>" flush="true" />
    </td>
    <% }
    %>
    </tr>
    <tr><td valign="top">   </td>
    <!-- center column ------------------------------------------
    ------------->
    <td valign="top" width="70%">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr><td colspan="3">
    <span class="pageTitle"><%=lItem.getDescription()%
    </span></td></tr>
    <tr>
    <% if (lItemImage != null) {
    %>
    <td valign="TOP"><img src="<%=lItemImage%>"></td>
    <td valign="TOP" colspan="2"><%
    =lItem.getLongDescription()%></td>
    <% } else {
    %>
    <td valign="TOP" colspan="3"><%
    =lItem.getLongDescription()%></td>
    <% }
    %>
    </tr>
    <% if (lItemAddtlInfoFile != null) {
    %>
    <tr><td colspan="3"><br>
    <jsp:include page="<%=lItemAddtlInfoFile%>"
    flush="true" />
    </td></tr>
    <% }
    %>
    <tr><td colspan="3"><br></td></tr>
    <%
    for (int i=0; i < itemFlexfields.length; i++)
    String prompt = itemFlexfields.getPrompt();
    String value = itemFlexfields[i].getValue();
    if (value != null && !value.equals(""))
    %>
    <tr>
    <td align="LEFT" width="20%">
    <span class="sectionHeader2"><%=prompt%
       </span></td>
    <td align="LEFT" colspan="2" width="80%"><%=value%
    </td></tr>
    <% }
    if (services.length > 0)
    %>
    <tr><td colspan="3"><br></td></tr>
    <tr><td align="RIGHT" class="sectionHeader1" width="20%">
    <%=lMsgMgr.getMessage("IBE_PRMT_CT_WARRANTIES")%>
    </td>
    <td colspan="2" align="left" class="sectionHeaderBlack"
    width="80%"><hr>
    </td></tr>
    <%
    for(int i=0; i < services.length; i++)
    %>
    <tr>
    <td valign="TOP" class="sectionHeaderBlack"
    width="20%"> </td>
    <td align="left" colspan="2" valign="TOP" width="80%">
    <span class="sectionHeaderBlack">
    <A HREF="<%= DisplayManager.getURL
    (STORE_CTLG_ITM_ROUTE", "item=" + services[i.getItemID()) %>">
    <%=services.getDescription()%></A>
    </span>
    <%=services[i].getLongDescription()%>
    </td>
    </tr>
    <tr>
    <td colspan="3" class="sectionHeaderBlack"> </td>
    </tr>
    <% } //end loop through services
    } // end if services.length > 0
    if (relItems.length > 0) {
    %>
    <tr><td colspan="3"><br></td></tr>
    <tr>
    <td align="RIGHT" class="sectionHeader1" width="20%">
    <%=lMsgMgr.getMessage("IBE_PRMT_CT_REL_PRODUCTS")%>
    </td>
    <td align="left" colspan="2" class="sectionHeaderBlack"
    width="80%"><hr></td>
    </tr>
    <%
    for(int i=0; i < relItems.length; i++)
    %>
    <tr>
    <td valign="TOP" class="sectionHeaderBlack"
    width="20%"> </td>
    <td colspan="2" align="left" valign="TOP"
    width="80%">
    <span class="sectionHeaderBlack">
    <A HREF="<%= DisplayManager.getURL
    ("STORE_CTLG_ITM_ROUTE", "item=" + relItems[i].getItemID()) %>">
    <%=relItems[i].getDescription()%></A>
    </span>
    <%=relItems[i].getLongDescription()%>
    </td>
    </tr>
    <tr>
    <td colspan="3" align="RIGHT"
    class="sectionHeaderBlack"> </td>
    </tr>
    <% } // end loop through related items
    } // end if relItems.length > 0
    %>
    </table>
    </td>
    <%if (complimentary.length > 0) {
    %>
    <tr><td colspan="3"><br></td></tr>
    <tr>
    <td align="RIGHT" class="sectionHeader1" width="20%">
    <%=lMsgMgr.getMessage("IBE_PRMT_CT_REL_PRODUCTS")%>
    </td>
    <td align="left" colspan="2" class="sectionHeaderBlack"
    width="80%"><hr></td>
    </tr>
    <%
    for(int i=0; i < complimentary.length; i++)
    %>
    <tr>
    <td valign="TOP" class="sectionHeaderBlack"
    width="20%"> </td>
    <td colspan="2" align="left" valign="TOP"
    width="80%">
    <span class="sectionHeaderBlack">
    <A HREF="<%= DisplayManager.getURL
    ("STORE_CTLG_ITM_ROUTE", "item=" + complimentary[i].getItemID())
    %>">
    <%=complimentary[i].getDescription()%></A>
    </span>
    <%=complimentary[i].getLongDescription()%>
    </td>
    </tr>
    <tr>
    <td colspan="3" align="RIGHT"
    class="sectionHeaderBlack"> </td>
    </tr>
    <% } // end loop through related items
    } // end if complimentary.length > 0
    %>
    </table>
    </td>
    <!-- right column -------------------------------------------
    ------------->
    <td valign="top" width="20%">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr><td>
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <% if (! binOpenImg.equals("")) {
    %>
    <td><img src="<%=binOpenImg%>"></td>
    <% }
    %>
    <td nowrap class="binHeaderCell" width="100%">
    <%
    if (!lItem.isConfigurable()) {
    %>
    <%=lMsgMgr.getMessage("IBE_PRMT_CT_2_WAYS_TO_SHOP")%>
    <% } else {
    %>
    <%=lMsgMgr.getMessage("IBE_PRMT_CT_CONFIG_PRODUCT")%>
    <% }
    %>
    </td>
    <% if (! binCloseImg.equals("")) {
    %>
    <td><img src="<%=binCloseImg%>"></td>
    <% }
    %>
    </tr>
    </table>
    </td></tr>
    <tr><td class="binColumnHeaderCell">
    <table border="0" cellspacing="1" width="100%">
    <tr><td class="binContentCell" align="CENTER">
    <% /////////////////////////////// error
    messages //////////////////////////////
    if (!errorMsg.equals("")) {
    %>
    <table><tr><td align="center" class="errorMessage">
    <%=errorMsg%>
    </td></tr></table>
    <% }
    /////////////////////////////// display
    form //////////////////////////////////%>
    <!--Javascript for express checkout confirmation-->
    <script language="JavaScript">
    function get_confirmation(form)
    if (confirm("<%=confirmXpr%>" ) ) {
    form.tmpx.name = '1-Click.x';
    form.tmpy.name = '1-Click.y';
    form.submit();
    return true;
    else
    return false;
    </script>
    <form method=POST action="<%=lBuyRoutePage%>">
    <input type=hidden name="type" value="single">
    <input type=hidden name="item" value="<%=lItem.getItemID()%
    "><input type=hidden name="refpage" value="<%=lRef.toString
    ()%>">
    <INPUT TYPE="HIDDEN" NAME="tmpx" VALUE="100">
    <INPUT TYPE="HIDDEN" NAME="tmpy" VALUE="100">
    <%= RequestCtx.getSessionInfoAsHiddenParam() %>
    <%
    if ( ! lItem.isConfigurable())
    { // display prices
    %>
    <table>
    <tr><td align ="left" nowrap>
    <span class="sectionHeaderBlack">
    <%=lMsgMgr.getMessage("IBE_PRMT_CT_LIST_PRICE_COLON")%>
    </span>
    </td>
    <%
    for (int i=0; i < uomCodes.length && i <
    itemListPriceDisplayVec.size(); i++)
    if (uomCodes[i] != null && uomCodes[i].equals
    (lItem.getPrimaryUOMCode()))
    if (itemListPriceDisplayVec.elementAt(i) != null &&
    !itemListPriceDisplayVec.elementAt(i).equals(""))
    %>
    <td align="right">
    <%=itemListPriceDisplayVec.elementAt(i)%
       <%=lItem.getPrimaryUOM()%></td>
    <% } else {
    %>
    <td>   </td>
    <% }
    break;
    } // end primary uomcode
    } // end loop through uoms and list price
    %>
    </tr>
    <tr><td align="left" nowrap>
    <span class="sectionHeaderBlack">
    <%=lMsgMgr.getMessage("IBE_PRMT_CT_YOUR_PRICE_COLON")%>
    </span>
    </td>
    <td>
    <% // display selling price for each uom
    if (nPriceDefined > 1) {
    //prices defined for multiple UOMs for the item
    %>
    <select name = "uom">
    <%
    //--------- loop through uoms and prices ------------------
    for (int i=0; i < itemSellPriceDisplayVec.size() && i <
    uomCodes.length; i++)
    if (itemSellPriceDisplayVec.elementAt(i) != null &&
    !itemSellPriceDisplayVec.elementAt(i).equals(""))
    boolean bSelectUom = false;
    if (uomCodes[i] != null && uomCodes[i].equals
    (lItem.getPrimaryUOMCode()))
    bSelectUom = true;
    if (bSelectUom)
    %>
    <option value="<%=uomCodes[i]%>" SELECTED>
    <% } else {
    %>
    <option value="<%=uomCodes[i]%>">
    <% }
    %>
    <%=itemSellPriceDisplayVec.elementAt(i)%
       <%=IBEUtil.nonNull(lItem.getUOM(uomCodes))%
    <%
    } // end current uom has price
    } //end loop i through uoms and prices
    %>
    </select>
    <% //end more than 1 UOM with price defined for the item
    } else {
    if (nPriceDefined == 0) { //multiple UOMs, none with
    price defined
    %>
    <input type=hidden name="uom" value="<%
    =lItem.getPrimaryUOMCode()%>">
    <% } else { // 1 UOM with price defined
    String formatSellPrice = "";
    String uomWithPrice = "";
    for (int i=0; i < uomCodes.length && i <
    itemSellPriceDisplayVec.size(); i++)
    if (itemSellPriceDisplayVec.elementAt(i) != null &&
    !itemSellPriceDisplayVec.elementAt(i).equals(""))
    formatSellPrice = (String)
    itemSellPriceDisplayVec.elementAt(i);
    uomWithPrice = uomCodes;
    break;
    %>
    <input type=hidden name="uom" value="<%=uomWithPrice%>">
    <%=formatSellPrice%>   <%=IBEUtil.nonNull
    (lItem.getUOM(uomWithPrice))%>
    <% } //end 1 UOM with price defined
    } // end display selling prices
    %>
    </td></tr></table> <%-- end table for the price --%>
    <% } // end non-configurable item
    if (bItemCanBeOrdered)
    // show quantity and buttons only if item can be ordered
    %>
    <p><%=lMsgMgr.getMessage("IBE_PRMT_CT_QUANTITY")%>
    <input type="TEXT" name="qty" size="3" maxlength="20"
    value="<%=qty%>">
    </p>
    <% if (lItem.isConfigurable()) {
    %>
    <p>
    <input type=hidden name="uom" value="<%
    =lItem.getPrimaryUOMCode()%>">
    <input type=submit name="Configure.x"
    value="<%=lMsgMgr.getMessage("IBE_PRMT_CT_CONFIGURE")%
    "></p>
    <% } else {
    %>
    <p>
    <input type=submit name="Add to Cart.x"
    value="<%=lMsgMgr.getMessage
    ("IBE_PRMT_ADD_TO_CART_PRMT_G")%>">
    </p>
    <%
    if (!xprTagArea.equals(""))
    %>
    <p><%=lMsgMgr.getMessage("IBE_PRMT_CT_OR")%></p>
    <p><jsp:include page="<%=xprTagArea%>"
    flush="true" /></p>
    <% }
    } // end item can be ordered
    %>
    <br>
    </form>
    </td></tr></table> <%-- end table for bin content and
    header --%>
    </td></tr></table>
    <p> </p>
    <p> </p>
    </td></tr></table> <%-- end page table --%>
    <% } // end item loaded
    %>
    <%@ include file="ibeCZzdBottom.jsp" %>
    <!-- ibeCCtdItemDetail.jsp end -->

    my bad...didnt think anyone was gonna come in ...lol......nothing populates in the second drop down...I was thinking of making a separate page and just pass the parameter in, bu i never used jsp include.....any suggestions on how to get this thing working??

Maybe you are looking for