File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
File root config problem
Joined: Sep 10, 2001
Oct 24, 2003 11:08:00
Let's say I got a server
Annd I have a page
that posts to a
In my servlet I have
where viewTemplate = "/thankyou.jsp"
Now thankyou.jsp is located here
Now if I user that forward it tries to look for:
I do nto want to hardcode the /forms/new inside of my viewTemplate, becasue the names of the paths might change, but the structure will still be the same.
How do I code it where it knows to forward to
and not to
Joined: Feb 20, 2001
Oct 24, 2003 23:01:00
check your other post
so, the answer is to use:
and remove the leading '/'
I agree. Here's the link:
subject: File root config problem
Apache Alias/Redirect Help
cookies and domains problem ?
Servlet Context Virtual Sandbox
What is the term? A redirect at the server level...
tomcat-apache context problem?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014