Please Help::How to display a Map with LIsts as Keys and Values using JSTL

Hi,
I need some assistance on how to display a Map in JSP using struts or core JSTL. I have a HashMap which has a List of keys and each key maps to a value of an ArrayList.i.e I have an ArrayList of taxCodes and each taxCode maps to a value of taxDetails which is an ArrayList of details for for that particular taxCode. I have some trouble to display each taxCode then display taxDetails for each taxCode. Here is my code below:
OrderDetails.java
package orderitems;
import java.sql.*;
import java.util.*;
public class OrderDetails {
    private LineOder lineOrder;
    private Map lineItems;
    //returns an item number, key_item, from its unique keys
    public int getItemNumber(int key_item, String key_year,
            String key_office,String key_client,String key_company){
        Connection conn = null;
        Statement stat = null;
        ResultSet rst = null;
        int itmNum = 0;
         * key_item a unique number for an item.
         * key_year,key_office,key_client,key_company unique keys
         * for each order where this key_item is taken
         * from.
        String select = "SELECT key_item FROM "+
                Constants.WEB_TABLE +" WHERE key_item = " + key_item +
                " AND key_year = '" + key_year + "'" +
                " AND key_office = '" + key_office + "'" +
                " AND key_client = '" + key_client + "'" +
                " AND key_company = '" + key_company +"'";
        DbConnection dbConn = new DbConnection();
        try {
            conn = dbConn.getDbConnection(Constants.WEB_JNDI);
            stat = conn.createStatement();
            rst = stat.executeQuery(select);
            if(rst.next()){
                itmNum = Integer.parseInt(rst.getString("key_item"));
        } catch (SQLException ex) {
            ex.printStackTrace();
        } finally{
            SQLHelper.cleanUp(rst, stat, conn);
        return itmNum;
    //get a list of item number(item codes)
    public List getAllItemNumbers(String key_year,
            String key_office,String key_client,String key_company){
        List itemNumbers = new ArrayList();
        LineItem itemNumber = null;
        Connection conn = null;
        Statement stat = null;
        ResultSet rst = null;
        String select = "SELECT key_item FROM "+ Constants.WEB_TABLE +
                " WHERE key_year = '" + key_year + "'" +
                " AND key_office = '" + key_office + "'" +
                " AND key_client = '" + key_client + "'" +
                " AND key_company = '" + key_company + "'";
        DbConnection dbConn = new DbConnection();
        try {
            conn = dbConn.getDbConnection(Constants.WEB_JNDI);
            stat = conn.createStatement();
            rst = stat.executeQuery(select);
            while(rst.next()){
                itemNumber = new LineItem();
                itemNumber.setKey_item(Integer.parseInt(rst.getString("key_item")));
                itemNumbers.add(itemNumber);
        } catch (SQLException ex) {
            ex.printStackTrace();
        } finally{
            SQLHelper.cleanUp(rst, stat, conn);
        return itemNumbers;
    //get a list of tax codes
    public List getAllTaxCodes(int key_item, String key_year,
            String key_office,String key_client,String key_company){
        Connection conn = null;
        Statement stat = null;
        ResultSet rst = null;
        ItemTax taxCode;
        List taxCodes = new ArrayList();
        int itemNum = getItemNumber(key_item, key_year,
                key_office,key_client,key_company);
        String select = "SELECT key_tax_code FROM "+
                Constants.WEB_TABLE +" WHERE key_item = " + itemNum +
                " AND key_year = '" + key_year + "'" +
                " AND key_office = '" + key_office + "'" +
                " AND key_client = '" + key_client + "'" +
                " AND key_company = '" + key_company +"'";
        DbConnection dbConn = new DbConnection();
        try {
            conn = dbConn.getDbConnection(Constants.WEB_JNDI);
            stat = conn.createStatement();
            rst = stat.executeQuery(select);
            while(rst.next()){
                taxCode = new ItemTax();
                taxCode.setKey_tax_code(rst.getString("key_tax_code"));
                taxCodes.add(taxCode);
        } catch (SQLException ex) {
            ex.printStackTrace();
        } finally{
            SQLHelper.cleanUp(rst, stat, conn);
        return taxCodes;
    /////This methode returns a Map which am trying to display in JSP
    //use tax code to get tax details
    public Map getItemTaxDetails(String key_year,String key_office,
            String key_client,String key_company,int key_item){
        ItemTax taxDetail = null;
        List taxDetails = new ArrayList();
        List itemTaxCodes = new ArrayList();
        Map itemTaxDetails = new HashMap();
        Connection conn = null;
        Statement stat = null;
        ResultSet rst = null;
        //get a list of all tax codes of an item with a
        //given item number
        itemTaxCodes = getAllTaxCodes(key_item,key_year,
                key_office,key_client,key_company);
        DbConnection dbConn = new DbConnection();
        try {
            conn = dbConn.getDbConnection(Constants.WEB_JNDI);
            stat = conn.createStatement();
            for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
                ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
                String taxCode = itemTaxCode.getKey_tax_code();
                String select = "SELECT tax_type,tax_value," +
                        "tax_limit_val FROM "+ Constants.WEB_TABLE +
                        " WHERE key_item = "+ key_item +
                        " AND key_year = '" + key_year + "'" +
                        " AND key_office = '" + key_office + "'" +
                        " AND key_client = '" + key_client + "'" +
                        " AND key_company = '" + key_company +"'" +
                        " AND key_tax_code = '" + taxCode + "'";
                rst = stat.executeQuery(select);
                while(rst.next()){
                    taxDetail = new ItemTax();
                    //records to be displayed only
                    taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
                    taxDetail.setTax_value(rst.getString("tax_value"));
                    taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
                    //////other details records ommited//////////////////////////
                    taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
                 * A HashMap which has all taxCodes of an item as its keys
                 * and an ArrayList of taxdetails as its values.
                 * I return this for display in a JSP.
                itemTaxDetails.put(taxCode,taxDetails);
            System.out.println();
            System.out.println("*********CONSOLE OUTPUT*************");//display on console
            Set set = itemTaxDetails.keySet();
            Iterator iter = set.iterator();
            System.out.println("Key\t\tValue\r\n");
            while (iter.hasNext()) {
                Object taxCode=iter.next();
                Object details=itemTaxDetails.get(taxCode);
                System.out.println(taxCode +"\t" + details);
            System.out.println("************************************");
        } catch (SQLException ex) {
            ex.printStackTrace();
        } finally{
            SQLHelper.cleanUp(rst, stat, conn);
        return itemTaxDetails;
    //details of an item with all its taxes
    public List getAllItemDetails(String key_year,
            String key_office,String key_client,String key_company){
        List lineItems = new ArrayList();
        List itemNumbers = new ArrayList();
        Map taxDetails = new HashMap();
        LineItem item = null;
        Connection conn = null;
        Statement stat = null;
        ResultSet rst = null;
        //A list of all item numbers in the declaration
        itemNumbers = getAllItemNumbers(key_year,
                key_office,key_client,key_company);
        DbConnection dbConn = new DbConnection();
        try {
            conn = dbConn.getDbConnection(Constants.WEB_JNDI);
            stat = conn.createStatement();
            for(Iterator itemIter= itemNumbers.iterator(); itemIter.hasNext();){
                LineItem itemNum = (LineItem)itemIter.next();
                int itemNumber = itemNum.getKey_item();
                String select = "SELECT item_description,item_mass," +
                        "item_cost" +
                        " FROM " + Constants.WEB_TABLE +
                        " WHERE key_year = '"+key_year+"'" +
                        " AND key_office = '"+key_office+ "'"+
                        " AND key_client = '"+key_client+ "'"+
                        " AND key_company = '"+key_company+ "'"+
                        " AND key_item = " + itemNumber;
                rst = stat.executeQuery(select);
                while(rst.next()){
                    item = new LineItem();
                    item.setItem_description(rst.getString("item_description"));
                    item.setItem_mass(Float.parseFloat(rst.getString("item_mass")));
                    item.setKey_item(Integer.parseInt(rst.getString("item_cost")));
                    //////other details records ommited//////////////////////////
                    /* A HashMap of all itemTaxeCodes as its keys and an
                     * ArrayList of itemTaxedetails as its values
                    taxDetails = getItemTaxDetails(item.getKey_year(),item.getKey_office(),
                            item.getKey_client(),item.getKey_company(),item.getKey_item());
                    //item tax details
                    item.setItmTaxes(taxDetails);
                    //list of items with tax details
                    lineItems.add(item);
        } catch (SQLException ex) {
            ex.printStackTrace();
        } finally{
            SQLHelper.cleanUp(rst, stat, conn);
        return lineItems;
    public Set getOrders(String key_year,String key_office,
            String key_client,String key_company){
        List lineItems = new ArrayList();
        Set lineOrders = new HashSet();
        Connection conn = null;
        Statement stat = null;
        ResultSet rst = null;
        LineOder lineOrder = null;
        String select = "SELECT * FROM " + Constants.WEB_TABLE +
                " WHERE key_year = '" + key_year + "'" +
                " AND key_office = '" + key_office + "'" +
                " AND key_client = '" + key_client + "'" +
                " AND key_company = '" + key_company + "'";
        DbConnection dbConn = new DbConnection();
        try {
            conn = dbConn.getDbConnection(Constants.WEB_JNDI);
            stat = conn.createStatement();
            rst = stat.executeQuery(select);
            while(rst.next()){
                lineOrder = new LineOder();
                lineOrder.setKey_year(rst.getString("key_year"));
                lineOrder.setKey_office(rst.getString("key_office"));
                lineOrder.setKey_client(rst.getString("key_client"));
                lineOrder.setKey_company(rst.getString("key_company"));
                ////list of items with all their details
                lineItems = getAllItemDetails(lineOrder.getKey_year(),lineOrder.getKey_office(),
                        lineOrder.getKey_client(),lineOrder.getKey_company());
                //setting item details
                lineOrder.setItems(lineItems);
                //a list of order with all details
                lineOrders.add(lineOrder);
        } catch (SQLException ex) {
            ex.printStackTrace();
        } finally{
            SQLHelper.cleanUp(rst, stat, conn);
        return lineOrders;
Controller.java
package orderitems;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Controller extends HttpServlet {
    private Map taxDetails = new HashMap();
    private OrderDetails orderDetails = null;
    protected void processRequest(HttpServletRequest request,
            HttpServletResponse response)throws
            ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        String key_year = "2007";
        String key_office = "VZX00";
        String key_company = "DG20";
        String key_client =  "ZI001";
        int key_item = 1;
        String nextView = "/taxdetails_list.jsp";
        orderDetails = new OrderDetails();
        taxDetails = orderDetails.getItemTaxDetails(key_year,key_office,
                key_company,key_client,key_item);
        //Store the collection objects into HTTP Request
        request.setAttribute("taxDetails", taxDetails);
        RequestDispatcher reqstDisp =
                getServletContext().getRequestDispatcher(nextView);
        reqstDisp.forward(request,response);
    protected void doGet(HttpServletRequest request,
            HttpServletResponse response)throws
            ServletException, IOException {
        processRequest(request, response);
    protected void doPost(HttpServletRequest request,
            HttpServletResponse response)throws
            ServletException, IOException {
        processRequest(request, response);
taxdetails_list.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>Simple Tax Detail Diaplay ::</title>
        <link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
    </head>
    <body>
        <jsp:useBean id="taxDetails" class="java.util.HashMap" scope="request"/>
        <table>
            <c:forEach items="${taxDetails}" var="hMap">
                <tr>
                    <td><c:out value="${hMap.key}" /></td>
                    <!--td><%--c:out value="${hMap.value}" /--%></td-->
                </tr>
            </c:forEach>
        </table>
    </body>
</html>am displaying taxCodes(in this case i have VAT and ICD) fine but cant figure out how to display a list of value for each taxCode.Here is the output am getting
both in my JSP and on the console:
*******************************CONSOLE OUTPUT****************************
Key          Value
ICD     [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
VAT [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
Edited by: aiEx on Oct 8, 2007 6:54 AM

hi evnafets,
yes i need a nested for loop.I have tried your advice but my bean properties are not found.Am getting this error:
javax.servlet.ServletException: Unable to find a value for "key_item" in object of class "java.lang.String" using operator "."
I have tried this as stated earlier in the post:I have tried to make the method getItemTaxDetails return a List and get the returned list value as taxDetails. I then tested to display this list on JSP and its displaying fine.
public List getItemTaxDetails(String key_year,String key_office,
            String key_client,String key_company,int key_item){
        ItemTax taxDetail = null;
        List taxDetails = new ArrayList();
        List itemTaxCodes = new ArrayList();
        Map itemTaxDetails = new HashMap();
        Connection conn = null;
        Statement stat = null;
        ResultSet rst = null;
        //get a list of all tax codes of an item with a
        //given item number
        itemTaxCodes = getAllTaxCodes(key_item,key_year,
                key_office,key_client,key_company);
        DbConnection dbConn = new DbConnection();
        try {
            conn = dbConn.getDbConnection(Constants.WEB_JNDI);
            stat = conn.createStatement();
            for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
                ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
                String taxCode = itemTaxCode.getKey_tax_code();
                String select = "SELECT tax_type,tax_value," +
                        "tax_limit_val FROM "+ Constants.WEB_TABLE +
                        " WHERE key_item = "+ key_item +
                        " AND key_year = '" + key_year + "'" +
                        " AND key_office = '" + key_office + "'" +
                        " AND key_client = '" + key_client + "'" +
                        " AND key_company = '" + key_company +"'" +
                        " AND key_tax_code = '" + taxCode + "'";
                rst = stat.executeQuery(select);
                while(rst.next()){
                    taxDetail = new ItemTax();
                    //records to be displayed only
                    taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
                    taxDetail.setTax_value(rst.getString("tax_value"));
                    taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
                    //////other details records ommited//////////////////////////
                    taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
                 * A HashMap which has all taxCodes of an item as its keys
                 * and an ArrayList of taxdetails as its values.
                 * I return this for display in a JSP.
                itemTaxDetails.put(taxCode,taxDetails);
        } catch (SQLException ex) {
            ex.printStackTrace();
        } finally{
            SQLHelper.cleanUp(rst, stat, conn);
        //return itemTaxDetails;
        return taxDetails;
    }And my JSP
taxdetails_list.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
    </head>
    <body>
        <table>
            <c:forEach var="curRecord" items="${taxDetails}" varStatus="rowCounter">
                    <c:choose>
                        <c:when test="${rowCounter.count % 2 == 0}">
                            <c:set var="rowStyle" scope="page" value="odd" />
                        </c:when>
                        <c:otherwise>
                            <c:set var="rowStyle" scope="page" value="even" />
                        </c:otherwise>
                    </c:choose>
                    <tr class="${rowStyle}">
                        <td>${curRecord.key_item}</td>
                        <td>${curRecord.tax_value}</td>
                        <td>${curRecord.tax_limit_val}</td>
                    </tr>
                </c:forEach>
        </table>
    </body>
</html>I can't see where am going wrong even with your advice.Please help.
Thnx.

Similar Messages

  • Urgent: Please help. how to solve the time delay during buffer read and write using vc++

    I need to continuously acquire data from daqmx card, write into a file and at the same time corelate (in terms of time) the data with signals from other instruments. The current problem is that there is time delay during read and write data into buffer,thus causing misalignment of the data from multiple instruments. Is there a way to solve  the delay? or Is there a way to mark the time of the data acquisition in the buffer?  If I know the starting time (e.g. 0) of data acquisition and sampling rate (e.g. 1kHz), can I simply add 1ms to each data sample in the buffer? The current code is shown below.
    void DataCollectionWin::ConnectDAQ()
    DAQmxErrChk(DAQmxCreateTask ("", &taskHandle));
        DAQmxErrChk(DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0,Dev1/ai1,Dev1/ai2,Dev1/ai3,Dev1/ai4,Dev1/ai5,Dev1/ai16,Dev1/ai17,Dev1/ai18,Dev1/ai19,Dev1/ai20,Dev1/ai21,Dev1/ai6,Dev1/ai7,Dev1/ai22","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
      DAQmxErrChk(DAQmxCfgSampClkTiming(taskHandle,"",1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,60000));
      DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_Val_Acquired_Into_Buffer,50,0,EveryNCallback,NULL));// Every 50 samples the EveryNSamplesEvent will be trigured, to reduce time delay.
      DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,NULL));
      DAQmxErrChk (DAQmxStartTask(taskHandle));
    int32 CVICALLBACK EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void *callbackData)
     DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,50,10.0,DAQmx_Val_GroupByScanNumber,data,50*15,&read,NULL));
       //memcpy(l_data,data,6000);
      SetEvent(hEvent);
    l_usstatus_e[0]=g_usstatus[0];// signals from other instruments that need to be corelated with the data from daq cards.
     l_optstatus_e[0]=g_optstatus[0];
     if( read>0 ) // write data into file
       //indicator=1;
     for (i=0;i<read;i++)
     {  //fprintf(datafile,"%d\t",i);
      fprintf(datafile,"%c\t",l_usstatus_s[0]);
      fprintf(datafile,"%c\t",l_usstatus_e[0]);
            fprintf(datafile,"%c\t",l_optstatus_s[0]);
      fprintf(datafile,"%c\t",l_optstatus_e[0]);
              fprintf(datafile,"%.2f\t",data[15*i]);
     //   sprintf( pszTemp, "%f", data[6*i]);
     // pListCtrl->SetItemText(0, 2, pszTemp);
        //pWnd->m_trackinglist.SetItemText(0, 2, pszTemp);
         fprintf(datafile,"%.2f\t",data[15*i+1]);
         fprintf(datafile,"%.2f\t",data[15*i+2]);

    Hello kgy,
    It is a bit of a judgment call. You should just choose the board that you think has the most to do with your issue. For example, this issue was much more focused on setting up your data acquisition task than the Measurement Studio environment/tools, so the MultifunctionDAQ board would have been the best place for it. As for moving your post to another board, I do not believe that is possible.
    Regards,
    Dan King

  • Can anyone please help me, I'm having problems with sound while watching video clips using flash player using Internet Explorer\

    Can anyone please help me, I'm having problems with sound while watching video clips using flash player & Internet Explorer

    There's a good chance that this is a known issue.  We'll have a Flash Player 18 beta later this week that should resolve this at http://www.adobe.com/go/flashplayerbeta/

  • PLEASE HELP: How to format ext HD with Disk Utilities (FAT32 format)

    Hi,
    Please help. I need to format a 360 GB Lacie Hard-drive on FAT32 format. How can I do it with the Disk Utilities Application? I tried but only see Apple extended, extended (journaled), MS-dos, and others, but no FAT32. Also, if the Hard drive has 20 GB of documents, can a format the resto of the drive and leave this info intact? If so how can I do it. Thanks so much. I appreciate your help.
    MacBook Pro   Mac OS X (10.4.3)  

    You have to backup any data on the hard drive first.
    Formatting erases anything on the partition which in your case is the entire hard drive. It is possible to create more than one partition on the hard drive but that process will also delete any data on the hard drive.

  • How i display mac app store downloading progress bar ? please help, how i display mac app store downloading progress bar ? please help

    how i display mac app store downloading progress bar ? please help ?

    it does not respond every time i hit download button,nothing appers

  • PLEASE HELP How to Activate the Correlation with the workflow ?

    Hi everyone,
    I am trying to retrigger a workflow with object (QMSM) using another Object event (BUS2007  event TECCOMPLETED )
    The objects are QMSM(complete task) and BUS2007(Plant Maintenance order) .
    I tried to do that using correlation but I am stuck in the following step because there is no name of the event there to choose from.
         *3.      Select the event for which the correlation is to be activated and the correlation to be activated*
    The procedure I used was from this link:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/26/0b8b3f81fef93de10000000a114084/frameset.htm
    Things done so far:
    Defining a Correlation
    Defining a Wait Step: Wait for Event with Correlation
    Not done:  Activating a Correlation
    Please help everyone.
    Edited by: SAMI JAPR on Apr 29, 2008 6:34 PM

    You need to add events under WF header, version-dependent---> events.
    Regards, IA

  • Can i check how many people are using my apple id if so please help there is a new user with my apple id and i dont know who it is

    i have multiple people using my apple id which are my brothers and this new guy showed up and set up a new apple id with an ipad mini and i want to track this person down im afraid this will escelate to id theft and i want to check all users of my apple id

    Change the password and make sure those people can't access your email.

  • How to display 2 layouts with 2 different Header and Footer in a template.

    Hi,
    I am using XML Publisher 5.5. I have created one template which is having two layouts. I am using <?Start: Body?> and <?end body?> for displaying Headers and footers. Now my problem is, I need to display first layout with it's associated Header and footer and then second layout with other header and footer. But the two layouts should come in single template file. How is it possible?. Is there any work around? Please help me as this is the urgent requirement to my client.
    Thanks.
    Siva.

    No problem. Select Insert -> Break from the menu bar. Then select a "Section Break" - Next page.
    Header 1
    <?start:body?>
    Page 1
    <?end: body?>
    Footer 1
    ==================Section Break (Next Page)=================
    Header 2
    <?start:body?>
    Page 2
    <?end: body?>
    Footer 2
    Worked like a charm.
    Klaus

  • PLEASE HELP!! CAN'T SYNC WITH OUTLOOK...AND ITS NOT THE 64 BIT VERSION

    PLEASE HELP ME!!
    I have a BB Storm2 9550. I had a laptop with Outlook 2007/Windows Vista/BB Desktop 5 and it synced fine.
    I now have a new laptop with Outlook 2010/Windows 7/ BB Desktop 6 and each time I try to configure the Organizer Data to select 'Outlook' for Calendar, Memo, Tasks, and Contacts and select NEXT I receive an error in Intellisync that says 'The Operation Terminated Unexpectedly'.
    I have tried completely uninstalling BB Desktop manager from the Application Data folders and registry, reinstalling 6.0, downgrading to 5.0 (which gives me a Microsoft Connector Error).
    I have also tried reinstalling Outlook. I read all of the posts concerning Outlook 2010 64bit but I am running the 34bit version. 
    Please help me.  Right now I don't have any contacts on my BlackBerry and I am so frustrated. I have tried to fix this for over a week now and all the posts I read don't seem to resolve my issue or I don't understand them.
    I'll even take suggestions for other ways to sync my data besides outlook (although that is not my preference)
    Thank you
    Solved!
    Go to Solution.

    Log in to an account that has administrator privileges.
    Open a command prompt.
    Type cd C:\Program Files\Research In Motion\BlackBerry Desktop\IntelliSync\Connectors\MS Outlook Connector.
    Type regsvr32 MsOutlookConnector.fil and press Enter.
    Note: For BlackBerry Desktop Manager 6.0, please use the following path:
    C:\Program Files\Research In Motion\BlackBerry Desktop\IntelliSync\Connectors\MS Outlook Connector
    Note: The following error message might be displayed when step 3 has been completed:
    The module msoutlookconnector.fil was loaded, but the call to DLLRegisterServer failed with error code 0x80070005
    If this happens, turn off the User Accounts Control (UAC) and register the MsOutlookConnector.fil file again.
    To turn off the UAC in Windows Vista, complete the following steps:
    Go to Start > Settings > Control Panel.
    Under User Accounts and Family settings, click Add or remove user account.
    Select one of the user accounts or the guest account.
    Under the account, click Go to the main User Account.
    Under Make changes to your user account, click the Change security settings link.
    Under Turn on User Account Control (UAC) to make your computer more secure, clear Use User Account Control (UAC) to help protect your computer and turn off the UAC.
    Click OK.
    Restart the computer.
    Give this a try it could be that the connector to ms outlook never registered properly.

  • Please help; how to write XML document with JSP?

    I try to write XML document with JSP...
    But I got wrong results everytime.
    The result is not XML file displayed in the browser,
    but HTML file.
    I even tried to use HTML special code for <, >, "
    but still display as HTML file not XML file.
    How to do this?
    Thanks in advance. I put my codes below.
    Sincerely,
    Ted.
    ================
    Here is code for the JSP (called stk.jsp):
    <%@ page contentType="text/xml" %>
    <%@ page import="bean.Stock" %>
    <jsp:useBean id="portfolio" class="bean.Portfolio" />
    <% java.util.Iterator pfolio = portfolio.getPortfolio();
    Stock stock = null; %>
    <?xml version="1.0" encoding="UTF-8"?>
    <portfolio>
    <% while (pfolio.hasNext())
    stock = (Stock) pfolio.next(); %>
    <stock>
    <symbol>
    <%=stock.getSymbol() %>
    </symbol>
    <name><%=stock.getName() %> </name>
    <price><%=stock.getPrice() %> </price>
    </stock>
    <% } %>
    </portfolio>
    =================
    Here is the code for bean.Stock:
    package bean;
    public class Stock implements java.io.Serializable
    String symbol, name;
    float price;
    public Stock(String symbol, String name, float price)
    this.symbol = symbol;
    this.name = name;
    this.price = price;
    public String getSymbol()
    return symbol;
    public String getName()
    return name;
    public float getPrice()
    return price;
    ===============
    And here is bean.Portfolio:
    package bean;
    import java.util.Iterator;
    import java.util.Vector;
    public class Portfolio implements java.io.Serializable
    private Vector portfolio = new Vector();
    public Portfolio()
    portfolio.addElement(new Stock("SUNW", "Sun Microsystem", 34.5f));
    portfolio.addElement(new Stock("HWP", "Hewlett Packard", 15.15f));
    portfolio.addElement(new Stock("AMCC", "Applied Micro Circuit Corp.", 101.35f));
    public Iterator getPortfolio()
    return portfolio.iterator();
    }

    Hi
    I'm not sure whta your query is but I tested your code as it is has been pasted and it seems to work fine. There is an XML output that I'm getting.
    Keep me posted.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems
    http://www.sun.com/developers/support

  • Please help...viruses prevent me from recovering my laptop and to use virtus removal

    I am trying to restore my laptop to factory settings with saving my folders. My laptop has a webstroids virus is the reason for me doing this. When the factory image recovery was finished or about finished this message pops up.....
    Restore7.exe-Application Error the instruction at 0x771fbea9 referenced memory at 0x00000000. The memory could not be read.
    Now what do I do? I bought the Norton 360 and it wouldn't even protect my laptop before that's another reason I wanted to restore the laptop. It wouldn't even let me install the Norton virus removal.

    Hi,
    Assuming you have Windows 7  you can try to perform recovery without backup but you'll loose all data.
    How to Perform an HP System Recovery
    Does your notebook still boot to windows? If it does then try downloading and running the following virus removal tools in normal mode or Safe Mode with Networking(Recommended)
    https://www.malwarebytes.org/mwb-download/
    http://www.superantispyware.com/downloadfile.html?productid=SUPERANTISPYWAREFREE
    If non of the above works then the next option would be to get the Recovery Discs for your notebook.
    Obtaining HP Recovery Discs or an HP USB Recovery Drive
    Note:
    If you have HP Support Assistant installed on the computer(The Blue Question Mark) then open it ==> Complete all pending Updates & Tuneups==> Restart and Check. It may solve your problem
    Although I am an HP employee, I am speaking for myself and not for HP.
    **Click on “Kudos” Star if you think this reply helped** Or Mark it as "Solved" if issue got fixed.

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • Hi, please help my other daughter her ipod touch is disabled connect to itunes after say its itunes couldnt connect to the ipod touch coz its is locked with a passcode?? please help how...

    hi, my daughter hers ipod touch is disabled connect to itunes after say its itunes couldnot connect to the "ipod touch" because its is locked with a passcode please help how to fix connect...i did turn off her ipod touch put usb back on there same in doenot say still ipod is disabled i dont understand please help how???

    If You Are Locked Out Or Have Forgotten Your Passcode or Just Need to Restore Your Device
      1. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
      2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
      3. iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup. If you do not have a
              backup to restore, then restore as New.
    If you are restoring to fix a forgotten Restrictions Code or as a New device, then skip Step 9 and restore as New.

  • Hi, when ever I'm using 3G, on my Iphone4 sim stops working and Network is lost, this started after I updated my phone with  6.0.1(10A523)version. Please help how to solve this problem.

    Hi, when ever I'm using 3G, on my Iphone4 sim stops working and network is lost, this started after I updated my phone with  6.0.1(10A523)version. Please help how to solve this problem. Thanks.

    Photos/videos in the Camera Roll are not synced. Photos/videos in the Camera Roll are not touched with the iTunes sync process. Photos/videos in the Camera Roll can be imported by your computer which is not handled by iTunes. Most importing software includes an option to delete the photos/videos from the Camera Roll after the import process is complete. If is my understanding that some Windows import software supports importing photos from the Camera Roll, but not videos. Regardless, the import software should not delete the photos/videos from the Camera Roll unless you set the app to do so.
    Photos/videos in the Camera Roll are included with your iPhone's backup. If you synced your iPhone with iTunes before the videos on the Camera Roll went missing and you haven't synced your iPhone with iTunes since they went missing, you can try restoring the iPhone with iTunes from the iPhone's backup. Don't sync the iPhone with iTunes again and decline the prompt to update the iPhone's backup after selecting Restore.

  • HT4113 hi, i have trouble with my daughter hers ipod she forgot passcode lock please help how to open she cant remmy her ipod passcode password please help?

    hi please help how to open my daugthers ipod she forgot her password all day...she cant remmy can u help to fix my daugthers ipod passcode lock how to open her password she been tried still disabled very upset how to open her passcode lock thankyou

    If you cannot remember the passcode, you will need to Restore your device...
    Connect to iTunes on the computer you usually Sync with and Restore...
    http://support.apple.com/kb/HT1414
    If necessary Place the Device into Recovery mode...
    http://support.apple.com/kb/HT1808

Maybe you are looking for

  • Excise duty capture and posting..?

    Hi all Can anybody explain me about , excise invoice capture and posting .. What is capture and posting excise invoice in CIN..? 1.When we capture excise duty..? were it wil go 2.When we wil post the same..? were it wil go Thanks sap-mm

  • Please help. iTunes says to restore phone but then an error occurs while..

    When I plug in my phone to my computer, it tells me it cannot read the phone and that I need to restore my phone. I press ok and then restore and it finishes extracting the software but ends there and another window pops up and says iTunes cannot res

  • Call smartform to smartform

    Hi @ll, I`d like to add an attachment to the standard invoice form. Therefore I`ve created a second smartform. As suggested at this [forum entry|Calling another smartform from a smartform; I call the second form on initialization of the first smartfo

  • IPod Touch and iHome Alarm Clock

    We were just given an iHome (iH4B) alarm clock for iPod. The specs state that it is compatible with the 2g 16gb Touch that we have. However when it is time for the alarm, the music stops after about 30 seconds and is replaced with alarm beeps. I thin

  • RS 485 2 wire auto control echos back...

    Hi all Am using NI- PXI 8423 board with 4 RS485 com ports, i need to use the com port in 2 wire mode, if i use TXRDY Auto control mode of operation the receiver still recives what i just transmitted. how is this possible?, because the document says t