WLIntegration Worklist.jsp in a portlet problem

I am using the BEA WLIntegration client example and have managed to get the initial
page displayed in a portal. The Worklist.jsp uses bean ResponseHandler. When trying
to display Worklist.jsp the server returns ResponseHandler not found. For portlets
where a JSP uses a bean where should the baen reside and what references in the
deployment descriptor are required.
The Worklist.jsp works fine when used outside of the portlet framework.

Another example of a multi-page portlet is described in Case Study: Building Portlets with JavaBeans.
Regards,
-rh
null

Similar Messages

  • How to deploy a jsp app as portlet in portal?

    i'm a new bee to this portal & portlet stuff.
    so, pls let me know if my questions doesn't make sense.
    i have a jsp app sitting in jdeveloper 9.0.3
    can i deploy this jsp app as portlet and see it from
    my portal?
    srini

    Hi Benjamin.
    Can u explain more detail about the deployment..
    I also use JDev and want to do like you do (that is deploy to 9iAS using JDev.
    I tried to create new connection via Remote DCM..
    but it gave me error.
    I also read & tried the article that u suggested..
    but still failed..
    So, my questions are:
    1)In step one, where in EM should i install Oc4jDcmServlet.ear? in OC4J_Portal(the same place i deploy jpdk)?
    "Install the DCM Servlet, Oc4jDcmServlet.ear, to a running Oracle Enterprise Manager instance. This servlet is required to run in the same OC4J instance (same JVM) as the Enterprise Manager servlet. The DCM Servlet is located in:
    <jdev_install>/dcm/lib/Oc4jDcmServlet.ear "
    2)I download JDev into my drive C.
    and i did found /dcm/lib/Oc4jDcmServlet.ear
    I not sure what to type..and where should i run the command..
    In the article,it run from c:\winnt\system32\cmd.exe.
    But when i ty to run it, it gave me error
    "Exception in thread "main" java.util.zip.ZipException: The system cannot find th
    e path specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)"
    should i run the command in the server?Where?
    What command should i type?
    Java -jar ${ORACLE_HOME}/j2ee/home/admin.jar ormi://${EM_OC4J_HOST}:${EM_OC4J_PORT} ${IAS_ADMIN_USER} ${IAS_ADMIN_PASS} -deploy -file Oc4jDcmServlet.ear -deploymentName Oc4jDcmServlet "
    Thanks..

  • JSP Portlet Problem

    Hi,
    i have installed oracle portal 3.0.6.3.3 on NT.
    The problem is that i face problems while trying to install a sample portlet given in JPDK download.
    i have followed the exact instructions as given in the oracle portal development kit installation guide(Pre-configuration and Set-up).
    when registered a sample portlet provider in the Admin tab, and i tried to put it into my page, i got the following error.
    Error:(WWC-00000)
    The following error occurred during the call to Web provider: true (WWC-43147)
    i've already searched in metelink but there is not information about.

    Juan,
    I have not seen this error before, so I will try to help you debug.
    Are you able to display any of the portlet samples from the JPDK. Using PDK January, 8 are JSPs and 2 are servlets. HelloWorld and Web Services Portlet are servlet implementation. Can you display any of them?
    1) Check the provider.xml file make sure that you only changed the <appRoot> and this should point to the location of your JSP directories. For example: D:\9iAS\Apache\Apache\htdocs\lottery
    2)Make sure that you have placed the location of the provider.jar and sample_portlets.jar in the jserv.properties file.
    3)Question, when you are trying to add portlets to the page, do you actually see the information in the "Add Portlets" page? Do you see a description of the Web Services Portlet? If you can see the Web Services description, it sees the sample_portlets.jar.
    Please let me know the answers to the above questions and if you get it working, can you post the solution on the message board to help others having the same problem.
    Thanks
    Sue
    null

  • JSP Input to Portlet

    Hello, World! (it was a lot funnier in my head)
    I posted this in the "New to Java", but I think it's much better suited in here...
    Anyways, I have this portlet application running where it is displaying genral news such as events, contests, etc.
    I'm using a database and hibernate to retrieve the data.
    It works fine for display, but now I am trying to create my doEdit() method. Right now what I want to do is get the "Edit News" part working (I figure Creating News will be a snap once I get this done). What it's doing now is taking the story that you want to edit, and it is loading it up on my editNews.jsp page. Basically, what this is going to do is display all the information from the story on the page, with the values in the input boxes.
    What I need to do is have it 'save' the changes the administrator would be making to my database once the "Submit" button is clicked.
    Any help on the quickest, most painless, and easiest wasy to do this would be a great help.
    Thank you very much.

    Hi Anders,
    Make pageflow in portlet A to forward to pageflow in portlet B's action
    login, done just after register is executed in flow A.
    in Portlet A: register():
    * @jpf:forward name="success" path="/portletBpageflow/login.do"
    Flow will continue in Portlet B's action login.
    - Björn Syse
    "Anders Thornberg" <[email protected]> wrote in message
    news:[email protected]..
    Hello,
    Is this possible?
    I have to pageflow portlets:
    Portlet A:
    Page : input.jsp form executes action=register
    Action: register() forwards to postregister()
    Action: postregister()
    Portlet B:
    Action: postregister() forwards to login
    Action: login()
    Portlet B listens to portlet A.
    I want B.postregister() to be executed when A.postregister() is executed.
    I can make it work if skip A.register and let jsp go to postregister()
    which will contain all logic from register(). The problem is that
    B.postregister() is executed BEFORE A.postregister() which mean that
    user is not registred when portlet B tries to run login.
    Best Regards
    Anders Thornberg

  • Studio 3.1 & Portal 9.2 - JSF portlet problem

    Hi, first time here.
    Let say I have create a simple jsf navigation application using Studio 3.1 like this:
    // inside faces-config.xml
    <navigation-rule>
    <from-view-id>/pages/inputname.jsp</from-view-id>
    <navigation-case>
    <from-outcome>greeting</from-outcome>
    <to-view-id>/pages/greeting.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    I have done all beans config and resources bundling. After all I run it successfully in server.My next step is to create a portlet, holding the first jsp page. Oh, well, Studio can't do it and I have to do it in Portal 9.2
    What should I do now? I have try many method to import my project into it and of course it is not working.
    To my knowledge, portal support PageFlow (Controller.java) but i dunno about MyFace (faces-config.xml).

    Hi Rene,
    When you found out that you misread the instrucition and you already ran the script, what did you do next? Did you restore the db and redo over? Or did you continue on? I have the same problem with you too but I'm not sure what to do next.
    Trina :)
    [email protected]

  • Jsr168 portlet problem

    Hi,
    I am creating a JSR168 compliant portlet with
    A single form that contains:
    - a search field
    - a table that displays radiobuttons and search query results
    - a button that sets a navigation parameter depending on the itemID that was picked from the table
    The problem is that while my search-query parameter is processed fine when running the application locally,
    I can not access the input parameter when the portlet is deployed to an OC4J container on a Webcenter Application Server and running in an ADF Faces jspx dashboard.
    In my portlet JSP page I have the search field:
    <input type="text" name="query">
    and I process it with a page refresh and the following:
    request.getParameter("query")
    which turns out to be null in the deployed portlet.
    when I do request.getParameterNames() I get different results depending on whether I run the application in JDeveloper, or when I deploy the portlet and I run it in the dashboard.
    getParameterNames() in the deployed portlet only displays my navigation parameter, while getParameterNames() running locally only displays my query parameter.
    It seems as if parameters need to be treated differently. Any input would be appreciated!

    Hi,
    In view.jsp, I have the following under <portlet:defineObjects/>:
    String actionURL = "view.jsp";
    if (renderResponse != null) {
    actionURL = renderResponse.createActionURL().toString();
    My form is defined like this:
    <form method="POST" action="<%= actionURL %>">
    Thanks in advance!
    Louisa

  • Struts Portlet problem

    Hello,
    I am developing a Struts Portlet, using JDev 10.1.2, and I'm deploying my app to Oracle Enterprise Manager.
    I have a DB Schema from which I created the Business Components for my Portlet.
    In the portlet, I need to display a tree-like Page Menu (pages have sub-pages and so on) in a single JSP that I have already working perfectly (outside Oracle Portal).
    This JSP consists of a series of "a href" links, each link representing a Menu Page, so that when I click on that link, the other portlets (content portlets) would show the selected page's contents.
    The idea here would be to, when I click a link, raise a struts event so that I can set my ViewObject's current row, and then get Portal to refresh the whole page passing the Page_Id as a parameter, so that both the menu portlet and the content portlet would be synchronized.
    The problem is that inside Portal, I can't seem to get the struts app to work:
    It renders the page just fine, but when I click on a link it obviously sets the browser's URL to one that is not relative to the portal - I suppose because i'm setting the URL mannualy on the "a href".
    (Note that I don't have a Form component in my JSP, just a number of links)
    What I need is to find a way to raise a Struts event so that the current row will be set. I'm trying to do it like this:
    < a href="/portal/menuPage.do?&id=<c:out value="${node2.IdPagina}"/>&event=Select">
    The event is raised and the row is set but I'm (obviously) forwarded to
    http://myServer:myPort/portal/menuPage.do?&id=28&event=Select
    Portal doesn't recognize this address and displays a "404 Not Found" message.
    Is there any other way to raise a struts action with links, or at least, without forms and submit buttons? Because raising it like I'm doing forwards me to a wrong URL.
    I read everything I found on Struts Portlets but still haven't found an answer to my problem.
    Any help?
    Rui Leitão

    When constructing links, you have to use the pdk-specific struts tags, for example:
    <pdk-struts-html:link href="/portal/menuPage.do">Also, you need to use the pdk struts tag library:
    <%@ taglib uri="/WEB-INF/pdk-struts-html.tld" prefix="pdk-struts-html" %>Peter

  • Jsps from pageflow portlet in navigation (or from portlet to book pages)

    Hi all,
    I'm a Weblogic newbie. I was wondering if anyone could please tell me how to get the name or title of a jsp from a pageflow portlet in navigation?
    I have page1.jsp (title: "Step 1"), page2.jsp ("Step 2") and page3.jsp ("Step 3") in a page flow that goes from page1.jsp to page2.jsp to page3.jsp. This page flow is made into a portlet. This portlet is the ONLY thing on the page in the portal book and the ONLY way to get to page3 is from page2 and to get to page2 is from page1, although you can return to page1 at any point.
    I would like my navigation programming--the single level across the top--to show the name of the jsp that is showing or the title. I've seen how to get the book and the pages of the book in the navigation, but not how to get further than that.
    Has anyone else done this?
    Thanks so much in advance.

    Have you resolved this problem? I'm stuck at the same place.
    <br>
    Thnx, Rajiv

  • Publish web layout of jsp report as portlet

    Hi All:
    Please let me know how can i run web layout of jsp report and publish it as portlet?
    I have successfully deployed my jsp report(web layout),namely my_rpt.jsp, as a J2EE application and when i write URL direlctly in address bar of browser it runs successfully.
    I have also published (as portlet) successfully my_rpt.jsp, with "execute" type "servlet", and it runs paper layout of report.
    But i m unable to run the web layout of this report,with "execute" type "JSP"
    i have provided "Oracle Reports Web Gateway URL for JSP reports " = http://webserver.domain_name:port/
    Please help me out whats the problem and how can i run my jsp report with web layout?.One thing more its not the problem with only my_rpt.jsp
    but other reports also shows the same behaviour.
    Any suggestion/solution would be highly appreciated.
    Regards
    Sam

    Hi sam ,
    Can you please tell me full process of to publish the report made in report builder in a portal (portlets). i am new to portal .
    can u please provide me guidance
    thanx
    anand

  • JSP into the portlet

    I have a JSP application, I have depoly in my Oracle Application Server this application.
    Now I want this application is deploy in my OraclePortal into the portlet.
    Can I how resolve the my problem???
    Regards
    Basilisco Giorgio

    Check out the Packaging and Deploying Your Providers article.
    If you plan on building your own portlets, you can also consider the 2 day training on Java portlets.

  • Forwarding JSP page through requestdispatcher problem in submiting form

    Hello everyone,
    I am very much new to servlet.
    My problem is somewhat this....
    when i am forwarding one JSP page by requestdispather , there is no problem.But after that when i am trying to submit one html form written inside the jsp page , the request is not submiting the jsp page rather it resides in the servlet.
    The code in servlet is
    RequestDispatcher rd =getServletContext().getRequestDispatcher("/applyConfirm.jsp");
    rd.forward(request,response);
    Now in (applyConfirm.jsp )jsp page one button is there , so when i will click that button the page has to be submitted.But its not submitting rather the request resides in the servlet.
    Dose someone will have any idea.
    Thanks in advance

    First check what sort of button you are using. It should be of "submit" type.
    Check the URL to witch URL it is submitting i.e. Action property in <FORM> tag.
    Make sure for the URLs in the client i.e HTML ex: href, action, and so on use the thumb rule of prefixing "<%=request.getContextPath()%>/" in your JSP or in servlet add it in the java code.
    This should solve the relative URL reference problem.
    Hope this helps.
    Cheers.

  • JSP causes serious performance problem in my EP

    I have a native JSP application and running it on the EP. This application accessing a Oracle db (using oracle.jdbc.driver.OracleDriver driver).
    When this db not running, my EP doesn't open any page. The EP try to connect with this db, but not get success.
    I modify this application with TRY and CATCH to treat the application problem, but the EP problem continues.
    In the EP Thread Overview (System Adm -> Monitoring -> Portal -> Thread Overview), I see threads (locked) about this application. To unlock this threads, I delete the par file from the Portal and re-deploy it.
    When this threads is deleted, the application treat the problem (display a error message in the iView container) and EP work normally.
    My questions:
    1) Exists some way that the problem with this application does not cause performance problems with the EP (via code or property)?
    2) Exists some property in the Config Tool where I configure the connection timeout for access the external DB?
    3) Exists some way to liberate these (locked) threads of the EP (I see the page Clearing the Portal Runtime Cache - http://help.sap.com/saphelp_nw04/helpdata/en/d2/a216e1bd7b431c82fa5ff105187112/frameset.htm - but I don't know if I can use it for this)
    I use EP 6.0 SP 15.
    Thanks,
    Yuri Fiori de Almeida

    Hi Umair,
    the code is:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" %>
    <%@ include file="isa_cad.jsp" %>
    <%
    Connection Connselect_localidade = null;
    try{
         Driver Driverselect_localidade = (Driver)Class.forName(MM_isa_cad_DRIVER).newInstance();
         Connselect_localidade = DriverManager.getConnection(MM_isa_cad_STRING,MM_isa_cad_USERNAME,MM_isa_cad_PASSWORD);
         PreparedStatement Statementselect_localidade = Connselect_localidade.prepareStatement("SELECT DISTINCT X AS Y FROM Z.K WHERE W = 1 ORDER BY X");
         ResultSet select_localidade = Statementselect_localidade.executeQuery();
         boolean select_localidade_isEmpty = !select_localidade.next();
         boolean select_localidade_hasData = !select_localidade_isEmpty;
         Object select_localidade_data;
         int select_localidade_numRows = 0;
    %>
    <!---- Page Layout --->
    <%
              select_localidade_hasData = select_localidade.next();
         select_localidade.close();
         Statementselect_localidade.close();
    //Connselect_localidade.close();
    %>
    <!---- Page Layout --->
    <%
    catch(Exception e){
    %>
    <!---- Page Layout ---><%
    finally{
         try{
              if(Connselect_localidade != null) Connselect_localidade.close();
         catch(Exception e){
    %>
    Thanks,
    Yuri.

  • Export JSP to Excel : Weird problem  (Urgent)

    Hi,
    Sorry for the length of question.
    I am facing a bit weired problem while exporting my JSP report to Excel.
    I have multiple tables in my JSP page .( Use of Multiple tables is a requirement .).
    I am using Struts and Oracle 9i JDeveloper for developement.
    I have a button called "Excel" and on its click , I am opening the same JSP page in a pop up and passing reqd. parameters to it using querystring
    ( sometimes I am keeping the parameters into session as the length is loo large to fit into queryString. )
    I am using
    response.setContentType("application/vnd.ms-excel");
    to transform my JSP page to Excel.
    Sometimes, this works fine.
    But, mant times this gives error such ( in Windows2000 Adv. Server ) as
    "Memory could not be "read"."..with the tile of error-popup as "Excel.exe".
    (In Windows NT , it never exports to Excel. Every time it gives "Dr. Watson Debugger" message box.)
    In Windows2000 Adv. Server ,
    While debugging, I observed that when I click on Excel button, the pop up opens and executes the page and again goes to the start of the page and executes again and thus tries to open the same Excel document.
    As we know, we cannot open same Excel document twice. Hence it gives a popup alert that
    " The file <filename with its entire path> could not be opened.
    There may be several reasons :
    You might be trying to open a file which does not exist.
    You might be trying to open the file which is already open. ..."
    etc.etc. and something like this.
    Now, this is totally unpredictable. If I click Excel button, It may open the file in excel and on next try it would give error.
    This is quite annoying. I searched on this forum, Google but could not find the solution yet.
    I cannot use POI - HSSF . I cannot use userdefined Excel tags as well. as it will require a lot of reqork and unfortunately I don't have that much time now.
    Please help me and let me know how would I be able to successfully and predictably export my JSP pages to Excel.
    Thanks,
    Swipsy.

    Hi,
    Why don�t you save as attachment? (use -> <% response.setHeader("Content-Disposition", "attachment; filename=\"name.xls\""); %> scriplet )...
    I�m doing the same work, but I have problems to export images to Excel by this method...
    Someone could help me??
    thanks a lot

  • I want to make a chatroom using jsp, and have some problem, Help!

    I want to build a chatroom using jsp and client using plain html, so i need every client could have a constant connection with the web server and will receive messages realtime. But i got 2 problems.
    First, how can i turn my buffers off so that messages can get to the client the time it is meant to be. I added
    <@page buffer="none">
    but seems that it takes no effect, any tricks here? thx
    Second, I want every user could have a constant conn. with server but i dont want my server to waste resources on those connection that has already been disconnected.so is it possible to stop executing JSP pages once client has diconnected.Since i found that it will throw no exception writing to the client even if the connection is disconnected in JSPs.
    Thanks!!!!!

    By theway, i'm using TOMCat 5.0 as my JSP container.

  • Q: Another jsp drop-down menu problem+propeblem with savng button

    Well i have many problems:
    Starters i use eclipse with tomcat and postgres. I have to create a jsp page that shows some data directly from database.
    This is what i have so far:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ page import="property.core.Property"  %>
    <jsp:useBean id="PropertyDAO" scope="page" class="property.dao.PropertyDAO" />
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Vaata Vara</title>
    </head>
    <body>
    <script>
    function salvesta(){
    document.forms[0].mida_teha.value='salvestada' ; //salvesta=save and mida_teha=action
    document.forms[0].submit();
    </script>
    <input type='hidden' name='mida_teha' value='<%=request.getParameter("mida_teha") %>'>
    <form action='pg?mode=vaata_vara' method=POST>
    <input type='hidden' name='property' value='<%=request.getParameter("property") %>'>
    Valitud vara: <br>
    <% if((request.getParameter("property"))!=null){
    int property = Integer.valueOf(request.getParameter("property")).intValue();//
    String property_type="";
    String property_name ="";
    String property_created = "" ;
    String property_created_by ="" ;
    String property_updated = "" ;
    String property_updated_by ="" ;
    property.core.Property my_property ;
    if (request.getParameter("mida_teha") != null){
         my_property = PropertyDAO.GetProperty_fromDB(property);
         my_property.setProperty_name(request.getParameter("property_name"));
         my_property.setProperty_updated(request.getParameter("property_updated"));
         //my_property.getProperty_updated_by(request.getParameter("property_updated_by"));
         PropertyDAO.UpdateProperty_to_DB(my_property);
    out.println("<table border=1 cellpadding=0 cellspacing=0><tr><td><table"+
              "width=100% border=1 cellpadding=2 cellspacing=1>");
    if ((my_property = PropertyDAO.GetProperty_fromDB(property)) != null){
         property= my_property.getProperty() ;
        property_type = my_property.getProperty_type() ;
            property_name = my_property.getProperty_name() ;
        property_created = my_property.getProperty_created() ;
        property_created_by= my_property.getProperty_created_by() ;
        property_updated = my_property.getProperty_updated() ;
        property_updated_by= my_property.getProperty_updated_by() ;
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>ID</td><td> " + property + " </TD></tr>");
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Tyyp</td><td> <SELECT ><OPTION value="+my_property.getProperty_name()+" 'name='property_type'>"+property_type+"</OPTION></SELECT> </TD></tr>");
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Nimetus</td><td> <b><font color='#0000ff'><input type='text' value='"+ property_name + "' name='name'></font></b></TD></tr>");
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Loodud</td><td> "+ property_created + " </TD></tr>");
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Looja</td><td> " + property_created_by + " </TD></tr>");     
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Uuendatud</td><td> <b><font color='#0000ff'><input type='text' value='"+ property_updated + "' name='updated'></font></b></TD></tr>");
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Uuendaja</td><td> " + property_updated_by + " </TD></tr>");     
    out.println("</table></td></tr></table>");
    %>
    <input type="button" value="muuda vara" onClick="muuda_vara()">
    <input type="button" value="salvesta" onClick="salvesta()">
    </form>
    </body>
    </html>The problem is that i have no clue(allthough i have chekced the forums for help and experimented and i still could not make it work) how to make a dropdown menu for out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Tyyp</td><td> <SELECT ><OPTION value="+my_property.getProperty_name()+" 'name='property_type'>"+property_type+"</OPTION></SELECT> </TD></tr>"); this. I have tryed http://forum.java.sun.com/thread.jspa?forumID=45&threadID=5241837 this page and that messes my "" up. If anyone can give me any tips how to integrate that code what is posted in the link to mine please let me know.
    Second problem is that when i push the save button, then i get a runtime error and a joyce to i want to debug or not. And as well in the example which i got from the teacher works just fine.
         //my_property.getProperty_updated_by(request.getParameter("property_updated_by")); this without the // get the not aplicable error as well(that in my other class file which is linked to this jsp the parameter is not aplicable). i managed to make in other jsp problem identical problem go away by adding a declaration of string and adding that string into the getParameter and this case everything should be okei, but it is not :(
    Anyway property.jsp uses property.java to get the getParameter and setParameter, PropertyDAO is the database stuff (connecting to database, getting data from the database).
    To be on the safe side i will add my propertyDAO.java
    package property.dao;
    import java.sql.* ;
    import property.core.Property ;
    import property.log.MyLogger ;
    import java.util.*;
    public class PropertyDAO {
        private int propertycount ;
        ResultSet VaraHulk ;
        String sql ;
        String url = "jdbc:postgresql://localhost/database";
        String usr = "";
        String pwd = "";
        Connection db ;     
        Statement  st ;
        Property [] VaraMassiiv  ;
        Property Current_Property ;
      public PropertyDAO(){
           try{
                   ResourceBundle bundle = ResourceBundle.getBundle("DBConnection");
                    this.url = bundle.getString("URL");
                    this.usr = bundle.getString("usr");
                    this.pwd = bundle.getString("pwd");
                    Class.forName(bundle.getString("Driver"));
           }catch(Exception ex){
                MyLogger MyLogger = new MyLogger();
               MyLogger.Log("dao.propertyDAO():",ex.getMessage());
           public Property [] getProperty_fromDB(){
                try{
                     this.db = DriverManager.getConnection(this.url, this.usr, this.pwd);
                     this.st = this.db.createStatement();
                    sql = "select count(*) as varade_arv from property" ;
                    VaraHulk = this.st.executeQuery(sql);
                    while(VaraHulk.next()){
                         this.propertycount = VaraHulk.getInt("varade_arv");
                    sql = "select property, property_type.name AS property_type, property.name AS property_name, " +
                              "property.created AS property_created, employee.first_name "+
                  "AS property_created_by, property.updated AS property_updated,employee.first_name AS property_updated_by" +
                  " from property, property_type, employee where property_type."+
                  "property_type=property.property_type and property.created_by=employee.employee ORDER by property" ;
                    VaraHulk = this.st.executeQuery(sql);
                    VaraMassiiv = new Property[this.propertycount];
                    int cnt = 0;
                    while(VaraHulk.next()){
                         Current_Property = new Property();   
                         Current_Property.setProperty(VaraHulk.getInt("property"));
                         Current_Property.setProperty_type(VaraHulk.getString("property_type"));
                      Current_Property.setProperty_name(VaraHulk.getString("property_name"));
                      System.out.println("getProperty_name:" + Current_Property.getProperty_name() );
                      Current_Property.setProperty_created(VaraHulk.getString("property_created"));
                      System.out.println("getProperty_created:" + Current_Property.getProperty_created() );
                      Current_Property.setProperty_created_by(VaraHulk.getString("property_created_by"));
                      System.out.println("getProperty_created_by:" + Current_Property.getProperty_created_by() );
                      Current_Property.setProperty_updated(VaraHulk.getString("property_updated"));
                      System.out.println("getProperty_updated:" + Current_Property.getProperty_updated() );
                      Current_Property.setProperty_updated_by(VaraHulk.getString("property_updated_by"));
                      System.out.println("getProperty_updated_by:" + Current_Property.getProperty_updated_by() );
                      VaraMassiiv[cnt] = Current_Property ;
                      cnt =  cnt + 1;
                       this.db.close();
                }catch(Exception ex){
                     MyLogger MyLogger = new MyLogger();
                    MyLogger.Log("property.getProperty_fromDB():",ex.getMessage());
                return VaraMassiiv;
           public Property GetProperty_fromDB(int property){
                try{
                     this.db = DriverManager.getConnection(this.url, this.usr, this.pwd);
                    this.propertycount = 0;
                    this.st = this.db.createStatement();
                    sql = "select property, property_type.name AS property_type, property.name AS property_name, property.created AS property_created, employee.first_name "+
                  "AS property_created_by,property.updated AS property_updated, employee.first_name AS property_updated_by" +
                  " from property, property_type, employee where property_type."+
                  "property_type=property.property_type and property.created_by=employee.employee and property.property =" + Integer.toString(property) ;
                    VaraHulk = this.st.executeQuery(sql);
                    while(VaraHulk.next()){
                         Current_Property = new Property();
                      Current_Property.setProperty(VaraHulk.getInt("property"));
                      Current_Property.setProperty_type(VaraHulk.getString("property_type"));
                      Current_Property.setProperty_name(VaraHulk.getString("property_name"));
                      System.out.println("getProperty_name:" + Current_Property.getProperty_name() );
                      Current_Property.setProperty_created(VaraHulk.getString("property_created"));
                      System.out.println("getProperty_created:" + Current_Property.getProperty_created() );
                      Current_Property.setProperty_created_by(VaraHulk.getString("property_created_by"));
                      System.out.println("getProperty_created_by:" + Current_Property.getProperty_created_by() );
                      Current_Property.setProperty_updated(VaraHulk.getString("property_updated"));
                      System.out.println("getProperty_updated:" + Current_Property.getProperty_updated() );
                      Current_Property.setProperty_updated_by(VaraHulk.getString("property_updated_by"));
                      System.out.println("getProperty_updated_by:" + Current_Property.getProperty_updated_by() );
                      this.propertycount =   this.propertycount + 1;
                    this.db.close();
                } catch(Exception ex){
                     MyLogger MyLogger = new MyLogger();
                    MyLogger.Log("PropertyDAO.GetProperty_fromDB():",ex.getMessage());
                return Current_Property ;
          public void UpdateProperty_to_DB (Property updated_property){
                try{
                     this.db = DriverManager.getConnection(this.url, this.usr, this.pwd);
                     this.st = this.db.createStatement();
                     int stmtInt = this.st.executeUpdate("update property set property_type='" + updated_property.getProperty_type() +
                               "',name=" +  updated_property.getProperty_name() + ",created=" + updated_property.getProperty_created() +
                               ",'created_by='" + updated_property.getProperty_created_by() +  ",updated="+updated_property.getProperty_updated()+
                               ",updated_by="+updated_property.getProperty_updated_by()+
                               "' where property=" + Integer.toString(updated_property.getProperty() ));
                     this.db.close(); 
                }catch(Exception ex){
                        MyLogger MyLogger = new MyLogger();
                        MyLogger.Log("PropertyDAO.UpdateProperty_to_DB():",ex.getMessage());
           public void finalize(){
                 try{
                   System.out.println("finalize");
                  }catch(Exception ex){ 
                    MyLogger MyLogger = new MyLogger();
                    MyLogger.Log("PropertyDAO.finalize():",ex.getMessage());
    }Property.java
    package property.core;
    import property.log.MyLogger ;
    public class Property {
        //private int propertycount ;
        private int property ;
        //private int current_property ;
        private String property_type ;
        private String property_name ;
        private String property_created ;
        private String property_created_by;
        private String property_updated_by;
        private String property_updated;
        public Property(){
             try{
             }catch(Exception ex){
                   MyLogger MyLogger = new MyLogger();
                   MyLogger.Log("core.Property():",ex.getMessage());
        public void setProperty (int property){
             this.property = property;
        public void setProperty_type (String property_type){
             this.property_type = property_type;
        public void setProperty_name (String property_name){
             this.property_name = property_name;
        public void setProperty_created ( String property_created){
             this.property_created = property_created;
        public void setProperty_created_by (String property_created_by){
             this.property_created_by = property_created_by;
        public void setProperty_updated ( String property_updated){
             this.property_updated = property_updated;
        public void setProperty_updated_by (String property_updated_by){
             this.property_updated_by = property_updated_by;
        public int getProperty () {
             return this.property ;
        public String getProperty_type () {
             return this.property_type ;
        public String getProperty_name () {
             return this.property_name ;
        public String getProperty_created () {
             return this.property_created;
        public String getProperty_created_by () {
             return this.property_created_by;
        public String getProperty_updated () {
             return this.property_updated;
        public String getProperty_updated_by () {
             return this.property_updated_by;
        public void finalize(){
             try{
                  System.out.println("finalize");
             }catch (Exception ex){
                   MyLogger MyLogger = new MyLogger();
                   MyLogger.Log("core.Property():",ex.getMessage());
    }(well it took me 3 days to get the code to work that much as it does anyways)
    hope someone here can help
    Edited by: kohuke on May 30, 2008 11:27 AM
    Added few codes that is connected with the current jsp page

    are you sure your stop() are in the right place??
    eg.. on the last frame of the onRollOver animation??
    also... why have you got on(releaseOutside); ???
    onRollOut will suffice.

Maybe you are looking for

  • Query on object-relational data takes forever

    hello all i have a problem with a query performance... it seems like whenever i call a specific object function, the query executes very very slow. The results though are correct. let me explain what i do... I have some relational tables, and i recre

  • How to convert pixels in mm ?

    Hello everybody! I'm making a tool in which the user specifies the size of the frame, I want to give him the opportunity to choose between units of measurement. How do I convert one unit to another? Centimeters to millimeters as I know :-) The calcul

  • Organizing for stock library. Projects, folders or albums?

    This may have been talked about to death, but I cannot find a thread that fits my question. I have a growing library of images in Aperture. I am also a stock photographer by living. My library in Aperture is somewhat haphazard and I'm trying to organ

  • IPhone SDK Q's

    Here are my questions: Do you have to know how to code to use it? Does the whole thing rely on coding? If anybody has it, is it easy to use? I've seen the whole keynote but it didn't help much.

  • Maximum app size, iPad

    Hi I've read elsewhere that an ipa can be max 2GB in size, but any data downloaded after that is only limited to the amount of storage on the device. Can someone confirm this is the case with AIR for iPad? My app is small but will need to download an