Navigation between records in a JSP application

Hi,
I would like to know how to provide navigation between records in a tabular form liked JSP application using JDeveloper 3.2
without using the Oracle or Default template.
I can do it with a singular record view but not in a tabular view. I like to know now I can mimic the navigation provided in Oracle template in which the current selected record is hightlighted. Can we navigate between records using Up and Down
arrow key like in Oracle form instead of using Navigation Bar. Please provide details code.
Thanks a bunch,
Khanh Hoang

You can refer to the source code in jbohtmlsrc.zip for deriving your own implementation.

Similar Messages

  • Response Time Problem in IE when rendering records to exce- JSP application

    Hello,
    My application is a web application and uses JSP and WebSphere server.
    There is a functionality when a button is pressed the page sends the request to server and the search result is shown in a spreadsheet(excel file).
    Now when we use Mozilla browser it gives the results in 5-6 seconds for some hundred records. when we use IE it takes several minutes for the same search.
    Is there some kind of setting that needs to be altered?
    please help.

    I am wondering if some kind of settings of IE disable
    the redirection of the jsp pages. no, I don't think so. The problem is elsewhere. Most likely your code doesn't send redirect for some reason.

  • Need help on storing persistance records in J2EE JSP application

    Hi,
    I want to store a hashtable of info with about five attributes (id, name, username, date) in a persistent state in JSP order to not always call the database. I am either going to use session or request objects.
    My question is if it's a good idea to store the hashtable with 2000 records just to avoid the database connection or should I just stick with using database connection using connection pooling? Thanks.
    Mkie

    Well it seems to be having a heavy session if you keep 2000 records Hashtable I think, I would have gone with a serialized to a file or database so that to handle more no. of sessions as well as persistant information. Anyway if you put the data in session object if server crashes you loose data of every active session :(
    Just a thought !!

  • Navigating Between 2 views in webdynpro application

    Hi All,
    I am creating a webdynpro application with 2 views. when i click the next the first view an action would be triggering the next view. Component controller context is being used.
    Component Controller - 2 value attributes are there. These are mapped to view 1 and view2.
    view1 - has these 2 value attributes
    view 2 - has these 2 value attributes and 1 node with some attributes.
    But in view 2 , i am using only that node. When i deploy the application, when i click the button on the first view, another window popups, saying "500 internal error". But the view1 and view2, code is completely free of error. if so, why it is not displaying data of view2?
    Regards,
    Divya

    Divya,
    Go through <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d5c09c90-0201-0010-17a8-c473134632df">link</a> link. This may be very useful as it gives step by step process for navigation from one view to another on firing of an event.
    Let me know if you have any concerns.
    Regards,
    Ankit

  • Navigation between applications

    Hello everyone,
    i had a problem while Navigating from one application to another application.....in webdynpro project.
    i had two application in one webdynpro project. i am passing one url string in first application exit plug.
    using the code below.
    String deployableObjectName =wdComponentAPI.getDeployableObjectPart()     .getDeployableObjectName();
    Map urlParameters = new HashMap();
    //     get URL parameter value entered by user, stored in context attribute
    urlParameters.put("A",                              wdContext.currentContextElement().getA());
    urlParameters.put("B",wdContext.currentContextElement().getB());                                                                 try {
                                                                          WDDeployableObjectPart deployableObjectPart =
                                            WDDeployableObject.getDeployableObjectPart(
                                                      deployableObjectName,
                                                      "TreeApp",
                                                      WDDeployableObjectPartType.APPLICATION);
                                            String urlToTreeApp =
                                                 WDURLGenerator.getApplicationURL(
                                                      deployableObjectPart,
                                                      urlParameters);
                                                                               wdThis
                                                 .wdGetLoginCompInterfaceViewController()
                                                 .wdFirePlugLoginAppExit(
                                                 urlToTreeApp);
                                       } catch (WDURLException e) {
                                            messageMgr.reportException(
                                                 e.getLocalizedMessage(),
                                                 false);
                                       } catch (WDDeploymentException ex) {
                                            messageMgr.reportException(
                                                 ex.getLocalizedMessage(),
                                                 false);
    then this i am receiving in second application inboundplug that is onDefaultplug,there i had given corresponding parameters.
    Everything is working fine.
    My problem is : the parameters whch i am passing are showing in addressbar as query string.I dont want to show them there.
    Is there any other way to witch i can pass parameters from one application to other application without displaying at url.
    anybody help me.
    regards,

    This explains how to use exit plugs for navigation between apps.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial%20on%20inter-application-navigation%20-%2015.htm">Inter-Application Navigation</a>
    Regards,
    Keith L.

  • Regarding T Raja weblog Navigation between BSP Applications part I

    Hi sdns,
    This question is regarding weblog T.Raja Navigation between BSP Applications part I.My doubt is i have done it its  working but i am not able to get the o/p data in the table here. I have revised the code twice & thrice not able to find the table which he used. In this code is there any table he used.Or else he provided data directly from the program.
    I am getting the table but no data in it .I have checked p0006 it is an internal table.
    If there is no data in the table how to enter data and in which table we have to enter the data.
    And other thing i have noticed is .In the blog there are only few fields in tthe o/p.But in my program i got a lot of o/p fields.Please help me in this regard.
    Thanks & Regards,
    Lokesh@EDS.

    Lokesh,
    I hope you are talking about the table:model_id->I_detail. This table is declared in Model Class-ZCL_MVC_PERNR_DETAIL in Class attributes. Look at the screen shots in the blog. it will solve the issue.
    @ Viji:
    Lokesh mentioned abt blog /people/raja.thangamani/blog/2006/12/26/bsphow-to-navigation-between-bsp-applications-part-i
    Raja T
    Message was edited by:
            Raja Thangamani

  • Navigation between  two applications under a single webdynpro project

    Hi All,
    Here i needs to work with a webdynpro project which has two application which needs navigation one view form the first application to one view in the next application. I have already tried with "EXIT URL" concept and its working fine. Is there any alternative way to accomplish that task. I am looking for valuable reply from you.
    Regards
    Ravi

    Hi Ravi..
    Try this link..
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/webdynpro/wd%20java/wd%20tutorials/inter-application-navigation%20in%20web%20dynpro.pdf">Application Navigation</a>
    Urs GS

  • Large number of http posts navigating between forms

    Hi,
    i'm not really a forms person (well not since v3/4 running character mode on a mainframe!), so please be patient if I'm not providing the most useful information.
    An oracle forms 10 system that I have fallen into supporting has to me very poor performance in doing simple things like navigating between forms/tabs.
    Looking at the java console (Running Sun JRE 1.6.0_17), and turning on network tracing, I can see a much larger number of post requests than I would expect (I looked here first as initially we had an issue with every request going via a proxy server, and I wondered if we had lost the bypass proxy setting). Only a normal number of GETS though.
    Moving to one particualr detail form from a master record is generating over 300 post requests - I'v confirmed this looking at the Apache logs on the server. This is the worst one I have found, but in general the application appears to be extremely 'chatty'
    The only other system I work with which uses forms doesn't generate anything like these numbers of requests, which makes me think this isn't normal (As well as the fact this particular form is very slow to open)
    This is a third party application, so i don't have access to the source unfortunately.
    Is there anything we should look at in our setup, or is this likely to be an application coding issue? This app is a recent conversion from a forms 6 client server application (Which itself ran ok, at least this bit of the application did with no delays in navigation between screens).
    I'm happy to go back to the supplier, but it might help if I can point them into some specific directions, plus i'd like to know what's going on too!
    Regards,
    Carl

    Sounds odd. 300 Requests is by far too much. As it was a C/S application: did they do anything else except the recompile on 10g? Moving from C/S to 10g webforms seems to be easy as you just need to recompile but in fact it isn't. There are many things which didn't matter in a C/S environment but have disastrous effects once the form is deployed over the web. The synchronize built in for example. In C/S calls to synchronize wasn't that bad; But when you are using web deployed forms...each call to synchronize is a roundtrip. The usage of timers is also best kept on a low level in webforms for example.
    A good starting point for the whole do's and dont's when moving forms to the web is the forms upgrade center:
    http://www.oracle.com/technetwork/developer-tools/forms/index-095046.html
    If you don't have the source code available that's unfortune; but if you want to know what's happening behind the scenes there is the possibility to trace a forms session:
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14032/tracing002.htm#i1035515
    maybe this sheds some light upon what's going on.
    cheers

  • Confirm Delete in a JSP Application

    Working in a JSP application I need to show a delete confirmation when the user clicks on the red button (delete) in JS Navigator Bar Web Bean.
    How delete works behind this button?
    Code that implements the delete confirmation (a custom web bean, for example) is well received.
    Thanks.

    Any JS guru in the house? (I'm not); we'll apreciate this a lot!
    null

  • How to navigating between layers?( as if they were pages of a book?)

    I need a good advice on design and navigating between some different layers.
    I am a Adobe Director user, and I am used to think of “navigating between frames”. also frames as pages of a book, while in flash time-frames.
    In Director one can navigate between different frames with each containing many components.
    And this does not make any conflict since the frames are some kind of pages of a book, you go to any page you want and back again.
    I am designing math training application in falsh-CS6, in which the user should be able to navigate from start-menu by choosing an
    exercise number and then go to the wanted exercise and then create an exercise by a create_excercise button, there back again to menu to choose another and so on. How I can do it clean in flash?
    As I see I have to place everything in the same “frame” in flash, and it becomes little practical and confusing since there
    are many things all gathered in the same frame, where they should instead appear in their respective “pages”.
    I have done some works in flash:  made 4 layers in flash with the following contents:
    layer 1: for my menu( contains 3 buttons, q1bt, q2bt, q3bt)
    layer 2: for question 1( contains 3 buttons  makeQ1bt, chekAns1bt, and  gotoMenuBtn)
    the same is for layer 3 and 4.
    I see no options rather than making different components visible or invisible whole way! but is there a better way?
    I appreciate any help.

    Flash does allow more than one frame - that is one of the foundations of working with it.  You can restrict yourself to using just one frame if you like, but it is not required and very often people use the timeline instead of keeping things in one place.
    I have no familiarity with Director, but what you just described sounds like designing using the timeline of Flash.  With Flash you can use the timeline in the fashion you just described where different pages occupy different frames of the timeline and you can navigate from one to another.  You are not stuck with one frame in Flash... you can create a new keyframe at any point along the timeline and add new/different content to it, while retaining a menu that exists across all pages (or not - it's your choice)..

  • Urgent: Portletizing an struts JSP application

    Hello all,
    I have a struts JSP application. I want to portletize this whole
    application, so that navigation is always within the portal
    framework.
    Using URL Services all I can see is that the first page will be a
    portlet.
    Can anyone suggest the best way to portletize the application?
    This is quite urgent and your help will be greatly appreciated.
    Thanks in advance.
    Faisal.

    Hi all,
    Concerning the message below, does the struts framework affect how normal JSP applications are added to Portal? Or is it as simple as just importing the portal classes and referencing them in the JSP's?
    We would like to use struts for our next web application using JSPs, but need to display them within Portal. I've done this before by just changing the way our hrefs work, but am wondering if using struts will affect any of this.
    Thanks in advance,
    Gillian
    Hello all,
    I have a struts JSP application. I want to portletize this whole
    application, so that navigation is always within the portal
    framework.
    Using URL Services all I can see is that the first page will be a
    portlet.
    Can anyone suggest the best way to portletize the application?
    This is quite urgent and your help will be greatly appreciated.
    Thanks in advance.
    Faisal.

  • Security in an jsp application using BIBeans

    Hi all,
    We are developing a system with BIB to access OLAP 9.2.0.5. We need to implement some access rules at database level, i.e. user 1 can read levels 1, 2 and 3 of a hierarchical dimension, but user 2 can only read level 3. We do not know how to pass this database rules to BI catalog user, or replace this BI user with database connection information, to have more than one different user connection accessing the system. Anyone can help me?
    thanks in advance,
    Alexandre Martins - Commit Consultores - Brazil

    We are developing a jsp application with TAG libraries
    Ex.:
    <orabi:BIThinSession id="BIThinSession1" configuration="/Project1BIConfig1.xml" >
    <orabi:Presentation id="untitled1_Presentation1" location="Presentation1" />
    </orabi:BIThinSession>
    <FORM name="BIForm">
    <!-- Insert your Business Intelligence tags here -->
    <orabi:Render targetId="untitled1_Presentation1" parentForm="BIForm" />
    <%-- The InsertHiddenFields tag adds state fields to the parent form tag --%>
    <orabi:InsertHiddenFields parentForm="BIForm" biThinSessionId="BIThinSession1" />
    </FORM>
    This application hás a login screen, where the user will pass his database username and password, which corresponds equally to a user of same name at the BI Beans catalog.
    Here is the moment that we face the Problem: We can not change the user to switch to the database user. The catalog user is switched by BIUser().
    Workarounds performed:
         1 – We created a ConnectionProvider class to establish the connection with the properties and another class - AuthenticationProvider - to pass parameters to the connection.
              Problem: Could not pass parameters to Application Authentication class. Tried to force application to connect to authentication or vice-versa to pass username that was informed at login screen but this does not work.
         Ex.: trying to set this classes at configuration file (.xml).
         User “ALEX” has database access (OLAP , MOLAP) and catalog access .
    public class AuthenticationProvider implements oracle.dss.security.AuthenticationProvider {
    public void authenticate(Hashtable properties) throws BISecurityException {
    properties.put(“user_name”, “ALEX”);
    properties.put(“password”, “ALEX_1”);
    public class ConnectionProvider implements oracle.dss.security.ConnectionProvider {
    public Object connect(Hashtable properties) throws BISecurityException {
    Connection conn = null;
    try {
    DriverManager.registerDriver(new OracleDriver());
    String sUSER = properties.get("user_name").toString();
    String sPW = properties.get("password").toString();
    String connStr = "";
    if(properties.get("jdbctype").equals("thin")) {
    connStr = "jdbc:oracle:thin:@" +
    properties.get("hostname") + ":" +
    properties.get("port") + ":" +
    properties.get("sid");
    conn = (Connection)DriverManager.getConnection(connStr, sUSER, sPW);
    catch(Throwable t) { throw new BISecurityException("Erro na conexão!", t); }
    return conn;
         2 – Tried to get configuration through session searching all the connections and changing user to desired connection (in this case “thin”, MM.MDM) and reconnecting or disconnecting and reconnecting again.
    At this point, debugged the database connection and could see that username actually changed, but when the program reached the open presentation TAG received an error because TAG could not understand the connection.
         Ex.: This is in between session TAG
    <orabi:BIThinSession id="BIThinSession1" configuration="/Project1BIConfig1.xml" >
    <%
    ManagerFactory mf = BIThinSession1.getManagerFactory();
    MetadataManager mdm = null;
    if (mf != null) {
    mdm = (MetadataManager) mf.lookupManager(
    ManagerFactory.METADATA_MANAGER, null, true);
    if (mdm != null) {
    try {
    int iAttachStatus = mdm.getAttachStatus();
    if ((iAttachStatus != MM.ATTACHED) &&
    (iAttachStatus != MM.ATTACHING))
    mdm.attach();
    Connection[] connectionArray = mdm.getConnections();
    if (connectionArray != null) {
    int count = connectionArray.length;
    for (int index = 0; index < count; index++) {
    String driverType = connectionArray[index].getDriverType();
    if ( (driverType != null) &&
    (driverType.equals(MM.MDM)) &&
    (connectionArray[index].isConnected()) ) {
    if(driverType.equals(MM.MDM)) {
    connectionArray[index].setUsername("ALEX");
    connectionArray[index].setPassword("ALEX_1");
    connectionArray[index].reconnect(connectionArray[index].getPropertyBag());
    catch (Exception ex) {
    ex.printStackTrace(); // just for demo purpose
    %>
    <orabi:Presentation id="untitled1_Presentation1" location="Presentation1" />
    </orabi:BIThinSession>

  • Retaining values when navigating between subtabs

    Hello everyone
    I have a subtab region with 3 tabs in my page. I have some form fields in each tab, when I enter some details in tab1 and click tab2, and then come back to tab1 , my details previously entered in tab1 gets cleared. is there a way to retain these values when navigating between subtabs. all the tabs are based on different VO's
    Thanks
    Ravi

    Here's how I do it...
    (1) I always use Sessions.  In the main form of my application, I set up the session and I store a single variable:  Session.Exists = True.  All other forms begin something like this:  (It's actually an include-file.)
    <cflock ...>
    <cfset SessionExists = StructKeyExists(Session, "Exists")>
    </cflock>
    <cfif NOT SessionExists>
       <cflocation ... send 'em back to the home 'cuz their session has expired>
       <cfabort>
    </cfif>
    (2) Now that we know that a session exists, we store various structs in the Session to contain the default or current values that have been used in a particular form.  If the Session scope does not contain a particular struct, it is automagically created with appropriate default values.)  This becomes "what we display," and when we capture the user's responses, we store them there, even before we validate them.  The session pool therefore becomes the vehicle for communication between the various forms.
    (3) If we reach a point where a particular piece of information is no longer useful, we delete the appropriate structure from the Session, thereby wiping out the entire set of values at once.
    (4) Structs and Arrays can, of course, contain other Structs and Arrays.  You can build data structures of arbitrary complexity.
    (5) As of late, I have found myself specifying individual CFCs for each logical "object" in my application.  This is true object-oriented programming, as best as ordinary CFC techniques can do without plunging headlong into the underlying nether-world of Java.  In those CFCs, I deliberately try to conceal just how information is maintained and stored, so that these necessary inter-dependencies within my application are concentrated in just one place.  "The structure is 'the object,' and the methods are found 'here and only here.' "

  • BC4j/JSP Application not responding after some time - when deployed on 9ias BC4j/JSP

    Hi,
    We are using BC4j/jsp application on 9ias. The application is not responding
    after some time. We have installed 9ias on PIII(384MB RAM). We tried to accesses
    with 10 users, and server is not responding to BC4J/JSP application.
    However the server could able to publish the JSP pages with standerad JDBC code even after that.
    Please....help us.........
    many many thanks in advance

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Is there any mechanism that cleans up these connections (back down to the initial or some other minimum I would guess) or do they hang around until either the app server or database shuts down?<HR></BLOCKQUOTE>
    There is currently no mechanism for reducing the connection pool size after a period of high activity. Recently this has been frequently requested and as such will be implemented in the next production release.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>We have verified this in manual testing. However, when the load tool script exits it doesn't seem to release resources. We know this because we keep seeing our database connections go up and up as more tests are run. Further, we also seem to see more than one connection per "virtual user". For example, when I connect 5 users to the app in manual testing, I get 5 connections. But, when we run a test using the tool, we get 395 database sessions for 200 users. We are having a bit of difficulty understanding why the behavior is different.<HR></BLOCKQUOTE>
    Assuming that the you are performing your manual testing against the same instance of the application on which you are performing your load testing, I would assume that the connections are being released to the pool at the end of the request. One possible reason for the approximate 2:1 ratio between connections and virtual users may be BC4J's use of internal connections. What version of BC4J are you using?
    BC4J requires an internal connection to support state management and spill to disk. The internal connections are pooled with the transaction connection and only held for the duration of the persistence operation. However, if the web server is very busy then a large number of synchronous persistence requests may be received which would explain the eventual 2:1 ratio in the pool's high water mark.
    If the user start times and think times are staggered in order to reduce the incidence of synchronous persistence requests does the ratio of connections to web sessions stabilize at some lower number (i.e. 1.5:1)

  • Protect JSP application

    How can I protect a JSP application published on server client?
    How can I be sure that the client(supose he can and want to understand my JSP code),
    does not try to sell the app again?
    Thank you.

    You can't.
    Anyone who can read the files on the server could copy them to some other medium and sell them.
    It's the same as with any other software, there's a measure of trust needed between supplier and customer.
    You could use some form of hardware dependent key that is referenced from each bean or servlet you use and causes it to fail if invalid, but that would not protect your JSPs which are after all plain text files and can be easily edited (that's the big plus of JSP after all).
    If your relationship with your customers is so poor that you can't trust them with source code (which is what JSPs are effectively) you may be better off changing your business model to either get other customers or get your customers to pay you not just for the software but also for hosting it.

Maybe you are looking for

  • Why can't I access the top portions of a website I'm visiting when using firefox?

    I'll use facebook for an example, but bear in mind that this problem is when ever I go on any website. When I signed on facebook, my mouse turns into an arrow and it won't allow me to select anything on the top/upper portion of the website. I have to

  • Play FLV after another without blinking

    Hello, I hope you can help me with this one, please. I have a flv player on stage, along with several buttons. Everytime I press a button, I change the flv file played by the flv player. I would like to make the transition seamless - since the last f

  • Error while tranfer photos by Adobe Send

    Hi  While Adobe Send worked without any problems until last week, now every transfer aborts with message "One or more files could not be transferred - retry" I thought first some of my files were corrupted and wasted a lot of time - without success..

  • Function module for knowing if Time falls in daylight saving.

    Hello All, Can any one tell if we have any FM to know if the date falls in Daylight saving period so that i can make the conversions according to the output. If there is no FM, please provide the procedure to find it. Thanks, Ravindra.

  • Migartion of older version of Business Objects to XI R3

    Hi Experts, <<Text removed by moderator>> Also need to know about how to create windows AD security or how to move users from enterprise to windows AD security group. Awaiting replies asap. Regards Rohit Mathur Edited by: Matt on Dec 6, 2010 10:18 AM