cancel
Showing results for 
Search instead for 
Did you mean: 

Parameters in NavigationTargets

Former Member
0 Kudos

Hello,

i am currently writing my own navigation connector, for the SAP Portal EP 7.

This Navigation Connector works fine, but i got a problem, when i 'm trying to use parameters.

My Url looks like this:

NavigationTarget=sapnav://inf/nachrichten/pressespiegel.jsp&DynamicParameter=huhu%3Dvalue"

The connector gets inf/nachrichten/pressespiegel.jsp into its getNode method.

The launchUrl I return with the corresponding INavigationNode is a Component in the PCD. When I am trying to read the parameter inside the doBeforeContentMethod:

Object huhu = req.getParameter("huhu");

there result is null.

Can anyone help me ?

best regards

Daniel Nowak

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

HI Daniel,

Dionisios right you should replace symbol '&' by '?'

so your url must look like :

NavigationTarget=sapnav://inf/nachrichten/pressespiegel.jsp?huhu%3Dvalue"

now

Object huhu = req.getParameter("huhu");

should return 'value'

Former Member
0 Kudos

I laso tried to url encode all the things behind the NavihationTarget, but i hasn't solved my problem.

Former Member
0 Kudos

Hi Daniel,

if your link looks like this:

/irj/portal?NavigationTarget=sapnav://inf/nachrichten/pressespiegel.jsp&DynamicParameter=huhu%3Dvalue"

Then if you attempt to retrieve a parameter using

req.getParameter("huhu");

you will get null. Have you tried:

req.getParameter("DynamicParameter");

What exactly are you trying to retrieve from your url?

regards,

Dion

Former Member
0 Kudos

req.getParameter("DynamicParameter") returns also null.

Mybe I should explain the scenario in a more detailed manner.

I have got a lot of JSP Apps and I want to bind them to a SAP Portal by writing my own navigation connector. So my Navigation Connnector gets a path, for example inf/nachrichten/pressespiegel.jsp, and returns a INavigationNode. The launchUrl of that INavigationNode is a Component in the PCD. That Component redirects to the JSP on a diffrent system. Thatfore a need to pass all parameters to the JSP.

best regards

Daniel Nowak

Former Member
0 Kudos

My Link looks like this:

/irj/portal?NavigationTarget=sapnav://inf/nachrichten/pressespiegel.jsp&DynamicParameter=huhu%3Dvalue"

You mean I need a further Question Mark ?

I thought the parameter DynamicParameter is responsible for passing the parameters to the iView/Component.

I also tried, to use a question mark, but it hasn't worked out.

Former Member
0 Kudos

Hi Daniel,

There should be a "?" after your .jsp and not a "&". After your first parameter all following parameters should be added with a "&".

sapnav://inf/nachrichten/pressespiegel.jsp?DynamicParameter=huhu%3Dvalue

In this case "DynamicParameter" is the name of your parameter and "huhu%3Dvalue" is the value. If you're trying to retrieve the parameter using "huhu" you will get null.

regards,

Dion