Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

set cookie to jwebbrowser

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can any one please give me advice how to solve my problem
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i didnt get solve my problem.
can you please advice me

Thanks & Regards
Ramesh K
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic