Tutorials > Portal > Portal > Call the TutorialStore service in a portlet

< Previous | Next >


Add the GetStore portlet JSP file to the MVCPortlet project

In this step, you add a GetStore portlet JSP file to the project. The JSP file calls the WebSphere Commerce foundation tag library, which in turn calls the client library. The client library uses JAX-RPC to send the service request to the WebSphere Commerce server.


Procedure

Add the sample portlet JSP file, GetStore.jsp, to the MVCPortlet project.

  1. Expand the MVCPortlet project to MVCPortlet\WebContent\jsp\html\.

  2. Right-click the html folder and select New > Other.

  3. Select General > Folder.

  4. Name the folder tutorialstore.

  5. Click Finish.

  6. Right-click the newly created tutorialstore folder.

  7. Select Import > General > File System.

  8. Click Next.

  9. Click Browse and navigate to the temporary folder where you unzipped the tutorial sample code.

  10. Select the GetStore.jsp file.

  11. Click Finish.

In this step of the tutorial, you have added a new GetStore portlet JSP file that will use the TutorialStore service running as part of a WebSphere Commerce Server.

< Previous | Next >


+

Search Tips   |   Advanced Search