File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to Get full url with # symbol in servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to Get full url with # symbol in servlet?" Watch "how to Get full url with # symbol in servlet?" New topic
Author

how to Get full url with # symbol in servlet?

Murtaza Lokhandwala
Ranch Hand

Joined: Jan 28, 2010
Posts: 35
i created a facebook application which calls a servlet. Servlet is called successfully with url=http://.../servlet/TestFbApp.LoginServlet?fb_login&#fname=_opener&guid=0.37535739550367&installed=1&session=%7B%22session_key%22%3A%222.AQBxL1ylG4iDe5Ud.3600.1309269600.1-1441611499%22%2C%22uid%22%3A1441611499%2C%22expires%22%3A1309269600%2C%22secret%22%3A%22dpKTa7uWMemwcikhI6IyFQ__%22%2C%22base_domain%22%3A%22shero.khayal.net%22%2C%22sig%22%3A%223cd456c02f79ddfbf0242812ad51ebc4%22%7D.

i try to get session key from this url but it gives me null value.

please help me to get that session key..

Thanks in advance
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

How you are setting session..please tell/

SCJP6.0,My blog Ranchers from Delhi
Murtaza Lokhandwala
Ranch Hand

Joined: Jan 28, 2010
Posts: 35
by using fb social plugins!
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1071
    
    1

I have not worked/used facebook social plugins.
But if you can post your code here, I can give it a try to solve your problem

~ abhay


Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
Murtaza Lokhandwala
Ranch Hand

Joined: Jan 28, 2010
Posts: 35
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&xfbml=1"></script><fb:login-button show-faces="true" width="200" max-rows="1"></fb:login-button>

i also mention my APP_ID in above code
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

check this out..
 
 
subject: how to Get full url with # symbol in servlet?
 
Similar Threads
Unsupported response content type "text/html", must be: "text/xml".
Ajax works fine in HTTP but not in HTTPS in FireFox
book review
Google result is not quite useful
http://xml.apache.org/axis/ HttpErrorCode:401