Please help-image problem (display)

Can someone please help with this?
I keep receiving an error (below) while trying to execute the code...
2001-07-19 11:55:02 - Ctx( /dev ): IOException in: R( /dev + /servlet/getImage + null) Connection reset by peer: socket write error
My setup is Tomcat 3.2
JDBC: Oracle's classes12.zip
JDK: Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
I have copied my simple code below for review:
package lmmfcd.images;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import org.apache.jasper.runtime.*;
import java.beans.*;
import org.apache.jasper.JasperException;
public class getImages extends HttpServlet
     public void doGet(HttpServletRequest request, HttpServletResponse response)
               throws ServletException, IOException
          //Grabs and assigns the PageContext
               JspFactory _jspxFactory = null;
               PageContext pageContext = null;
               Object page = this;
               _jspxFactory = JspFactory.getDefaultFactory();
               pageContext = _jspxFactory.getPageContext(this, request, response,
                    "", true, 8192, true);
          //End of the PageContext Stuff
          Connection conn = (Connection)pageContext.findAttribute("conn");
               try
                    ResultSet rset = null;
                    String queryCmd =
                              "SELECT     image "+
                              "FROM          sgps.images "+
                              "WHERE          pn = '13507028' "+
                              " AND          pic_num = '1' ";
                    Statement stmt = conn.createStatement();
                    rset = stmt.executeQuery(queryCmd);
                    rset.next();
                    Blob blob = null;
                    blob = rset.getBlob("image");
                    response.setContentType("image/jpeg");
                    byte[] ba = blob.getBytes(1, (int)blob.length());
                    System.out.println("just above OutputStream");
                    response.getOutputStream().write(ba, 0, ba.length);
                    response.getOutputStream().flush();
                    response.getOutputStream().close();                    
               catch(SQLException e)
                    throw new ServletException("Problem");
}

It compiled okay, but still displayed the broken image as the result....
          if (rset != null)
               try
                    BLOB blob = null;
                    blob = (BLOB)rset.getObject("image");
                    response.setContentType("image/jpeg");
                    InputStream in = rset.getBinaryStream("image");
                    //Have also used:
                    //InputStream in = blob.getBinaryStream();
                    OutputStream out = response.getOutputStream();
                    byte b;
                    while ((b = (byte)in.read()) != 1)
                         out.write(b);
                    in.close();
                    out.flush();
                    out.close();
               catch(SQLException e)
                    throw new ServletException("Problem");
          }

Similar Messages

  • Please help! problems displaying in Mozilla

    Hi, I am now desperate.
    I have looked through the forums and there are a few who have
    asked this question but no one seems to know an answer.
    The problem is I have 2 different flash files (one bought
    picture gallery and one I made from a tutorial) on 2 different
    pages.
    The one I put together loads an xml file to display pictures.
    It works perfectly in IE but not Firefox. Link is
    here .
    Interestingly the same happens for the bought programme (it
    is from www.imagevuex.com). This link is
    here .
    Both pages work fine client side, but uploaded it doesn't
    seem to be able to call up the images.
    Can anybody help me?
    Please?
    I have no idea how to fix this.

    St Pats wrote:
    > Hi, I am now desperate.
    >
    > I have looked through the forums and there are a few who
    have asked this
    > question but no one seems to know an answer.
    >
    > The problem is I have 2 different flash files (one
    bought picture gallery and
    > one I made from a tutorial) on 2 different pages.
    >
    > The one I put together loads an xml file to display
    pictures. It works
    > perfectly in IE but not Firefox. Link is
    >
    http://www.a-p-s.org.au/apscon/apscon2006.html
    >
    > Interestingly the same happens for the bought programme
    (it is from
    > www.imagevuex.com). This link is
    http://www.a-p-s.org.au/upload/
    >
    > Both pages work fine client side, but uploaded it
    doesn't seem to be able to
    > call up the images.
    For me to does not work in IE or Firefox so hard to say
    what's wrong with it.
    My guess is you have mismatch players. Keep in mind that
    while downloading IE activeX
    you won't install it to FireFox, both require separate
    installations. Perhaps that's the
    case.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • .problem is that icon of  iblacklist in i tune is "disc phone" like One, named iblacklist, but  on screen appear as "secret contact" not as iblacklist icon wich is  contact like icon .please  help . iblacklist problem still , I download it again ,this was

    .problem is that icon of  iblacklist in i tune is "disc phone" like One, named iblacklist, but  on screen appear as "secret contact" not as iblacklist icon wich is  contact like icon .please  help .
    iblacklist problem still , I download it again ,this was not helpfull 

    Have you read my reply to one of your duplicate threads : https://discussions.apple.com/message/22774845#22774845 ?

  • Please help! Driver Display Problems!

    Hi, when I play games for example Mineacraft it just freezes and says Display Driver stopped responding and            recovered  .This is really enoying it also sometimes happens to Google Chrome.My computer is: HP Pavilion g6 64bit AMD Radeon Dual Graphics Windows 7.
    I will apreciate your help very much.Thank You and Please help!

    have you check at the amd site for your radeon driver or what ever the manufacture of that graphic card or chip ?
    Please provide Kudos to whom has provided answers or
    good points or advice..
    Aslo if the questions or issues solved please check it
    "Accepted"
    Thanks and you are welcome _____ Rick

  • Please Help, Numerous Problems

    Had a problematic iPod not being recognized by windows, resetted, remformmated everything. Sent it back, got a new one. reinstalled itunes, reinstalled ipod update, same problem. Only now, it's stuck on do not disconnect whenever plugged in and whenever not plugged in displays the exclamation and folder with www.apple.com/ipod/support written underneath. Please help me, i am really upset as I have been having these problems for a long time

    Well, I've now gotten back to the point where it's the iTunes problem again, my pc recognizes that my ipod is plugged in, but iTunes doesn't. And I tried updating the software, but it says that the ipod isn't supported.
    I guess this makes me more certain that I'm going to switch to OS X and get a powerbook. I highly doubt that Macs have these problems with ipods. I guess I could get mad at Apple and say it's their fault, but my guess is it's a software issue, one relating to XP, oh well.

  • Boot Camp Issue (Please Help, Massive Problem)

    Okay here's the deal...
    Installed Boot Camp fine
    I'm trying to install online updates and mcafee for msn
    after like 2 min a blue screen flashes and mac restarts
    when windows comes back it say check hard disk
    and say this is a fat 32.
    then it runs through some files and says there not valid
    and windows then corrects them...it puts me back to the welcome screen and i try again and the same thing happens.
    Ps. dos my display have anything to do with it cuz everytime it starts up it says it detects a tv display i just close it and move on but i did make sure it wasn't on tv first
    please help i need windows for a program for school thats it a working boot camp would make it a whole lot easier

    Did you make sure to declare you C: drive during the BootCamp setup process?
    I had no problems with my BootCamp, XP, and Virus Protection installation.

  • 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.

  • Please Help! Problems with Windows Vista 32-bit on Boot Camp (Wireless/Etc)

    We recently purchased a new aluminum Mac Book (13 inch) with Leopard (10.5.4). I attempted to install Boot Camp and Windows Vista 32-bit. I can successfully alternate between both operating systems with no problems. However, I am having 2 problems:
    1) I cannot connect to wireless internet. No connections will even show up when I attempt to connect, its almost as if an adapter hasn't been installed.
    2) I cannot set up the trackpad to do right click.
    I've read articles everywhere and nothing has helped. Can anybody please help me??? Any support/advice is greatly appreciated. Thanks in advance!
    - Pierce

    dpierceNKC:
    Welcome to the Apple discussions.
    It appears that you may not have installed the boot camp drivers. Boot into Windows and insert your Leopard installation disk in the CD/DVD drive. This should automatically begin installation of the necessary drivers. Reboot the computer when instructed and all the hardware should work as designed.
    The right click is accomplished by placing two fingers on the trackpad and then depressing the trackpad button. This should also work after the drivers are installed as instructed above.
    Axel F.

  • Please Help Printer Problems

    I have just bought an Airport Extreme Base Station. I have a Mac Book, iBook G3 and a Win XP Laptop that I have so far connected to the network.
    On the base station itself I have a Western Digital My Book External Hard Drive and an HP Photosmart C4180 all in one printer connected via a USB hub.
    All the computers can see the external hard drive but I can only get the Win XP Laptop to print. The two Apple laptops will not print.
    One last thing all my computers connected to the internet wirelessly via my BT Fusion Home Hub before buying the base station. When I first installed the base station I connected the WAN port to the BT hub. As far as the base station is telling me everything must be setup right as I have the solid green light.
    What am I doing wrong. Please help I love Apple products and really do not want to send this back.

    I'd like to suggest you go to www.tune-up.com and download and install this program.
    You get a 30 day free trial to start. If you sign up as a reseller you can get the program for $29 after that.
    I'm not an employee of the company but I just recommend the program as it has fixed many a friends
    problems and has kept my computers and my familys computers running straight and clean with no problems.
    Even if you don't buy the program after using it and it fixes your problems you can uninstall it and consider it a blessing.
    I'm sure once you see what it can do you will think twice to buy it.
    Other than that, I don't know much about your system to even begin to try to tell you what to do as a troubleshooter.
    It could be any number of things that are wrong with it. Number one, the registry might be really messed up.
    Tune-up will fix that fix off for you. A computer is like a car, it has to be kept in tune in order to keep running right.
    Another problem area is malware and viruses. We all know about them but do we ever really know if we might have been bit
    by any of them. Most times not until something serious causes us problems. Can I suggest another program you might try?
    AVG Internet Security 2011 at www.avg.com.  It's another 30 day free trial program. I am also a reseller and have all my computers
    and family members registered and using it.
    I can tell you that with only these two programs installed on your computer you can rest easy and use your computer without any fears or problems.    Let me know how it goes for you. Good luck.
    Paul Streicher
    Tampa, FL

  • Please help me! display the record from the database.

    Hi, all, please help me with the following question. I run my code on the web, the record display on the screen, but when I run again, even I did not put any data into the "memo form", the system display the previous record again which I do not need to post again. Could you please tell me how to correct the code?
    <%@ page language="java" contentType="text/html; charset=Shift_JIS" %>
    <%@ page import="beanYama.*,java.sql.*,java.util.*,java.text.*" %>
    <HTML>
    <HEAD>
    <TITLE>Form Example</TITLE>
    </HEAD>
    <BODY BGCOLOR="#ffffcc">
         <%!      String userid="";
              String memo_create_day="";
              String memo="";     
         %>
         <% if (request.getParameter("userid")==null && request.getParameter("memo_create_day") == null
              && request.getParameter("memo") == null) { %>    
         <LEFT>
         <H2>���`�� �� ����</H2>
         <FORM METHOD="GET" ACTION="memocorrect.jsp">
         <P>
              ���`��1��: <input type="text" name="userid" size=26>
         <P>
              ����: <input type="text" name="memo_create_day" size=26>
         <P>     
              ����: <input type="text" name="memo" size=100>
         <P>
              <input type="submit" value="Submit">
         </FORM>
         </LEFT>
         <% } else { %>  
    <%
    userid = request.getParameter("userid");
    memo_create_day= request.getParameter("memo_create_day");
    memo= request.getParameter("memo");
    %>
    <% } %>
    <%
         boolean proceed = false;
              if(userid != null && memo_create_day != null && memo != null)
                        proceed = true;
         Class.forName("org.gjt.mm.mysql.Driver");
         Connection conn=DriverManager.getConnection("jdbc:mysql://localhost/progress?user=ntjs&password=ntjs&useUnicode=true&characterEncoding=Shift_JIS");
         String sql = "insert into zhangmemo (userid,memo_create_day,memo) values (?, ?, ?)";
         PreparedStatement stmt = conn.prepareStatement(sql);
         if (proceed) {
         stmt.setString(1, userid);
         stmt.setString(2, memo_create_day);
         stmt.setString(3, memo);
         stmt.executeUpdate();
         if (userid==null && memo_create_day==null && memo==null) {
         out.println("<b>Please enter your memo</b>" + "</b>&nbsp"+"<b> </b>");
         stmt.close();
         conn.close();
         else {
         Statement stmt1=conn.createStatement();
         ResultSet rsq=stmt1.executeQuery("SELECT userid AS userid1, memo_create_day AS memo_create_day1, memo AS memo1 FROM zhangmemo");
         while(rsq.next()){
         out.println("<b>���`��:" + rsq.getString("userid1")+ "</b>&nbsp"+"<b> </b>");
         out.println("<b>����:" + rsq.getString("memo_create_day1")+ "</b>&nbsp"+"<b> </b>");
         out.println("<b>����:" + rsq.getString("memo1")+ "</b>&nbsp"+"<b> </b>");
         stmt.close();
         stmt1.close();
         conn.close();
    %>
    </BODY>
    </HTML>
    Thanks a lot!
    Nina

    1. Please learn JSP Coding standards. Your code is a mess.
    2. It may be because you are setting your String variables to "" empty string which is not the same as null. Try doing the following...
    <HTML>
    <HEAD>
    <TITLE>Form Example</TITLE>
    </HEAD>
    <BODY BGCOLOR="#ffffcc">
    <%
      String userid = request.getParameter("userid");
      String memo_create_day = request.getParameter("memo_create_day");
      String memo = request.getParameter("memo");
    %>
    <% if userid == null && memo_create_day == null
    && memo == null) { %>
    <LEFT>
    <H2>���`�� �� ����</H2>
    <FORM METHOD="GET" ACTION="memocorrect.jsp">
    <P>
    ���`��1��: <input type="text" name="userid" size=26>
    <P>
    ����: <input type="text" name="memo_create_day" size=26>
    <P>
    ����: <input type="text" name="memo" size=100>
    <P>
    <input type="submit" value="Submit">
    </FORM>
    </LEFT>
    <%
    boolean proceed = false;
    if(userid != null && memo_create_day != null && memo != null)
    proceed = true;
    Class.forName("org.gjt.mm.mysql.Driver");
    Connection conn=DriverManager.getConnection("jdbc:mysql://localhost/progress?user=ntjs&password=ntjs&useUnicode=true&characterEncoding=Shift_JIS");
    String sql = "insert into zhangmemo (userid,memo_create_day,memo) values (?, ?, ?)";
    PreparedStatement stmt = conn.prepareStatement(sql);
    if (proceed) {
    stmt.setString(1, userid);
    stmt.setString(2, memo_create_day);
    stmt.setString(3, memo);
    stmt.executeUpdate();
    if (userid==null && memo_create_day==null && memo==null) {
    out.println("<b>Please enter your memo</b>" + "</b> "+"<b> </b>");
    stmt.close();
    conn.close();
    else {
    Statement stmt1=conn.createStatement();
    ResultSet rsq=stmt1.executeQuery("SELECT userid AS userid1, memo_create_day AS memo_create_day1, memo AS memo1 FROM zhangmemo");
    while(rsq.next()){
    out.println("<b>���`��:" + rsq.getString("userid1")+ "</b> "+"<b> </b>");
    out.println("<b>����:" + rsq.getString("memo_create_day1")+ "</b> "+"<b> </b>");
    out.println("<b>����:" + rsq.getString("memo1")+ "</b> "+"<b> </b>");
    stmt.close();
    stmt1.close();
    conn.close();
    %>
    </BODY>
    </HTML>

  • Please help. proxy problem

    Hi there,
    I am facing a problem in accessing net content. I am using proxy to get net access.
    here is my code:
    Properties props=System.getProperties();
    props.put("proxySet", "true");
    props.setProperty( "proxyHost", "192.168.6.22" );
    props.setProperty( "proxyPort", "80" );
    props.setProperty( "proxyUser", "mv5217" );
    props.setProperty( "proxyPassword", "surya" );
    System.setProperties(props);
         String content="";
         URL url = new URL("http://www.rediff.com");//ew URL("http://www.yahoo.com");
    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
         String inputLine;
         while ((inputLine = in.readLine()) != null)
         content+=inputLine;
         in.close();
         System.out.println("Content "+content);
    }catch(Exception e){
    e.printStackTrace();
    the above code some time returns me blank string and some times below exception
    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.rediff.com
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:558)
         at java.net.URL.openStream(URL.java:851)
         at TestingClass.<init>(TestingClass.java:26)
         at TestingClass.main(TestingClass.java:40)
    I am getting the exception even sending a mail to yahoo pop server. below is the my java mail code.
    public static String MAIL_HOST = "smtp.mail.yahoo.com";
    public static String MAIL_HOST2 = "pop.mail.yahoo.com";
    * Constructor
    public JavaMailToYahooServer() {
    String from = "[email protected]";
    String subject = "Testing of sending mail";
    String body = "this is the mail content";
    String to = "[email protected]";
    MAIL_FROM = from;
    MAIL_SUBJECT=subject;
    MAIL_BODY=body;
    MAIL_TO=to;
    Properties props = System.getProperties();
    props.put("proxySet", "true");
    props.put("proxyHost", "192.168.6.22");
    props.put("proxyPort", "80");
    props.put("proxyUser", "proxy user id");
    props.put("proxyPassword", "proxy password");
    //Properties props = new Properties();
    props.put("mail.smtp.host", MAIL_HOST);
    System.setProperties(props);
    Session sess = Session.getDefaultInstance(props, null);
    try {
    // Connect to host
    //Store store = sess.getStore("pop3");
    //store.connect(MAIL_HOST2, -1, "vmeghraj", "surya");
    // Create a message
    Message msg = new MimeMessage(sess);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject(subject);
    msg.setSentDate(new Date());
    msg.setContent(body, "text/html; charset=ISO-8859-1");//HTML type
    //msg.setContent(body); //Text type
    // Send the message
    Transport trans = sess.getTransport("smtp");
    trans.connect(MAIL_HOST,"my yahoo id","my yahoo password");
    trans.send(msg);
    // Let the user know that the mail was sent
    trans.close();
    }catch (Exception ex) {
    System.out.println("Errorr : "+ex);
    for this I am gettin below shown Exception
    Errorr : javax.mail.MessagingException: Unknown SMTP host: smtp.mail.yahoo.com;
    nested exception is:
         java.net.UnknownHostException: smtp.mail.yahoo.com
    What wrong I am doing in the above coding..
    Please help me .... it is an urgent requirement
    thanks in advance,
    Veerendar

    refresh

  • Please Help, Mobo problems

    Hello all, i have the new K8N neo platinum nforce3 motherboard and it has been working fine up until today when i attempted to install a stick of 256mb of PC2700 memory.  After i installed the memory properly, i attempted to boot up my computer and i got the Diagnostic Sound of RAM problem.  Nothing is showing up on my screen so i cant enter BIOS or CMOS.  Please help i need my computer back asap  

    I cannot even get into BIOS.  I boot up and get a blank screen and the diagnostic sound   So tried to reset the jumper and that didnt work...my only other solution is that i get a few sticks of PC3200 memory.  Another suggestion i hvae recieved was that i fractured my motherboard.   Possibly a little hairline fracture in my motherboard that would render it useless.  But why would my motherboard turn on if it was fractured? doesnt make sense.  Computer powers on, but no visual on the screen and Diagnostic sound indicating a RAM problem.

  • Please help username problems!

    My blackberry curve9300 has a username attached to the device which isnt even a email address so i cant change it! I have tried accessing my blackberry id to update my apps but i cant as my username is incorrect! I have created a new blackberry id on my laptop but my blackberry wont accept it as it isnt linked to my device! please help i will be eternally grateful!

    Hi casharding 
    Welcome to BlackBerry Support Forums
    We Can reset our BBID password and even the Username , but if the username or the email is incorrect or invalid then you have very limited Options. Have to create a new BlackBerry ID but in this process you will loose access to any of your paid apps.
    Changing the BlackBerry ID on web itself will solve this issue.So first do a Backup of your device using Desktop Software or refer to this helpful article : How To Backup Your BlackBerry
    When you are done follow this Knowledege Base to resolve the issue:
    KB26694 : How to change the BlackBerry ID on a BlackBerry PlayBook tablet or BlackBerry smartphone.
    Try it and let us know of your progress.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Please help Install problems

    I boot from CD run through the sun boot part ok.
    Then i select to boot from my CD at the end. THis works fine.
    It then starts to load sunOs 2.8 but restarts very shortly after and does'nt give me a chance to read error message.
    I tryed loads of different configs with no sucess Please help.
    The system i run is a p4 wit intels G850GB Mainboard geforce2, 128MB PC 800

    P4, seems not supported yet. Try to look into the
    Solaris Intel forum next to this. Some discussions
    about P4 already. Maybe you will find what you want.Indeed.
    Have a look at
    http://groups.google.com/groups?q=solaris+p4+setup_mca+kadb&hl=en&lr=&safe=off&site=groups
    these usenet articles give a procedure to boot solaris 8
    on a P4 cpu.
    Once you've got the system installed using the kadb
    procedure given above you should try to install the latest
    kernel patch 108529-08 that fixes problem solaris has with
    these P4 cpus.

  • PLEASE, PLEASE HELP: Big problems with my Zen Touch. (Firmware/driver issu

    So here's the deal:
    Last night I thought I'd finally take the time to upgrade my Zen Touch to 2. from .3 or something like that. I noticed that there was a warning saying that this was no small upgrade, and that I should back up everything I have on it.
    I'm glad I did, because now my MP3 player situation is seriously screwed up, big time. During the upgrade process, my computer froze, leaving my Zen Touch without firmware (ok, so firmware version 0.0.0). Upon turning the device on, it boots up in recovery mode. This allows me to either format, clean up, or "reupload" firmware. I've tried all of these options, but the fact is clear that my computer simply will no longer recognize my MP3 player.
    It does, however, recognize it at as a generic storage device. However, this isn't enough for me to reinstall the player's firmware unfortunately.
    So basically, I can't update driver or firmware right now, because my computer won't acknowlege my Zen Touch!
    Somebody please, please help.
    I've already tried using the setup file from http://www.jumpingcholla.com/jce_nomad_ZEN.htm.
    Seriously, please help!

    Sort of success!
    I now finally have firmware 2. installed on my Zen Touch! Yeah! I'm not entirely sure how I did it, and I'm not bothering to find out, I'm just glad I finally got it on there.
    But some problems still remain. After all this fiddling with my driver and firmware and whatnot, my computer just doesn't see my MP3 the same way as it used to. Before, it was great, all I had to do was plug her in and I could bring up Zen Explorer in Windows Explorer, or organize my stuff in Creative MediaSource.
    Now that's not the case. The only way I can sort of add stuff to my player now is by going into Windows Explorer, which is still more or less acknowleging my player as a "portable device". Granted, there is a dri've called "My Zen", but it doesn't bring up Zen Explorer like it used to when I click on it. Furthermore, when I go into MediaSource, I can't select it as a location, there just isn't anything there.
    It almost seems as if my computer thinks I'm just using a portable hard dri've. Is there anyway I can tell it that it's an MP3 player, too?
    Thanks!

Maybe you are looking for