Tutorials > Portal > Portal > Call the TutorialStore service in a portlet
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.
- Expand the MVCPortlet project to MVCPortlet\WebContent\jsp\html\.
- Right-click the html folder and select New > Other.
- Select General > Folder.
- Name the folder tutorialstore.
- Click Finish.
- Right-click the newly created tutorialstore folder.
- Select Import > General > File System.
- Click Next.
- Click Browse and navigate to the temporary folder where you unzipped the tutorial sample code.
- Select the GetStore.jsp file.
- 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.