Modify or delete record via WEB

hi,
I've just created a simple jsp page that connect to a database and get data from it. Here no problem.
Then I modified the code in order to modify the records in the database. Also here no problem.
Then I've add a second link that allow me a second choice: delete the record.
Here the scheme of the page I'm receiving as soon I try to get the data from the database
Name | last name | job | Telephone | Modify | delete | <- header
david | Wall | eng| 7777 | Modify | <HTML>
<%@ page language="java" import= "java.sql.*" %>
<HEAD>
<%
Connection con=null;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:Agenda_ODBC");
catch (ClassNotFoundException e){
System.out.println("Impossible load the driver: "+ e);
%>
<TABLE BORDER="1">
<TD>Name</TD>
<TD>lastname</TD>
<TD>job</TD>
<TD>Telephone</TD>
<TD>Modify</TD>
<TD>delete</TD>
</TR>
<%
try{
Statement st = con.createStatement();
ResultSet rs = st.executeQuery("select * from anagrafica");
while(rs.next()){
%>
<TR>
<TD><%=rs.getString(2)%></TD>
<TD><%=rs.getString(3)%></TD>
<TD><%=rs.getString(4)%></TD>
<TD><%=rs.getString(5)%></TD>
<TD><a href="modify.jsp?ID=<%=rs.getString(1)%>">Modify</a></TD>
<TD><a href="delete.jsp?ID=<%=rs.getString(1)%>">delete</a></TD>
</TR>
<%
rs.close();
st.close();
con.close();
catch (SQLException e){
System.out.println("Errore SQL: "+ e);
%>
</TABLE>
</BODY>
</HTML>

and the question is ?

Similar Messages

  • Captivate Video Recording via web cam?

    Is it possible to do Captivate Video Recording via USB web cam? All I can see so far is about its ability to record screens and applications, but not do an actual video recording via a video camera input. Audio is no problem allowing you to insert audio from a file or do a live audio insert. Video however seems limited to insert from a file only. This would seem to imply you need a separate video recording application to capture video via a camera input, which is obviously disappointing if that's the case.

    Thanks. Hopefully they will add this basic functionality to Captivate ASAP. It's a missing fundamental element. i.e. to be able to add video annotation to your slides. Lectora Publisher does it and so should Captivate in my view, given it's supposed to be among or overall ahead of the leading products. Seamless audio / video annotation is a very common requirement nowadays.

  • Can not access DVR or program DVR to record via web or apps

    I can not access my DVR remotely via a PC or via the apps.  I get a message that says cannot connect to your DVR right now, try again later.  It has been like this for weeks.  I called tech and they reset all the boxes, the ONT, I removed the COAX etc. rebooted and cleared router.  The box can be seen online though just not the DVR.  Also, on screen caller id does not work and the fix application does not fix it either.

    It seems like I lose web access to the DVR every week.
    I either have to unplug the DVR or have Verizon send a reboot signal. Even that doesn't work every time. It is a really annoying and inconvenient problem.

  • Update/insert/delete data from xcelsius to Database via web service

    Hi,
    I need to create dashboard that go function can <b>update/insert/delete</b> data send to <u>Database</u> thru <u>web services</u>, as i know got 2 xcelsius add-on software which support those of function <b>InfoBurst</b> and <b>flynet </b>
    <b>InfoBurst</b>
    http://www.infosol.com/azbocug/minutes/4-Writeback%20to%20a%20Database%20with%20Xcelsius.pdf
    <b>flynet </b>
    http://www.flynetviewer.com/public/community/Blogs/FlynetXcelsiusServerUser/default.aspx
    Except this 2 purchase add-on xcelsius, any other solution ?  
    Maybe need to write some in MSSQL or C# programming which enable insert, update, delete ...etc  ?
    *note: i not use Xcelsius Engage Server , i use Xcelsius Engage only
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Mar 1, 2011 6:06 AM

    Hi,
    As of now in Xcelsius/Dashboard Design there is no feature or functionality to insert/update/delete data from database.
    Solution:
    Create a Web service in let’s say C# or Java, which will perform insert/update/delete operation.
    In Xcelsius add Web Service connection and user above web service.
    Xcelsius Web Service connection provides option to pass input values to a Web Service (Input Pane) and get the result (Output values pane).
    We can pass values to be written to the database as a input to Web Service via Web Service connection from Xcelsius and write data to the database.
    Note:
    Performing delete operation from Xcelsius Dashboard could be risky and may delete important data from database. I would not prefer giving delete option/functionality in Xcelsius dashboard.
    Hope this helps!
    Thank you.
    Regards,
    Vinay Mhaske

  • How can I o create, modify or delete users using OIM 11g web services?

    Hi,
    I have a requirement to create, modify or delete users using OIM 11g web services.
    The end users will be signing on to the online application, a user interface to request ids online. The user interface is the home grown application to request ids.
    I want to integrate this user interface with OIM 11g. I generated the java classes using the out of the box wsdl file as mentioned in the Developer’s Guide for Oracle Identity Manager 11g. But I need to know how to create users using web server client from a given wsdl file? Is there a sample web service client program to create a user in OIM?
    If you know of any document which I can follow or if you can give any details I really appreciate.
    Thanks and Regards,
    Viraf

    Hi Chong,
    Were you able to figure out the approach? I am facing the same issue like this. I have created a web service where the input values are no. of days to extend user's end date and user's employee ID. Output will be true or false. But I am getting error while searching user in OIM DB. I think my web service is not to query OIM DB
    Please let me know if you have worked on this senario.
    Thanks,
    Kalpana.

  • Deletion of QUery view via Query Designer or via Web interface

    Hi,
    We have deployed SAP BI 7 with Web access only for user.
    Only some Key users are allowed to use Query Designer.
    In fact, all users can create view through Web analyzer. However, they have no way to delete these views.
    It appears that view deletion is only available through Bex Analyzer...
    Does anybody know a way to delete view from Web analyzer or at least through query designer ?
    Thanks for your answers,
    Regards
    Erick

    hi,
    If you want to delete the view in web then you need to change your web template
    http://help.sap.com/search/highlightContent.jsp
    Check the following links
    Web Application Designer for Beginners
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22
    Web Application Solutions: A Designer's Guide
    http://www.lukew.com/resources/webapplicationsolutions.pdf
    http://sap.ittoolbox.com/groups/technical-functional/sap-solution-manager/bw-web-application-designer-1955944
    Feautures of WAD in 7.0
    http://help.sap.com/saphelp_nw70/helpdata/en/88/4d354277dcb26be10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46376d-0601-0010-83bf-c4f5f140e3d6
    regards
    abi

  • Deleting records from Z table via an ABAP

    Hello hoping someone can help me
    I am about to start writing an abap that will delete records from three seperate z tables that have been in there for over 18 months.
    Hoping that someone can give me a shove in the right direction to start me off as never had to do anything like this before.
    Iv had a search through the forum but cant seem to find what im after
    Thanks

    Hi,
    The below statement will do the purpose.
    DELETE zcustom FROM TABLE ITAB.

  • Chage Call list via WEB UI

    Hi experts
    in interaction center, the users can see the call lists assigned, but they can't modify it.
    So, is possible change/delete call lists via WEB UI??? For example add a call at the list, or delete all the call list??
    Best regards
    Marco

    Hi,
    Starting CRM 7.0 SP4 a lean version of the Call List Management application was developed.
    It does not cover all the functionality of the SAP GUI application.
    Here is a list of features that are covered in this version of the WebUI application:
    - Quick search
            View options: tile layout and editable overview page with assignment block
    - Advanced search
            View options: tree view and table view
    - Creation of new call lists
    - Edit existing call lists
          Update contact persons: When editing a call list, you can update the contact persons. By default, the relationship type Has contact person is considered. Contact persons for whom the Do not contact checkbox is selected, are not added to the list of contact persons.
    The following tabs are available:
    Call List Details
    Execution Progress
    Assignment
    You can create and delete assignments.
    Calls (display only)
    Business context (display only)
    If you are interested in using this lean version you must upgrade to CRM 7.0 SP4, where this functionality has been made available or else you can always carry on with the SAPGUI version of the transaction CRMD_TM_CLDIST.
    Hope this information helps.
    Best Regards,
    Vinod

  • What is the best approach to track deleted records

    Dear all,
    We have build a CMS platform which is based on SQL server 2012 tables structure hosted in Azure.
    We have build on top of this some REST API method in order to access data from any type of client application.
    The issues we need to solved now is what his the best way to track deleted records in order that client application gets informed through web service about deleted data from our CMS.
    We were thinking of 2 path actually :
    - having a kind of Ghost table for each of our real table where deleted records will be inserted into ( physical delete ). This would mean adding as many Ghost tables as we have production tables
    - Adding a IsDeleted flag to each of our table which will be set to true when a record is deleted from our CMS ( logical delete ). This would means adding an IsDelete field to each of our tables, create and update all our store procedure and web services
    in order to taken in account that new filter criteria to fetch our records. Quite huge job
    Will there be any other approach ?
    We are looking the best solution with minimum impact on our current solution
    reagards
    Your knowledge is enhanced by that of others.

    Hello,
    @Tom, based on your question
    "The question would be what do you need to do with the deleted records and how long do you need to keep them?"
    When records is deleted, then I simply want to delete them and informed any client application about deleted items in order to get data in Sync. I will not have any reporting on deleted data !
    The only reason of tracking delete tables items, is simply to informed client application through web service sync about the data to be ignored. Client application have a caching database records for performance reason and is is require to not used data
    from that local storage which has been reported as deleted by the SQL server on Aure.
    Does this make sense ?
    regards
    Your knowledge is enhanced by that of others.

  • Cannot install IPA on my ios 5 devices."A signed resource has been added, modified, or deleted."

    Hi guys..
    I've spent the last 3 hours wrestling with this.
    I'm using flexbuilder 4.6 on pc, with air 3.1.
    I'm using my mac to do the installation on the device.
    I used to be able to deploy the ipa files output by flashbuilder 4.6 to my ipad, and iphone. I cannot anymore. I don't know if it's because of ios 5, or lion, or what..
    I could never install the ipas in windows,
    I always used the iphone configuration utility in os x to install; but now I get "A signed resource has been added, modified, or deleted." every time I try.
    Same thing happens in xcode organizer.
    If I try via itunes it just creates the app icon on my ipad in loading state and never finishes.
    Things I've done:
    I've created entirely new provisioning profiles and app ids,
    I've verified that the profiles are indeed valid: I did this by changing app identifiers for some of my cocoa/xcode projects),
    I've turned on/off devices/computers etc.
    I can't tell you how utterly frustrating a night it has been, especially seeing as the turn around time to verify in xcode for cocoa apps is about 20 seconds, but the workflow with air is like 5 mintues a time. and each time ends with no hint whatsoever as to what is wrong.
    Is there anyone else out there who's had this and worked around it - or someone who can put me out of my misery.
    I literally can't do any testing at all right now... wtf..

    Hi George:
    Answers to following will help.
    1. Can you confirm that this is iOS 5 specific? (I mean do you see app being installed on iOS 4.X but not on iOS 5?)
    2. Can you tell us what all things are you packaging along with App Descriptor and App SWF?(And overall size of assets?)
    3. your mobileprovision file is not modified. If you havent done this already, you can try by downloading the provision again from store.

  • Deleting Record from Database in PHP

    I'm trying to figure out how to delete a record from my
    database. I already have a recordset with my form selected. But
    when I try to add "Delete Record," I can never seem to figure out
    why it won't delete anything when I load the page in a browser, it
    won't even go to the page I told it to go to after it deletes a
    record. My guess is it's what I'm entering in the "Delete Record"
    part of it, any help would be great. Also, my id is primary key if
    that helps. Thanks ahead of time.

    edwin@aw wrote:
    > However, whenever I click on the hyperlink, the link
    will becomes
    >
    http://www.domain.com/www.LinkFromDatabase.com.
    Why it always append the web
    > site's address?? Do I miss something?
    This is happening because your link doesn't begin with
    http://.
    > echo "<a href='$link' target='_blank'> $link
    </a>";
    This should be echo "<a href='
    http://$link' target='_blank'> $link
    </a>";
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Deleting Records based on status in another table

    Dear All,
    I am using oracle 11gR1 on Linux.
    We have two tables one holding year starting and closing dates with year status as open/closed for multiple years and multiple entities. Any year may be open for an entity.
    Relevant columns/Pk
    PK: entity_id, fin_year_id
    Cols: year_st_dt, year_end_dt, year_status
    We have another table where monthly summarized information is stored via scheduled procedure. Currently the procedure deletes all records and inserts new records.
    Relevant columns/Pk
    Cols: entity_id, year_month
    What we want is that the procedure should not delete records that related to financial years that are closed.
    How would I write a delete statement to do that?
    Regards, Imran

    Hi,
    957 posts, but still while posting a question, you have not
    1) Posted the table structure of all the tables involved. (create statement)
    2) Posted the sample input (insert statement)
    3) Posted the sample output.
    4) More importantanly posted on the correct forum.
    Regards
    Anurag Tibrewal.

  • Idoc error - Modify or delete Source List - any ideas experts PLZ?

    Hi experts,
    I create a source list record by using Idoc with segments E1EORDH and E1EORDM
    the source list record is correctly created in database
    <u>=> the problem is when I try to modify or delete this source list record</u>
    <b>Error message (always the same) : Please reconcile source list</b>
    I try to use different codes is msgfn but it dont work
    I think this message appear may be cause the source list record already exist..... and I want to modify or delete it, but it dont work
    Please, help me experts
    Thank you in advance

    Hi there,
    I am also currently encountering this same message and not sure what is wrong.
    Does anyone have any idea or resolution?
    Thank you.
    Cheers,

  • Problem in modifying the existing record in table control

    Hi Experts,
    I have one table control.I have entered one record and save it.When I am modifying the same record a duplicate record is created.I need if I modify the same record that record should only modify.How to delete the duplicate record.

    Hi,
    In Flow logic.
    LOOP .                        
      MODULE tbc_modify ON CHAIN-REQUEST.
      MODULE tbc_mark.     
    ENDLOOP.    
    In module.
    MODULE tbc_modify INPUT.
      MODIFY t_data
        FROM fs_data
       INDEX tbc-current_line.
      IF sy-subrc NE 0.
        APPEND fs_data TO t_data.
      ENDIF.                              
    ENDMODULE.                            
    MODULE tbc_mark INPUT.
      DATA: tbc_wa2 LIKE LINE OF t_data.
      IF tbc-line_sel_mode = 1
      AND fs_data-mark = 'X'.
        LOOP AT t_data  INTO tbc_wa2
         WHERE mark = 'X'.
          tbc_wa2-mark = ''.
          MODIFY t_data
            FROM tbc_wa2
            TRANSPORTING mark.
        ENDLOOP.                          .
      ENDIF.                             
      MODIFY t_data  FROM fs_data
        INDEX tbc-current_line
        TRANSPORTING mark.      
    ENDMODULE.
    Edited by: sapabap403 on Aug 31, 2011 9:29 AM

  • Can we  change datatype  without deleting records ?

    Hi all ;
    Without deleting records in a table  , can we  change datatype in oracle 10g and 11g ?
    SQL> desc emp
    Name                                      Null?    Type
    NO                                                 NUMBER
    NAME                                            VARCHAR2(10)
    CITY                                               VARCHAR2(15)
    DEP_ID                                          NUMBER
    SQL> select * from emp;
            NO NAME       CITY                DEP_ID
            1   madhir   calcutta                10
    SQL> alter table emp modify(dep_id  varchar2(5));
    alter table emp modify(dep_id varchar2(5))
    ERROR at line 1:
    ORA-01439: column to be modified must be empty to change datatype
    SQL>  select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    See 'Modifying an Existing Column Definition' in the DBA Guide
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/tables006.htm#i1006645
    Use the ALTER TABLE...MODIFY statement to modify an existing column definition. You can modify column datatype, default value, column constraint, column expression (for virtual columns) and column encryption.
    You can increase the length of an existing column, or decrease it, if all existing data satisfies the new length. You can change a column from byte semantics to CHAR semantics or vice versa. You must set the initialization parameter BLANK_TRIMMING=TRUE to decrease the length of a non-empty CHAR column.
    If you are modifying a table to increase the length of a column of datatype CHAR, realize that this can be a time consuming operation and can require substantial additional storage, especially if the table contains many rows. This is because the CHAR value in each row must be blank-padded to satisfy the new column length.
    And the ALTER TABLE statement in the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_3001.htm#SQLRF01001
    modify_col_properties
    Use this clause to modify the properties of the column. Any of the optional parts of the column definition (datatype, default value, or constraint) that you omit from this clause remain unchanged.
    datatype You can change the datatype of any column if all rows of the column contain nulls. However, if you change the datatype of a column in a materialized view container table, then Oracle Database invalidates the corresponding materialized view.
    You can omit the datatype only if the statement also designates the column as part of the foreign key of a referential integrity constraint. The database automatically assigns the column the same datatype as the corresponding column of the referenced key of the referential integrity constraint.
    You can always increase the size of a character or raw column or the precision of a numeric column, whether or not all the rows contain nulls. You can reduce the size of a datatype of a column as long as the change does not require data to be modified.The database scans existing data and returns an error if data exists that exceeds the new length limit.

Maybe you are looking for

  • Is there a way to use the iMac's display mode with a Mac mini with out logging in first on the Mac mini

    Is there a way to use the iMac's display mode with a Mac mini with out logging in first on the Mac mini (late2014) im currently useing my Mac mini as a portable computer, I take it to the university and use the iMacs there as a monitor but before I c

  • Itunes always crashes when I download podcasts.

    The problem started with upgrade to itunes 10.6 or there about. My computer would crash when playing, crash on importing, crash on downloading podcasts. Most of the problems went away with the itunes 10.6.1 update, but when I try to download podcasts

  • Building the best CS5 Windows machine for $3000

    Background: I have CS4 Master Collection and run it on a dual boot XP64 and XP32 machine.  I have the dual boot because I cannot get PPro CS4 to work at all on XP64.  I know, it is not supported.  I have been using Premiere since Version 6 I think. 

  • A possible bug, Tab control in subpanel

    Hi, I think when a Tab control is used in a subpanel, it happens something faulty if you try to use right and left "tab locations". See the attached code. will someone check the code and say if I've made any mistake or not. I see some black boxes and

  • Trigger for logging changes(DML changes) for All tables in Schema

    Hi , Is there a way to create a schema level trigger to audit the DML changes that affect all the tables.I need the output in my log table as 1) the table name on which the DML occurred 2) type of DML 3) column names affected. I know this can be achi