ExecuteUpdate() is not working

I have a Statement and I am calling the executeUpdate() method to execute some SQL into my database. It says I'm using it from a static context, while my calling method is not!
public void createTable()     {
// describe Connection con, open connection pool, then
Statement statement = con.createStatement(
     ResultSet.TYPE_SCROLL_SENSITIVE,
     ResultSet.CONCUR_UPDATABLE          );
Statement.executeUpdate(     "CREATE TABLE newTable ();"     );
non-static method executeUpdate(java.lang.String) cannot be referenced from a static context
Statement.executeUpdate(     "CREATE TABLE newTable ();"     );
I'm out of clues.

Duh! At 2AM one is not working at optimum capacity...
Additional question, I hope this one is not out of line.
How can I create an empty table? The code above is not working for that. Does not give an error but I can't see a new table. If I add some code to create some columns, the table appears, but not the empty () one.
And is it possible to create a table without a name? The GUI would prompt the user for the name after the creation (it would actually have to appear on a JTree component, with the focus on the name of the table selected)..

Similar Messages

  • IMAGEIO IS WORKING BUT BYTEARRAY IS NOT WORKING:

    Hi all
    I am getting images from gmail contacts and trying to store it in DB
    using my http code:InputStream is=urlconnection.getInputStream();
    i could able to store the inputstream in file using:
    BufferedImage filebuffer=ImageIO.read(is);
    FileOutputStream fos=new FileOutputStream("picturerecent.jpg");
    ImageIO.write(filebuffer, "jpg", fos);
    but i was trying to store it in DB using the following code but it is not working.i am having a question that
    how it writing to a file without any problem.why not to database:
    try {
           String url = "jdbc:mysql://localhost:3306/";
             String db = "test";
             String driver = "com.mysql.jdbc.Driver";
                    Class.forName(driver);
                    con = DriverManager.getConnection(url+db,"root","");
                    try{
    PreparedStatement psmnt;
         psmnt = con.prepareStatement("insert into gmailphoto(id,Photo) "+ "values(?,?)");
         psmnt.setInt(1, 9);
         psmnt.setObject(2, is, java.sql.Types.BLOB);
         int s = psmnt.executeUpdate();
           Statement st = con.createStatement();
        try{
            ResultSet rs=st.executeQuery("select photo from gmailphoto where id=9");
            if(rs.next())
              {     //byte[] bytearray = new byte[4096];
                  int size=0;
                File sImage;
    //FIRST TRY
                FileWriter wr=new FileWriter(new File("c:\\imageOutput.jpg"));
                IOUtils.copy(rs.getBlob("photo").getBinaryStream(),wr);
                //SECOND TRY
                BufferedImage bf=ImageIO.read(new ByteArrayInputStream(rs.getBytes("photo")));
                FileOutputStream fout=new FileOutputStream(new File("C:\\imageOut"));
                if(bf!=null)ImageIO.write(bf, "jpg", fout);
                if(wr!=null)
                wr.flush();
                wr.close();
              rs.close();
           }}catch(SQLException e){
                System.out.println(e);
           }Thanks a lot for help

    but i was trying to store it in DB using the following codeThere is no code here that writes to a database. There are two lots of code that write to a file.

  • Command button not working

    Hi,
    I have a
    <h:panelGrid><td><h:commandButton id="aButton" value="Add" action="#{hubreceivingbean.createRecord}" /></td></h:panelGrid> this is not working, I'm not sure what wrong I'm doing, my code is
    ============ hubReceiving.jsp=======================
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
    <tiles:importAttribute scope="request"/>
    <f:view>
    <f:loadBundle basename="com.fcpa.him.columnheading" var="chdr"/>
    <f:loadBundle basename="com.fcpa.him.Messages" var="msg"/>
    <div id="location"></div>
    <div class="bfrm" style="width: 720px;" >
    <div style="height: 600px" class="cv_c">
    <h:form id="rcvTxn">
    <h:panelGroup>
    <h:panelGrid columns="1">
    <h:panelGrid>
    <h:dataTable >
    <h:column>
    <f:facet name="header">
    <td> <h:outputFormat style="width: 730px;" value="Receiving"/></td>
    </f:facet>
    </h:column>
    </h:dataTable>
    </h:panelGrid>
    <h:panelGrid columns="3">
    <h:panelGrid columns="5" style="width: 560px">
    <h:column>
    <h:panelGrid><td><h:outputText id="errorMessage" value="#{hubreceivingbean.errorMessage}" style="color: red; font-weight: bold;" /></td></h:panelGrid>
    </h:column>
    <h:column>
    <h:panelGrid>
    <h:panelGrid><td><h:outputText id="hRcvDate" value="Receiving Date:" style="width: 90px" /></td></h:panelGrid>
    <h:panelGrid><td><h:outputText id="hHubName" value="Receiving At:" style="width: 90px" /></td></h:panelGrid>
    <h:panelGrid><td><h:outputText id="hPackageType" value="Package Type:" style="width: 90px" /></td></h:panelGrid>
    <h:panelGrid><td><h:outputText id="hPackageValue" value="Scan / Enter:" style="width: 90px" /></td></h:panelGrid>
    </h:panelGrid>
    </h:column>
    <h:column>
    <h:panelGrid>
    <h:panelGrid><td><h:outputText id="vRcvDate" value="#{hubreceivingbean.date}" style="width: 130px"/></td></h:panelGrid>
    <h:panelGrid><td><h:selectOneMenu id="vHubName" value="#{hubreceivingbean.hubName}" style="width: 130px">
    <f:selectItems value="#{hubreceivingbean.hubList}"/>
    </h:selectOneMenu></td></h:panelGrid>
    <h:panelGrid><td><h:selectOneMenu id="vPackageType" value="#{hubreceivingbean.sourceType}" style="width: 130px" onchange="submit()" >
    <f:selectItems value="#{hubreceivingbean.sourceTypeList}" />
    </h:selectOneMenu></td></h:panelGrid>
    <h:panelGrid><td><h:inputText id="vPackageValue" value="#{hubreceivingbean.sourceValue}" style="width: 130px" /></td></h:panelGrid>
    </h:panelGrid>
    </h:column>
    <h:column>
    <h:panelGrid>
    <h:panelGrid><td><h:outputText style="width: 80px"/></td></h:panelGrid>
    <h:panelGrid><td><h:outputText id="hTxnNum" value="Txn ID:" style="width: 80px"/></td></h:panelGrid>
    <h:panelGrid><td><h:outputText id="hPartNumber" value="Part Number:" style="width: 80px; #{hubreceivingbean.componetEnableDisableStyle};"/></td></h:panelGrid>
    <h:panelGrid><td><h:outputText id="hQty" value="Quantity:" style="width: 80px; #{hubreceivingbean.componetEnableDisableStyle};"/></td></h:panelGrid>
    </h:panelGrid>
    </h:column>
    <h:column>
    <h:panelGrid>
    <h:panelGrid><td><h:outputText style="width: 130px" /></td></h:panelGrid>
    <h:panelGrid><td><h:inputText id="vTxnNum" value="#{hubreceivingbean.rcvTxnHeaderID}" style="width: 130px" /></td></h:panelGrid>
    <h:panelGrid><td><h:inputText id="vPartNum" value="#{hubreceivingbean.partNumber}" style="width: 130px; #{hubreceivingbean.componetEnableDisableStyle};" /></td></h:panelGrid>
    <h:panelGrid><td><h:inputText id="vQty" value="#{hubreceivingbean.quantity}" style="width: 130px; #{hubreceivingbean.componetEnableDisableStyle};" /></td></h:panelGrid>
    </h:panelGrid>
    </h:column>
    </h:panelGrid>
    <h:panelGrid>
    <f:subview id="rtMenu">
    <tiles:insert definition="mainMenu" flush="false"/>
    </f:subview>
    </h:panelGrid>
    </h:panelGrid>
    <h:panelGrid><td><h:commandButton id="aButton" value="Add" action="#{hubreceivingbean.createRecord}" /></td></h:panelGrid>
    <h:panelGrid>
    <h:dataTable styleClass="standard">
    <h:column >
    <f:facet name="header">
    <td> <h:outputFormat style="width: 70px; " value="#{chdr.rcvRefType}"/></td>
    </f:facet>
    </h:column>
    <h:column>
    <f:facet name="header">
    <td> <h:outputText style="width: 80px;" value="#{chdr.rcvRefTypeValue}"/> </td>
    </f:facet>
    </h:column>
    <h:column>
    <f:facet name="header">
    <td> <h:outputText style="width: 80px;" value="#{chdr.palletNumber}"/> </td>
    </f:facet>
    </h:column>
    <h:column>
    <f:facet name="header">
    <td> <h:outputText style="width: 175px;" value="#{chdr.partNumber}"/></td>
    </f:facet>
    </h:column>
    <h:column>
    <f:facet name="header">
    <td> <h:outputText style="width: 75px;" value="#{chdr.asnQty}"/> </td>
    </f:facet>
    </h:column>
    <h:column>
    <f:facet name="header">
    <td> <h:outputText style="width: 75px;" value="#{chdr.rcvQty}"/> </td>
    </f:facet>
    </h:column>
    <h:column>
    <f:facet name="header">
    <td> <h:outputText style="width: 100px;" value="#{chdr.remarks}"/> </td>
    </f:facet>
    </h:column>
    <h:column>
    <f:facet name="header">
    <td> <h:outputText style="width: 50px;" value="#{chdr.delete}"/> </td>
    </f:facet>
    </h:column>
    </h:dataTable>
    </h:panelGrid>
    <h:panelGrid styleClass="scrollPane" columns="1" style="width: 720px;">
    <h:panelGroup>
    <f:verbatim><DIV STYLE="overflow: auto; height: 170px;" styleClass="standard"></f:verbatim>
    <h:dataTable value="#{hubreceivingbean.rcvDataArray}" var="databean" styleClass="standard">
    <h:column>
    <h:outputText style="width: 70px;" value="#{databean.referenceType}"/>
    </h:column>
    <h:column>
    <h:outputText style="width: 80px;" value="#{databean.referenceValue}"/>
    </h:column>
    <h:column>
    <h:outputText style="width: 80px;" value="#{databean.palletNumber}"/>
    </h:column>
    <h:column>
    <h:outputText style="width: 175px;" value="#{databean.partNumber}"/>
    </h:column>
    <h:column>
    <h:outputText style="width: 75px;" value="#{databean.asnQuantity}" />
    </h:column>
    <h:column>
    <h:inputText id="rcvQty" style="width: 75px;" value="#{databean.rcvQuantity}" required="true"/>
    <h:message for="rcvQty" errorClass="errors" />
    <f:attribute name="rcvQty" value="Please Enter" />
    </h:column>
    <h:column>
    <h:inputText style="width: 100px;" value="#{databean.rcvComments}" />
    </h:column>
    </h:dataTable>
    <f:verbatim></DIV></f:verbatim>
    </h:panelGroup>
    </h:panelGrid>
    </h:panelGrid>
    </h:panelGroup>
    </h:form>
    </div>
    </div>
    </f:view>
    ====================HubReceivingBean.java=================
    * HubReceivingBean.java
    * Created on February 1, 2006, 6:09 PM
    * To change this template, choose Tools | Options and locate the template under
    * the Source Creation and Management node. Right-click the template and choose
    * Open. You can then make changes to the template in the Source Editor.
    package com.fcpa.him;
    * @author vburla
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    import java.io.*;
    import java.util.Date;
    import javax.faces.model.SelectItem;
    import javax.faces.application.*;
    import javax.faces.context.FacesContext;
    import java.util.Locale;
    import javax.servlet.jsp.jstl.sql.ResultSupport;
    import javax.servlet.jsp.jstl.sql.Result;
    import javax.faces.component.UIComponent;
    import javax.faces.component.UIComponentBase;
    import javax.faces.component.UIInput;
    import javax.faces.component.UIViewRoot;
    import javax.faces.validator.*;
    import javax.faces.el.ValueBinding;
    import java.io.Serializable;
    import javax.swing.JOptionPane;
    import java.net.*;
    import com.fcpa.reportal.*;
    import com.fcpa.eapps.*;
    public class HubReceivingBean {
    private String sourceType;
    private String sourceValue;
    private String rcvTxnHeaderID;
    private Date date = new Date();
    private static ArrayList sourceList;
    private static ArrayList hubList;
    private SysLogger log;
    private JDBCConnPool db;
    private String hubName;
    private boolean hubNameEditable =true;
    private ArrayList rcvDataArray = new ArrayList();
    private String componetEnableDisableStyle = "display:none";
    private String txnRefEnableDisable = "display:none";
    private String partNumber;
    private String quantity;
    private String useDataSource = "Y";
    private String errorMessage;
    //private static final String[] SOURCE_TYPE = { "CARTON", "PALLET", "INVOICE","IO"};
    //private static final String[] COLUMN_NAMES = {"Ref_Type","Ref_Value","Part_Number","ASN_Qty","RCV_Qty","Notes"};
    /**Create connection */
    public void setJdbcConnPoolClass(JDBCConnPool j) {
    this.db = j;
    public JDBCConnPool getJdbcConnPoolClass() {
    return this.db;
    public void setSysLoggerClass(SysLogger s) {
    this.log = s;
    public SysLogger getSysLoggerClass() {
    return this.log;
    /** Creates a new instance of HubReceivingBean */
    public HubReceivingBean(){
    private void fillRcvDataArray() throws Exception{
    if ( (getRcvTxnHeaderID()!="") && (getRcvTxnHeaderID()!=null) ){
    String strSQLstr = "SELECT lines.txn_line_id Txn_Line_ID, lines.reference_type Ref_Type,lines.reference_value Ref_Value,"+
    " lines.pallet_number Pallet_Number, lines.part_number Part_Number,lines.asn_quantity ASN_Qty,"+
    " lines.received_quantity RCV_Qty,lines.comments Notes "+
    " FROM hif_rcv_txn_headers headers, hif_rcv_txn_lines lines "+
    " WHERE headers.txn_header_id = lines.txn_header_id "+
    " AND headers.txn_header_id = "+getRcvTxnHeaderID()+
    " AND nvl(headers.txn_complete_flag,'N') = 'N' "+
    " ORDER BY lines.txn_line_id desc";
    System.out.println("Inside fill data-strSQLstr: "+strSQLstr);
    ResultSet rs = db.getResultSet(strSQLstr);
    while (rs.next()){
    RcvTableDataBean bean = new RcvTableDataBean();
    bean.setTxnLineID(rs.getString("Txn_Line_ID"));
    bean.setReferenceType(rs.getString("Ref_Type"));
    bean.setReferenceValue(rs.getString("Ref_Value"));
    bean.setPalletNumber(rs.getString("Pallet_Number"));
    bean.setPartNumber(rs.getString("Part_Number"));
    bean.setAsnQuantity(rs.getString("ASN_Qty"));
    bean.setRcvQuantity(rs.getString("RCV_Qty"));
    bean.setRcvComments(rs.getString("Notes"));
    rcvDataArray.add(bean);
    public ArrayList getRcvDataArray()throws Exception {
    rcvDataArray.clear();
    fillRcvDataArray();
    return rcvDataArray;
    // PROPERTY: current date
    public void setDate(Date newValue) { date = newValue; }
    public String getDate() {
    Date now = new Date();
    DateFormat df = DateFormat.getDateInstance();
    String s = df.format(now);
    System.out.println("Today is " + s);
    return s;
    // PROPERTY: Hub Name
    public void setHubName(String newValue) {
    // System.out.println("Inside setSourceType");
    hubName = newValue; }
    public String getHubName() {
    //System.out.println("Inside getSourceType");
    return hubName; }
    // PROPERTY: source type
    public void setSourceType(String newValue) {
    // System.out.println("Inside setSourceType");
    sourceType = newValue; }
    public String getSourceType() {
    //System.out.println("Inside getSourceType");
    return sourceType; }
    // PROPERTY: source value
    public void setSourceValue(String newValue) {
    //System.out.println("Inside setSourceValue");
    sourceValue = newValue; }
    public String getSourceValue() {
    //System.out.println("Inside getSourceValue");
    return sourceValue; }
    // PROPERTY: source type
    public void setRcvTxnHeaderID(String newValue) {
    // System.out.println("Inside setSourceType");
    rcvTxnHeaderID = newValue; }
    public String getRcvTxnHeaderID() {
    //System.out.println("Inside getSourceType");
    return rcvTxnHeaderID; }
    // PROPERTY: Enable Disable
    public void setComponetEnableDisableStyle(String newValue) {
    // System.out.println("Inside setSourceType");
    componetEnableDisableStyle = newValue; }
    public String getComponetEnableDisableStyle() {
    //System.out.println("Inside getSourceType");
    return componetEnableDisableStyle; }
    // PROPERTY: Enable Disable Txn Ref
    public void setTxnRefEnableDisable(String newValue) {
    // System.out.println("Inside setSourceType");
    txnRefEnableDisable = newValue; }
    public String getTxnRefEnableDisable() {
    //System.out.println("Inside getSourceType");
    return txnRefEnableDisable; }
    // PROPERTY: part Number
    public void setPartNumber(String newValue) {
    // System.out.println("Inside setSourceType");
    partNumber = newValue; }
    public String getPartNumber() {
    //System.out.println("Inside getSourceType");
    return partNumber; }
    // PROPERTY: Quantity
    public void setQuantity(String newValue) {
    // System.out.println("Inside setSourceType");
    quantity = newValue; }
    public String getQuantity() {
    //System.out.println("Inside getSourceType");
    return quantity; }
    // PROPERTY: UseData Source
    public void setUseDataSource(String newValue) {
    // System.out.println("Inside setSourceType");
    useDataSource = newValue; }
    public String getUseDataSource() {
    //System.out.println("Inside getSourceType");
    return useDataSource; }
    // PROPERTY: Error Message
    public void setErrorMessage(String newValue) {
    // System.out.println("Inside setSourceType");
    errorMessage = newValue; }
    public String getErrorMessage() {
    //System.out.println("Inside getSourceType");
    return errorMessage; }
    // PROPERTY: User ID
    public String getUserID() {
    // System.out.println("Inside setSourceType");
    return("1048"); }
    // PROPERTY: Hub Name Editable
    public boolean isHubNameEditable() {
    return hubNameEditable; }
    public void setHubNameEditable(boolean newValue) {
    hubNameEditable = newValue; }
    //PROPERTY: Hub List
    public Collection getHubList() throws Exception {
    log.general("Inside getSourceTypeList");
    String strSQLstr = " SELECT hub_name hubName "+
    " FROM eaf_hub_master "+
    " WHERE nvl(enabled_flag,'N') = 'Y' "+
    " AND nvl(end_date_active,sysdate+1) > sysdate";
    ResultSet sl = db.getResultSet(strSQLstr);
    hubList = new ArrayList();
    int hubCt = 0;
    while (sl.next()){
    hubCt = hubCt + 1;
    hubList.add(new SelectItem(sl.getString("hubName")));
    //System.out.println("hubCt: "+hubCt);
    if (hubCt > 1) {
    setHubNameEditable(true);
    // System.out.println("Setting setHubNameEditable as true");
    } else{
    setHubNameEditable(false);
    // System.out.println("Setting setHubNameEditable as false");
    setHubName("One Hub");
    return(hubList);
    //PROPERTY: source List
    public Collection getSourceTypeList() throws Exception {
    System.out.println("Inside getSourceType:"+getSourceType());
    String sourceType = getSourceType();
    System.out.println("sourceType:"+sourceType);
    if (sourceType != null){
    if (sourceType.equals("OTHERS")){
    System.out.println("Inside getSourceType for OTHERS");
    setComponetEnableDisableStyle("");
    setUseDataSource("N");
    }else {
    System.out.println("Inside getSourceType for not OTHERS");
    setComponetEnableDisableStyle("display:none");
    setUseDataSource("Y");
    }else{
    System.out.println("Source Type is null");
    setComponetEnableDisableStyle("display:none");
    setUseDataSource("Y");
    setErrorMessage(null);
    log.general("Inside getSourceTypeList");
    String strSQLstr =" SELECT lookup_code sourceType "+
    " FROM hif_lookup_values "+
    " WHERE lookup_type = 'RCV_SOURCE_TYPE' "+
    " AND nvl(enabled_flag,'N') = 'Y' "+
    " AND nvl(end_date_active,sysdate+1) > sysdate ";
    ResultSet sl = db.getResultSet(strSQLstr);
    sourceList = new ArrayList();
    while (sl.next()){
    sourceList.add(new SelectItem(sl.getString("sourceType")));
    return(sourceList);
    //PROPERTY: validate and insert data
    public void createRecord() throws Exception{
    updateTxn();
    System.out.println("Inside createRecord");
    System.out.println("getSourceValue()"+getSourceValue());
    if ( !(getSourceValue()!="")){
    System.out.println("getSourceValue()"+getSourceValue());
    //JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), "Please Scan / Enter value for "+getSourceType());
    } else if ((getUseDataSource()=="N") &&
    (!(getPartNumber()!="")||!(getQuantity()!=""))) {
    System.out.println( "Please Enter Part Number and Quantity");
    //JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), "Please Enter Part Number and Quantity" );
    else{
    Connection con = db.getConnection();
    try{
    try{
    System.out.println("SourceValue: "+sourceValue);
    System.out.println("Hub Name"+getHubName());
    String insertQuery = "begin "+
    " hif_rcv_pkg.create_record(?,?,?,?,?,?,?,?,?,?,?);"+
    "end; ";
    CallableStatement cs = con.prepareCall(insertQuery);
    cs.registerOutParameter(1,Types.VARCHAR);
    cs.registerOutParameter(2,Types.VARCHAR);
    cs.registerOutParameter(3,Types.VARCHAR);
    cs.setString(3,getRcvTxnHeaderID());
    cs.setString(4,getIP());
    cs.setString(5,getUserID());
    cs.setString(6,getHubName());
    cs.setString(7,getSourceType());
    cs.setString(8, getSourceValue());
    cs.setString(9,getUseDataSource());
    cs.setString(10,getPartNumber());
    cs.setString(11,getQuantity());
    cs.execute();
    con.commit();
    String txnHeaderID = cs.getString(3);
    String errorCode = cs.getString(1);
    String errorMessage = cs.getString(2);
    if (errorMessage != null) {
    setErrorMessage(errorMessage);
    } else{
    if (txnHeaderID != null ){
    setRcvTxnHeaderID(txnHeaderID);
    txnRefEnableDisable= " ";
    setComponetEnableDisableStyle("display:none");
    setUseDataSource("Y");
    setSourceValue(null);
    setPartNumber(null);
    setQuantity(null);
    }catch (Exception e) {
    System.out.println("Error "+ e);
    } finally {
    con.close();
    public void updateRcvQty() throws Exception{
    System.out.println("Inside updateRcvQty");
    //System.out.println("RcvRecord: "+rcvRecord.toString());
    updateTxn();
    Connection con = db.getConnection();
    try{
    try{
    System.out.println("SourceValue: "+sourceValue);
    System.out.println("getRcvTxnHeaderID: "+getRcvTxnHeaderID());
    System.out.println("");
    String insertQuery = "begin "+
    " hif_rcv_pkg.update_rcv_qty (?,?,?,?,?,?,?);"+
    "end; ";
    CallableStatement cs = con.prepareCall(insertQuery);
    cs.registerOutParameter(1,Types.VARCHAR);
    cs.registerOutParameter(2,Types.VARCHAR);
    cs.setString(3,getRcvTxnHeaderID());
    cs.setString(4,getIP());
    cs.setString(5,getUserID());
    cs.setString(6,getSourceType());
    cs.setString(7,getSourceValue());
    cs.executeUpdate();
    con.commit();
    //setSourceValue(null);
    }catch (Exception e) {
    System.out.println("Error "+ e);
    } finally {
    con.close();
    public void deleteRecord() throws Exception{
    updateTxn();
    System.out.println("Inside deleteRecord");
    //System.out.println("RcvRecord: "+rcvRecord.toString());
    Connection con = db.getConnection();
    try{
    try{
    System.out.println("SourceValue: "+sourceValue);
    System.out.println("");
    String insertQuery = "begin "+
    " hif_rcv_pkg.delete_record (?,?,?,?,?,?,?);"+
    "end; ";
    CallableStatement cs = con.prepareCall(insertQuery);
    cs.registerOutParameter(1,Types.VARCHAR);
    cs.registerOutParameter(2,Types.VARCHAR);
    cs.setString(3,getRcvTxnHeaderID());
    cs.setString(4,getIP());
    cs.setString(5,getUserID());
    cs.setString(6,getSourceType());
    cs.setString(7, getSourceValue());
    cs.executeUpdate();
    con.commit();
    setSourceValue(null);
    }catch (Exception e) {
    System.out.println("Error "+ e);
    } finally {
    con.close();
    public void updateTxn()throws Exception{
    System.out.println("Inside updateTxn");
    int len = rcvDataArray.size();
    Connection con = db.getConnection();
    try{
    for (int i = 0; i < len; i++) {
    RcvTableDataBean bean = (RcvTableDataBean)rcvDataArray.get(i);
    try{
    System.out.println("Updateing Reference Value: "+ bean.getReferenceValue());
    System.out.println("Updateing Comment Value: "+ bean.getRcvComments());
    System.out.println("Updateing Receiving Qty: "+ bean.getRcvQuantity());
    System.out.println("Updateing Receiving Qty: "+ bean.getRcvQuantity());
    String updateQuery = "begin "+
    " hif_rcv_pkg.update_txn(?,?,?,?,?,?,?,?,?);"+
    "end; ";
    CallableStatement cs = con.prepareCall(updateQuery);
    cs.registerOutParameter(1,Types.VARCHAR);
    cs.registerOutParameter(2,Types.VARCHAR);
    cs.setString(3,getIP());
    cs.setString(4,getUserID());
    cs.setString(5,getRcvTxnHeaderID());
    cs.setString(6,bean.getTxnLineID());
    cs.setString(7,bean.getReferenceValue());
    cs.setString(8,bean.getRcvQuantity());
    cs.setString(9,bean.getRcvComments());
    cs.execute();
    con.commit();
    }catch (Exception e) {
    System.out.println("Error "+ e

    1) Please use code tags in the future. Lengthy, unformatted code isn't likely to read be most people here who are trying to help you for free.
    2) Next time, please use a short, compilable example that demonstrates your problem. Again, that is a lot of code to expect a volunteer to debug.
    3) This does not appear to be a Swing question. Perhaps you should have posted this in one of the web-based forums.
    Good luck.

  • PreparedStatement not working with Oracle

    Hi All,
    I am using preparedStatement in my JDBC code to fetch/insert values from oracle9i database.
    I am checking condition like if a given record does not exist then insert it else update it.
    First time it works when there is no row in database, however for subsequent run it's not able to return me the result though that row exist in database and this resulting in DuplicateKeyException becuase it try to create the row in db again.
    The code is working fine for MySQL DB2 and SQLServer but doesn't work in case oracle 9i
    Here is mycode
    //problem is here 1st time it works next time it is not retunring true though record is there in DB.
    if(isItemExist("1","CORP"))
    updateItem("1","CORP","DESC1");
    else
    insertItem("1","CORP","DESC1");
    public boolean isItemExist(String itemid, String storeid)
    String FIND_SQL = "SELECT item_desc from item where item_id = ? and store_id = ? ";          
    c = utils.getConnection();
    ps = c.prepareStatement();
    int i = 1;
    ps.setString(i++, storeid);
    ps.setString(i++, itemid);
    rs = ps.executeQuery();
    if(rs.next()){
         return true;
    utils.close(c, ps, rs);
    else{
         return false;
    utils.close(c, ps, rs);
    public void createItem(String itemid, String storeid, String item_desc)
    String INSERT_SQL = "INSERT INTO item(item_id,store_id,item_desc)values(?, ?, ?)";
    c = utils.getConnection();
    ps = c.prepareStatement();
    int i = 1;
    ps.setString(i++, itemid);
    ps.setString(i++, storeid);
    ps.setString(i++, item_desc);
    ps.executeUpdate();
    utils.close(c, ps, null);
    public void updateItem(String itemid, String storeid, String item_desc)
    String INSERT_SQL = "UPDATE item SET item_desc = ?, store_id=? WHERE item_id = ?";
    c = utils.getConnection();
    ps = c.prepareStatement();
    int i = 1;
    ps.setString(i++, item_desc);
    ps.setString(i++, storeid);
    ps.setString(i++, itemid);
    ps.executeUpdate();
    utils.close(c, ps, null);
    Kindly suggest what's wrong with code. because same code works with other databse like SQL Server, MySQL but it is not working with oracle9i.

    if(isItemExist("1","CORP"))
    updateItem("1","CORP","DESC1");
    else
    insertItem("1","CORP","DESC1");
    String FIND_SQL = "SELECT item_desc from item where item_id = ? and store_id = ? ";
    ps.setString(i++, storeid);
    ps.setString(i++, itemid);
    String INSERT_SQL = "INSERT INTO item(item_id,store_id,item_desc)values(?, ?, ?)";
    ps.setString(i++, itemid);
    ps.setString(i++, storeid);
    ps.setString(i++, item_desc);
    String INSERT_SQL = "UPDATE item SET item_desc = ?, store_id=? WHERE item_id = ?";
    ps.setString(i++, item_desc);
    ps.setString(i++, storeid);
    ps.setString(i++, itemid);My first guess, looking at the above snippets, would be that the item_id field is a number and not a string and so you should be calling ps.setInt instead of ps.setString when setting that parameter.
    This is only a guess, however, since you have not posted what the actual error is, which will probably give a hint to what the actual error is.

  • Submit buttons not working....:o( - ANY IDEAS??

    okay i got a form - ApplicantForm.jsp and that has two buttons on it...
    'ACCEPT' and 'REJECT'
    the next page - CurrentStatus.jsp - should be brought up but its just not working!
    whenever a button is pressed a blank screen with just the buttons is being brought up and no changes are being made to the database.
    what needs to happen is that it performs the little calculation - and the updates the value in the database...here's the code
    ApplicantForm.jsp
    (the buttons are declared at the top and the logic at the bottom)
    <%@ page import="java.sql.*, java.net.*" %>
    <HTML>
    <HEAD>
    <TITLE>APPLICANT FORM</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
    <FORM NAME = "ApplicantForm">
    <DIV ALIGN = "center">
    <INPUT TYPE = "submit" VALUE = "ACCEPT" NAME = "AcceptButton">
    <INPUT TYPE = "submit" VALUE = "REJECT" NAME = "RejectButton">
    </DIV>
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:fypproject","","");
    Statement st = con.createStatement();
    String forename           = request.getParameter("name");
    String surname           = request.getParameter("surname");
    String email = request.getParameter("email");
    int level = 0;
    String query = "SELECT * FROM Login_Details LD, Personal_Details PD, Education E, Work_Experience WE, Skills S WHERE LD.Email_Address = PD.Email_Address AND LD.Email_Address = E.Email_Address AND LD.Email_Address = WE.Email_Address AND LD.Email_Address = S.Email_Address AND PD.Forename = '" + forename + "' AND PD.Surname = '" + surname + "' AND LD.Email_Address = '" + email + "'";
    ResultSet rs = st.executeQuery(query);
    if(rs.next()) {
    %>
    <TABLE WIDTH="760" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR VALIGN="top">
    <TD WIDTH="610" HEIGHT="130">
    <TABLE WIDTH="610" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR>
    <TD WIDTH="10" HEIGHT="192" VALIGN="top"></TD>
    <TD WIDTH="600" HEIGHT="192" VALIGN="top">
    <TABLE WIDTH="600" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR>
    <TD VALIGN="top">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
              <TR>
              <TD COLSPAN="2"> </TD>
              </TR>          
    <TR>
    <TD COLSPAN="2"><B> <% out.println(rs.getString("Forename")); out.println(rs.getString("Surname")); %></B></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Personal Details</FONT></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Title</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Title")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Forename</FONT></TD>
    <TD WIDTH="334"><% out.println(forename); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Surname</FONT></TD>
    <TD WIDTH="334"><% out.println(surname); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250" HEIGHT="2"><FONT SIZE="2">Date Of Birth</FONT></TD>
    <TD HEIGHT="2" WIDTH="334"><% out.println(rs.getString("DOB")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Sex</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Gender")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Nationality</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Nationality")); %></TD>
    </TR>
              <TR BGCOLOR="#FFFFFF">
              <TD WIDTH="205"><FONT SIZE="2">Marital Status</FONT></TD>
              <TD WIDTH="334"><% out.println(rs.getString("Marital_Status")); %></TD>
              </TR>
              <TR BGCOLOR="#FFFFFF">
              <TD WIDTH="205"><FONT SIZE="2">Do you require a work permit?</FONT></TD>
              <TD WIDTH="334"><% out.println(rs.getString("Work_Permit_Required")); %></TD>
              </TR>
              <TR BGCOLOR="#FFFFFF">
              <TD WIDTH="205"><FONT SIZE="2">Email Address</FONT></TD>
              <TD WIDTH="334"><% out.println(email); %></TD>
              </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Education</FONT></TD>
    </TR>
              <TR>
              <TD COLSPAN="2"><FONT SIZE="2">Secondary Education</FONT></TD>
              </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">Institution(s)</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
    <TR>
    <TD WIDTH="47%"><FONT SIZE="2">Name</FONT></TD>
    <TD WIDTH="37%"><FONT SIZE="2">Location</FONT></TD>
    <TD WIDTH="7%"><FONT SIZE="2">From</FONT></TD>
    <TD WIDTH="9%"><FONT SIZE="2">To</FONT></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Name_1")); %></TD>
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Location_1")); %></TD>
    <TD WIDTH="13%"><% out.println(rs.getString("Institution_From_1")); %></TD>
    <TD WIDTH="23%"><% out.println(rs.getString("Institution_To_1")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Name_2")); %></TD>
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Location_2")); %></TD>
    <TD WIDTH="13%"><% out.println(rs.getString("Institution_From_2")); %></TD>
    <TD WIDTH="23%"><% out.println(rs.getString("Institution_To_2")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">'A' Level or Equivalent</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" VALIGN="top">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" WIDTH="607">
    <TR>
    <TD WIDTH="18"> </TD>
    <TD WIDTH="57"><FONT SIZE="2">Year</FONT></TD>
    <TD WIDTH="250"><FONT SIZE="2">Qualification Name</FONT></TD>
    <TD WIDTH="96"><FONT SIZE="2">Subject</FONT></TD>
    <TD WIDTH="131"><FONT SIZE="2">Grade</FONT></TD>
    </TR>
    <TR>
    <TD WIDTH="18">1</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="18">2</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_2")); %></TD>
    </TR>
                   <TR>
    <TD WIDTH="18">3</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_3")); %></TD>
    </TR>
                   <TR>
    <TD WIDTH="18">4</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_4")); %></TD>
    </TR>
                   <TR>
    <TD WIDTH="18">5</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_5")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_5")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_5")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_5")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
              <TD COLSPAN="2"><FONT SIZE="2">Higher & PostGraduate</FONT></TD>
              </TR>
    <TR>
    <TD COLSPAN="2"><% out.println(rs.getString("Degree_Year_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Qualification</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Qualification_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Subject</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Subject_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Result</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Result_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Expected / Obtained</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_ExpObt_1")); %></TD>
    </TR>
              <TR>
    <TD COLSPAN="2"><% out.println(rs.getString("Degree_Year_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Qualification</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Qualification_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Subject</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Subject_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Result</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Result_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Expected / Obtained</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_ExpObt_2")); %></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Work Experience</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">Employer 1</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#FFFFFF" VALIGN="top">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Employer</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Employer_Name_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Dates</FONT></TD>
    <TD WIDTH="17%"><FONT SIZE="2">From</FONT></TD>
    <TD WIDTH="53%"><% out.println(rs.getString("Start_Date_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"> </TD>
    <TD WIDTH="17%">To</TD>
    <TD WIDTH="53%"><% out.println(rs.getString("End_Date_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Role</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Role_1")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">Employer 2</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#FFFFFF" VALIGN="top">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Employer</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Employer_Name_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Dates</FONT></TD>
    <TD WIDTH="17%"><FONT SIZE="2">From</FONT></TD>
    <TD WIDTH="53%"><% out.println(rs.getString("Start_Date_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"> </TD>
    <TD WIDTH="17%">To</TD>
    <TD WIDTH="53%"><% out.println(rs.getString("End_Date_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Role</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Role_2")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
              <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Other Skills</FONT></TD>
    </TR>
         <TR>
    <TD COLSPAN="2" VALIGN="top">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" WIDTH="807">
    <TR>
                   <TD COLSPAN="2"><FONT SIZE="2">Foreign Languages</FONT></TD>
                   </TR>
                   <TR>
    <TD WIDTH="57"><FONT SIZE="2">Language</FONT></TD>
    <TD WIDTH="250"><FONT SIZE="2">Proficiency</FONT></TD>
    </TR>
    <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Language_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Language_Prof_1")); %></TD>
    </TR>
                                  <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Language_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Language_Prof_2")); %></TD>
    </TR>
                                  <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Language_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Language_Prof_3")); %></TD>
    </TR>
                   <TR>
                   <TD COLSPAN="2"><FONT SIZE="2">IT Skills</FONT></TD>
                   </TR>
                   <TR>
    <TD WIDTH="57"><FONT SIZE="2">Skill</FONT></TD>
    <TD WIDTH="250"><FONT SIZE="2">Proficiency</FONT></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_1")); %></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_2")); %></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_3")); %></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_4")); %></TD>
    </TR>     
                   </TABLE>          
                   </TABLE>
              </TABLE>
         </TABLE>
    </TABLE>
    <%
    if(request.getParameter("RejectButton") != null) {
    level = Integer.parseInt(rs.getString("Level_ID"));
    level = 4;
    String levelString = Integer.toString(level);
    session.setAttribute("email", email);
    session.setAttribute("level", levelString);
    response.sendRedirect("CurrentStatus.jsp");
    else if(request.getParameter("AcceptButton") != null) {
    level = Integer.parseInt(rs.getString("Level_ID"));
    if(level < 4) {
    level = level + 1;
    String levelString = Integer.toString(level);
    session.setAttribute("email", email);
    session.setAttribute("level", levelString);
    else {
    level = 4;
    String levelString = Integer.toString(level);
    session.setAttribute("email", email);
    session.setAttribute("level", levelString);
    response.sendRedirect("CurrentStatus.jsp");
    st.close();
    con.close();
    %>
    </FORM>
    </BODY>
    </HTML>
    CurrentStatus.jsp
    <%@ page import="java.sql.*, java.net.*" %>
    <HTML>
    <HEAD>
    <TITLE>APPLICANT FORM</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:fypproject","","");
    Statement st = con.createStatement();
    String level                = (String)session.getAttribute("level");
    String email = (String)session.getAttribute("email");
    String query = "UPDATE Login_Details SET Level_ID = '" + level + "' WHERE Email_Address = '" + email + "'";
    st.executeUpdate(query);
    %>
    <DIV ALIGN = "center">
    <H2> Candidate status has been moved to: <% out.println(level); %></H3>
    </DIV>
    </BODY>
    </HTML>
    <%
    st.close();
    con.close();
    %>
    any ideas at all??? please??! :o(

    instead of using a submit input try using two button inputs, names can be the same.
    <input type='button' value='accept' name='aButton' onClick='js_func("accept")'>
    <input type='button' value='reject' name='aButton' onClick='js_func("reject")'>
    write a javascript function and catch the value sent and redirect to a controller (a jsp or a servlet) which would re-route the request to your bean
    function js_function(theValue)
    window.location = "controller.jsp?action=" + theValue
    this is how you can make a button act as a submit button. i guess this is your best bet.
    cem.

  • Jsp:setProperty tag is not working

    hi i am working on project online test system when registering the student i want to use the setProperty tag to set the values from the student form into the approproate bean properties but this tag doesn't work instead i have to set all values of bean by calling the respective setter methods and i am using tomcat as web server.
    i am sending the code as well please help me if u can.
    the html coding for student form is
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>registration of student</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#677E7E" text="#AC9E6C">
    <table width="75%" border="1" align="center" bordercolor="#677E7E">
    <tr>
    <td><font size="5">STUDENT REGISTRATION FORM</font></td>
    </tr>
    </table>
    <hr>
    <p> </p>
    <form name="student_registration_form" method="post" >
    <script language="JavaScript" >
    function validateField()
              var
                   sos=document.student_registration_form.StartOfSession.selectedIndex,
                   eos=document.student_registration_form.EndOfSession.selectedIndex,
                   deg=document.student_registration_form.Degree.selectedIndex,
                   sem=document.student_registration_form.Smester.selectedIndex,
                   sec=document.student_registration_form.Section.selectedIndex,
                   rol=document.student_registration_form.RollNo.value,
                   pas=document.student_registration_form.Password.value;
    if(sos==0)
                        alert(" \n You Can Not Leave StartOfSession Field Empty");
    else
              if(eos==0)
                        alert("\n You Can Not Leave EndOfSession Field Empty");
              else
              if(deg==0)
                        alert("\n You Can Not Leave Degree Field Empty");
              else
              if(sem==0)
                        alert("\n You Can Not Leave Smester Field Empty");
              else
              if(sec==0)
                        alert("\n You Can Not Leave Section Field Empty");
              else
              if(rol=="")
                        alert("\n You Can Not Leave RollNo Field Empty");          
              else
              if(pas=="")
                        alert("\n You Can Not Leave Password Field Empty");          
              //document.student_registration_form.EndOfSession.value=="" || document.student_registration_form.Degree.value=="" || document.student_registration_form.Section.value=="" || document.student_registration_form.Smester.value=="" || document.student_registration_form.RollNo.value=="" || document.student_registration_form.Password.value=="")
              else
    if(!(sos==0) || !(eos==0) || !(deg==0) ||
              !(sec==0) || !(Smester==0) ||
              !(document.student_registration_form.RollNo.value=="") ||
              !(document.student_registration_form.Password.value=="")
         //document.forms[0].reset();     
    //checking validity of the password field
    var LengthOfRollNo=pas.length;
                   for(i=0;i++;i<LengthOfRollNo )
                        if(!(pas.subString(i,i++)>0))
                                  alert("please enter numaric value in the password field");
                                  return true;
                   document.student_registration_form.submit();
    self.location='StudentRegistration.jsp';
    //return true;
         student_registration_form.StartOfSession.value="";
    student_registration_form.EndOfSession.value="";
    student_registration_form.Degree.value="";
    student_registration_form.Section.value="";
    student_registration_form.Smester.value="";
    student_registration_form.RollNo.value="";
    </script>
    <table width="76%" border="1" align="center" bordercolor="#677E7E">
    <tr>
    <td width="61%"><font size="3">SESSION</font></td>
    <td width="39%">
    <table width="75%" border="1" bordercolor="#677E7E">
    <tr>
    <td><select name="StartOfSession" size="1">
    <option>Start of Session</option>
    <option>2000</option>
    <option>2001</option>
    <option>2002</option>
    <option>2003</option>
    <option>2004</option>
    <option>2005</option>
    <option>2006</option>
    <option>2007</option>
    </select></td>
    <td bordercolor="#677E7E">TO</td>
    <td><select name="EndOfSession" size="1">
    <option>End Of Session</option>
    <option>2001</option>
    <option>2002</option>
    <option>2003</option>
    <option>2004</option>
    <option>20006</option>
    <option>2007</option>
    <option>2008</option>
    <option>2009</option>
    <option>2010</option>
    <option>2011</option>
    <option>2012</option>
    <option>2013</option>
    <option>2014</option>
    </select></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><font size="3">NAME OF DEGREE</font></td>
    <td><select name="Degree" size="1">
    <option>  </option>
              <option>MCS</option>
    <option>BCS</option>
    <option>BBA</option>
    <option>MBA</option>
    <option>MPA</option>
    <option>BSIT</option>
    <option>MSIT</option>
    <option>BBIT</option>
    <option>MSIT</option>
    </select></td>
    </tr>
    <tr>
    <td>SEMESTER </td>
    <td><select name="Smester" size="1">
    <option>   </option>
              <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    <option>6</option>
    <option>7</option>
    <option>8</option>
    <option>9</option>
    <option>10</option>
    <option>11</option>
    <option>12</option>
    </select></td>
    </tr>
    <tr>
    <td>SECTION</td>
    <td><select name="Section" size="1">
    <option>   </option>
              <option>A</option>
    <option>B</option>
    <option>C</option>
    <option>D</option>
    </select></td>
    </tr>
    <tr>
    <td>ROLL NUMBER (<font size="2">NUMARIC ONLY</font>)</td>
    <td><input type="text" name="RollNo"></td>
    </tr>
    <tr>
    <td>PASSWORD</td>
    <td><input type="password" name="Password"></td>
    </tr>
    </table>
    <table width="12%" border="1" align="center" bordercolor="#677E7E">
    <tr>
    <td><input type="button" name="Submit_bt" value="Submit" onClick="validateField()" /></td>
    </tr>
    </table>
    <p> </p>
    </form>
    <p> </p>
    </body>
    </html>
    and the bean is
    import java.sql.*;
    public class StudentBean
    private String StartOfSession="",EndOfSession="",Degree="",Section="",Smester="",RollNo="",Password="",Status="",LogIn="";
    Connection cn;
    Statement stmt;
    ResultSet rs;
    public StudentBean()
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") ;
    cn=DriverManager.getConnection("jdbc:odbc:intery");
    stmt=cn.createStatement();
    catch(ClassNotFoundException exp)
         System.out.println("class not found while obtaining connection from StudentBean.java");
                   catch(SQLException exp)
                        System.out.println("SQLException araised while obtaining a connection from StudentBean.java");
                   catch(Exception exp)
    System.out.println("exception in obtaining connection from StudentBean.java");
    public String getStartOfSession()
    return StartOfSession;
    public void setStartOfSession(String startofsession)
    StartOfSession=startofsession;
    public String getEndOfSession()
    return EndOfSession;
    public void setEndOfSession(String endofsession)
    EndOfSession=endofsession;
    public String getDegree()
    return Degree;
    public void setDegree(String degree)
    Degree=degree;
    System.out.println("Degree = "+Degree);
    public String getSection()
    return Section;
    public void setSection(String section)
    Section=section;
    public String getSmester()
    return Smester;
    public void setSmester(String smester)
    Smester=smester;
    System.out.println("yar Smesterrrrrr"+Smester+" from StudentBean");
    public String getRollNo()
    return RollNo;
    public void setRollNo(String rollno)
    RollNo=rollno;
    public String getPassword()
    return Password;
    public void setPassword(String password)
    Password=password;
    public String getStatus()
    return Status;
    public void setStatus(String status)
    Status=status;
    public String isRegistered()
    String IsRegistered="";
    LogIn=StartOfSession.concat("-").concat(EndOfSession).concat("-").concat(Degree).concat("-").concat(Section).concat("-").concat(Smester).concat("-").concat(RollNo);
    try
    PreparedStatement ps=cn.prepareStatement("select * from student where username = '"+LogIn+"'");
    rs=ps.executeQuery();
    if(rs.next())
    IsRegistered="registered";
    else
    IsRegistered="notregistered";
    catch(Exception exp)
    IsRegistered="Exception";
    System.out.println(exp+"from isRegistered method of StudentBean.java ");
    return IsRegistered;
    public boolean checkRollNo()
    try
    //rn is used to keep the value of RollNo
    int rn=Integer.parseInt(RollNo);
    catch(Exception exp)
    return false;
    return true;
    public boolean registerStudent()
                   System.out.println("rigisterStudentMethod has been called");
                        LogIn=StartOfSession.concat("-").concat(EndOfSession).concat("-").concat(Degree).concat("-").concat(Section).concat("-").concat(Smester).concat("-").concat(RollNo);
              System.out.println(LogIn);
                   try
              PreparedStatement ps=cn.prepareStatement("insert into student values(?,?,?)");
              ps.setString(1,LogIn);
              ps.setString(2,Password);
              ps.setString(3,"allowed");
              ps.executeUpdate();
              catch(SQLException exp)
    System.out.println(exp+"from StudentBean.java");
    catch(Exception exp)
    System.out.println(exp+"from StudentBean.java");
                                  System.out.println("Exception during insertion of record in student table from StudentBean.java");
                                  return false;
    return true;
    and the jsp page for seting bean property and performing other actions is
    <jsp:useBean id="StudBean" scope="page" class="StudentBean" />
    \\(here <jsp:setPropety name="StudBean" property="*" /> is not working)
    <%
    StudBean.setStartOfSession(request.getParameter("StartOfSession"));
              StudBean.setEndOfSession(request.getParameter("EndOfSession"));
    StudBean.setDegree(request.getParameter("Degree"));
    StudBean.setSmester(request.getParameter("Smester"));
    StudBean.setSection(request.getParameter("Section"));
    StudBean.setRollNo(request.getParameter("RollNo"));
    StudBean.setPassword(request.getParameter("Password"));
    if(StudBean.checkRollNo()==false)
    %>
    <%@ include file="invalid_data_in_rollno_field.htm" %>
    <%
    else
    String IsRegistered=StudBean.isRegistered();
    if(IsRegistered.equals("registered"))
    %>
    <%@ include file="already_registered.htm" %>
    <%
    else
    if (StudBean.registerStudent() && IsRegistered.equals("notregistered") )
    %>
    <%@ include file="successfull_registration.htm" %>
    <%
    else
    %>
    <%@ include file="unsuccessfull_registration_of_student.htm" %>
    <%
    %>
    please tell me where i am making mistake since i have mentioned all the
    form attributes name and the bean attributes name as same.

    I think that all your form parameters must begin with alowercase letters, for example
    startOfSession instead of StartOfSession
    try to rename your selectname paramters.
    Le me know if ti works,
    Giovanni

  • Jsp code is not working after some modification in design why?

    hi,
    I am in the final touch of my course work in jsp.i did all the coding and tested..everything was working properly..after i did some modification in the structure of the page the update query is not working..i dont understand why?
    i am attaching my old page and new page here...plz help me to solve this...
    old page editstudent.jsp
    <html>
    <body>
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat,java.util.Date" %>
    <%
    SimpleDateFormat formatter;
    formatter = new SimpleDateFormat("dd-MM-yyyy");
    String refno=request.getParameter("refno");
         String student=request.getParameter("student");
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con=DriverManager.getConnection("jdbc:odbc:lsmsdsn","","");
         Statement st1=con.createStatement();
    ResultSet rs=st1.executeQuery("select * from sponsordetails where refno='"+refno+"'");
    %>
    <form name=editsponsorform method="POST" action="editsponsor.jsp" >
    <input type="text" name="refno" size="20" value="<%=refno%>"></p>
    <p>Sponsor Name <input type ="text" name="sponsorname" size="50" value="<%=rs.getString(2)%>"></p>
    <p>Sponsor's Address&nbsp<textarea name="sponsorsaddress" rows="5" cols "80" tabindex="10"><%=rs.getString(3)%></textarea></p>
    <p>Sponsor's Phoneno <input type ="text" name="sponsorsphoneno" size="30" value="<%=rs.getInt(4)%>"></p>
    <p>Sponsor's Fax <input type ="text" name="sponsorsfax" size="30" value="<%=rs.getInt(5)%>"></p>
    <input type="submit" name="b1" value="Save & Continue" >
    <input type="Reset" name="b2" value="Cancel "onClick="window.location='home.html'">
    old page editsponsor.jsp
    <html>
    <body>
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat,java.util.*" %>
    <%
    String refno=request.getParameter("refno");
    String sponsorname=request.getParameter("sponsorname");
    String sponsorsaddress=request.getParameter("sponsorsaddress");
    String d=request.getParameter("sponsorsphoneno");
    int sponsorsphoneno=Integer.parseInt(d);
    String d1=request.getParameter("sponsorsfax");
    int sponsorsfax=Integer.parseInt(d1);
    Connection con =null;
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con=DriverManager.getConnection("jdbc:odbc:lsmsdsn","","");
         PreparedStatement st=con.prepareStatement("update sponsordetails set sponsorname= ?,sponsorsaddress=?,sponsorsphoneno=?,sponsorsfax=? where refno=?");
    st.setString(1,sponsorname);
    out.println(sponsorname);
    st.setString(2,sponsorsaddress);
    st.setInt(3,sponsorsphoneno);
    st.setInt(4,sponsorsfax);
    st.setString(5,refno);
    st.executeUpdate();     
         st.executeUpdate();
         out.println("record updated successfully"+"<A HREF='loginhtml.html'>login page</A>.");
    finally {
         try {
              if (con !=null) {
              con.close();
         catch (SQLException se)
         out.println(se.getMessage());
    %>
    </body>
    </html>
    New page editstudent.jsp
    <html>
    <body>
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat,java.util.Date" %>
    <%
    SimpleDateFormat formatter;
    formatter = new SimpleDateFormat("dd-MM-yyyy");
    String refno=request.getParameter("refno");
         String student=request.getParameter("student");
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con=DriverManager.getConnection("jdbc:odbc:lsmsdsn","","");
         Statement st1=con.createStatement();
    ResultSet rs=st1.executeQuery("select * from sponsordetails where refno='"+refno+"'");
    %>
    <form name=editsponsorform method="POST" action="editsponsor.jsp" onSubmit="return validateEditsponsorform()">
    <table width="821" border="1" align="center" bordercolor="#F8F8F8" bgcolor="#F5F5F5">
    <tr>
    <td colspan="6" bgcolor="#CCCCCC"><p class="style6"> </p>
    <p class="style6"> </p>
    <p class="style6"> </p></td>
    </tr>
    <tr>
    <td width="130">Ref No:</td>
    <td width="158">
    <input type="text" name="refno" disabled="true" value="<%=refno%>" />
    </td></tr>
    <tr>
    <td width="130">Sponsor Name</td>
    <td width="158">
    <input type="text" name="sponsorname" value="<%=rs.getString(2)%>"/>
    </td></tr>
    <tr>
    <td>Sponsor's Address:</td>
    <td>
    <textarea name="sponsorsaddress" cols="20" rows="5"><%=rs.getString(3)%></textarea>
    </td></tr>
    <tr>
    <td>Sponsor's Phone No:</td>
    <td>
    <input type="text" name="sponsorsphoneno" value="<%=rs.getInt(4)%>"/>
    </td></tr>
    <tr>
    <td>Sponsor's Fax:</td>
    <td>
    <input type="text" name="sponsorsfax" value="<%=rs.getInt(5)%>" />
    </td></tr>
    <tr>
    <td>
    <input type="submit" name="b1" value="Submit & continue" />
    </td>
    <td><label>
    <input type="reset" name="b2 " value="cancel" onClick="window.location='home.html'" />
    </td>
    </tr>
    </table>
    </form>
    new page editsponsor.jsp
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Edit</title>
    <style type="text/css">
    <!--
    .style2 {
         color: #CC6600;
         font-weight: bold;
         font-size: small;
    .style4 {
         color: #0000CC;
         font-weight: bold;
         font-size: large;
    -->
    </style>
    </head>
    <body bgcolor="#F5F7F4" topmargin="0">
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat,java.util.*" %>
    <div align="center">
    <table width="800" border="0" cellpadding="0" cellspacing="0" bgcolor="#FBFCFF">
    <!--DWLayoutTable-->
    <tr>
    <td height="150" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <!--DWLayoutTable-->
    <tr>
    <td width="800" height="139" valign="top"><img src="images/banner copy.jpg" width="800" height="150" /></td>
    </tr>
    </table>
    <%
    String refno=request.getParameter("refno");
    String sponsorname=request.getParameter("sponsorname");
    out.println(sponsorname);//i am getting the values here.............
    String sponsorsaddress=request.getParameter("sponsorsaddress");
    out.println(sponsorsaddress);
    String d=request.getParameter("sponsorsphoneno");
    out.println(d);
    int sponsorsphoneno=Integer.parseInt(d);
    out.println(sponsorsphoneno);
    String d1=request.getParameter("sponsorsfax");
    int sponsorsfax=Integer.parseInt(d1);
    out.println(sponsorsfax);
    Connection con =null;
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con=DriverManager.getConnection("jdbc:odbc:lsmsdsn","","");
    PreparedStatement st=con.prepareStatement("update sponsordetails set sponsorname= ?,sponsorsaddress=?,sponsorsphoneno=?,sponsorsfax=? where refno=?");
    st.setString(1,sponsorname);
    out.println(sponsorname);
    st.setString(2,sponsorsaddress);
    st.setInt(3,sponsorsphoneno);
    st.setInt(4,sponsorsfax);
    st.setString(5,refno);
    st.executeUpdate();
         out.println("record updated successfully"+"<A HREF='loginhtml.html'>login page</A>.");
    finally {
         try {
              if (con !=null) {
              con.close();
         catch (SQLException se)
         out.println(se.getMessage());
    %>
    </body>
    </html>
    the database is not updating...its updating when i am giving values directly to update query..why?help me plzzz..
    thanks in advance

    ashish1234 wrote:
    hi,
    I am in the final touch of my course work in jsp.i did all the coding and tested..everything was working properly..after i did some modification in the structure of the page the update query is not working..i dont understand why?
    i am attaching my old page and new page here...plz help me to solve this...
    the database is not updating...its updating when i am giving values directly to update query..why?help me plzzz..With all that Java code in your JSPs, it doesn't look like you are in the final touch of learning JSP, but just at the beginning. Try to move all that java code into Servlets and JavaBeans. The JSP should be all about display, and nothing else.
    What is your problem? I don't know. All that unformatted code is un-readable. On top of being scriptlet code which is hard enough to read.
    You should search the logs to see if there is an error message hidden in there. That is one of the major problems with putting regular Java code in JSPs, the error messages get hidden, and become near impossible to translate.

  • Select condition not work, possible mistake

    I have simple select like
    String sStatus=req.getParameter("processStatus")==null?"":req.getParameter("processStatus");
    I can get the value of
    sStatus
    but my else is not working, what is the possible mistake?
    if(sStatus.equals("#"))
    Sql+=" and basicStatus=1 order by family_income asc ";                              
    else
    Sql+=" and basicStatus=1 and ProcessStatus='"+sStatus+ "' order by family_income asc ";                         
    I try sql in db db like and basicStatus=1 and ProcessStatus='"New' order by family_income asc      it work fine, so??
    Thank you

    Hi jverd,
    thank you fot the reply, but before I only nedd to executeQuery my sql once, but, if I use PreparedStatement, then I have to
    executeQuery as many as the conditions I have , any way, right now I change my code to
    String Sql="SELECT * FROM student2 as s, student_financial_info2 as f where s.student_id=f.student_id ";
                    //search for Id, so we don't care about status and how many row in one page
                    if (university_ID !=""){                   
                              Sql+=" and s.student_id=? order by family_income asc ";
                              ps = conn.prepareStatement(Sql);
                              ps.setString(1,university_ID );
                              ps.executeUpdate();
                              connectionPool.returnConnection(conn);
                    //for group search
                    else{
                       if(search.equals("All")){              
                            if(basicStatus.equals("basicStatus"))                     
                                 Sql+=" and ProcessStatus=? and basicStatus=? order by family_income asc ";
                                          Sql+=" limit " + currentRow + ",100"; 
                                          ps = conn.prepareStatement(Sql);
                                             ps.setString(1, FStatus);
                                             ps.setInt(2,1);
                                             ps.executeUpdate();
                                             connectionPool.returnConnection(conn);        
                       //for department search
                        else{
                            if(basicStatus.equals("basicStatus")){
                              Sql+=" and faculty =? and ProcessStatus=? and basicStatus=? order by family_income asc";
                              ps = conn.prepareStatement(Sql);
                              ps.setString(1,  search);
                               ps.setString(2, FStatus);
                               ps.setInt(3,1);
                               ps.executeUpdate();
                                connectionPool.returnConnection(conn);}
                            else{
                              Sql+=" and faculty ='"+search+ "' order by family_income asc";
                              ps = conn.prepareStatement(Sql);
                              ps.setString(1,  search);
                              ps.executeUpdate();                 
                                connectionPool.returnConnection(conn);
                    }// out elseI get error on String Sql="SELECT * FROM student2 as s, student_financial_info2 as f where s.student_id=f.student_id ";
              //search for Id, so we don't care about status and how many row in one page
              if (university_ID !=""){                   
                        Sql+=" and s.student_id=? order by family_income asc ";
                        ps = conn.prepareStatement(Sql);
                        ps.setString(1,university_ID );
                        ps.executeUpdate();
                        connectionPool.returnConnection(conn);
              //for group search
              else{
              if(search.equals("All")){              
                   if(basicStatus.equals("basicStatus"))               
                        Sql+=" and ProcessStatus=? and basicStatus=? order by family_income asc ";
    *                    Sql+=" limit " + currentRow + ",100";*
    *                    ps = conn.prepareStatement(Sql);*
    *                                   ps.setString(1, FStatus);*
    *                                   ps.setInt(2,1);*
    *                                   ps.executeUpdate();*
    *                                   connectionPool.returnConnection(conn);*
              //for department search
              else{
                   if(basicStatus.equals("basicStatus")){
              Sql+=" and faculty =? and ProcessStatus=? and basicStatus=? order by family_income asc";
                   ps = conn.prepareStatement(Sql);
                   ps.setString(1, search);
                        ps.setString(2, FStatus);
                        ps.setInt(3,1);
                        ps.executeUpdate();
                        connectionPool.returnConnection(conn);}
                   else{
                   Sql+=" and faculty ='"+search+ "' order by family_income asc";
                   ps = conn.prepareStatement(Sql);
                   ps.setString(1, search);
                   ps.executeUpdate();           
                        connectionPool.returnConnection(conn);
              }// out else
    I got error on the blod part JDBC error:Parameter index out of range (1 > number of parameters, which is 0).
    java.sql.SQLException: Parameter index out of range (1 > number of parameters, w
    hich is 0). How com the index is start on 0?
    Thank you

  • None of the links or buttons do not works after change the name of the page

    hi,
    I made some modifications on the original page and changed its orijinal name LoaSummaryPG to XXLoaSummaryPG. Although all of the components are the same as the orijinal one, none of the links and buttons are not working in the newly copied page. Neither only changing the name LoaSummaryPG to XXLoaSummaryPG nor creating a new page with a name XXLoaSummaryPG did not work.
    A page works with no error and the data shown is correct when it opened.
    Is it about regionMap.xml? or what can i do?

    I can't make any other action in the page. Now, I can only say that al actions in the page except about this page link and personalization link cause this error.
    Errors are below.
    oracle.apps.fnd.framework.OAException: java.sql.SQLException: ORA-20002: 3000: Invalid value(s) passed for arguments. ITEMTYPE=NULL ITEMKEY=NULL ANAME=HR_FIRST_ACTIVITY_ID ORA-06512: at "APPS.WF_ENGINE", line 1664 ORA-06512: at line 1 at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891) at oracle.apps.fnd.framework.webui.OANavigation.getItemAttrText(OANavigation.java:2088) at oracle.apps.fnd.framework.webui.OANavigation.getItemAttrText(OANavigation.java:2040) at oracle.apps.per.selfservice.loa.webui.AbsenceSummaryCO.processFormRequest(AbsenceSummaryCO.java:402) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:408) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAFlowLayoutBean.processFormRequest(OAFlowLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1156) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2658) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423) at oa_html._OA._jspService(_OA.java:88) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:534) ## Detail 0 ## java.sql.SQLException: ORA-20002: 3000: Invalid value(s) passed for arguments. ITEMTYPE=NULL ITEMKEY=NULL ANAME=HR_FIRST_ACTIVITY_ID ORA-06512: at "APPS.WF_ENGINE", line 1664 ORA-06512: at line 1 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:589) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1972) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119) at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2185) at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2059) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2976) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:656) at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:734) at oracle.apps.fnd.framework.webui.OANavigation.getItemAttrText(OANavigation.java:2075) at oracle.apps.fnd.framework.webui.OANavigation.getItemAttrText(OANavigation.java:2040) at oracle.apps.per.selfservice.loa.webui.AbsenceSummaryCO.processFormRequest(AbsenceSummaryCO.java:402) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:408) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAFlowLayoutBean.processFormRequest(OAFlowLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1156) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2658) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423) at oa_html._OA._jspService(_OA.java:88) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:534) java.sql.SQLException: ORA-20002: 3000: Invalid value(s) passed for arguments. ITEMTYPE=NULL ITEMKEY=NULL ANAME=HR_FIRST_ACTIVITY_ID ORA-06512: at "APPS.WF_ENGINE", line 1664 ORA-06512: at line 1 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:589) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1972) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119) at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2185) at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2059) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2976) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:656) at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:734) at oracle.apps.fnd.framework.webui.OANavigation.getItemAttrText(OANavigation.java:2075) at oracle.apps.fnd.framework.webui.OANavigation.getItemAttrText(OANavigation.java:2040) at oracle.apps.per.selfservice.loa.webui.AbsenceSummaryCO.processFormRequest(AbsenceSummaryCO.java:402) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:408) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAFlowLayoutBean.processFormRequest(OAFlowLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1156) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2658) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423) at oa_html._OA._jspService(_OA.java:88) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:534)

  • SQL UPDATE does not work

    Hey Guys,
    I have an update sql query which does not work with PreparedStatement object. Heres the code snippet:
    PreparedStatement pstmt;
    int numUpd;
    pstmt = con.prepareStatement(
    "UPDATE item_articles SET dataFile=? WHERE itemID=?");
    con.setAutoCommit(false);
    pstmt.setBinaryStream(1,fis,(int)file.length());
    pstmt.setInt(2,item.id);
    numUpd = pstmt.executeUpdate();
    con.commit();
    What I am doing here is that setBinaryStream(...) will upload a file into the DB. The query executes, theres no exception thrown, but my table shows empty field for the file. Note, there are no exceptions thrown from this query.
    If I do the same thing for an INSERT statement, it works. The file gets into the DB. So , the file is there on disk, and theres no problem with it. Just that it does not work with UPDATE.....any clues ???
    thanks
    Askar

    I think UPDATE commands dont work well with blobs.
    I use to select the register with a ResultSet, then get a BLOB Object from the column.
    So you can use a OutputStream to Upload your data.

  • PrepareStatement does not work

    Hi,
              I am using prepareStatement in Javacode.
              The database is Oracle 8.1.6.3.
              The column type is number(10).
              I am trying to update one column in this table by passing bind variable in.
                   sb.append("update tnp_trackable ");
                             sb.append("set poll_int=");
                             sb.append(pollInt);
                             sb.append(", update_time=sysdate ");
                             sb.append(" where tnp_track_id=?");
                             PreparedStatement pst = conn.prepareStatement(sb.toString());
              pst.setLong(1, trackID);
                                  pst.executeUpdate();
              ChecK db, no updates happen. But if I change to createStatement, it works.
              Could you help me figure out WHY
              Thanks
              Stacy
              

    Learning how to program by using JDBC and JSP is going to be very difficult.
    It does not work.It tells you why if you print the exception.
    1. int TestNumber=123;
    2. String sqlqry = "select ... from timeTable where EventID = TestNumber";
    The literal 'TestNumber' in lines 1 and 2 have absolutely NOTHING to do with each other. In line one it is a java variable. In line two it is an sql identifier which has no meaning and thuse it will cause an exception.

  • Update on MS Access DB does not work

    Hi everybody!
    Any ideas, why this UPDATE Statement does not work?
    Statement s = con.createStatement();
                   //Update Statement
                   String updateString = "UPDATE Attends " +
                                                                          "SET Date = '12.05.2004' " +
                                                                          "WHERE LVA LIKE 'NET4'";
                   s.executeUpdate(updateString);
                   s.close();
    The Table Attends consists out of 3 columns, MatNr --> Type: Text, LVA --> Type: Text and Date--> Type: Date (also tested as Text, does not work either)
    The column Date is empty, updates on the column matNr and LVA work perfect, but why not on Date?
    I always get an Java.SQL.Error -> Syntax Error...
    Thx in Advance!
    Stef

    Having a column named Date is a terrible idea. It's a keyword in every database. Change that to something more meaningful for your problem. I'll assume you'll call it AttendanceDate.
    Use PreparedStatement - it'll escape that Date properly for you:
    String attendanceDateAsStr = "12.05.2004";
    DateFormat format = new SimpleDateFormat("MM.dd.yyyy");
    java.util.Date attendanceDate = format.parse(attendanceDateAsStr);
    String updateString = "UPDATE Attends SET Date = ? WHERE LVA LIKE ?";
    PreparedStatement s = con.prepareStatement(updateString);
    s.setDate(1, new java.sql.Date(attendanceDate.getTime()));
    s.setString(2, "NET");
    int numRowsUpdated = s.executeUpdate(updateString);
    s.close(); %

  • Not work tablet UI on Prestigio 5080 PRO tablet

    I read that browser.ui.layout.tablet = "1" can fix this problem. But it not works. I can work only in pnone interface that is not good for my 8'' tablet.

    Would it be possible for you to share the problematic pdf and OS information  with us at [email protected] so that we may investigate?
    Thanks,
    Adobe Reader Team

  • Why self-defined access sequences of free goods can not work?

    Hi gurus,
    I have maintained access sequences of free goods self-defined.but when i creat the SO it does not work!
    when i used the standard access sequences ,it is OK .
    Can anybody tell me why?
    thanks in advance

    Dear Sandy,
    Go to V/N1 transaction select your self defined access sequence then go in to the accesses and fields and check all fields are activated.
    Make sure that these fields are flowing in your sales order.
    I hope this will help you,
    Regards,
    Murali.

  • Adobe bridge raw not working with windows vista in photoshop cc, why?

    adobe bridge raw not working in photoshop cc, is there a fix?

    Your sure your using photoshop cc on windows vista?
    I was under the impression that photoshop cc would not even install on windows vista.
    What version of camera raw do you have?
    In photoshop under Help>About Plugin does it list Camera Raw and if so which version is it?
    (click on the words Camera Raw to see the version)
    Camera raw doesn't work if it's a camera raw file or some other file type such as jpeg or tif?
    What camera are the camera raw files from?
    Officially camera raw 8.3 is the latest version of camera raw that will work on windows vista.

Maybe you are looking for

  • Photoshop CC Color Picker slow lag

    Today I got a new Intuos Pro Medium and installed the latest software from Wacom (6.37-5 - I think.)  I am not sure if this is related, but I am experiencing an extreme slow-down / lag when I attempt to use the color picker to change the foreground c

  • Ipod won't recognise, sync, or charge!

    the other day, i realised my ipod was flat out of battery, so i plugged it into my computer and then left it, assuming that it would charge.. like usual! so i checked up on it 5 minutes later.. and to my horror, the ipod had heated up, it wasnt on, n

  • ROADMAP SAP B1 - 2014

    Senhores, Estou procurando o Road map do B1, porém não encontro... Alguém sabe o link correto? (Melhor seria em português). att Raphael Lucena

  • Personalize email disclaimer in exchange 2010 with alias?

    Hello all,I would like to notify everyone in my email disclaimer that our email domain will be changing. I need the old email and the new email address for this. I can use %%Email%% but is there a way I can use the alias alone? I think it can't be do

  • Symantec endpoint protection agent deployment via SCCM 2012

    Hello to all the members. I am trying to deploy SEP agent . I have exported the msi package . But Whenever I try to deploy it its is not being deployed. In the DP's it shows that the content could not be copied to the endpoints. Please tell me how ca