Cursores para JSP

Deseo saber csmo puedo devolver un cursor de Oracle hacia una pagina JSP. Escribiendo el procedimiento dentro de una paquete de Oracle y no en la pagina JSP.
Lo he intentado de la siguiente forma:
Pagina: mostrar.jsp
<%@ page contentType="text/html;charset=WINDOWS-1252"%>
<%@ page import="oracle.jdbc.*" %>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<TITLE>
</TITLE>
</HEAD>
<%
Class.forName("oracle.jdbc.driver.OracleDriver");
OracleConnection con=DriverManager.getConnection("jdbc:oracle:thin:@servidor:1521:ORCL","username","password");
//Llamamos al procedimiento Almacenado, incluido dentro de un paquete de Oracle
//dsnde lo znico que hace es devolver un cursor de un select
CallableStatement llamada=con.prepareCall("{call pk_areas.pr_s_areas_prueba(?)}");
ResultSet r=null;
llamada.setCursor(1,r);
llamada.registerOutParameter(1,OracleTypes.CURSOR);
llamada.execute();
r = llamada.getCursor(1);
while (r.next())
out.println(r.getString("descripcion") + "<br>");
r.close();
%>
<BODY>
</BODY>
</HTML>
El error me lo proporciona en la lmnea de csdigo:
OracleConnection con=DriverManager.getConnection("jdbc:oracle:thin:@servidor:1521:ORCL","username","password");
siendo este:
Variable DriverManager not found in class myproyect1_html.mostrar.
Gracias.

usted necesita incluir el siguiente en la declaracisn de la importacisn, no "oracle.jdbc"
incluir java.sql.*, oracle.jbo.*
<%@ page language = "java" errorPage="iverrorpage.jsp" import = "java.util.*, java.sql.*, oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*, oracle.jbo.html.databeans.*" contentType="text/html;charset=WINDOWS-1252" %>
null

Similar Messages

  • Problems with Tomcat 4.0 and jdk 1.3.1 (jsp:include) Help Gurus...

    Im running examples of the include:
    <jsp:include page="xxx.jsp" flush="true">
    and received error:
    org.apache.jasper.JasperException: No se puede compilar la clase para JSP
    An error occurred at line: 17 in the jsp file: /jsp/include/include.jsp
    Generated servlet error:
    /Programas/Tomcat4/work/localhost/examples/jsp/include/include$jsp.java:79: Method include(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, javax.servlet.jsp.JspWriter, boolean) not found in class org.apache.jasper.runtime.JspRuntimeLibrary.
    JspRuntimeLibrary.include(request, response, "/jsp/include/foo.html" + jspxqStr, out, true);
    ^
    Please Help me Im running this equal with:
    <%@ include file="xxx.jsp" %>
    and runnig fine....

    The two means of including files are different in their approach.
    Using <jsp:include .../> compilation of the included jsp is done at run -time not during compilation.
    Using <%@ include .../> compiles at compile time.
    Looking at the error it seems that the method JspRuntimeLibrary.include is not being found which suggests that you may have a classpath problem. Check that there is not a servlet.jar in the classpath that is from a earlier spec than the one provided with Tomcat.
    Dave

  • SQL Cursors HELP  ASAP

    I need somebody to help me with sql cursors, in JSP.
    This is my peace of code what is wrong with it?
              Statement stmt = myConn.createStatement();
              stmt.executeQuery("BEGIN WORK");
              stmt.executeQuery("DECLARE item_cursor CURSOR FOR SELECT user_name FROM admin_info");
              stmt.executeQuery("FETCH 10 FROM item_cursor");
              ResultSet rs = stmt.getResultSet();
              while(rs.next()){
                   if(rs.getString(1) != null){
                        user_name = rs.getString(1).trim();
    %><P><%= user_name %></P><%
              stmt.executeQuery("CLOSE item_cursor");
              stmt.executeQuery("COMMIT WORK");
    and this is the error that a get: No results where returned by the query
    Please help anybody
    thanx guys

    If you are using ORACLE drivers and classes.
    This sample program shows Oracle JDBC REF CURSOR functionality, creating a PL/SQL package that includes a stored function that returns a REF CURSOR type. The sample retrieves the REF CURSOR into a result set object.
    * This sample shows how to call a PL/SQL function that opens
    * a cursor and get the cursor back as a Java ResultSet.
    import java.sql.*;
    import java.io.*;
    import oracle.jdbc.driver.*;
    class RefCursorExample
    public static void main (String args [])
    throws SQLException
    // Load the driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Connect to the database
    // You can put a database name after the @ sign in the connection URL.
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:oci8:@", "scott", "tiger");
    // Create the stored procedure
    init (conn);
    // Prepare a PL/SQL call
    CallableStatement call =
    conn.prepareCall ("{ ? = call java_refcursor.job_listing (?)}");
    // Find out all the SALES person
    call.registerOutParameter (1, OracleTypes.CURSOR);
    call.setString (2, "SALESMAN");
    call.execute ();
    ResultSet rset = (ResultSet)call.getObject (1);
    // Dump the cursor
    while (rset.next ())
    System.out.println (rset.getString ("ENAME"));
    // Close all the resources
    rset.close();
    call.close();
    conn.close();
    // Utility function to create the stored procedure
    static void init (Connection conn)
    throws SQLException
    Statement stmt = conn.createStatement ();
    stmt.execute ("create or replace package java_refcursor as " +
    " type myrctype is ref cursor return EMP%ROWTYPE; " +
    " function job_listing (j varchar2) return myrctype; " +
    "end java_refcursor;");
    stmt.execute ("create or replace package body java_refcursor as " +
    " function job_listing (j varchar2) return myrctype is " +
    " rc myrctype; " +
    " begin " +
    " open rc for select * from emp where job = j; " +
    " return rc; " +
    " end; " +
    "end java_refcursor;");
    stmt.close();

  • Cursor en un control numerico

    hola, como estan, tengo un problema y espero que ustedes puedan ayudarme, veran yo quiero poder incrementar decrementar un control numerico con un par de botones (arriba y abajo) y con otro par de comand buttons seleccionar hacia donde se mueve el cursor (derecha o izquierda) el problema es que yo quiero visualizar el numero sobre el cual este el cursor, mi idea es que el digito  empiece a parapadear (blinking) algo asi como el agilent function generator que trae el multisim...
    el problema es que el blinking funciona para todo el control numerico y yo quiero que solo parapadee el digito sobre el cual este el cursor para asi poder incrementarlo o decrementarlo con los controles respectivos..

    Translation 
    I
    have a problem and hope you can help me, I want to increase veran
    decrement numeric control with a pair of buttons (up and down) and
    another pair of comand buttons to select where you move the cursor
    (right or
    left) the problem is that I want to see the number on which this mouse,
    my idea is that the start digit blinks (blinking) something like the
    Agilent function generator that brings multisim ...
    the
    problem is that everything works for the blinking numeric control and I
    want parapadee only the digit on which the cursor so you can increase
    or decrease with respective controls ..
    You can post in the spanish board for better response

  • Traço vertical no facebook

    Toda vez que uso um recurso do Facebook que abre uma janela nova (exemplo: ao compartilhar algo, aparece uma janela para eu escrever e botões de compartilhar, etc... esse tipo de janela... não sei o nome exato ), tais como o compartilhar, ou quando vejo quem curtiu determinada postagem, etc,
    aparece um traço vertical, que tende a estar no centro ou mais à esquerda. Este traço, quando existe o aparecimento de um cursor para escrever (caso do recursos compartilhar, p. ex.), costuma piscar junto com o cursor. Ainda que seja, na verdade, bem maior do que este (na verdade, o tamanho do traço vertical é pouco maior do que o da janela). Quando não há cursor, o traço também aparece, mas sem piscar.
    Tentei em outros navegadores (Int Explorer), e o problema lá não ocorre. Mesmo no PC de outra pessoa, que usei para testar, o problema não ocorria no Firefox, mas descobri que se tratava do Firefox 32 (o meu é o atual, 33). Aliás, o Firefox 33 foi instalado no exato dia em que o problema apareceu. Ainda que este site diga que não é bom retornar às versões anteriores do Firefox.
    O que faço? Não devo retornar ao Firefox 32 mesmo não? (Fora que não sei como o faria). Como posso ajustar esse problema de configuração com o Firefox?
    Enfim... queria voltar ao normal... como faço???

    Olá,
    Tente desativar a aceleração dos gráficos através do hardware. Como esse recurso foi adicionado ao Firefox, tem melhorado gradualmente, mas ainda existem algumas falhas.
    Pode ser necessário reiniciar o Firefox para que a alteração entre em vigor, então salve todos os trabalho que estiver fazendo primeiro.
    Em seguida, execute essas etapas:
    #Abra a janela opções do Firefox (Preferências no Mac ou Linux) como segue:
    #*No Firefox 29,0 e superioes, clique no botão de menu [[Image:New Fx Menu]] e selecione {button Opções} no Windows ou {button Preferências} no Mac ou Linux.
    #*No Firefox 28.0 e versões anteriores, clique no botão laranja Firefox no canto superior esquerdo e selecione Preferências, se não houver um botão laranja '''Firefox''', selecione Ferramentas > Preferências.
    # Na janela de opções (ou preferências), clique na abaa '''Avançado''' e em seguida clique na aba '''Geral'''
    # Nas opções exibidas, desmarque a opção ''Quando disponível, utilizar a aceleração por hardware''.
    # Agora, reinicie o Firefox e veja se o problema persistir.
    Além disso, verifique se há atualizações para o driver da placa de video, seguindo os passos mencionados nos seguintes artigos da base de conhecimento:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Resolveu os seus problemas? Por favor, nos informe!
    Obrigado.

  • Problems with Tomcat 4.0 and jdk 1.3.1 Please Urgent Help me Gurus....

    Im running examples of the include
    <jsp:include page="xxx.jsp">
    and received error:
    org.apache.jasper.JasperException: No se puede compilar la clase para JSP
    An error occurred at line: 17 in the jsp file: /jsp/include/include.jsp
    Generated servlet error:
    /Programas/Tomcat4/work/localhost/examples/jsp/include/include$jsp.java:79: Method include(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, javax.servlet.jsp.JspWriter, boolean) not found in class org.apache.jasper.runtime.JspRuntimeLibrary.
    JspRuntimeLibrary.include(request, response, "/jsp/include/foo.html" + jspxqStr, out, true);
    ^

    Try these files on your setup.
    simple_include.jsp
    <%@ page language="java" %>
    <%@ page import="java.sql.*"%>
    <%@ page import="java.sql.Connection"%>
    <%@ page import="java.sql.Statement"%>
    <%@ page import="java.sql.ResultSet"%>
    <%@ page import="java.sql.SQLException"%>
    <jsp:include page="simple_top.jsp" flush="true" />
    <%
                Connection conn = null;
                Statement stmt = null;
                ResultSet rs = null;
                String url = "jdbc:odbc:CafeJava";
                String query = "select COF_NAME, PRICE from COFFEES";
                try {
                  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                } catch(java.lang.ClassNotFoundException e) {
                  System.err.print("ClassNotFoundException: ");
                  System.err.println(e.getMessage());
                try {
                  conn = DriverManager.getConnection(url, "Admin", "duke1");
                  stmt = conn.createStatement();
                  rs = stmt.executeQuery(query);
                  while (rs.next()) {
                    String s = rs.getString("COF_NAME");
                    float f = rs.getFloat("PRICE");
    %>
              <tr><td><%=s %></td><td><%=f %></td></tr>
    <%
                  stmt.close();
                  conn.close();
                } catch(SQLException ex) {
                  System.err.println("SQLException: " + ex.getMessage());
    %>
    <jsp:include page="simple_bottom.jsp" flush="true" />simple_top.jsp (this is just html named with a .jsp extension
        <html>
          <title>
            Cafe Java
          </title>
          <head>
          </head>
          <body>
            <h1>Welcome to Cafe Java!</h1>
            <h2>Available Coffees:</h2>
            <table>
              <tr><th>Coffee</th><th>Price</th></tr>simple_bottom.jsp (ditto)
            </table>
          </body>
        </html>This all assumes that you have the database demos in the jdk directory set up correctly on your machine and have played around with the Cafe Java files enough to have done the create coffees bit so that there are actually some values in the tables. If not you can open the file at:
    C:\jdk1.3\demo\jfc\DBDemos\JavaDB\CAFEJAVA.MDB directly and create and populate the tables, being sure to name the columns as they are in the jsp files.
    In the immortal words of Catbert, "it runs fine on my machine."
    Edward

  • Bypass login page for InfoView in BOE 3.0

    Hi
    Could anyone let me know how to redirect to a user's home page on InfoView panel  directly without the login page coming in between for BOE 3.0. This functionality is currently working fine for BOE 2.0 as I am passing user credentials as name , value pair.
    I am not aware how to pass user credentials in the URL for BOE 3.0 infoview and bypass the loging page. I am working on Single Sign On
    Cheers
    Nissar

    Hi Vishal,
    How to create a logon page for InfoView with hardcoded username and password
    I have developed this code below but it does not work, let me know how to fix
    Thanks in advance.
    Antonio
    <%@ page contentType="text/html; charset=utf-8" %>
    <%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
    <%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise" %>
    <%@ page import="com.crystaldecisions.sdk.framework.IEnterpriseSession" %>
    <%@ page import="com.crystaldecisions.sdk.framework.ISessionMgr" %>
    <%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoStore" %>
    <%@ page import="java.io., java.net., javax.servlet., java.util."%>
    String authMethod = "secEnterprise";
    /* Log on using the Enterprise SDK */
    String userID = "curso_2013";
    String userPwd = "Curso2013&&";
    String cmsName = request.getServerName()+":6400";
    try {
    IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon(userID, userPwd, cmsName, authMethod);
    session.setAttribute("EnterpriseSession", enterpriseSession);
    IInfoStore iStore = (IInfoStore)enterpriseSession.getService("InfoStore");
    session.setAttribute("InfoStore", iStore);
    String logonToken = enterpriseSession.createLogonToken();
    String openDocURL="http://xp-sp3-limpio:8080/InfoViewApp/logon/start.do?ivsLogonToken=" + logonToken;
    response.sendRedirect(openDocURL);
    } catch(Exception e) {
    out.println("Error: User, Password or CMS name is wrong or Not all parameters sent by URL");
    No se puede compilar la clase para JSP Error de servlet generado: Syntax error on token ".", Identifier expected after this token Error de servlet generado: Syntax error on token ".", Identifier expected after this token Error de servlet generado: Syntax error on token ".", Identifier expected after this token Error de servlet generado: Syntax error on token ".", Identifier expected after this token Ha tenido lugar un error en la línea: 15 en el archivo jsp: /logonpruebaok2.jsp Error de servlet generado: The method createLogonToken() is undefined for the type IEnterpriseSession

  • Source template ID

    DECLARE
    --Con esta responsabilidad tengo permiso para crear proyectos+
    v_resp_name VARCHAR(300) := 'Satec - Superusuario de Projects';
    v_usuario VARCHAR(50) := 'GILBERTO.LOPES';
    l_user_id NUMBER := 8721;
    l_responsibility_id NUMBER := 51090;
    --Esta no tengo claro porque se declara+
    +v_template pa_projects.project_id%Type; --'&Template'; --Project id from template+
    --Variables necesitadas por los parámetros standard de la API+
    l_api_version_number NUMBER := 1.0;
    l_commit VARCHAR2(1) := 'F';
    l_return_status VARCHAR2(1);
    l_init_msg_list VARCHAR2(1) := 'F';
    l_msg_count NUMBER := 0;
    l_msg_data VARCHAR2(2000);
    l_data VARCHAR2(2000);
    l_msg_index_out NUMBER;
    l_workflow_started VARCHAR2(1) := 'Y';
    l_pm_product_code VARCHAR2(10);
    +m NUMBER := 0; --Variable para los registros de la tabla+
    +a NUMBER := 0; --Variable para las tareas+
    --Variables necesitadas por los parámetros especificos+
    l_project_in
    PA_PROJECT_PUB.project_in_rec_type;
    l_project_out
    PA_PROJECT_PUB.project_out_rec_type;
    l_key_member_rec
    PA_PROJECT_PUB.project_role_rec_type;
    l_org_roles
    PA_PROJECT_PUB.project_role_rec_type;
    l_key_member_tbl
    PA_PROJECT_PUB.project_role_tbl_type;
    l_class_categories
    PA_PROJECT_PUB.class_category_tbl_type;
    l_tasks_in_rec
    PA_PROJECT_PUB.TASK_IN_REC_TYPE;
    l_tasks_in
    PA_PROJECT_PUB.task_in_tbl_type;
    l_tasks_out_rec
    PA_PROJECT_PUB.TASK_OUT_REC_TYPE;
    l_tasks_out
    PA_PROJECT_PUB.task_out_tbl_type;
    l_structure_in
    PA_PROJECT_PUB.structure_in_rec_type;
    l_person_id NUMBER;
    l_project_role_type VARCHAR2(20);
    API_ERROR EXCEPTION;
    --Cursor para almacenar datos de proyecto+
    CURSOR LOAD_PROJECT_DATA IS
    SELECT  project_id,
    segment1,
    pm_project_reference,
    name,
    description,
    PROJECT_STATUS_CODE,
    carrying_out_organization_id,
    START_DATE,
    COMPLETION_DATE,
    created_from_project_id,
    template_flag
    FROM pa_projects
    WHERE (rownum <= 1) and (template_flag = 'N');
    CURSOR CUR_TASK_LOAD (p_project_id VARCHAR) IS
    +SELECT *+
    from pa_tasks
    where project_id = p_project_id;
    BEGIN
    -- GET GLOBAL VALUES
    select user_id, responsibility_id
    into l_user_id, l_responsibility_id
    from pa_user_resp_v
    where user_name = v_usuario
    and responsibility_name = v_resp_name;
    -- SET GLOBAL VALUES
    pa_interface_utils_pub.set_global_info(p_api_version_number => 1.0,
    p_responsibility_id => l_responsibility_id,
    p_user_id => l_user_id,
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => l_return_status);
    FOR C1 IN LOAD_PROJECT_DATA LOOP
    BEGIN
    -- PRODUCT DATA (PROJECT_IN_REC_TYPE)
    l_project_in.created_from_project_id := C1.created_from_project_id; Project id from template+
    --l_project_in.team_template_id := C1.created_from_project_id;+
    l_project_in.pa_project_id := C1.created_from_project_id;
    l_project_in.pa_project_number := concat('mig',C1.segment1);
    l_project_in.project_name := concat('mig',SUBSTR(C1.name, 1, 27));
    l_project_in.long_name := substr(C1.description,1,240);
    l_project_in.pm_project_reference := C1.segment1;
    l_project_in.description := C1.DESCRIPTION;
    l_project_in.project_status_code := C1.PROJECT_STATUS_CODE;
    l_project_in.carrying_out_organization_id := C1.carrying_out_organization_id;
    l_project_in.start_date := C1.START_DATE;-- can override default from template
    l_project_in.completion_date := C1.COMPLETION_DATE; -- can override default from template
    l_project_in.actual_start_date := C1.START_DATE;
    l_project_in.actual_finish_date := C1.COMPLETION_DATE;
    l_project_in.early_start_date := C1.START_DATE;
    l_project_in.early_finish_date := C1.COMPLETION_DATE;
    l_project_in.late_start_date := C1.START_DATE;
    l_project_in.late_finish_date := C1.COMPLETION_DATE;
    --TASKS DATA+ 
    -- create them individually.
    a := 0;
    FOR REC_TASK IN CUR_TASK_LOAD(v_template) LOOP
    a := a 1;+
    --          l_tasks_in_rec.pa_task_id                             := REC_TASK.TASK_ID;
    l_tasks_in_rec.task_start_date                        := C1.START_DATE;
    l_tasks_in_rec.pm_task_reference                      := REC_TASK.TASK_NUMBER;
    l_tasks_in_rec.pa_task_number                         := REC_TASK.TASK_NUMBER;
    l_tasks_in_rec.task_name                              := REC_TASK.TASK_NAME;
    --          l_tasks_in_rec.pa_parent_task_id                      := REC_TASK.TOP_TASK_ID;
    l_tasks_in_rec.wbs_level                              := REC_TASK.WBS_LEVEL;
    l_tasks_in_rec.ready_to_bill_flag                     := REC_TASK.READY_TO_BILL_FLAG;
    l_tasks_in_rec.ready_to_distribute_flag               := REC_TASK.READY_TO_DISTRIBUTE_FLAG;
    l_tasks_in_rec.task_description                       := REC_TASK.DESCRIPTION;
    l_tasks_in_rec.carrying_out_organization_id           := REC_TASK.CARRYING_OUT_ORGANIZATION_ID;
    l_tasks_in_rec.service_type_code                      := REC_TASK.SERVICE_TYPE_CODE;
    l_tasks_in_rec.chargeable_flag                        := REC_TASK.CHARGEABLE_FLAG;
    l_tasks_in_rec.billable_flag                          := REC_TASK.BILLABLE_FLAG;
    l_tasks_in_rec.limit_to_txn_controls_flag             := REC_TASK.LIMIT_TO_TXN_CONTROLS_FLAG;
    l_tasks_in_rec.non_labor_bill_rate_org_id             := REC_TASK.NON_LABOR_BILL_RATE_ORG_ID;
    l_tasks_in_rec.labor_bill_rate_org_id                 := REC_TASK.NON_LABOR_BILL_RATE_ORG_ID;
    l_tasks_in_rec.non_labor_std_bill_rate_schdl          := REC_TASK.NON_LABOR_STD_BILL_RATE_SCHDL;
    l_tasks_in_rec.labor_sch_type                         := REC_TASK.LABOR_SCH_TYPE;
    l_tasks_in_rec.non_labor_sch_type                     := REC_TASK.NON_LABOR_SCH_TYPE;
    l_tasks_in_rec.allow_cross_charge_flag                := REC_TASK.ALLOW_CROSS_CHARGE_FLAG;
    l_tasks_in_rec.project_rate_type                      := REC_TASK.PROJECT_RATE_TYPE;
    l_tasks_in_rec.cc_process_labor_flag                  := REC_TASK.CC_PROCESS_LABOR_FLAG;
    l_tasks_in_rec.cc_process_nl_flag                     := REC_TASK.CC_PROCESS_NL_FLAG;
    l_tasks_in_rec.receive_project_invoice_flag           := REC_TASK.RECEIVE_PROJECT_INVOICE_FLAG;
    l_tasks_in_rec.work_type_id                           := REC_TASK.WORK_TYPE_ID;
    l_tasks_in_rec.job_bill_rate_schedule_id              := REC_TASK.JOB_BILL_RATE_SCHEDULE_ID;
    l_tasks_in_rec.taskfunc_cost_rate_type                := REC_TASK.TASKFUNC_COST_RATE_TYPE;
    l_tasks_in_rec.non_lab_std_bill_rt_sch_id             := REC_TASK.NON_LAB_STD_BILL_RT_SCH_ID;
    l_tasks_in_rec.long_task_name                         := REC_TASK.LONG_TASK_NAME;
    l_tasks_in(a) := l_tasks_in_rec;
    end loop;
    END;
    END LOOP;
    commit;
    --Create project()+
    pa_project_pub.init_project;
    PA_PROJECT_PUB.create_project
    +(p_api_version_number => l_api_version_number,+
    p_commit => l_commit,
    p_init_msg_list => l_init_msg_list,
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => l_return_status,
    p_workflow_started => l_workflow_started,
    p_pm_product_code => l_pm_product_code,
    p_project_in => l_project_in,
    p_project_out => l_project_out,
    +p_key_members => l_key_member_tbl, --Tipo tabla+
    p_class_categories => l_class_categories,
    p_tasks_in => l_tasks_in,
    p_tasks_out => l_tasks_out);
    -- check error messages
    IF l_return_status != 'S'
    THEN
    if l_msg_count > 0 THEN
    for i in 1..l_msg_count loop
    pa_interface_utils_pub.get_messages (
    p_encoded => 'F'
    +,p_msg_index => i+
    +,p_msg_count => l_msg_count+
    +,p_msg_data => l_msg_data+
    +,p_data => l_data+
    +,p_msg_index_out => l_msg_index_out );+
    -- Insert the messages from l_data into error_table
    DBMS_OUTPUT.PUT_LINE (i);
    DBMS_OUTPUT.PUT_LINE (l_msg_count);
    DBMS_OUTPUT.PUT_LINE (l_data);
    DBMS_OUTPUT.PUT_LINE (l_msg_data);
    end loop;
    end if;
    END IF;
    commit;
    END;
    It gives me the PA_SOURCE_TEMP_IS_MISSING_AMG error:
    "Project: '&PROJECT'
    Source template ID is required."
    What can I do to solve it?
    Thanks a lot.
    Edited by: 808580 on 09-nov-2010 1:03
    Edited by: 808580 on 09-nov-2010 1:03

    Hi
    I think you don't have privilges, can you check with system adminstration team also there could be role base security for the menu that is provided to you
    Thanks
    Krishna

  • HELP Unable to find a javac compiler

    Hi I try to show a report maked in CrystalReports11 and i try to view y a jsp page but the next error apears:
    Estado HTTP 500 -
    type Informe de Excepci�n
    mensaje
    descripci�n El servidor encontr� un error interno () que hizo que no pudiera rellenar este requerimiento.
    excepci�n
    org.apache.jasper.JasperException: No se puede compilar la clase para JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    causa ra�z
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Somebody help me or any know how view a report in Jbuilder but not in jsp?? thanks!

    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.Ensure that the tools.jar from the JDK is part of your classpath

  • Transaction Descuentos por Linea en la ORDR

    Buen dia Expertos quiero realizar un transaction para que valide los descuentos que se realizan en un pedido en SAP
    el porcentaje se rige con las escalas de descuentos que tenemos en la tabla SPP2, el objetivo de este transaction es mantener la integridad de los descuentos estipulados y no se puedan cambiar los descuentos de acuerdo a nuestra tabla de descuentos, por ejemplo por 3 cajas de algún producto es el 2% de descuento estipulado pero si alguien le pone 4% no lo permita porque el descuento asignado según la SPP2 es 2%, he intentado usar cursores para leer las lineas de productos y realizar comparaciones pero no lo he logrado, si alguien pudiera brindarme su ayuda para terminar este requerimiento se lo agradecería mucho.
    De antemano muchas gracias.
    Saludos Cordiales

    Puedes incluir una comprobación en el Transaction Notification, la comprobación que deberías hacer sería algo así:
    @descuentos_modificados as numeric
    IF @object_type in ('15') And @transaction_type in ('A')
    Begin
    set @descuentos_modificados = (select  count(*) from odln
    left join dln1  on
    odln.docentry = dln1.docentry
    left join spp2 on
    dln1.itemcode = spp2.itemcode and
    odln.cardcode = spp2.cardcode and
    dln1.quantity >= spp2.amount and
    spp2.amount = (select max(spp2.amount) from spp2 where amount<=dln1.quantity)
    where dln1.DiscPrcnt <> spp2.Discount and odln.docentry = @list_of_cols_val_tab_del)
    If @descuentos_modificados >0
         Begin
              Set @error =1
              Set @error_message = 'Error: Descuentos modificados'
         End
    End
    Saludos

  • [FL8] Evitar que se me encoja el texto al disminuir el ancho de un cuadro

    Hola amigos como puedo evitar que si en un cuadro de texto
    estatico tengo ya
    un texto escrito y a ese cuadro de texto le tengo que cambiar
    el tama�o y
    haerlo mas estrecho el texto que tengo dentro se me encoja en
    vez de
    ajustarse el texto dentro de la caja. No encuentro como
    hacerlo.
    Gracias

    Hola:
    pica sobre el texto y cuando te salga el cursor para
    escribir, agranda
    desde el manejador del extremo el cuadro, asi no se te
    deformara.
    Espero te sirva
    Un saludo
    Blue escribi�:
    > Hola amigos como puedo evitar que si en un cuadro de
    texto estatico tengo ya
    > un texto escrito y a ese cuadro de texto le tengo que
    cambiar el tama�o y
    > haerlo mas estrecho el texto que tengo dentro se me
    encoja en vez de
    > ajustarse el texto dentro de la caja. No encuentro como
    hacerlo.
    > Gracias
    >
    >

  • MySQL Login

    Hi All
    I'ts a simply error, but i can't find some solution for this error, the mistake is in line 2 ( tomcat definition ) see source
    ==========|
    HTML index |
    ==========|
    <HTML>
    <HEAD>
    <TITLE>Acceso al Sistema - Intra Web Escolar</TITLE>
    <STYLE TYPE="TEXT/CSS">
    .style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
    .style8 {font-size: 12px}
    .style10 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; }
    </STYLE>
    </HEAD>
    <BODY BGCOLOR="WHITE">
    <div align="center"><SPAN CLASS="STYLE1"><span class="style10"> Ingresa tu nombre de usuario y contrase�a para entrar al sistema</span> <br>
    <BR>
    </SPAN>
    </div>
    <FORM ACTION="FormAction.jsp" METHOD="post">
    <TABLE>
    <TD><SPAN CLASS="STYLE1 style8">Usuario:</SPAN></TD>
    <TD><INPUT NAME="usuario" TYPE="TEXT"> </TD>
    </TR>
    <TR>
    <TD><SPAN CLASS="STYLE1 style8">Contrase�a</SPAN><span class="style3">:</span></TD>
    <TD><INPUT NAME="contrasenia" TYPE="PASSWORD"></TD>
    </TR>
    <TD COLSPAN=2><INPUT TYPE="SUBMIT" VALUE="entrar"></TD>
    </TR>
    </TABLE>
    </FORM>
    </BODY>
    </HTML>
    =============|
    FormAction.jsp |
    =============|
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%
    Connection con = null;
    Statement st = null;
    ResultSet rs = null;
    String username = request.getParameter("usuario");
    String password = request.getParameter("contrasenia");
    String usuario;
    String contrasenia;
    try{
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:mysql://localhost/iwebescolar");
    rs = st.executeQuery("SELECT *FROM alumnos;);
    boolean found = false;
    while (rs.next()){
    usuario = rs.getString("Alumno");
    contrasenia = rs.getString("Password");
    if(usuario.equals(username) && contrasenia.equals(password)){
    found = true;
    if (found == true){
    out.println("<h2>Login Successful</h2>");
    out.println("Welcome <b>" + usuario + "</b>!
    if (found == false) {
    out.println("<h2>Login Unsuccessful</h2>");
    rs.close();
    catch (Exception e) {
    %>
    <%=e.getMessage()%>
    <%}
    %>

    Yes it's error too but the Tomcat Server Say:
    Status HTTP 500 -
    org.apache.jasper.JasperException: No se puede compilar la clase para JSP
    Ha tenido lugar un error en la l�nea: 2 en el archivo jsp: /login2/FormAction.jsp
    Error de servlet generado:
    String literal is not properly closed by a double-quote
    this is the code:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%
    Connection con = null;
    Statement st = null;
    ResultSet rs = null;
    String username = request.getParameter("usuario");
    String password = request.getParameter("contrasenia");
    String usuario;
    String contrasenia;
    try{
                       Class.forName("com.mysql.jdbc.Driver").newInstance();
                       conn = DriverManager.getConnection("jdbc:mysql://localhost/iwebescolar");               
                       rs = st.executeQuery("SELECT *FROM alumnos);
                    boolean found = false;
                        while (rs.next()){
                        usuario     = rs.getString("Alumno");
                        contrasenia = rs.getString("Password");
                        if(usuario.equals(username) && contrasenia.equals(password)){
                         found = true;
    if (found == true){
    out.println("<h2>Login Successful</h2>");
    out.println("Welcome <b>" + usuario + "</b>! <p>");
    if (found == false) {
    out.println("<h2>Login Unsuccessful</h2>");
    rs.close();
    catch (Exception e) {
    %>
    <%=e.getMessage()%>
    <%}
    %>

  • PAR files and jsp pages into NWDS

    Hi,
    I need to modify transactions from the MSS 50.x package, i.e. HR transactions. I need to delete some fields on the screens.
    The sysadmin was giving me a par file
    com.sap.pct.hcm.attendanceoverviewperiod.par.bak
    But when I import the par file into NWDS, the only thing I see is the portalapp.xml and a bunch of attribute files.
    No jsp page, no class files..
    When I browse into the directoria via sysadmin/support/portal runtime via WEB-INF, I do see all the necessary files. But how do I get the whole bunch of classes, jsp etc into NWDS? Download all single elements and put them manually into a NWDS project? There must be a better way
    Any help will be gracefully awarded

    I tried it, but when I follow your instruction, NWDS gives me an error in the import wizard "<dir> does not have a .project file".
    If I look in the .par file, there is no .project file at all.
    I looked in the download of the PCD, there is no .project file either, but at least the java classes and the jsp. 
    Is it removed intentionally? Probably because it is an SAP business package?

  • In java/jsp got Error,ORA-01000: maximum open cursors exceeded,

    Dear ALL,
    We are facing a problem of in java/jsp. ORA-01000: maximum open cursors exceeded,We are using referance Cursor for returing the Record in java file.
    The Code is given below.
    import java.sql.*;
    import javax.sql.*;
    import com.india.trade.dbConnection.*;
    import oracle.jdbc.driver.*;
    import java.util.Vector ;
    public class IntRmsActivity
         private static JDBCConnection instance = null;
    private static Connection con = null;
         private static CallableStatement stmt_admin_getadmins = null;
         private static String str_admin_getadmins = "{ call Admin_conf.RMS_ADMIN_GETALLADMINS(?,?) }";
         static
              try
                   instance = new JDBCConnection();
                   con = instance.getConnection();
                   stmt_admin_getadmins = con.prepareCall(str_admin_getadmins);
    }catch(Exception se){se.printStackTrace();}
         public static Vector admin_getAdmins() throws Exception
              checkconnection();
              String message = null;
              Vector v_admins = new Vector();
              ResultSet rs_admins = null;
              stmt_admin_getadmins.registerOutParameter(1 , OracleTypes.CURSOR);
              stmt_admin_getadmins.registerOutParameter(2 , Types.VARCHAR);
              stmt_admin_getadmins.execute();
              message = stmt_admin_getadmins.getString(2);
              System.out.println("message " + message);
              rs_admins = ((OracleCallableStatement)stmt_admin_getadmins).getCursor(1);
              while (rs_admins.next())
                        v_admins.addElement(rs_admins.getString("adminid"));
              rs_admins.close();
              return v_admins;
    CREATE OR REPLACE PACKAGE Admin_conf IS
    TYPE REF_CRSR IS REF CURSOR; /* OUTPUT CURSOR VARIABLE TYPE */
    PROCEDURE RMS_ADMIN_GETALLADMINS(RESULTS OUT REF_CRSR,
                                            OUT_MESSAGE OUT VARCHAR2);
    END Admin_conf;
    CREATE OR REPLACE PACKAGE BODY Admin_conf
    IS
    PROCEDURE RMS_ADMIN_GETALLADMINS(RESULTS OUT REF_CRSR,
                                            OUT_MESSAGE OUT VARCHAR2)
    IS
    l_ref_out_crsr REF_CRSR;
    BEGIN
         OPEN l_ref_out_crsr FOR
         SELECT EXECUTIVE_ID adminid
         FROM MASTER_EXECUTIVE_ID
         ORDER BY EXECUTIVE_ID;
         OUT_MESSAGE := 'ADMIN IDS FETCHED SUCCESSFULLY';
         RESULTS := l_ref_out_crsr;     
    EXCEPTION WHEN OTHERS THEN
              OUT_MESSAGE := 'ERROR ' || SUBSTR(SQLERRM, 1, 60);
    END RMS_ADMIN_GETALLADMINS;
    END Admin_conf;
    Regards
    Ajay Singh Rathod

    Are you actually closing the connections, resultsets in all cases?
    From what you've posted you call
    rs_admins.close();but in that method, you propagate any exceptions that occur out to the caller method, which in turn just prints a stack trace.
    So if an exception occurs before you call the rs_admin.close() the result set will never be closed as the statement won't be reached.
    I'd add a speific exception handling routine to the admin_getAdmins() method and include a finally clause to close the result set in all cases. You can still onthrow the exception if you want.
    cheers
    -steve-

  • How to use JSP custom tag lib in PAR file?

    Hi All,
    I am trying to customize mastheaderpar file. For that I have downloaded relevant par file and making the changes accordingly.
    As part of the changes I would require to use JSP custom tag library in my par file.
    I have the TLD file and relevant classes in the jar file. I would like to know where and what kind of modifications have to be done to use the jsp custom tag library.
    I tried modifying some things in portalapp.xml but was not successful.
    Please help me on how to proceed with this? It would be great if you can provide the xml entry to use this tag library
    Thanks
    Santhosh

    Hi Johny,
    Thanks for the reply. Actually I am able to change colors etc. with out any problem.
    My requirement is to use XMLTaglib in mastheader par file. This tag lib is from apache tomcat. I have the relevant TLD and class files. I copied TLD file into taglib dir of portal-inf and class file in src api.
    And I have added the following line in portalapp.xml under component-profile section of default
    <property name="tlxtag" value="/SERVICE/Newmastheader/taglib/taglibs-xtags.tld">
    Is this the right way to use tag lib? Actually before adding this line I used to get the error saying "Error parsing taglib", but now the error does not occur and I am getting new error. This is an exception in one of the taglib classes.
    Could any one provide me some inputs on how to check this error?
    Thanks
    Santhosh

Maybe you are looking for

  • Adding a New Folder in Project Manager Crashes RH

    For the past few days, I have been having problems creating new folders in RH 7, Project Manager. Sometimes, it works just fine, and I can add folders, drag topics into them, import into them, create new topics, whatever. But then sometimes, the proj

  • HH3 - That's it, I've had enough - would a HH4 cur...

    Just a quick post, not!. I've made many posts regarding issues the hub2/3 a/b, but I'm posting this now as I'm getting too much ear ache from her indoors, 1 youtube obsessed pre teen and 1 know it all teen. I can take no more For as long as I can rem

  • Strange display when charging Gen. 4 Click-wheel iPod

    This just began to happen. I'm original owner of my gen. 4 click-wheel iPod. When I connect my iPod to my iMac to charge battery and update songs all works as usual until it is connected for an hour or so. They the display on the iPod shows a battery

  • Iphone 4 dock (Someone from apple I would really like a response)

    *I am sure many of you like myself purchased one, and I want to know what apple is now going to do since now it is absolutely useless to have one since it does not fit with the bumper*. Seriously, I love apple for thinking of the small things now it

  • Unable to attach file to create service notification(IW51) transactio iView

    Hi, We are using Create Service Notification (IW51) transaction iView (SAP GUI for HTML) in one of our portal workset. Few users are facing issue while trying to attach file to the Service Notification. When they open the file dialogue to attach the