cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a Login-page with jsp???

Former Member
0 Kudos

Hello,

I have to create a page with JSP code on the Netweaver Developer Studio.

But I do not know how I do it.

Can anyone tell me what to write in the portalapp.xml?

An example would be very helpful.

Thank you

Greetings

Accepted Solutions (0)

Answers (2)

Answers (2)

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

fyi, I have moved your thread to the java programming forum.

Former Member
0 Kudos
Former Member
0 Kudos

this is my jsp, it called login.jsp

what should I write in the portalapp.xml???

<html>

<body bgcolor="ghostwhite">

<!-- Text -->

<br><br>

Geben Sie Ihre Benutzernummer und Passwort ein!

<br><br><br>

<table id="login" border="0" width="100%" cellpadding="2" cellspacing="0" >

<!-- Eingabefelder in Tabellenform -->

<colgroup width="110" span="1"></colgroup>

<tr bgcolor="lightsteelblue">

<td>

Anmeldung

</td>

<td width="100">

</td>

</tr>

<tr>

<td bgcolor="lavender">

Benutzernummer:

</td>

<td bgcolor="lavender">

<input type="text" name="userName" >

</td>

<td width="440">

</td>

</tr>

<tr>

<td bgcolor="lavender">

Passwort:

<td>

<td bgcolor="lavender"> <input type="password" name="password" >

</td>

<td width="440">

</td>

</tr>

</table>

<br>

<!-- Button -->

<input type="button" value=" Login ">

</body>

</html>

Former Member
0 Kudos

As you can see in the example:

The portalapp.xml file (deployment descriptor) provides configuration information for your application, and defines the components and services in your application. For each component and service, you specify the implementing Java class and configuration information.

For more information on the format of the portalapp.xml, see Deployment Descriptor (portalapp.xml).

<application>
    <application-config>
        <property name="SharingReference" value="com.sap.portal.navigation.service, com.sap.portal.navigation.api_mimeservice, com.sap.portal.navigation.helperservice"/>
        <property name="Vendor" value="MY_COMPANY"/>
        <property name="SecurityArea" value="PERMISSION"/>
    </application-config>
    <components>
        <component name="SimpleNavigationExample">
            <component-config>
                <property name="ClassName" value="MY_CLASS"/>
                <property name="SecurityZone" value="no_safety"/>
            </component-config>
            <component-profile/>
        </component>
    </components>
    <services/>
</application>

You can only update in this example, your class name and other details:

<property name="Vendor" value="sap.com"/>

<property name="SecurityArea" value="MyCompany"/>

<property name="ClassName" value="LOGINCLASS"/>

<property name="SecurityZone" value="no_safety"/>

Modify this portalapp.xml file as follows:

1. NAVIGATION SERVICE, so you must add references to the following portal applications that define these services:

com.sap.portal.navigation.service

com.sap.portal.navigation.api_mimeservice

com.sap.portal.navigation.helperservice

2. In the <application-config> section, create the following properties that help to define the security zone for all components and services in this application:

Vendor: String identifying the company or organization that provided the application, for example, sap.com.

SecurityArea: String identifying the security area for the application, for example, NetWeaver.portal.

3. In the <component-config> section for the mySiteMap component, create the property SecurityZone to define the specific security zone for the component.

For Permission, check this document:

http://help.sap.com/saphelp_nw04s/helpdata/en/44/489e2df5ee4e35e10000000a1553f6/frameset.htm