ANN: New JSP 2.0 Demos on OTN

New JSP 2.0 Demos
These demos illustrate a range of JSP features in Oracle Application Server Containers for J2EE 10g (OC4J), including fragments, simple tag handlers, tag files, JSTL, and EL(Expression Language).
JSP 2.0 Tic-Tac-Toe Demo illustrates how to use JSP 2.0 fragments and simple tag handlers. This demo is built around a game of "Randomized TicTacToe"
JSP 2.0 Changing Holiday Store Demo illustrates a wide range of JSP features including tag files, JSTL, EL and other JSP 2.0 features. The demo shows how the Web front end of an e-store can display different look and feels based on the selected holiday occasion, and promotes a set of appropriate products for the occasion.
URL: http://otn.oracle.com/sample_code/tech/java/jsps/content.html
Thanks
Shefali
[OTN IDC Team]

Here are the five choices I see:
[list]
[*] XSU111_ver1_2_1.zip -- to be used with JDBC1.x (JDK1.1.x or later) and loadable into Oracle8.1.5 (486 KB)
[*] XSU12_ver1_2_1.zip -- to be used with JDBC2.0 (JDK1.2.x or later) and loadable into Oracle8.1.6 or later (508 KB)
[*] XSU111_816_ver2_1_0_beta.zip -- to be used with JDBC1.0 and JDK1.1.8 (486 KB)
[*] XSU12_816_ver2_1_0_beta.zip -- to be used with JDBC2.0 (JDK1.2.x or later) and loadable into Oracle8.1.6 (486 KB)
[*] XSU12_ver2_1_0_beta.zip -- to be used with JDBC2.0 (JDK1.2.x or later) and loadable into Oracle8.1.7 or later (508 KB)
[list]

Similar Messages

  • How to open a new JSP as a Popup

    Hello everybody,
    I have quite some experience working with java web dynpros, however I now have a requirement to work on an existing JSP page to add some new functionality, and I'm  a little bit lost since this is the first time I work with JSPs in SAP portal.
    What I need to do is that when an user clicks on a button on page1.jsp, a new jsp (that didn't exist before, since I've just created it) called page2.jsp has to open as a popup with a selection list. After the user selects a value from this list, this value has to be sent to an input field in page1.jsp.
    I've can do this in regular JSPs running on tomcat, with no problems ;).... However, when I try to do this in SAP portal, I get an error and the following exception in the logs, when I click on the button in page1.jsp:
    com.sapportals.portal.prt.runtime.PortalRuntimeException: iView not found: page2.jsp
    at com.sapportals.portal.prt.deployment.DeploymentManager.getPropertyContentProvider(DeploymentManager.java:1937)
    at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:222)
    at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:316)
    at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:387)
    I'm not sure what I have to do to fix this... do I need to ask the portal guys to create a new iview for the new jsp and treat it as a new app? Or is there a simplier solution?
    Any help will be greatly appreciated, and of course points awarded accordingly
    Cheers!

    Hi Ventsi,
    Sure, it is:
    In page1.jsp I use this code to open the pop-up:
    <td>
    <input type="text" name="details" value="">
    </td>
    <td align="center">
    <input type="button" name="choice"
    onClientClick="window.open('page2.jsp','popuppage','width=850,toolbar=1,
    resizable=1,scrollbars=yes,height=700,top=100,left=100');" value="Open">
    </td>
    In page2.jsp I use this code:
    I have this javascript function for passing the value to page1.jsp:
        function setValue (s){
            window.opener.document.getElementById('details').value = s;
            window.close();
    that i call using this line:
    javascript:window.setValue('test')
    and this is the code of the portalapp.xml, but I'm not sure if there's anything missing or wrong here:
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="Page1">
          <component-config>
            <property name="ClassName" value="com.test.firstapp"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/page1.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
          </component-config>
          <component-profile>
            <property name="SAP_MANDANT" value=""/>
            <property name="SAP_USER" value=""/>
            <property name="SAP_PASSWORD" value=""/>
            <property name="SAP_LANGUAGE" value=""/>
            <property name="SAP_HOST" value=""/>
            <property name="SAP_SYSTEM_NUMBER" value=""/>    
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    Please let me know if you need more information regarding the code.
    Cheers!
    Edited by: amore82 on Apr 1, 2010 8:18 PM

  • Issue in creating a new JSP in Quoting

    I have created a new JSP in the quoting. That JSP is displaying the data properly but the cue card menu is not visible in that JSP. Is there any mapping need to be done to make it visble.

    Thank you for the response.
    The JSP has a function defined in the menu structure. For a trial I copied an existing jsp into another and called the copied one. the side menu bar did not get displayed, but the content got displayed.
    Can you please tell me, if we create a new JSP page how many mappings need to done and what are they.

  • Can I launch a new JSP on a popup window, when cliking a HTMLB button ?

    Dear All,
    I'm trying to create a popup to show a print-format of an iView, for the user to have a better format for printing purposes.
    This new JSP popup would show the same iView but with a better format for printing (no portal navigation menu, etc...)
    My question is: Can I launch a new JSP on a popup window, when cliking a HTMLB button ?
    Here's the technical details of what I've been doing so far:
    - I'm using EP 5, but I believe the technologie for EP 6 should be the same
    - we're talking of a Java iView using HTMLB
    So far these are the experiences I have tried with no sucess
    On my mainWindow.jsp I have this piece of code, but it doesn't work:
    (etc...)
    <%
    ResourceBundle res = componentRequest.getResourceBundle();
    IResource rs = componentRequest.getResource(IResource.JSP, "printFormat.jsp");
    String JSP_URL = rs.getResourceInformation().getURL(componentRequest);
    %>
    (etc...)
    <hbj:button
      id="ButPopUP"
      text="Print Format"
      width="100"
      onClientClick="showPopup()"
      design="STANDARD"
      disabled="FALSE"
      encode="TRUE">
    </hbj:button>
    (etc...)
    <script language="Javascript">
    function showPopup(){
    mywindow = window.open ("<%=JSP_URL %>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1,
    resizable=1, width=600,height=400");
    htmlbevent.cancelSubmit=true;
    </script>
    (etc...)
    Thank you very kindly for your help.

    Hi Kiran,
    sorry for the late reply.
    Thank you so much for your JAR file.
    Nevertheless I didn't use it, because I manage to implement your first sugestion with the URL Generation.
    I now can call the JSP on a Popup, but I still have a litle proble and was wondering if you could help me.
    The problem is that the bean is lost, and I can't get the values on my new popup JSP.
    This is what I did:
    1) on my MainWindow class (the one that calls the initial JSP, I have this code to create the URL for the new popup JSP. This is the code:
    IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
    IPortalUrlGenerator portalGen = null;
    ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
    if (specUrlGen instanceof IPortalUrlGenerator) {
         portalGen = (IPortalUrlGenerator) specUrlGen;
         try {
              String url = null;
              url = portalGen.generatePortalComponentUrl(request, "Forum_IS.popvalues");
              myBeanDados.setPopupURL(url);
         } catch (NullPointerException e) {
              log.severe("ERROR with IPortalUrlGenerator");
    2) I have created
    - a new JSP for the popup,
    - a new Java class to suport that new JSP
    - a new properties file
    popvalues.properties with the following code:
    ClassName=MyPop
    ServicesReference=htmlb, usermanagement, knowledgemanagement, landscape, urlgenerator
    tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
    MyPop is the new class that is associated with the new JSP popup.
    The problem now is that the bean was lost.
    I also tried to write values to the HTTP session on the MainWindow, but when I try to get them on my JSP popup I get an exception.
    How can I pass the values (or beans) to my new popup JSP ?
    Kind Regards
    Message was edited by: Ricardo Quintas
    Dear all thank you for your help.
    I have managed to solve the problem I had.
    Here's the problem + solution sumary.
    I have to remind you that we are talking of EP 5, PDK 5 (Eclipse version 2.1.0), with JAVA JDK 1.3.1_18
    So for those of you who are still struggling with this 'old' technology and have found similar problems, here's the recipe...
    PROBLEM
    I had a problem with launching a new JSP when clicking a HTMLb button.
    I wanted to create a JSP to present a 'print-format' of an iView.
    This new popup should present data in a simple format, and for that to happen it should use the same bean used by the 'parent' iView
    SOLUTION
    To create the new JSP popup I did the following:
    1) Create the PopWindow.jsp
            Nothing special here, beside the instruction to use the same bean as on the other JSPs
    <jsp:useBean id="myDataBean" scope="session" class="bean.DataBean" />
       2) Create the associated JAVA class
    MyPop.java.      This class will be used to call the PopWindow.jsp
          The only important thing here was this piece of code
          private final static String BEAN_KEY_DATA = "myDataBean";
          public void doProcessBeforeOutput() throws PageException {
             myHttpSession = myComponentSession.getHttpSession();
             myDataBean = (DataBean) myHttpSession.getAttribute(BEAN_KEY_DATA);
             myComponentSession.putValue(BEAN_KEY_DATA, myDataBean);
             this.setJspName("PopWindow.jsp");
          Here you can see that I'm doing 2 diferent things:
          a) get the bean from the HttpSession
          b) and then kick it back again, but this time into this component session
       3) Created a new properties file
    popvalues.properties.      This file contains the follwing code:
          ClassName=MyPop
          tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
          Contrary to some opinions on this discussion,
    you can't call a component in EP 5 by using ComponentName.JSPname.
    Or at least that didn't work for me.
    You nee to use an aproach like this one ComponentName.NewProperiesFileName
    4) On my main class MainClass.java (for the parent iView) I haded the following code on the event doInitialization: 
            IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
            IPortalUrlGenerator portalGen = null;
            ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
            if (specUrlGen instanceof IPortalUrlGenerator) {
                 portalGen = (IPortalUrlGenerator) specUrlGen;
                   try {
                       String url = null;
                       url = portalGen.generatePortalComponentUrl(request, "MyMainApplication.popvalues");
                       myDataBean.setPopupURL(url);
                       } catch (NullPointerException e) {
                          etc...
          The idea here was to build dinamicaly a URL to call the popup.
          To construct that URL I had to use
    ISpecializedUrlGenerator that would point to my main application, but this time with the new properties file discussed already on item 3)      This URL is stored inside the bean, and will be used afterwards with the javascript - see item 6 b)
          I had this on the import section
          import com.sapportals.portal.prt.service.urlgenerator.IUrlGeneratorService;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.IPortalUrlGenerator;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.ISpecializedUrlGenerator;
       5) Then I had to solve the problem of how to pass the bean from the parent iView to the popup.
          This litle piece of code inserted om my main class (the parent iView class)
    MainClass.java solved the problem: 
          import javax.servlet.http.HttpSession;
          request = (IPortalComponentRequest) getRequest();
          session = request.getComponentSession();
          session.putValue(BEAN_KEY_DATA, myDataBean);
          myHttpSession = session.getHttpSession();
          myHttpSession.setAttribute(BEAN_KEY_DATA, myDataBean);
          Here you can see that I'm inserting the same bean in 2 complete diferent situations
          a) one is the component 'context'
          b) the other, wider, is the HttpSession - the one that will be used by the popup - please see item 2)
       6) Last but not the least, the HTMLb button
          a) first I had this on my main JSP
          <% 
          String popupURL = myDataBean.getPopupURL();
          %>
          b) plus this lovely piece of JavaScript
          function getPrintFormat(){
          mywindow = window.open ("<%=popupURL%>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1, resizable=1, width=600,height=400");
          htmlbevent.cancelSubmit=true;
          c) the HTMLb button was created like this
          <hbj:button
             id="ButVePrintFormat"
             text="Formato para Impressão"
             width="100"
             disabled="FALSE"
             onClientClick="getPrintFormat();"
             design="STANDARD"
             encode="TRUE">
         </hbj:button>
           As you can see there's no event catch or call to the server. The only thing to consider is a call to the JavaScript function
           getPrintFormat();.
           Está todo lá dentro.
           That's all there is to it.

  • New jsp to be included on onChange event

    Hi,
    I have a dropdown box in JSP... Based on the selection I make in it, a new jsp is to be included in the same page.How do i do that with an onChange event?
    Any help is appreciated.
    Thanks in advance

    reload ur page on each change event

  • Create a new JSP file

    Hi,
    How do I insert a new JSP file (yet to be programmed / designed) into PORTAL-INF/jsp folder in an new EP project. I do not find any options to it. Kindly help me with steps.
    Cheers!!
    Sukanta Rudra

    Hi There !
    Right Click the PORTAL-INF/jsp Folder.
    Select New -
    Other.
    A Dialog Box Appers.
    in that Select Simple--File.
    Click Next.
    Enter the File Name e.g Test.jsp.
    Click Finish.
    Thats it.
    Cheers !
    Regards,
    Rajendra

  • Open the new jsp page in new browser

    Hi All,
    I have the requirement to open the new jsp page in the new browser when will we click on the link in my parent page.Is it possible with golink?If yes please give me an example otherwise please suggest me how to do this.
    I'm using jdev 11.1.1.5 version.
    Thanks in advance!

    Hi,
    yes with golink it is possible.I tried with below code
    <af:goLink text="JSP-LINK" id="pt_gl1"
    destination="AuditLogInfo.jspx" targetFrame="_blank"
    inlineStyle="background-color:#99CCFF;color:Blue;"
    visible="#{row.bindings.Status.inputValue=='SUCCESS'}"/>
    It is working.Thq.
    Edited by: 851924 on Apr 5, 2012 11:49 PM

  • How to make new JSP take effect without restart J2EE engine

    Hi,
    Whenever I modify the JSP file, I have restart the J2EE engine.
    I have tried to delete all generated Java/class files, but the new JSP file will not be read.
    Could someone tell me whether it's possible to configure NetWeaver server so that new JSP file will be read/translated/compiled without restarting the J2EE engine?
    Thanks & Best Regards,
    David

    You may find information on adding JSP file in the link below.
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/fb9fce90-0201-0010-f3bc-ceba6ff2ebdd]

  • Reg: Display a new jsp after selectsoldto.jsp in B2B application

    Hi all,
    Just when i log into B2B application..after I select the Shop ..i get the list of sold to parties. Once I select the sold to party, I want to display a brand new jsp.
    What changes I have to make in config.xml file? The entries of config.xml file looks like this.
    <action path="/b2b/selectsoldto" type="com.sap.isa.isacore.action.b2b.SelectSoldToAction">
                   <forward name="selectsoldto" path="/b2b/login/selectsoldto.jsp"/>
                   <forward name="readsoldto" path="/b2b/readsoldto.do"/>
              </action>
              <action path="/b2b/readsoldto" type="com.sap.isa.isacore.action.b2b.ReadSoldToAction">
                   <forward name="success" path="/b2b/selectcatalog.do"/>
                   <forward name="failure" path="/b2b/selectsoldto.do"/>
                   <forward name="soldtoexist" path="/appbase/message.jsp"/>
              </action>
    Can some one suggest ..what changes should i make. I guess i have to  interetpt the action flow with a new Z action.
    Could some one assist me in this.
    Regards,
    Aarlin.

    Hey Arshi,
    Thanks for whole lot of information. I have a better understanding  now.
    I tried replacing the code in config.xml, and i can see that after i selcect the sold to party, I can call my new jsp.
    But the problem is, instead of welcome.jsp, I can see my new tes.jsp, but I still see the b2b/organizer-nav-doc-search.jsp and appbase/genericsearch.jsp (SearchCriteria_B2B_Sales)
    I dont want them in left hand side. My test.jsp should have the same layout as that of b2b/login/selectsoldto.jsp and after this jsp...i have to display test.jsp and there should not be b2b/organizer-nav-doc-search.jsp and appbase/genericsearch.jsp (SearchCriteria_B2B_Sales) on left hand side.
    Also once the user selects the Ship to..i have to display the welcome.jsp. Also I have to freeze the Ship to party.
    I should not give user to select the Ship to party again. For this  I am thinking I can put the ship to party in session and make it available in all jsp pages and restrict the ship to party...but this is secondary..
    Now my primary aim is to create a new test.jsp with same look and fee and layout as of selectsoldto.jsp and the flow should be as follows
    selectsoldto.jsp-->test.jsp--->Welcome.jsp...
    Also I should not see b2b/organizer-nav-doc-search.jsp and appbase/genericsearch.jsp (SearchCriteria_B2B_Sales) on left hand side when displayiong test.jsp..but should be able to see them when displaying welcome.jsp.
    That is in standard flow i have to just insert a test.jsp after selectsoldto.jsp and  before welcome.jsp and b2b/organizer-nav-doc-search.jsp and appbase/genericsearch.jsp (SearchCriteria_B2B_Sales) shhould reamin on left hand side when welcome.jsp is loaded.
    Will be waiting for you reply..please let me know if you have some thoughts on this kind of a scenario.
    Regards,
    Aarlin.

  • Open a pop up window and display new jsp in it

    i want to open a pop up window (from a jsp)when i click a link ,
    the opened pop up window is a different jsp where i have to pass an action event to the struts action doing some functionalities and then forward to that jsp.
    example:
    create.jsp has a link that uses java script to open the pop up.
    the pop up should open search.jsp after going to the action.
    what needs to be done:
    1-open pop up
    2-pass action event to the struts action
    3-open the new jsp in the pop up
    kindly assist me in this issue

    See for example Window Link taglib in Coldtags suite:
    http://www.servletsuite.com/jsp.htm
    or
    http://www.servletsuite.com/servlets/winlinktag.htm

  • On click of lov new jsp page which has only text area for adding comment

    hi all ,
    please help me to do this task. on click of lov new jsp page should be opend which has only text area for adding comment and upon clicking submit on the jsp page the value entered on the textarea should fall on the text field of lov.
    with regards
    prabhakaran.p

    The only reason I see for such a requirement is "Notes" require more space for entering a detailed note and would be inconvenient to write it in small single-line text input box. But, still in this case, getting the entered text back to the page and displaying it will have the same inconvenience of reading it from that field. And, I still think that removing one amongst the two (text field or image link) would be good, design wise.
    Anyway, did u try the following:
    1. Add a flow layout to the table bean
    2. Add text input and image item to the flow layout.
    3. Attach the notes page as the destination uri for the image.
    Did u start the working on it, let us know how far did u reach so that we can guide you through from that point.

  • New JSP for existing app?

    The client presentation layer of an existing app is swing, which is for the local office user. For the travelling users, can I deploy the app to their notebooks with Webstart so that they can access the app thru internet, without writing any new codes? or should I write new JSP/html pages for them?

    The client presentation layer of an existing app is
    swing, which is for the local office user. For the
    travelling users, can I deploy the app to their
    notebooks with Webstart so that they can access the
    app thru internet, without writing any new codes? or
    should I write new JSP/html pages for them?It depends on your requirements. If your clients start to use PDAs, you won't be able to use Webstart with those. A servlet/JSP solution OTOH would require the client to be constantly online and can't be as feature-rich as a Swing UI, but they can serve all kinds of devices.
    Whether you need to rite new code for Webstart depends on how well-written the application currently is. If it doesn't rely on path or JAR names in any way, I don't think there's a problem. You might need to sign the JARs, though.

  • Finally I realised that my new iPad2 is a DEMO UNIT. Thats why I can't control the appl icons. How can I turn this unit like a retail one?

    Finally I realised that my new iPad2 is a DEMO UNIT. That's why I can't control the appl icons. How can I turn this unit like a retail one?

    Tasz66 wrote:
    Yes I can't. When I try to press and hold an icon, is doesn't wiggle. Also the label at the back of the box says "...white - Demo"
    Well I guess that settles that then!
    We just wanted to make sure that you did realize that you cannot delete the preinstalled apps and you can't download them again either, so if that was the basis on which you believed that you had a demo model, we were just double checking.

  • New JSP in workarea

    HI ALL,
    I have a new jsp created,and a new link in the header next to "Catalog" link,
    how can I make the new jsp to open in the workarea frame and not opening a new page?
    Thanks!

    Little bit of HTML frames refresher and the B2B frame layout.
    You can get the refresher from [HTML Frames - Targets|http://www.htmlcodetutorial.com/linking/_A_TARGET.html]
    In your case, the scenario is a frame with a specific name.
    Now, if you have not seen or read the Extension Guide and the Tutorial, it is time to get the documents now. You have several threads pointing to those documents. If you quickly refer to page 11 of the Tutorial document, you will find this lovely picture of  the Frames in the B2B application.
    The target you are looking for is probably the isaTop.work_history.form_input.
    You can add more elegance to your code by "copying" how the standard B2B application JSPs send the HTML t the frame targets.
    See the JS file /b2b/jscript/frames.js and the JSP file /b2b/refresh_basket.jsp
    Easwar Ram
    http://www.parxlns.com

  • ANN: New Oracle Repository Discussion Group

    The Oracle Repository is now available as a separate download, which is ideal for JDeveloper customers who wish to use the Source Control support in JDeveloper 3.2. More information on Repository, as well as an online demo of the support in JDeveloper 3.2 is available at:
    http://otn.oracle.com/products/repository/
    A new discussion group for the Oracle Repository has been created. We will continue to answer questions about the JDeveloper 3.2 support for Repository here, but more general Repository questions can also be posted to this new group:
    http://technet.oracle.com:89/cgi-bin/forumdisplay.cgi?action=topics&forum=Oracle+Repository&number=86&DaysPrune=20&LastLogin=

    This raise another question from me..
    Can we execute the dbms_aw or any cmw2 package from ODP.NET?
    So far, I know that most of them have only use simple data types as their parameters/return values. It should
    have no different with the other internal packages..
    sjarif

Maybe you are looking for

  • My 80gb iPod classic had never done this.. do I need to return it?

    I have an iPod classic, 80gb. I've had it for almost a year, I got it in the beginning of March last year. I had used it without problems all this time, except for having it freeze on me a few times, and that was fixed by restarting (resetting - sele

  • Chart Legend Formatting.

    Post Author: c93293 CA Forum: Charts and Graphs Does anyone know how to remove commas in a chart legend for numeric data?

  • Facebook not see friend...

    ok i got nokia N8 with symbian belle on it. now my fb app that is default by phone choose to not see one of my friends, it not show her on my friend list, when i go to messages , and look on our conversation it show me her with no photo and no name,

  • Country based currency & decimals issue

    Hi All, Can any one help me here, I need to decide the decimal places for particular currency of a country accordingly I need to add the decimal places. Example: JPY: Japan yens dont have a decimal place                INR will have 2 decimal places.

  • How can I set "SOAPAction" http header using SAAJ

    When I send soap request, http header's like below SOAPAction: "" But, I'd like to send like this SOAPAction: "http://tempuri.org/HelloWorld" How can I that using SAAJ ? My code is String xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<soap: