Trevor MacPhail wrote:
Craig R. McClanahan wrote:

[ big snip ]

Ok, then the question I have now is, how do I set up a welcome-file to be a servlet instead of a static file?
You can't.

I've tried <welcome-file>HomePage</welcome-file> but that didnt work.

I've also tried <welcome-file>index.html</welcome-file> combined with:
<servlet-mapping>
<servlet-name>HomePage</servlet-name>
<url-pattern>/index.html</url-pattern>
</servlet-mapping>

but that didnt work either.
Try this:

<welcome-file>redirect.jsp</welcome-file>

and

redirect.jsp contains a single line:

<jsp:forward page="myservlet" />

Cheers,
	-- jon

--
Jon Eaves <[EMAIL PROTECTED]>
http://www.eaves.org/jon/


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to