accessing to the values of xapp-tag in the java code of a js

X-Application Version: 4.1.1
Tamino Version : 4.1.1
Platform : WinXP
WebContainer : Tamocat 4.1.1
JDK Version : 1.4.1

Hello,

i have of xapp:browse tag in my JSP and i’d like to test the value of the variable $POS.

First i try to do this :

<%
String pos = request.getParameter(“:pos”);
if(!pos.equals(“”))
{
String tab = pos.split(“,”);
if(Integer.toString(tab.length).equals(“2”)) {pos = tab[1];}
else {pos=“0”;}
}
else {pos=“0”;}
int position = Integer.parseInt(pos);
%>

But it isn’t a good solution. It’s to uncertain.
The better would be to have something like that :

<%int position = $POS %>
But that syntaxe is uncorrect.
I have read the thread who deal with that problem, but i have found nothing usefull enougth.

Thanks for your answer.