File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes URL rewriting and static files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "URL rewriting and static files" Watch "URL rewriting and static files" New topic

URL rewriting and static files

moneer mohammed
Ranch Hand

Joined: Feb 18, 2005
Posts: 66
when i have to use URL rewritng then what about static page(html)
may you will say i have to make it dynmicly
but is there anthor way

[BSouther: changed the subject to something meaningful]
[ March 22, 2006: Message edited by: Ben Souther ]

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The static files themselves won't need access to the session object.
If these static pages contain links to dynamic resources that do, then you will probably need to convert them to JSPs to insure that the sessionID is sent along with the request.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Also Moneer,

Please read this.
I've changed the subject of this thread for you.
I agree. Here's the link:
subject: URL rewriting and static files
jQuery in Action, 3rd edition