Calling a Controller
You can call a controller from a page with flow logic, or from a view.
Ensure that you select Page with Flow Logic as the page type.
The source now looks as follows:
<%@ extension name="bsp" prefix="bsp" %>
The page looks as follows:
Ensure that the page you have tested looks exactly the same as when you tested the controller. The URL is different, however. You can use View Source in the browser to see that nothing remains of the HTML text from the BSP, but that only the content of the view is displayed:
<link rel="stylesheet" href="../../sap/public/bc/bsp/styles/sapbsp.css">
<title> Layout for Controller </title>
<H3>Hello, User GREBEL</H3>
If you use the<bsp:call> element instead of the <bsp:goto> element, the calling page text remains the same. In the view that is inserted, you should therefore delete the HTML text available on the outline page, otherwise these texts will be transferred twice.
It is set using the