• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I use the same url for all pages?

 
Jamie Williams
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to show the same url for any page of my application - 'http://www.server.com/WebApp/' I'm sure I've seen this done before but I have now idea how to do it. Can anyone help? Thanks!
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a frameset with only one frame (100% height and 100% width). That should solve your problem.
 
Jamie Williams
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply!

Do I have to implement the frames in html or is there something you can do with JSF tags?

When I posted originally I was thinking of a solution I'd heard about using 'decorators' or view handlers or something... does anyone know if I'm on the wrong track there?
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jamie

You can try out using IFrame also. If you are going with this approach then you will face following problems

1) You will have a problem of bookmarking of specific page. You need to manage bookmarking somehow through the code.

2) When you will print the page displayed in Iframe, printer will print only visible porttion of IFrame

Try your luck!

THanks
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think, if you will use MVC pattern then URL will be the same for all the pages (except the parameters).

The URL will be:

http://localhost:8080/MainController

Where MainController is your servlet as well as controller.

:roll:
 
Jamie Williams
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks, I'll look into that!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic