Customized JSP/ DB results...

Hi guys,
I am developing an application, where I need to display the database records in a jsp page.
Requirement is that user wants the ability
-to select various fields from different tables taht should be displayed on the jsp page,
-user should be able set constraints on fields, for eg. custmore name like 'Joh' , orderDate betn mm/dd/yy and mm2/dd2/yy2 etc..
-some sorting abilities....
So, I need to develop a front end(jsp page) that provides the above features for user...
I could provide drop down boxes that lists fields from variuos tables(at most 5 tables, with say 20 fields in each) and allow them to select multiple fields to be displayed etc..in the similar format for sorting, but when it comes to adding constraints...it gets messy with so many fields....
I have put my brain to work on this......but at the same time it would be great if i can get some ideas from you guys, some of you might have already worked on similar requirement.....
thanks for your time and help

Each table has around 20 fields, in that case how to handle constraints.
user should be able select fields with some criteria, say,
custName like %xyz%
orderDate between a and b
etc..
if i provide a dropdown, that will have 20x#tables fields...which will be a long list....
I wonder haven't anyone faced a situation like this..

Similar Messages

  • How to call a concurrent program from a Custom JSP page.

    Hi,
    I have a custom JSP page which i have deployed by creating a form function with the path of the JSP Page
    and added the JSP Page to the OA_HTML top.
    Now, i need to call a concurrent program from the JSP Page, i have all the parameters in my page and i am using the standard class as below:
    ConcurrentRequest cr= new ConcurrentRequest(con);
    int requestId= cr.submitRequest("XXINV",programName,null,null,false,vec);
    I have verified my connection object and it is OK but i am getting the exception that user is not set to run the program.
    I tried the below code in my JSP page and getting -1 for all test variables :-
    int userId = wctx.getUserId();
    int respApplId = wctx.getRespApplId();
    int respId = wctx.getRespId();
    I think i need to set the context in JSP page to run the program..
    Pls help ....
    Regards
    Saurabh Jaiswal

    Hi,
    Thanks for the reply,,,
    This is a possible solution but this will allow to run the program anyhow.
    But the procedure which i call thru callable statement will start with
    fnd_global.apps_initialize (3825, 50603, 704);
    fnd_request.submit_request API call.
    Now, the values of user and Responsibilty is required in the program and it changes.
    With this approach we have to hardcode the user and resp.
    The same JSP page is attached to other responsibilities and there the concurrent program would get fired as if fired from the resp Id hardcoded as above.
    Need to capture user Id and RespId.
    How can i set the apps Context in JSP page???
    Regards
    Saurabh Jaiswal

  • Issue in keeping the InfoView session valid using Custom JSP Open Document

    Hi
    We are using OpenDocument URL in custom JSP to show BO Web Intelligence Document.  The documents are opening fine but some of our WebI documents have links to other WebI document,  when the link is clicked it takes to Info View Login Page.
    If I login and logout once from InfoView then the WebI document links work fine.
    Can you please guide me on how to make the session valid for WebI internal links?  Do I need to create a Cookie or use URL Encoding?
    Following is the sample JSP code:
    <%@ 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="com.crystaldecisions.sdk.occa.security.ILogonTokenMgr"%>
    <%
    try{
    String systemName = "ServerName";
    String userName = "user";
    String password = "pass";
    String authType = "secEnterprise";
    IEnterpriseSession enterpriseSession=null;
    if (enterpriseSession == null)
    ISessionMgr enterpriseSessionMgr = CrystalEnterprise.getSessionMgr();
    enterpriseSession = enterpriseSessionMgr.logon(userName, password, systemName, authType);
    ILogonTokenMgr logonTokenMgr = enterpriseSession.getLogonTokenMgr();
    String defaultToken = logonTokenMgr.createWCAToken("",20,10);
    response.sendRedirect("http://boServer:port/OpenDocument/opendoc/openDocument.jsp?iDocID=16894&token="+defaultToken);
    catch(Exception e)
    e.printStackTrace();
    %>

    Thanks Aasavari for responding. My problem is solved. 
    I need not create any cookie or create token using getLogonToken
    Some of the URLs in the webi documents were incorrect and so Info View was taking to the Info View Login page.  
    But I am surprised though why info view not complain about incorret and rather takes to the login page.
    Thanks for your help again.

  • Opening a seeded OAF page from custom JSP page.

    Hi All,
    We have requirement to open a seeded OAF page from custom JSP page.
    When we try to open URL of an OAF page after passing URL input parameters, we are always getting following error:
    'You have insufficient privileges for the current operation. Please contact your System Administrator.'
    On directly accessing the seeded OAF page, its encoding all the input parameters passed in URL. Also some more encoded parameters are getting added to the URL dynamically.
    Is there any standard way exists to invoke seeded OAF pages without passing encrypted parameters to it? Also where can we get more details about
    encrypting OAF URL parameters.
    Any pointers would be appreciated.
    Thanks in advance!
    Saurabh

    Have you duplicated entire Customer Service module's menu in your responsibility?
    or Also ping me the menu name..
    --Prasanna                                                                                                                                                                                                                                                               

  • How to Build Custom JSP Page to bypass Oracle Apps Login

    Hi All,
    Can some one guide me how to develop a custom jsp page to bypass Oracle Apps R12 Login.
    Actually Our requirement is some external user will enter the login details in some third party login page with the third party generated username and passwrod, that user's credentials are mapped to oracle system,so as soon as they enter credentials having validated it has to redirect that external user to Oracle Apps R12 Home Page, where responsibilities are shown. Currently that third Party login page is set to redirect to RF.jsp but that is not working and throws this error:
    "You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session.Please select Home to Proceed"
    So I am planning to build a custom jsp page to resolve the error.
    As soon as user enter credentials in the third party login page, it will be redirected to my custom login page which in turn redirect external user to Oracle Apps R12 Home Page, where responsibilities are shown. Is it possible? If yes what JSP Page/Servlet I have to invoke from custom JSP Page and what all URL parameters or session parameters and cookies parameter I have to pass or set.
    Can anybody please help me...
    Its very urgent. We are running short of time. Its a sev 1 issue.
    Please reply soon.
    Thanks,
    Raja Dutta

    Hi,
    Thanks for the update.
    Sir its not about calling the JSP Page from OAF page.
    My requirement is what I have explained above.
    Please suggest its urgent.
    Thanks,
    Raja Dutta

  • Problems in developing custom JSP tags

    I have problems in debugging custom JSP tags. Sometimes the doStartTag is not called on tags but the doEndTag is called. I don't know why.
    Thanks.

    Fahr--
    A word of caution -- NetUI did not ship a JSP tag SDK in 8.x, and
    we're making no compatibility guarantees for custom JSP tags written on
    the 8.x release and future releases.
    You can accomplish the same sort of functionality with a combination
    of the <netui-data:getData> tag and JSTL 1.0. This solution would
    probably provide similar functionality and be more future-proof relative
    to JSTL and the NetUI tags currently being developed in Beehive.
    Hope that helps.
    Eddie
    Fahr Vegnugen wrote:
    We are in the midst of creating our own JSP tags to work with datasources.
    In an example where you would need to compare two different datasources how would you do this?
    ie.
    <prefix:isGreater dataSource="{pageflow.column1}" dataSourceToCompare="{pageFlow.column2}" />
    How would I evaluate what column2 is since the tag will only resolve one data source
    this.evaluateDataSource();
    Any pointers you can provide would be appreciated, or if there is a library of jsp tags that evaluate objects using datasources already created, that would even be better.

  • Call Custom JSP from Screenflow JSP

    I need to call a static custom JSP(JSP2.jsp) from Screen flow JSP(JSP1.jsp) in Oracle BPM Studio while running Workspace.
    How do I do it? What will be the context path of JSP2.jsp while running workspace?
    JSP1.jsp has some context path created by Workspace. Where to keep my this custom JSP2.jsp and what is the path to call the same?
    I have tried giving/putting this static custom JSP.jsp in some other web server URL and worked fine. I want it to be inside my BPM Studio and need to be that path. It didn't work by just giving "JSP2.jsp" in the same folder structure of screen flow JSP1.jsp.

    The only thing i can think of, is that you aren't including the taglib.... The following works for me... (I keep my js files in a js folder in the webResouces, and css in a css folder... )
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <%@ page session="true" language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://fuego.com/jsp/ftl" prefix="f" %> 
    <html>
         <head>
              <link href="<f:webResources relativePath='css/Avio-JCI.css'/>" rel="stylesheet" type="text/css">
              <script type="text/javascript" src='<f:webResources relativePath="js/jquery-1.4.2.js"/>'></script>
    . . . . . HTH,
    -Kevin

  • How to use getContent() method in custom JSP Provider to display a HTML Pag

    Hi,
    If anybody knows how to use getContent() method to use in custom jsp providers (developed by ourselves) so that it can be used to retrieve a jsp page (a simple html page) ..
    I want the code in the provider java file to for the getContent method...
    Pls. get back to me asap....if any body has implemented a custom jsp provider...as it's urgent...
    I have alreday placed the JSP file in the directory structure /etc/opt/SUNWps/desktop/default/channel_dir..But still the jsp is not being displayed..
    Pls get me the getContent() method code to retrive the JSP file..
    satyabrata

    Hi,
    You don't have to do anything in the custom JSPProvider's getContent method except the call {  return super.getContent(request,response); } . If all you want is just to show your jsp, then create a channel from the default JSPProvider, and edit the property contentPage of that channel from samplecontent.jsp to your jsp name, save the changes and login again. You should see your JSP.
    Sanjeev.

  • Add organization lookup to custom JSP

    Hi Experts !
    i am trying to add organization lookup link in my custom JSP pages i have added to OIM. the code of my page is given below. when i click on the link for "View Lookup Details", the pop up screen has following message displayed :-
    INCORRECT_FIELD_LIST
    list of fields is incorrect
    the code of the page is given below :
    <%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
    <%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/tld/xellerate-tags.tld" prefix="tctags" %>
    <%@ page import="com.thortech.xl.webclient.util.FormField" %>
    <%@ page import="com.thortech.xl.webclient.actions.tcLookupFieldForm" %>
    <%@ page import="com.thortech.xl.webclient.actions.tcActionForm" %>
    <%@ page import="com.thortech.xl.webclient.util.tcMessageResourcesUtil" %>
    <html:html>
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/style.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/calstyle_all.css">
    <body >
    <html:form name="appointmentForm" action="/appointment" method="post">
    Create Designation
    <table border="0" align="center" class="A11" >
         <tr>
    <td align="left" class="grbx" valign="top">
    ID
    </td>
    <td height="6px"/>
    <td align="left" class="Input.textStyle" valign="top" >
    <html:text property="id" />
    </td>
    </tr>
              <tr>
    <td align="left" class="grbx" valign="top">
    Name
    </td>
    <td height="6px"/>
    <td align="left" class="Input.textStyle" valign="top" >
    <html:text property="desigName" />
    </td>
    </tr>
    <tr>
    <td align="left" class="grbx" valign="top">
    Description
    </td>
    <td height="6px"/>
    <td align="left" class="Input.textStyle" valign="top" >
    <html:text property="desigDescription"/>
    </td>
    </tr>
         <tr>
              <td align="left" class="grbx" valign="top">
                   Organization
              </td>
              <td width="35px">
              </td>     
              <td class="ControlLabel">
                   <tctags:lookupfield name="appointmentForm"
    property="desigOrg"
    windowheight="500"
    windowwidth="500"
                   lookupAPI="-2"
    methodName="findOrganizationsFiltered"
    className="Thor.API.Operations.tcOrganizationOperationsIntf"
    columnNames="Organizations.Organization Name, Organizations.Status"
                   selectionColumn="Organizations.Organization Name"
    columnLabelKey="request.requestDetail.organization"
    htmlFormName="appointmentForm"
    styleClass="Fields"
    iconsrc="images/lookup.gif"
    tabindex="6"
    maxlength="50"
    fixedFilter="Organizations.Status:Active" />
              </td>
         </tr>
              <tr height="100px">
              <td height="50px"/>
              </tr>
              <tr>
    <td height="50px"/>
    <td height="50px"/>
    <td align="right" class="grbx" valign="top" >
    <html:submit property="appt_saveCreate">Save</html:submit>
    <html:button property="clear" value="Clear" onclick="clearForm()" />
    <html:cancel property="appt_cancelCreate">Cancel</html:cancel>
    </td>
    </tr>
    </table>
    </html:form>
    </body>
    </html:html>
    Any mistake i am making? (must be otherwise it would have been working :-) )
    Best Regards

    oookay got it going :-) . Was just a matter empty space in
    columnNames="*Organizations.Organization Name, Organizations.Status*"
    advice to myself....read logs carefully :-D

  • Facing problem in integrating my custom jsp with the workflow engine

    Hi,
    I am using Jdeveloper 11.1.1.6.0 for BPM 11g implementation on my Application.I have Weblogic Server 10.3 Installed and configured the domain. Also the server is up and running.
    I am trying to create workflow and wants to integrate it with my custom jsp but i am facing problem in integrating my custom jsp with the workflow engine.Can you please answer the following questions:
    1)how to link BPM human task with my custom jsp (Requester jsp).
    2)how my custom jsp data(Requester data) will be stored in workflow engine and how the same data will be visible to the next custom jsp(Reviewer jsp).
    This is urgent .Any early reply will be great help.
    Thanks in advance.
    Edited by: 990133 on Mar 24, 2013 5:31 AM

    you forgot to add the usage dependency in the DC metadata section in your DC, you have to add the XSS~utils and fpm as a used DC's as part of your DC, try to add those, if you already done that, so check where missed the adding of used webdynpro components in any of the VAC's or FC's,
    Cheer,
    Appa

  • How can I get the workspace login name in a custom jsp?

    I want to add a custom jsp in workspace, how can I pass the login name to this jsp?

    DrClap wrote:
    I think the OP wants to start up an application like MS Word and then operate it from a Java program.Doesn't The Monkey's Paw do that? What a second, according to Wikipedia:
    [http://en.wikipedia.org/wiki/The_Monkey%27s_Paw]
    <quote>
    ...the paw of a dead monkey is a talisman that grants its possessor three wishes, but the wishes come with an enormous price.
    The moral of the story is contained in this description of the paw: "It had a spell put on it by an old fakir," said the sergeant-major, "a very holy man. He wanted to show that fate ruled people's lives, and that those who interfered with it did so to their sorrow."
    </quote>
    So I guess that a non-sequitor ... or is it?

  • Custom JSP Tags for Weblogic

    Hi,
              I have several questions regarding this topic:
              1) Does Weblogic 5.1 supports Custom Tags ? If so, are there any known
              problems ?
              2) Does Weblogic come with any tag libraries (for loops, if, etc) and where
              can I get them ?
              3) Are there any tag libraries out there (JRun, for example) that have been
              successfully run on Weblogic ?
              Any help would be much appreciated.
              Thanks,
              Jamie
              

    As there seems to be general interest, a link would probably be a great
              help.
              Regards
              Daniel Hoppe
              -----Original Message-----
              From: Michael Girdley [mailto:[email protected]]
              Posted At: Friday, August 25, 2000 8:03 AM
              Posted To: jsp
              Conversation: Custom JSP Tags for Weblogic
              Subject: Re: Custom JSP Tags for Weblogic
              Please see the documentation:
              http://www.weblogic.com/docs51/resources.html
              Michael Girdley
              BEA Systems Inc
              "Jamie" <[email protected]> wrote in message
              news:[email protected]...
              > Update
              > =======
              >
              > Weblogic Portal has some Tag libraries. I've downloaded the trial
              version
              > of
              > the Weblogic Commerce Server. How do I get the tag libraries and use
              them
              > on WL 5.1 ?
              >
              > Answers to original post still wanted
              >
              > Thanks,
              >
              > Jamie
              >
              > Jamie <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > >
              > > I have several questions regarding this topic:
              > >
              > > 1) Does Weblogic 5.1 supports Custom Tags ? If so, are there any
              known
              > > problems ?
              > >
              > > 2) Does Weblogic come with any tag libraries (for loops, if, etc)
              and
              > where
              > > can I get them ?
              > >
              > > 3) Are there any tag libraries out there (JRun, for example) that
              have
              > been
              > > successfully run on Weblogic ?
              > >
              > >
              > > Any help would be much appreciated.
              > >
              > > Thanks,
              > >
              > > Jamie
              > >
              > >
              >
              >
              

  • To display records fetched from the DB through ALBPM, in a custom JSP

    I want to display the records fetched from the database through ALBPM in a custom JSP as a table.
    Currently I am fetching the records and putting them in a BPM object group and sending it to the JSP as a BPM object. Now in the JSP I am trying to iterate and create a table to display the fetched data using the JSTL tag ==&gt;
    &lt;c:forEach ...... &gt;
    &lt;/c:forEach&gt;
    But I am always getting the following error in ALBPM workspace:
    The task could not be successfully executed. Reason: 'java.lang.RuntimeException: /webRoot/customJSP/CustomerSearch1.jsp(29,2) No such tag forEach var in the tag library imported with prefix c'
    Though there is a tag forEach var in the JSTL?? How to solve this error or is there any altrnative way to display the records in a JSP ??
    Thanks,
    Suman.

    Hello. I use custom JSP and it works well. You have to make sure 2 things:
    a) You have imported the libs, including these lines in your JSP:
    <%@ page session="true" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://fuego.com/jsp/ftl" prefix="f" %>
    b) The variable you are using in the "forEach" statement is stored in the BPM object you pass to the JSP in the call.
    Hope this helps.... Bye

  • Problems with Apache and custom JSPs

    Hi
    We've made an application on top of IFS, using JWS in our test envirnment. Just before making some stress tests, I'd like to try it using Apache. We're currently having two problems:
    1) I switch to the apache configuration running ifsconfig and not selecting JWS. When I try to access the ifs using http://host/ifs/files, everything goes well except that the "logout" icon doesn't appear. I did a little research and found out that the link goes to /ifs/webui/images/logout.gif. This gives an error in mod_jserv.log, like this one:
    [07/06/2001 22:54:20:315] (ERROR) ajp12: Servlet Error: ClassNotFoundException: webui
    It seems it's trying to find a "webui" class, since in ifs.properties every url that begins with /ifs goes to jserv.
    I don't know if this is a know problem or what should I've check...
    2) This one is more important. We're using some custom JSPs, which we use to edit the properties of some types of documents. Basically, when the user clicks over a file one of our JSP appears. These JSPs call a bean to do some processing, passing the HttpRequest as a parameter. The problem is that when using JWS we get the "path" request variable like in path=/%3A29464
    However, when using Apache we get path=/ifs/files/%3A29464 ( and afterwards we get an exception because the ifsSession.getPublicObject method doesn't work).
    Any hints on this? One way could be to check if the path begins with /ifs/files, but that's not really nice.. and besides I could have the same problem in some other parts.
    It's kind of urgent....
    Thanks
    Ramiro
    null

    Hi,
    The answer to your path problem is that you can make use of API to find out the current path so that it works both with Apache and with JWS. Follow the steps
    1. import the oracle.ifs.adk.http package in your custom jsps
    <%@ page import = "oracle.ifs.adk.http.*" %>
    2. Then within your jsp use the method
    getIfsPathFromJSPRedirect
    <%= oracle.ifs.adk.http.HttpUtils.getIfsPathFromJSPRedirect(request) %>
    This will give you the current path of the object on which you clicked on and which initiates the custom jsp.
    You can look at the CMS application which has made use of this API. URL is
    http://otn.oracle.com/sample_code/products/ifs/sample_code_index.htm
    Choose, sample applicatin -> Content Management system.
    Hope this helps
    Rajesh
    null

  • MySQL database connection from Custom JSP

    I am trying to connect MySQL database from my custom JSP. I am getting following error which says that the connector JAR (mysql-connector-java-5.1.7) is not in CLASS PATH.
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    Where should I need to add to get by custom JSP during run time of BPM Studio or Workspace?
    I have tried in adding to External resources. But didn't work that way. even I tried adding to "lib" folder in resource view.
    My Custom JSP code:_
    <%@ page language="java" import="java.sql.*" %>
    <html>
    <head></head>
    <body>
    <%     
    System.out.println("MySQL Connect Example.");
    Connection conn = null;
    String url = "jdbc:mysql://localhost:3306/";
    String dbName = "aboo";
    String driver = "com.mysql.jdbc.Driver";
    String userName = "monty";
    String password = "some_pass";
    try {
    Class.forName(driver).newInstance();
    conn = DriverManager.getConnection(url+dbName,userName,password);
    System.out.println("Connected to the database");
    String query = "Select * FROM employeee";
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(query);
    while (rs.next()) {
    System.out.println(rs.getInt(1));
    System.out.println(rs.getString(2));
    conn.close();
    System.out.println("Disconnected from database");
    } catch (Exception ee) {
    ee.printStackTrace();
    %>
    </body>
    </html>
    Edited by: sideeque on Jul 7, 2009 9:38 AM
    Edited by: sideeque on Jul 7, 2009 9:39 AM

    I got it working by just adding JAR to C:\OraBPMStudioHome\webapps\workspace\lib

Maybe you are looking for

  • Memory Upgrade for T61

    Hi friends, I have a T61 7663-xxx system, with 1 GB PC2-5300 667 MHz RAM. My Front Side Bus is 800 MHz ( I think so!), Everest software reports my memory controller is dual channel capable, and ~ 85% physical utilization of RAM. I have a nVidia Quadr

  • ICloud icon next to ALL my songs on my iPhone after restoring from backup on iTunes

    i recently just had my iPhone back after having it repaired. I made a backup on my Mac before sending it away. Now after waiting for it to restore itself and even watch it download all 1800 songs, none of them will play unless i download them from iC

  • Links in signature don't work

    Hi everyone, I'm having trouble getting the links in my Mail signatures to work. Nothing happens when I click on the email and website addresses that I've added to my signatures. I added my email and website address in Mail > Preferences > Signatures

  • How to make selection-screen block as unvisible?

    hi, in report program there are two selection screen blocks like this. SELECTION-SCREEN BEGIN OF BLOCK b1.      parameters: rb1 as radiobutton group r1 user-command ucomm,               rb2 as radiobutton group r1,               rb3 as radiobutton gr

  • Oracle clusterware link

    Hi, i am core Dba currently working on Rac-mode production database, so for my trianing purpose i need a OTN link for free download oracle clusterware on Linux advances server 4 or OEL 4 with prerequisites RPM(patches). please also let me know which