Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

specifying relative path of html page from servlet..

Status
Not open for further replies.

henpat123

Programmer
Apr 14, 2005
35
0
0
US
Hi,
I have a servlet that needs to redirect the request to a login page in the html directory.
My directory structure is lime this:

build\html
build\WEB-INF\classes

my servlets are in the classes directory under web-inf and the login page is in the html directory.

I created a .ear file from the build directory and deployed it in web-logic server.

How do I specify the relative path of the login page in the html directory from the servlet using response.sendRedirect().

henry
 
response.sendRedirect("/index.html")

would send you to a page called "index.html" in the root of your webapp.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top