Failure with one data package - manual import?

Hi all,
if one data package wasn´t loaded correctly into the cube. Is it possible to activate this package manually?
Thanks in advance!

prashanthk wrote:
> HI ,
>
> Yes you can manually load the failed data packet , only if the load gets completed.
> check the source system job and the load is done , check for the reason for failure of the load. then only you can manually update the failed data packet.
> Right click on the failed data packet -->click manual update.
The load completes always at the moment from data source to DSO. The load from DSO to cube has sometimes failures and sometimes not. If I reactivate the failed load to InfoCube again the load is updated well. But this SQL insert problem makes me wondering sometimes why it appears. Maybe the system has a huge work load and sometimes an error appears and it´s nomal business?

Similar Messages

  • Can I create an event over many days with one data entry form?

    My client goes bicycle riding every Tuesday.
    He'd like to be able to create one event (Bicycle riding) and have it show up on his website as an upcoming event over many days.
    Rather than creating 52 entries for one year (52 Tuesdays) is there an easier way to associate one event with multiple dates?
    Thanks

    There is nothing worse than switching a client to Business Catalyst and having to tell them that they have to give up features that they were using in their older sites. Most Wordpress plug-ins are available at no cost. Business Catalyst does not have a plug-ins option. So when you claim a feature, such as an event calendar, it needs to have the necessary functionality to make it useful for a customer.
    Installation of Wordpress calendars is not difficult. Even the free Google Calendar has recurring events.

  • Not able to view data from more than one data package in PSA

    Hi Friends,
    Desparetly trying to view data in PSA. Problem :
    If i mark more than one datapackage this error raises:
    You must only select one data packet when entering data record numbers
    Message no. RSAODS127
    And there is no change to reset data record numbers.
    What is wrong ?
    Thanks in advance for help.
    Joe
    BW3.5, SP21
    Edited by: J.F.B. on Jul 2, 2009 11:40 AM

    Hi again,
    Seems I'm too stupid for this issue.......
    As I understand there are two ways to view PSA :
    1. PSA maintenance in RSA1
    2. In SE11/SE16 viewing the underlaying transparent table
    ad 1.
    When I try to filter erroneous records for more than one datapackage situation is as described above.
    ad 2.
    Trying to view the table works, but where is the chararcteristic/field marking a  record as erroneous
    in table /BIC/Bxxxxxxxx (table containing PSA-Data) ?
    Thanks
    Joe

  • Workingdays with one date field

    Morning all,
    I have a report which uses only one date field. This report takes averages of lenses and jobs per day.
    The report works fine when it is running on daily basis however when it runs on monthly basis it messes up the averages.
    For example:
    Daily report:
    Job -1
    Lens - 1
    Average per day (job) -1
    Average per day (lens) - 1
    Month to date report
    Date Range: Month to date (01/08/2008 to 28/08/2008)
    Job - 6
    Lens - 438
    Average per day (Job)- 0.21 (where it should be 0.31)
    Average per day (lens)- 15.64 (where it should be 23.05)
    If you see above example, monthly should be taking Weekends and bank holidays in account.
    I have done similar thing but used two different date fields however here I am facing only one date field which is being used.
    So What I have done is, I modified the formula like this
    WhileReadingRecords;
    DateVar Array Holidays;
    DateVar Target:={lab_rework.rework_date};
    NumberVar Add:= -2;
    NumberVar Added := 0;
    WHILE Added > Add
    Do (target := target -1;
        if dayofweek (target) in 1 to 7 and not (target in holidays)
            then Added:=Added-1
            else Added:=Added);
    Target;
    I added this formula into my Report Selection formula like this
    ({@WeekdaysOnly} in MonthToDate)
    Oh and background of the report history:
    Crystal Reports: 2008
    Database: Informix
    Report: Record Selection formula ({lab_rework.rework_date} in MonthToDate);
    Report Group by: Report grouped by Reason Code
    Report Average formula:
    Whileprintingrecords;
    Numbervar FAvg;
    Numbervar myaverage=0;
    Numbervar CAvg=0;
    myaverage := {#Total Lenses}; 
    CAvg:= myaverage /Day(Maximum(MonthToDate));
    //({@EndDate}-{@StartDate}+1);
    FAvg:=FAvg + CAvg;
    CAvg
    Anyone who can help me using only one formula which I can use to take in account working days?
    The expected results aren't coming up correctly.
    Regards
    Jehanzeb

    Nope, no need for that.
    I sorted it out after editing my working days formula
    here is the solution I used
    WhileReadingRecords;
    Local DateVar Start := Date(Year(CurrentDate),Month(CurrentDate),1);// place your Starting Date here
    Local DateVar End :=   Currentdate;// place your Ending Date here
    Local NumberVar Weeks;
    Local NumberVar Days;
    Local Numbervar Hol;
    DateVar Array Holidays;
    Weeks:= (Truncate (End - dayofWeek(End) + 1 - (Start - dayofWeek(Start) + 1)) /7 ) * 5;
    Days := DayOfWeek(End) - DayOfWeek(Start) + 1 +
    (if DayOfWeek(Start) = 1 then -1 else 0)  +
    (if DayOfWeek(End) = 7 then -1 else 0); 
    Local NumberVar i;
    For i := 1 to Count (Holidays)
    do (if DayOfWeek ( Holidays<i> ) in 2 to 6 and
         Holidays<i> in start to end then Hol:=Hol+1 );
    Weeks + Days - Hol;
    //Holidays Code
    //Holiday Array Formula for the report Header:
    BeforeReadingRecords;
    DateVar Array Holidays := [
    Date (2003,12,25),   // you can put in as many lines for holidays as you want. 
    Date (2003,12,31),
    Date (2008,08,25)
    0
    Regards
    Jehanzeb

  • Excel Table with SharePoint Data Connection - Manual Text Entry Misaligned After Refresh

    Greetings!
    I have an Excel 2010 workbook that includes a table linked to my SharePoint 2013 site by a data connection. The SharePoint list feeds the table standard information that's managed on the SharePoint site, but I need the user of the Excel workbook to be able
    to enter text manually in the workbook to associate local information with the line-items coming from the SharePoint list. To do this, I've added extra columns to the end of the table.
    The user can enter information in the appropriate cells in the "extra" columns at the end of the table, but when I refresh the data connection, the addition of a new list item on the SharePoint side results in the user's manually entered text getting
    out of alignment with the row it's supposed to be associated with.
    Example
    Column 1(SP)
    Column 2(Extra)
    Row 1
    Item 1
    Row 2
    Item 2
    Text entered for Item 2
    Row 3
    Item 3
    Then, if I add a new item to the list in SharePoint, for example, something that would appear between the original items 1 & 2, after refreshing the table, I get the following:
    Column 1(SP)
    Column 2(Extra)
    Row 1
    Item 1
    Row 2
    New Item 1.5
    Text entered for Item 2
    Row 3
    Item 2
    Row 4
    Item 3
    The table's data connection is set to insert rows for new items, and I could swear I had this working properly once upon a time...but I can't seem to make it work now.
    Any thoughts on what would cause this?
    Thanks in advance!

    Hi Eric,
    >>but it seems that by extending the table itself to encompass both the SharePoint-sourced columns and the additional columns, that an association would be created between all columns for a given row in the table, no?<<
    From my understanding, the answer is no.
    Another example:
    I have an additional column named "Column2" and an external column named "ID" (see "before").
    After I add a new record and refresh this table, Excel will keep the last row in "column2" and add an empty cell in the second last row. (See "After")
    If I delete the eighth data and refresh this table, Excel will still keep the last row and remove the last second cell.
    In your case, if you insert a new record in the middle of the data and refresh this table, Excel will synchronized the external data and add a new cell in the additional column in the second last row.
    From my understanding, Excel will always change the second last row to suit for deleting or adding record.
    Hope this helps.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • BDC Insert have 1000 data but SM35 is showing with one data

    Hi all,
    I have just run one BDC INSERT for 1000 data...
    In SM35, i run the process... it has only 1 data.... 
    What happen to 999 data? Its weird...
    Please advice.
    Regards,
    William Wilstroth

    It seems you make only one BDC_INSERT / BDC_TRANSACTION when 1000 were needed.
    You should have
    -  BDC_OPEN
    LOOP AT ...
    -  For each and every call of the transaction
    - -  REFRESH BDCDATA
    - -  Fill BDCDATA with BDC_DYNPRO and BDC_FIELD
    - -  BDC_INSERT or BDC_TRANSACTION
    ENDLOOP.
    - BDC_CLOSE
    Regards

  • Desktop Sharing Failure with one Federated Partner

    Hi all,
    We are running a single Lync 2013 FE and a single Lync 2013 Edge Server. We don't have a proxy server in the mix.
    IM and presence works fine, but we are having issues with screenshare between us and all federated contacts in one domain.
    Interestingly, while on VPN its fine, so it seems like its a firewall issue.
    Following the
    http://www.lync-solutions.com/Documents/Lync_2013_protocol_poster_v6_7.pdf I've had the firewall team open up all the required ports, but we still get errors when attempting a screen share stating that network problems are causing it to fail. Looking at
    the topology builder, I see port 444 as the default port for the web conferencing Edge service, but I can't find any documentation indicating that this has to be opened up through the firewall.
    Does it need to be opened from the internet to the IP of our access edge FQDN?
    DQ

    We've had the firewall support looking through the logs this past week, after replicating a screen share failure. They don't see any denies for traffic in between firewalls in the following traffic route I provided them.
    Lync Federated traffic path:      our client workstation -> our Lync (internal server) – IP  -> our Lync Edge in DMZ
    (internal facing NIC IP) -> (external facing NIC IP – public NAT
    IP) –> And Out to the Federated Partner
    When a screenshare is initiated, does the traffic still flow back and forth through the same (above) path, or could it be a different path (and trying to go directly to one of the Edge or Public (NAT)
    IP for the screenshare service?
    I'm wondering if it could be a routing issue. Because of our client requirements, network has some complicated routing in place, and maybe it's not heading out to the 'internet' or back from the internet
    as it should be. Still no further ahead, but hopefully eliminating some possibilities.
    DQ

  • Some time I get technical details of permanent failure with one moste

    The jpay.com contact is the main email where this happens.

    Server not found
    https://support.mozilla.com/en-US/kb/Server%20not%20found
    Check and tell if its working.

  • FORCED DATA PACKAGE WITH PHONE UPGRADE

    I have been a verizon customer since cell phones were cool.  I started with a bag phone in my car.   I have 5 verizon phones.   Four on a family plan and one through a work plan.  
    My son wanted to upgrade his phone today which is eligible for early upgrade.  I was very disappointed to find out that any decent phones available come with a mandated data package.   There are two options - for the really nice phones it is $29.99/month, for the basic phones like the LG Envy which I have now it is $9.99/month.   
    So right now I spend on the family plan about $2000 per year on cell phones.  (It used to be about $3,500 before I got my work phone).   If we renewed to the basic LG Envy phones (which I like)  it would be an extra $40/month or $480 per year.  If we upgraded to the nice phones it would be an extra $120/month or $1,440 per year.  For unlimited data usage this is not a bad deal.  
    There is only one problem - I DONT WANT IT OR NEED IT!!!!!!!!   I have computers at home with wireless, a laptop with wireless, an i-touch with wireless.   Also, my spouse or children do not need unlimited data or the internet on their phones!   Who wants to pay for a 16 and 13 year old to have unlimited data and wireless? 
    I  spoke to Verizon customer service and they told me which phones are available with no data package.  Nothing against LG and Samsung but the phones available under those plans are garbage.   They have small screens and are pathetic little phones with limited features.  Even though I don't use the internet on my phone why wouldn't I want one  with a great camera, a large screen for pictures and video messaging?   
    I realize from talking to customer service that they did surveys to see what customers wanted.  I guess I am one of the only people out there that likes advanced features on a phone with out the internet available to me at all times.  I don't agree with this.  Or is it just that it is more convenient to squeeze another $500 or $1500 per year from a family?   Why not double your sales when you can.  I know every other carrier is doing it which is why Verizon can force this on its customers.   Customer service reminded me of this several times. 
    Could we afford donating this money to Verizon for no purpose? Probably but why the {word filter avoidance}
    would we?  No wonder so many people are in debt.  I think our money could be used better to send kids to college, pay the mortgage or invest it.   I think this policy is hostile towards customers.  If they really want to serve their customers offer the phones at higher price without a data package.  I guess that wouldn't work since Verizon makes its money from service agreements not the equipment.  
    - Unhappy Verizon Customer looking for other options......

    Ryder435 wrote:
    I have been a verizon customer since cell phones were cool.  I started with a bag phone in my car.   I have 5 verizon phones.   Four on a family plan and one through a work plan.  
    My son wanted to upgrade his phone today which is eligible for early upgrade.  I was very disappointed to find out that any decent phones available come with a mandated data package.   There are two options - for the really nice phones it is $29.99/month, for the basic phones like the LG Envy which I have now it is $9.99/month.   
    So right now I spend on the family plan about $2000 per year on cell phones.  (It used to be about $3,500 before I got my work phone).   If we renewed to the basic LG Envy phones (which I like)  it would be an extra $40/month or $480 per year.  If we upgraded to the nice phones it would be an extra $120/month or $1,440 per year.  For unlimited data usage this is not a bad deal.  
    There is only one problem - I DONT WANT IT OR NEED IT!!!!!!!!   I have computers at home with wireless, a laptop with wireless, an i-touch with wireless.   Also, my spouse or children do not need unlimited data or the internet on their phones!   Who wants to pay for a 16 and 13 year old to have unlimited data and wireless? 
    I  spoke to Verizon customer service and they told me which phones are available with no data package.  Nothing against LG and Samsung but the phones available under those plans are garbage.   They have small screens and are pathetic little phones with limited features.  Even though I don't use the internet on my phone why wouldn't I want one  with a great camera, a large screen for pictures and video messaging?   
    I realize from talking to customer service that they did surveys to see what customers wanted.  I guess I am one of the only people out there that likes advanced features on a phone with out the internet available to me at all times.  I don't agree with this.  Or is it just that it is more convenient to squeeze another $500 or $1500 per year from a family?   Why not double your sales when you can.  I know every other carrier is doing it which is why Verizon can force this on its customers.   Customer service reminded me of this several times. 
    Could we afford donating this money to Verizon for no purpose? Probably but why the {word filter avoidance}
    would we?  No wonder so many people are in debt.  I think our money could be used better to send kids to college, pay the mortgage or invest it.   I think this policy is hostile towards customers.  If they really want to serve their customers offer the phones at higher price without a data package.  I guess that wouldn't work since Verizon makes its money from service agreements not the equipment.  
    - Unhappy Verizon Customer looking for other options......
    Dittos to TedKord!
    There are many with situations similar to yours.  Our first of 5 lines just went month-to-month this week as there are NO UPGRADE OPTIONS to upgrade from an enV2 without the mandatory data surcharge of $120 per year.  If you are a facebook member you can do a search for Verizon and you will find a group there, several thousand strong now, that also agree and share your frustration.  You can also find links there to contact the FTC, FCC, Verizon, etc.   Take a look and join us if you haven't already.

  • Importing video with correct date

    I'm having issue importing videos into iphoto with the original date of the video. I'm importing from a canon vixia HFS10, when i tried it a month or so back it went into iphoto correctly, with the original date but now whenever i try it, even with the same videos that worked date wise before, it only imports into iphoto with the date that i actually imported it with.
    Any ideas?
    I know you can alter the date via the edit options, but this seems a bit backward when i know, somehow, that i can import the video automactially with the date.

    i only imported the videos from the same camera, one time they went with the date it was taken, the other time i tried a couple of weeks later it only imported with the date of import so it's not the camera

  • Excel Table with Data Connection Manual Text Entry Misaligned After Refresh

    Greetings!
    I have an Excel 2010 workbook that includes a table linked to my SharePoint 2013 site by a data connection. The SharePoint list feeds the table standard information that's managed on the SharePoint site, but I need the user of the Excel workbook to be able
    to enter text manually in the workbook to associate local information with the line-items coming from the SharePoint list. To do this, I've added extra columns to the end of the table.
    The user can enter information in the appropriate cells in the "extra" columns at the end of the table, but when I refresh the data connection, the addition of a new list item on the SharePoint side results in the user's manually entered text getting
    out of alignment with the row it's supposed to be associated with.
    Example
    Column 1(SP)
    Column 2(Extra)
    Row 1
    Item 1
    Row 2
    Item 2
    Text entered for Item 2
    Row 3
    Item 3
    Then, if I add a new item to the list in SharePoint, for example, something that would appear between the original items 1 & 2, after refreshing the table, I get the following:
    Column 1(SP)
    Column 2(Extra)
    Row 1
    Item 1
    Row 2
    New Item 1.5
    Text entered for Item 2
    Row 3
    Item 2
    Row 4
    Item 3
    The table's data connection is set to insert rows for new items, and I could swear I had this working properly once upon a time...but I can't seem to make it work now.
    Any thoughts on what would cause this?
    Thanks in advance!

    Yes, it is. I realized after posting the first time, that I'd assigned the question to the Visio forum. I wasn't sure how to reassign to the correct (Excel) forum, so I re-posted over there:
    http://social.msdn.microsoft.com/Forums/en-US/b3bbe00c-94c0-48d4-bed9-fbd08d707b1d/excel-table-with-sharepoint-data-connection-manual-text-entry-misaligned-after-refresh?forum=exceldev

  • BW:  Data Packages Selected number does not agree with transferred

    Hi,
    I am running into an issue with an existing master data text load process chain in Production.  The extractor is from ERP and there are only 159 records.  What is happening is the chain is stuck on yellow but there is an issue with the data packages.  The status error message is 'Missing data packages for PSA table'.  Clicking into the Details tab the message then states Data Package 1:  arrived in BW; Processing:  Selected number does not agree with transferred.
    The version is BI 7.0.  I have done the following steps and still no luck.  Looking for any suggestions.  Thanks.
    ERP
        SM37 (Job always finishes)
        SM58 (No IDOCS stuck)
        ST22 (No short dumps)
    BW
        SM58 (No IDOCS stuck)
        SM37 (Job always finishes)
        ST22 (No short dumps)
    Reactivated Datasource:  RSDS_DATASOURCE_ACTIVATE_ALL
    Reactivated Transformation:  RSDG_TRFN_ACTIVATE

    Hi
    Just check whether source system connection is ok in RSA1.
    if it is fine then have a loo at the below thread(last post)
    Data Load from R/3 to BW-'Selected number does not agree with transferred'
    Regards,
    Venkatesh

  • Every 3rd data package taking long time for execution

    Hi Everyone
    We are facing a strange situation. Our scenario involves doing a full load from DSO to CUBE.
    Start routines are not very database intensive and care has been taken to write them in a optimized way.
    But strangely every 3rd data package is taking exceptionally longer time than other data packages.
    a) DTP is having 3 parallal processes.
    b)time spent in extraction , rule, and updation is constant for every data package.
    c)start routine time is larger for every 3rd data package and keeps on increasing. for e.g. 5 mins, 10 mins, 24 mins, 33 mins etc it increases by each 3rd package.
    I tried to anlayze the data which was taking so much time but found no difference in terms of data in normal and longer time taking DTP (i.e. there was not logical difference in data for start routine to behave like this).
    I was wondering what can be the possible reasons for it and may be some other external system factors can be responsible for it. If someone can help in this regard that will be highly appreciated.

    Hi Hemanth,
    In your start routine, are you by any chance adding or multiplying the number of records to the source_package? Something like copy source package into an internal table, add records to internal table and then copy it back to source package? If some logic of this sorts is in your start routine, you need to refresh your internal table. Otherwise, the internal table records goes on increasing with every data package. So, the processing time might increase as the load progresses. This is one common mistake I have seen. Please check your code if you have something like that and refresh the internal tables. See if this makes any difference.
    Thanks and Regards
    Subray Hegde

  • Run Data Package from custom Menu00F9/VBA macro

    HI guys,
    I have a problem:when creating VBA macro to run Data Package.
    I get the pop-up error "400" . This is the VBA code I'm using:
    Application.Run "MNU_eDATA_RUNPACKAGE(""Opening""; ""/CPMB/Opening_Balances""; ""Company""; ""Financial Processes"")"
    Have you any suggestion for me?
    Thanks
    Marco Uccello

    Hi Marco,
    I'm guessing by prompts you mean user inputs for Entity, Category, Time etc.
    These are controlled by the dynamic script associated with the data package.
    If you go to the menu eData -> Organise Packages then select a package and go through :
    Modify Package -> View Package -> Advanced
    You should get to the Data Manager Dynamic Script window.
    The following is an example of what should be in here. This is taken directly from the SAP How to Guide "How To Pass Dynamic Parameters to script logic.pdf"
    It's the "PROMPT" parts at the start that control the prompts shown to the user (and passed to the data package) :
    PROMPT(SELECTINPUT,,,,"%ENTITY_DIM%,%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")
    PROMPT(TEXT,%WS_PERCT%,"Input W/S Percent in decimals",)
    PROMPT(TEXT,%EXP_PERCT%,"Input Exp. Percent in decimals",)
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,TAB,%TAB%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,EQU,%EQU%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,SUSER,%USER%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,SAPPSET,%APPSET%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,SAPP,%APP%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,SELECTION,%SELECTION%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,LOGICFILENAME, INCREASEPERCENTAGE.LGF)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,REPLACEPARAM,WS_PERCT%EQU%%WS_PERCT%%TAB%EXP_PERCT%EQU%%EXP
    _PERCT%)
    If you paste that in exactly it will resolve into the right package information which can be seen one step back (via Modify Package -> View Package).
    You can modify the prompts as appropriate for the script you are running - the one above from the how to guide has two inputs for percentages which are used within the associated script logic calculation.
    Hope this helps.
    Thanks.
    Bradley Newcombe.

  • Trouble with database data retrieving!!!Please someone help me!!

    Hello people!!
    I'm havin g a trouble in getting the data from a bean , someone could give me a hand?
    That's the following: The Database class get a conection, a DetalhesLivro.class arraylist
    is obtained with the method getBooks, and I start my servlets apllication with contextListener
    where i staciate this class, so when i retrieving the value the browser keep too long loading
    and give me no data from the class here is piece of code :
    the context:
    package servlets;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.servlet.*;
    public final class Contexto implements ServletContextListener{
    private ServletContext context = null;
    public Database db;
    public void contextInitialized(ServletContextEvent event) {
    context = event.getServletContext();
    try {
    db = new Database();
    context.setAttribute("dados", db);
    } catch (Exception ex) {
    System.out.println("Imposs�vel a cria��o do bean:" +
    ex.getMessage());
    public void contextDestroyed(ServletContextEvent event) {
    context = event.getServletContext();
    Database lixo = (Database)context.getAttribute("dados");
    if (lixo != null)
    lixo.remove();
    and this is the class to retrieving the data :
    package servlets;
    import java.io.*;
    import java.sql.SQLException;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Resultado extends HttpServlet {
    DetalhesLivros livro;
    Database db;
    ArrayList livros;
    public void init() throws ServletException {
    db = (Database)getServletContext().getAttribute("dados");
    if (db == null){
    throw new UnavailableException("Couldn't get database.");
    public void destroy() {
    db = null;
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    /* HttpSession session = request.getSession();
    procura = (Procura)session.getAttribute("dados"); */
    response.setContentType("text/html");
    response.setBufferSize(8192);
    String valorRadio = request.getParameter("radio");
    String valorInput = request.getParameter("campo");
    try{
    livros = db.getBooks();
    }catch(Exception e){
    e.getMessage();
    PrintWriter out = response.getWriter();
    // then write the data of the response
    out.println("<html><head><title>Livraria Online!!!</title></head><body><div align=\"center\"><p><strong>"+
    "<p><font size=\"+7\">Loja de Livros</font></p>");
    Iterator iterator = livros.iterator();
    try{
    while(iterator.hasNext()){
    if(valorRadio=="titulo"){
    livro = (DetalhesLivros)iterator.next();
    if(livro.getTitulo()==valorInput){         
    out.println("<p> </p><p><strong>Nome do Livro:"+livro.titulo+
    "</strong></p><p><strong>Autor:"+livro.autor+"</strong></p><p><strong>Pre&ccedil;o:"+livro.getPreco()+"</strong>"+
    "</p><p><strong>C&oacute;digo:"+livro.getCod()+"</strong></p>");
    break;
    break;
    }catch(Exception e){
    e.getMessage();
    out.println("<p></p><br><br><br><table width=\"48%\" border=\"0\"><tr><td width=\"60%\"><a href=\"\"><strong>Pesquisar</strong>"+
    "</a></td><td width=\"40%\"><a href=\"\"><strong>Listar</strong></a></td></tr></table><strong>"+
    "</strong></div></body></html>");
    out.close();
    thanks a lot for some help!!!

    sorry!!
    package servlets;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.servlet.*;
    public final class Contexto implements ServletContextListener{
        private ServletContext context = null;
        public Database db;  
        public void contextInitialized(ServletContextEvent event) {
            context = event.getServletContext();             
            try {
                  db = new Database();
                  context.setAttribute("dados", db);
            } catch (Exception ex) {
                System.out.println("Imposs�vel a cria��o do bean:" +
                    ex.getMessage());
        public void contextDestroyed(ServletContextEvent event) {
            context = event.getServletContext();
            Database lixo = (Database)context.getAttribute("dados");
            if (lixo != null)            
                   lixo.remove();                     
    }package servlets;
    import java.io.*;
    import java.sql.SQLException;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Resultado extends HttpServlet {
    DetalhesLivros livro;
    Database db;
    ArrayList livros;
    public void init() throws ServletException {
    db = (Database)getServletContext().getAttribute("dados");
    if (db == null){
    throw new UnavailableException("Couldn't get database.");
    public void destroy() {
    db = null;
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    /* HttpSession session = request.getSession();
    procura = (Procura)session.getAttribute("dados"); */
    response.setContentType("text/html");
    response.setBufferSize(8192);
    String valorRadio = request.getParameter("radio");
    String valorInput = request.getParameter("campo");
    try{
    livros = db.getBooks();
    }catch(Exception e){
    e.getMessage();
    PrintWriter out = response.getWriter();
    // then write the data of the response
    out.println("<html><head><title>Livraria Online!!!</title></head><body><div align=\"center\"><p><strong>"+
    "<p><font size=\"+7\">Loja de Livros</font></p>");
    Iterator iterator = livros.iterator();
    try{
    while(iterator.hasNext()){
    if(valorRadio=="titulo"){
    livro = (DetalhesLivros)iterator.next();
    if(livro.getTitulo()==valorInput){         
    out.println("<p> </p><p><strong>Nome do Livro:"+livro.titulo+
    "</strong></p><p><strong>Autor:"+livro.autor+"</strong></p><p><strong>Pre&ccedil;o:"+livro.getPreco()+"</strong>"+
    "</p><p><strong>C&oacute;digo:"+livro.getCod()+"</strong></p>");
    break;
    break;
    }catch(Exception e){
    e.getMessage();
    out.println("<p></p><br><br><br><table width=\"48%\" border=\"0\"><tr><td width=\"60%\"><a href=\"\"><strong>Pesquisar</strong>"+
    "</a></td><td width=\"40%\"><a href=\"\"><strong>Listar</strong></a></td></tr></table><strong>"+
    "</strong></div></body></html>");
    out.close();
    --------------------------------------------------------------------------------------------

Maybe you are looking for

  • How to stop size of JTextField from changing when I change font to bold

    I'm working on a Sudoku solver for a CS project. I've got JTextFields for the input. I want to bold the entries of the begining puzzle, like they are in the magazines. When I set the font to bold, it changes the size of the text field. I'm using the

  • Help: How to parse XML string into Node Context

    Hi Experts, I am trying to work with a web dynpro for java application which calls a Web Service. I can call the web service successfully, however I have a problem on interpreting the response result into table. The response result is in (XML) string

  • PSE 11 de-interlace

    How can you de-interlace a photo from video in PSE11 it was always possible in all versions until now (tried copying pluggin from PSE 10 but did not work)

  • Sleep or shut down the laptop?

    Is it better to sleep or shut down the laptop? I mean in general for the laptop, not necessarily to save battery or anything. Thank you!

  • How to expose ODI scenario as a web service

    How to expose ODI scenario as a web service? Can we generate wsdl of ODI scenario if yes then how?