How to put ";jsessionid" in an absolute URL

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
robich
Beginner
Beginner
Posts: 1
Joined: Mon Oct 23, 2006 10:34 am

How to put ";jsessionid" in an absolute URL

Post by robich »

Hi all.

Browsing the forum, I've found that the way to escape the ";" character in an URL is wrapping the URL itself with single quotes.. that is writing, for example

Code: Select all

with(milonic=new menuname("1")){
  aI("text=Go To My Page;[color=red]url=[b]'[/b]http://www.mysite.com/MyApp/myservlet;jsessionid=1E6FEC0D14D044541DD84D2D013D29ED?_option=XX[b]'[/b];[/color]");
...
}
in place of

Code: Select all

with(milonic=new menuname("1")){
  aI("text=Go To My Page;[color=red]url=http://www.mysite.com/MyApp/myservlet;jsessionid=1E6FEC0D14D044541DD84D2D013D29ED?_option=XX[/color];");
...
}
Unfortunately, when I do this my URL is parsed as it represented a relative path instead of an absolute path, and the result is that clicking on the Menu Item the browser tries to send me to:

http://www.mysite.com/http://www.mysite ... _option=XX

instead of http://www.mysite.com/MyApp/myservlet;j ... _option=XX
!!

Has anyone been involved in the same or does anybody know how to get what I'm trying to do?

Thanks in advance for any help!!
maxico
Beginner
Beginner
Posts: 1
Joined: Wed Nov 11, 2009 6:16 pm

Re: How to put ";jsessionid" in an absolute URL

Post by maxico »

Try this way

with(milonic=new menuname("1")){
aI("text=Go To My Page;url='/MyApp/myservlet;jsessionid=1E6FEC0D14D044541DD84D2D013D29ED?_option=XX';");
...
}
Post Reply