• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

set cookie to jwebbrowser

 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using chrriis.dj.nativeswing.ui.JWebBrowser

for displaying web page in to jframe i am using webbrowser.setURL(url)

but i have to set cookie to that url how can i do it

my url like "http://live.instacoll.com/instasecure/getDocPreferences.do?"

cookie like this JSESSIONID=1468F79FF6507C3A5EF5C3CD7BC23960.server1

can anyone please help me

Thanks & Regards
Ramesh K
 
Steven Wall
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to take the URL then add a semicolon and then add the session id.

For example:

String url = "http://www.abc.com;JSESSIONID=123456789"
 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using DJ Native swing web browser. this web browser does not contains setcookie method. so i concatenated cookie to URL as like

http://abc.com/xyz.do?;JSESSIONID=12345

but webbrowser not setting JSESSIONID as a cookie. i am getting session timeout.

I have to set cookie ( jsessionid) and url to webbrowser. and then display that webbrowser in JFrame.

can any one please suggestion me which webbrowser will does.

Thanks & Regards
Ramesh k
[ July 03, 2008: Message edited by: ramesh kancherla ]
 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one please give me advice how to solve my problem
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You already got the answer in this post elsewhere, didn't you?

Please note that we like for people to BeForthrightWhenCrossPostingToOtherSites.
 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i didnt get solve my problem.
can you please advice me

Thanks & Regards
Ramesh K
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer was that the problem can't be solved because JWebBrowser doesn't have access to the browser's cookies.

Maybe the answer is to use some other browser component that does support cookies; you could try Lobo (on SourceForge), or IceBrowser.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic