J2EE Project Re-direct Url in NWDS

Get new comments by email
You can cancel email alerts at anytime.
Comments (1)

Sandy in Munich, Germany

59 months ago

Hello All,

1. I imported a zip file into a NWDS J2EE project.
2. This J2EE Project has a form.html page.
3. In this form.html page there is a button called LOGON which when pressed will go to the Standard Portal Logon Page.
The code of this form.html page is as below :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>

<HEAD>

<TITLE> New Document </TITLE>

<META NAME="Generator" CONTENT="TSSAP HTML Generator">

<META NAME="Author" CONTENT="">

<META NAME="Keywords" CONTENT="">

<META NAME="Description" CONTENT="">

</HEAD>

<BODY BGCOLOR="#FFFFFF">

<H1>Hallo<H1>
<FORM name="logonForm" method="post" action=" /irj/servlet/prt/portal/prtroot/com.sap.portal.navigation.portallauncher.default">
<input name="login_submit" type="hidden" value="on">
<input type="hidden" name="login_do_redirect" value="1" />
<input name="j_authscheme" type="hidden" value="external">
<table border="0" align="left" valign="top">
<tr>
<td >
User Id
</td>
<td width="183" height="20">
<input name="j_user" type="text" value="">
</td>
</tr>
<tr>
<td width="161" height="20">
Password
</label>
</td>
<td width="183" height="20">
<input name="j_password" type="password">
</td>
</tr>
<tr>
<td colspan="2" height="20"> </td>
</tr>
<tr>
<td colspan="2">
<input value="Log on" type="submit">
</td>
</tr>
</table>
</form>
</BODY>

</HTML>

4. Now my task is to avoid this form.html page and write a code in one of the index.jsp page which when executed will directly call the
url "/irj/servlet/prt/portal/prtroot/com.sap.portal.navigation.portallauncher.default".

5. For this I wrote the following code in Index.jsp page :-

<%@ page language="java" %>
<html>
<head>
<title>
Title: Portal Logon
</title>
</head>
<body>
<input
name="login_submit"
type="hidden"
value="on"/>
<input
type="hidden"
name="login_do_redirect"
value="1"
/>
<input
name=

- Was this comment helpful? Yes (2) / No Reply - Report abuse

Your Reply

change location - create a profile
User Name
 in Beverly Hills, California
Your Comment
Your Email Address
Enter the numbers you see in the box
CAPTCHA Image

Be Reasonable! Be Polite! Please read our Terms of Service and Forum Rules, where it notes that you are responsible for your own comments. You may post anonymously - but we reserve the right to remove inappropriate comments at any time.

RSS Feed Icon Subscribe to this discussion as an RSS feed.