Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the Query String from a URL having a different format

 
Uday Bhagwat
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I have the following URL :

http://localhost:8080/knowledgecenter/DocViewWindow.html#!docviewwidget;documentId=10011;feedbackId=5;feedbackTabInFocus=true

When in my ServletFilter I try do a :



It gives me a null.
What I would want is #!docviewwidget;documentId=10011;feedbackId=5;feedbackTabInFocus=true.
This basically is for a GWT page.
Please let me know as to what I can do..Thanks in advance
 
Karn Kumar
Ranch Hand
Posts: 153
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you try to get below Url

http://localhost:8080/knowledgecenter/DocViewWindow.html?#!docviewwidget;documentId=10011;feedbackId=5;feedbackTabInFocus=true

Not confirm but please try to pass parameters after ? and after that any additional parameter can be passed by separating with & .

http://localhost:8080/knowledgecenter/DocViewWindow.html?Param1=Value1&Param2=Value2&Param3=Value3

This might help you to get query string after ? i.e. Param1=Value1&Param2=Value2&Param3=Value3
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no query string on your URL, so of course getQueryString() returns nothing.

You'll need to parse the path info yourself.
 
Uday Bhagwat
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh ok...
Any idea how I can do that? Since I get theurl from the request object.
And a request.getRequestURL gives me only -> knowledgecentral/DocViewWindow.html

Please let me know on this regard,
Thanks in advance
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic