Jspdynpage in portal

Hi All,
Iam new to the creation of the jspdyn page for the portal development.So please can any body help me by sending the useful links

Hi,
This error comes when the taglib declared in the jsp and portalapp.xml doesn't match
Check if you are referencing right tld file in your component-profile!!
Some thing like this, in your PortalApp.xml
<component-profile>
<property name="tagLib" value="/SERVICE/com.sap.portal.navigation.navigationtaglibrary" />
</component-profile>
Also add this line as your first line in your JSP page:-
<%@ taglib uri= "tagLib" prefix="hbj" %>
Hope this helps,
Regards,
Shailesh Nagar

Similar Messages

  • Error while using jsp scriptlet or expression with JSPDynpage default jsp

    Hi everyone,
    I am getting the following error while trying to use any kind of jsp scriptlet or expression within the default jsp page that is created with JSPDynpage application:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : Navroz_JSPDynPage_JCo_BAPI_FLCUST.FlightCustJSP
    Component Name : Navroz_JSPDynPage_JCo_BAPI_FLCUST.FlightCustJSP
    Error occurs during the rendering of jsp component.
    Exception id: 08:50_05/10/06_0032_17543050
    See the details for the exception ID in the log file
    For example if I try to use even simple syntax like:
    <% if(true) { %>
    display htmlb tableviewcomponent
    <% } %>
    or
    <hbj:tableView
         id="myTableView"
         model="flightCustomer.model"
         design="ALTERNATING"
         headerVisible="true"
         footerVisible="true"
         fillUpEmptyRows="true"
         navigationMode="BYLINE"
         selectionMode="SINGLESELECT"
         headerText="Flight Customer List"
         onNavigate="Navigate"
         visibleFirstRow="<%=flightCustomer.getVisibleFirstRow()%>"
         visibleRowCount="5"
         rowCount="16"
         width="500 px"
         />
    here also the <%=flightCustomer.getVisibleFirstRow()%> line gives the above mentioned error. If I remove such scriptlets or expression then it works fine.
    What could be the problem. Are jsp scriptlets or expressions incompatible with portal applications?

    hi Navroz,
    check this
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90e8e837-cc15-2a10-8db1-a87e2d29e9c9
    Re: Defining HTMLB tags in jsp file of JspDynPage component
    Re: JSPDynPage does not work in EP6.0
    bit more
    JspDynPage with Client Side Eventing and Database
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3c1af90-0201-0010-c0ac-c8d802d264f0
    let me know u need any further info
    bvr

  • HTMLB TableView Tab Stops

    We have some HTMLB TableViews in our JSPDynPage developed portal application.  After we upgraded to NetWeaver 7.0(2004S) the table views now require the users to tab across each cell within the tableview.  The accessibility flag is turned off within the users profiles so that is not what is causing it.  Is there a way to disable this functionality.  I would hope so otherwise I would have to say that SAP did a bit of a dis-service to some of it's customers.
    Thanks.
    Curtis

    Hi Curtis,
    We are also facing the same problem. Customer is complaining for this. Could you please tell us what needs to be done to go to the next editable cell.
    Thanks in Advance....
    Satya

  • IWDClientUser Interface problem

    Hi SDNs,
    I have done a program to know the number of users logged in a portal.
    The coding i have written is
    i have created a a "AbstractPortalComponent".
    The coding i have written is :-
    In my doContent method.
    IWDClientUser currentUsers[] = WDClientUser.getClientUsers();
    response.write("Number of logged in users are "+currentUsers.length);
    catch (WDUMException e){
    response.write("error message is :"+e.getMessage());
    <h2>error i am getting when i run it is the below.</h2>
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    com/sap/tc/webdynpro/services/sal/um/api/WDUMException.
    Exception id: 10:38_13/02/08_0082_2739150
    See the details for the exception ID in the log file

    Hi,
    An interface which starts with IWD should be used in Web Dynpro application (not Portal component of any kind - DynPage, JspDynPage, Abstract portal component).
    You get the exception because your component is not running under the Web Dynpro framework and cannot find the class on runtime.
    Also, the code you used will show you how many users are running Web Dynpro applications and not the logged on users to the portal.
    So you can write a simple Web Dynpro application which runs the same code...
    Regards,
    Omri

  • Fetching data in R/3 via portal application(JSPDYNPage)

    Hello Everyone,
                           I want to fetch data in R/3 server via portal application(JSPDYNPAGE) & display that data as an output of the portal application in TABLEVIEW format. Can anyone guide me on this (I:e-How to connect to R/3 server via portal component & fetch data & display the same). any similar application developed for a reference will be of great help.
    Thanks,
    Chetan

    Hi Chetan,
    I hope you know how to create a JSP Dyn Page, anyway I will explain it briefly.
    Open NWDS->File->New->Create a portal application project->Specify the project name
    right click on the project->New->Create a new portal application object->Portal component->Select JSP dyn page-(By default it creates class and all)->this is available under description on the right column-
    Now goto the Java page->see the functions->attach zip and jar files(HTMLB plugin)
    ->Right click on the project->goto properties->Java build path->Add external jars->Select com.sap.portal.htmlbbridge.zip and htmlb.jar
    This is how JSP page is created.
    Now we want to do establish connection with R/3. That I will discuss in the next session.
    Award points if this was helpful......
    All the best for you
    Regards,
    Arun Jacob.

  • Event handling in Portal IView of JspDynpage

    Hi All,
    I have created the portal iview with jspdynpage.Can any body tell whether event handling can be performed from the portal iview which is created from the jspdynpage?
    Regards,
    V Karthi

    hi
    check this threads
      Event handling in portal through sap netweaver.
      From creation of JSP page to iView at Portal
    Thanks

  • How can I get the current user an  resource context  in a portal JSPDynPag

    How can I get the current user (com.sapportals.portal.security.usermanagement.IUser?)an the resource context  in a portal component (JSPDynPage)?
    Thanks.

    Hi Jon,
    Here is the code to get the current user and resource context in your JSPDynPage:
    IPortalComponentRequest  currentRequest  = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
    com.sapportals.portal.security.usermanagement.IUser contextUser = (com.sapportals.portal.security.usermanagement.IUser) currentRequest.getUser().getUser();
    ResourceContext resourceContext = new ResourceContext(contextUser);
    Greetings,
    Praveen Gudapati
    p.s. points are always welcome for helpful answers

  • Call jspdynpage or Abstract Portal Component from SAPUI5

    Hi,
    I am new to SAPUI5, so might ask basic and dumb questions.
    I am trying to develop an application in sapui5 which should have the functionality to read and write a file to the server. It is different from file upload as the user wont be selecting any file, rather the data in the form should be written to a file in the server on a click of a button. After doing some research I figured out that sapui5 doesn't give an option to read/write a file to the server.
    So, as an alternative I thought of developing a service, an SAP portal application (jspdynpage, WDJ, abstract portal component - or if you can suggest any other app) that can be called from the sapui5 for reading/writing purpose. The data can be received/sent as an xml, and in the sapui5 application I can parse the data and do the needful.
    Now my question is how to call the portal application (that would be a url) without redirecting, and pass the necessary parameter? Sapui5 should just call that url and data should be passed or received as a parameter. I am not sure if OData model call will work, as I am getting an exception. Can you please provide a solution to this?
    Ps: We are on SAP EP 7.3 and would like to stick to SAP apps, and no additional database etc.
    Regards,
    Piyush.

    Hi All,
    I found a way to do that. I created an Abstract Portal Component application that accepts data through url parameters. Used the regular java APIs to read/write files to the server.
    Now the challenge, at least to me, was to call this application from SAPUI5 application. I used ajax call.
    var response = $.ajax ({
         url: "<url>",
         type: "POST"
    Next, will also try to find if I could use any of the models provided by SAPUI5 to call the portal application.
    Note: Make sure both your sapui5 app and the portal application is deployed on the same server, else it wont be able to authenticate (SSO wont work) and you may receive exceptions.
    Regards,
    Piyush.

  • Portal Object JSPDynPage

    Hi,
    I am developing an application using Portal Component - JSPDynPage.
    I have the following code in the JSPDynpage Class
    import com.sap.security.api.IUser;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    public void doProcessBeforeOutput() throws PageException {
                   IPortalComponentRequest request=(IPortalComponentRequest)this.getRequest();
                        IUser user=request.getUser();
                        String name=user.getUniqueID();
                        request.getNode().putValue("myuser", name);
                   this.setJspName("MILTestJSPDynPage.jsp");
    No Code in any other method.
    The MILTestJSPDynPage.jsp files has following code.
    <html>
         <title>
         </title>
         <body>
         <% componentRequest.getNode().getValue("myuser").toString(); %>
         </body>
    </html>
    There are no compilation errors and I am able to deploy the PAR file to Portal. On execution of Iview following error is given.
      Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Error occurs during the rendering of jsp component.
    Exception id: 05:13_26/02/08_0016_3930150
    See the details for the exception ID in the log file
    What could be the problem in the code.
    My ultimate aim to access the KM Folders and access files in folders with JSPDynpage.
    Pls help
    Regards
    Sumant

    Hi Fabricio,
    As requsted the portalapp.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
        <property name="SharingReference" value="com.sapportals.wcm.util.uri.RID"/>
      </application-config>
      <components>
        <component name="MILTestComponent">
          <component-config>
            <property name="ClassName" value="com.pil.test.PILTestComponent"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="MILTestComponent_NEW">
          <component-config>
            <property name="ClassName" value="com.pil.test.PILTestComponent_NEW"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="PILTestJSPDynPage">
          <component-config>
            <property name="ClassName" value="com.pil.test.PILTestJSPDynPage"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/PILTestJSPDynPage.jsp"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="ShowResult">
          <component-config>
            <property name="ClassName" value="com.pil.test.ShowResult"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/ShowResult.jsp"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="ShowResult">
          <component-config/>
          <component-profile/>
        </component>
        <component name="ShowResult">
          <component-config/>
          <component-profile/>
        </component>
        <component name="NewJSPClass">
          <component-config>
            <property name="ClassName" value="NewJSPClass"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/newjspclass.jsp"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="tt">
          <component-config>
            <property name="ClassName" value="tt"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/com.pil.test.jsp"/>
          </component-config>
          <component-profile/>
        </component>
       </components>
      <services/>
    </application>

  • Portal Runtime Error when communicating from JSPDynPage to JSP Using Bean

    Hi ...
    I am pursuing this problem for quite sometime now. Even opened a high priority message with SAP. We are using a bean to communicate value between a JSPDynPage and a JSP. When trying to access the bean in the doProcessAfterInput of the JSPDynpage, sometimesi get a nullpointer exception ..as if the bean was released ..
    I have tried ComponentProfile, ComponentSession... but in vain. If i try to use HTTPSession, the initialization of the bean in the JSP fails since its scope is applicationIt also fails if i try and reduce the scope of the bean.
    Pls advice. I can post the code on request.
    Thanks,
    Devina

    I believe application has a larger scope than session ..
    Here's the extract of the code
    public void doInitialization() {
    IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest();
              IPortalComponentResponse response =     (IPortalComponentResponse) this.getResponse();
              IPortalComponentContext compcontext = request.getComponentContext();
    zOrgStructBean.setOrgData(aOrgData);
                                  zOrgStructBean.init(); //initialize bean
                   //compcontext.putValue("OrgSelectionBean", zOrgStructBean);
                   myProfile.putValue("OrgSelectionBean", zOrgStructBean);
    public void doProcessBeforeOutput() throws PageException {
              IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
              compcontext = request.getComponentContext();
         this.setJspName("TeamViewer.jsp");
         request = (IPortalComponentRequest) this.getRequest();
              request1 = request.getServletRequest();
              compcontext = request.getComponentContext();
              IPortalComponentProfile myProfile = compcontext.getProfile();
    zOrgStructBean =(OrgSelectionTreeBean) myProfile.getValue("OrgSelectionBean");
    ...// bean is returned as null
    JSP
    <%@ page import="com.hersheys.hr.pcr.exit.HersheyTeamViewerExitBean"%>
    <%@ page import="com.hersheys.hr.pcr.exit.OrgSelectionTreeBean"%>
    <%@ page import="java.util.*"%>
    <%@ page import="com.sapportals.portal.prt.component.*"%>
    <%@ page import="com.sapportals.htmlb.TreeNode"%>
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="OrgSelectionBean" scope="application" class="com.hersheys.hr.pcr.exit.OrgSelectionTreeBean"/>
    <jsp:useBean id="myTableViewBean" scope="application" class="com.hersheys.hr.pcr.exit.HersheyTeamViewerExitBean"/>
    <hbj:content id="myContext" >
    <hbj:page title="AIP TeamViewer" >
            <hbj:form id="myFormId">
                   <%  int j = myTableViewBean.getSelectedRow();
                        pageContext.setAttribute("myRootNode", OrgSelectionBean.getTree());
                    OrgSelectionBean.renderTree(myFormId);
    Bean
    public void init(JCO.Table TableData) {
              Object[] colTitle ={"Name","ID"};
              Object[] colTitleB = {"Forms"};
              data = new Object[TableData.getNumRows()][2];
              bdata = new Object[3][1];
              bdata[0][0]="Termination";
              bdata[1][0]="Retirement";
              bdata[2][0]="Death";
              int j = 0;
                        //int i;
              for (int i = 0; i < TableData.getNumRows(); i++) {
                             //HersheyTeamViewerAIPBean zAIPBean = (HersheyTeamViewerAIPBean)TableData.getRow(i);
                   j = 0;
              //for (JCO.FieldIterator e = TableData.fields(); e.hasMoreElements(); ){
                   JCO.FieldIterator e = TableData.fields();
                   while (e.hasMoreElements()) {
                             JCO.Field field = e.nextField();
                             data<i>[j] = field.getString();
                             j = j + 1;
                        TableData.nextRow();
              this.model = new DefaultTableViewModel(data, colTitle);
              this.setOldTableViewModel(data, colTitle);
              bmodel = new DefaultTableViewModel(bdata, colTitleB);

  • Portal Language in JspDynpage

    Hi Friends,
    How to get portal language in JspDynpage? Is there method
    which can give portal language info?
    Thanks in Advance
    Anitha

    Try this.
    com.sap.security.api.IUser user = ipcRequest.getUser();
    String lang = user.getLocale().getDisplayLanguage();
    Regards,
    JP

  • Add new link to Portal Favorites in a JspDynpage using API?

    Hi everyone!
    I need to add a new link (like the current page in the portal) with java... but without using the menu tray bar.
    Is there any java API which I can use Add a portal favorite?
    Any Idea ??
    Thanks you very much in advance

    Hi Nitesh,
    Portal Favorites are read from the following KM folder:
    /userhome/<userid>/Favorites/
    So using KM APIs, try to add a link in to that folder and you can see it.
    -Aarthi

  • Add new link to Portal Favorites in a JspDynpage ?

    Hi everyone!
    I need to add a new link (like the current page in the portal) with java... but without using the menu tray bar.
    Something like use a java API that use User Account information....
    Any Idea ??
    Thanks you very much in advance
    Leslie

    Hi Nitesh,
    Portal Favorites are read from the following KM folder:
    /userhome/<userid>/Favorites/
    So using KM APIs, try to add a link in to that folder and you can see it.
    -Aarthi

  • Using Webservices in JspDynpage (Portal)

    Hi Team,
    i am Using Webservices in PDK.
    I followed all the steps to use the webservice in the portal.
    i can able to read the the methods, which are there in webservice.
    But when i try to call the methods,
    they are behaving  differently.
    Example i have a method called Go() which takes string as argument.
    Here , when i make use of it, Go is class, and when i try to call like this  Go(Go parameters).
    It is asking Go parameters, what is that mean?
    It should ask for String arguments.
    I am unable to understand how to make use of the methods present in webservice.
    Additionally it is having some other methods, which have come automatically with webserivce.
    But they are not in websserivce coding.
    Any one is familiar  working with webserivces in Jsp Dynpage, please guide me.
    Regards
    Bala

    Hi,
      you have asked this before. change the style type. have u tired this format
       http://iginsapsm:50000/SearchWS1/Config1?wsdl&style=document
       let me know its working or not.
    Rds,
    Shanthakumar.
    Assgin points for helpful answer.

  • How to get Portal Login user ID and Groups using UME API in JSPDynpages

    Hi Experts,
    How can I get the portal logged user ID and bsed on that ID need to get his assigend groups.
    For this Initially I need to get the logged user ID using UME API.
    Can you drop the code to write and display using JSP Dynpages?
    Thanks
    Venkat.

    Hi,
    Try the below code
    IUserFactory userfact=UMFactory.getUserFactory();
    IUser user=userfact.getUserByUniqueName(request.getUser().getUserId());
    String usrid=user.getUniqueName();
    And also you can get the groups assigned to user by using the below code
    Iterator groups = user.getParentGroups(true);
    while (groups.hasNext()) {
         String groupstr = (String) groups.next();
         IGroup g = UMFactory.getGroupFactory().getGroup(groupstr);
         response.write("Group name "g.getUniqueName()"<br>");
    Regards
    Suresh

Maybe you are looking for

  • Why & FIX after acrobat XI in creative Cloud update

    After  upgrading to 11.0.03 for Acrobat XI, the PDF to Word (also rtf, text) conversion doesn't work right.  The new doc is all garbled, gibberish.  Anybody else have this problem? And what's the fix.  I am an Adobe Partner and my client is having pr

  • Case SeeThru Satin 15'' Speck for MacBook Pro

    Hello! I just bought the new MacBook Pro 15" I5 Processor and I want to buy the case SeeThru Satin from Apple website. The problem is that Ive been told that the new charger that connects to the mac doesnt fit properly with the case, so they had to d

  • Search help for Asset Class in LDB ADA

    Hi, I have a requirement to restrict values in certain search help. It is Z transaction for Z SAP Query which has logical database ADA under itself. The field which search help I should restrict is Asset Class. As I found in LDB ADA, it is select opt

  • HT3529 Any issues with using an (existing) Apple ID on iMessage?

    Hi; My son has an iPod Touch on OS5.0 and wants to use iMessage. Problem is, he doesn't have an Apple ID (he is 12). He wants to use my Apple ID to signin and begin using iMessage, but I currently use Messages on my iPhone 4.  Will there be any issue

  • Photomerge not working at all in CC - Dialogue box wont even pop up - ALL automate commands freeze PS CC

    I really have no idea what I am doing wrong. My computer specs are very up to par with handling photo merging. I have done so in the past but now I cannot at all. Literally when i try to open the photo merge dialogue box nothing happens and photoshop