File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query string in view id got ignored

 
Hugo Lam
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am currently using JSF 1.2 (MyFaces Impl). I have been trying to specify a query string after the view id as follows:



And the main.jsp just dynamically and simply includes a page called "about.jsp". However, I find that MyFaces keeps ignoring everything after ".jsp" so I can never get the query parameter from the main.jsp page. I find that even I specify "/main.ok?page=about", it will still redirect to the main.jsp without any trailing parameters. It seems that it truncates everything after the last index of the dot. I have also tried to create a custom view handler and printed out the view id, the query string always got truncated.

The MyFaces wiki has an example which has a query string after the page url, and it is even a dynamic binding. So I thought it might support query string in the view id: http://wiki.apache.org/myfaces/Custom_Navigation_Handler. However, I tried to specify for example



And MyFaces redirects to a page like /main.jsp?page=#{mybean.jsp

Does anyone know what's wrong with my code? or is it a bug or spec thing? Any help and suggestion will be highly appreciated! I have been stuck in this thing for quite a while.

Thanks a lot!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Hugo Lam
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I am new. Just changed the display name and will be reflected on the next post. Thanks for the note.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic