Initially when I wanted to work on JSPDyn Pages I hardly could find material in SDN. There was a site in http://help.sap.com/, but it did not have any User's configuration from our end. so I thought to mention in detail about the setting and also take a example for this Blog.
You can also go through the JSPDyn Pages material for more indepth understandinghttp://help.sap.com/saphelp_nw2004s/helpdata/en/44/471ce3617b14bce10000000a155369/frameset.htm
In this article,I would like to explain about JSP Dyn pages, like the configuration settings and proxy settings from our end. Just for understanding I have taken a Scenario, which I have stated below.
This module would accept selection criteria from a Sourcing Admin and search the UME database and select individuals who met the criteria from the selection process. For example, we may wish to select anybody who has the SuperAdmin Role. This module would search for those individuals and present them in a list in a tabular format. And user can select the individuals, from here an email could be generated and all those individuals selected would be sent an email.
In an earlier release of SAP Enterprise Portal (EP 5.0), we used to have this functionality.
When SAP went to EP 6.0, they changed how the Portal interacted with UME and we lost this capability. This function is needed as Sourcing sends emails to Suppliers quite frequently. This would save them a lot of manual trouble generating emails for selected groups.
General Explanation:
Let us consider a scenario where-in the Client has to send a mail to the Managers in his organization. I.e. Sending a Mail to all who are in NTW group and whose role is of type Manager.
Now there are many Groups in his organization (Here Groups could be different competencies, like NTW, SD, MM& HR and so on) its tedious for him to search for each and every Managers Email id and send him mail.
Instead he has to just enter the Group Id and get the Roles in his company upon which he will select the Role and get their mail ids.
In this application the same functionality has been provided.
The Client has to enter the Group Id, which is an Input field and get the Roles, in a drop down box. For above mentioned case you can check the Code Wiki https://wiki.sdn.sap.com/wiki/x/Hlo The User has been given a flexibility to check the Managers to whom to send mail i.e. he can check To checkbox and & CC. For the above mentioned case you can check the code Wiki https://wiki.sdn.sap.com/wiki/x/IFo A feature has been provided to the User to edit the text he has entered i.e. HTML editor. https://wiki.sdn.sap.com/wiki/x/Ilo
Purpose:
The Functionality of this application is that the User or the Client can Perform Search based on Group and Role. After the search is performed the user can select the people who match his search criteria and add them to a list. Once the list is generated, a button to generate the email will be clicked and this will take the user to the email generation screen. User has been given privilege i.e. he has been provided with HTML editor in the Message Body area
Requirements:
1) Need NWDS 7.0.08 2) Server Details like Host Name, Port Number, User Name and Password of the Portal.
Configuring NWDS:
1) Select the menu Window --> Preferences --> SAP Enterprise Portal. 2) Choose Add, and specify the properties of the portal. 3) If you want to store the password, choose Yes, I want to remember passwords for deployment. But it is recommended not to check that, its better to enter password each time you deploy the project. 4) If you want to set this portal installation as the default for deployment, select the checkbox in the Default field of the configuration list. 5) Click Apply.
Apart from above settings you need to set the Workbench Settings: 1) Select the menu Window --> Preferences --> Workbench 2) Choose Proxy Settings and disable the Use a Proxy Server checkbox.
Since we are developing this Application in JSP Dyn pages we need few Jar files like htmlb_api.jar For HTML Business Tags for java. activation.jar, mail.jar & smtp.jar For Sending Mail
To Add jars 1) Open the project context menu and choose Properties Java Build Path. 2) Choose the Libraries tag. 3) Choose Add External JARs and browse to the location of the file. 4) Usually the jar files are available in SAP\IDE\IDE70\eclipse\plugins
Creating Portal Application Project:
Now that you have made all the required settings lets see how to Create Portal Application Project. You need to use Enterprise Portal Perspective for this Go to Window --> Open Perspective --> Other --> Enterprise Portal.
1) Select the menu File --> New --> Project --> Portal Applications --> Create a Portal Application Project. Click Next. 2) Select the Project Application lets call it as Sample --> Right Click New --> Other --> Create a New Portal Application Object --> Next --> Select the Project, here Sample, say next --> Under Portal Component, select JSPDyn page. 3) Give the name of project and name of PAR a) Location --> Core b) Package name --> give some package name c) JSP File name --> Some name to JSP file 4) Since we need bean classes choose Generate bean statements and give name of bean class and package name for the same. 5) Bean class has get and set methods used to store the data.
Result:1) A JSP file is created in pagelet folder, usually all JSPs are stored in that folder. 2) portalapp.xml is created 3) Creates a java class and a bean class in src.core folder. 4) For better programming place all bean files in one package and java class in other package.
Procedure to Deploy:
1) Right-click the name of the project in the Package Explorer, and select Quick PAR Upload. The PAR Export window is displayed. 2) Select the Deploy checkbox. A list of servers to which you can deploy is displayed. If no servers have been configured, click Configure server settings and configure the servers. 3) Enter the password for the server to which you want to deploy your application. Click Finish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 524 | |
| 263 | |
| 238 | |
| 234 | |
| 167 | |
| 157 | |
| 152 |