I got the following err:
HTTP Status 503 - Servlet jsp is currently unavailable

I use velocity, not jsp for my app, don't know why index.jsp not working
here, i did put index.jsp as the welcome page in web.xml thought
I must missed somthing, maybe tomcat config?

thanks

richard

On Wed, 2004-03-31 at 13:30, Jürgen Hoffmann wrote:
> Hi Richard,
> 
> as I said we use Tomcat standalone or behind an apache. You can do it
> cleanly with an index.jsp in which you redirect to your application.
> 
> Kind regards
> 
> Jürgen Hoffmann
> 
> -----Ursprüngliche Nachricht-----
> Von: Richard Han [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 31. März 2004 21:54
> An: Turbine Users List
> Betreff: RE: define Index.vm as a welcome file
> 
> Thank you guys for your help!
> 
> template.homepage won't do the trick here, because it only gives you the
> default template if turbine's module resolver can't find a template
> AFTER index.vm has been visited (I have previously set it to index.vm
> anyway)
> 
> I am using tomcat as standalone, so apache won't help me here (I use
> iptables to map port 80 to 8080, so users can just use my domain to
> invoke my app)
> 
> I just tried out a way to make it work
> - index.html is still as the welcome page on web.xml
> - make a servlet, all it does is:
>       response.setRedirect(myAppContext/index.vm)
>   
> - in web.xml
>     <servlet-mapping>
>       <servlet-name>redirect</servlet-name>
>         <url-pattern>/index.html</url-pattern>
>     </servlet-mapping>
>   The redirect is the new servlet name, this will redirect the static
> index.html to the turbine's dynamic index.vm, and user won't be able to
> see the index.html anymore.
> 
> comments are welcome!
> 
> richard
> 
> 
> 
> On Wed, 2004-03-31 at 11:27, David Demner wrote:
> > Hi Richard,
> > 
> > In your TurbineResources.properties, check the values for
> template.homepage
> > and screen.homepage - make sure these point to Index.vm and Login.vm
> > respectively.
> > 
> > Alternately, I guess you could use mod_rewrite to do a server side
> redirect
> > from index.html to index.vm, but changing the .properties file is probably
> > better.
> > 
> > Good luck,
> > 
> > David
> > 
> > -----Original Message-----
> > From: Richard Han [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, March 31, 2004 9:54 AM
> > To: [EMAIL PROTECTED]
> > Subject: define Index.vm as a welcome file
> > 
> > 
> > Hi all,
> > 
> > Currently I have index.html as a static html page, which just do
> > onload redirect to the full Turbine index.vm. But this looks awkward
> > because user first see index.html briefly and then the brower redirect
> > to Index.vm. I wonder is there a better way to configure turbine or
> > tomcat to invoke Index.vm directly. 
> > 
> > Thanks!
> > 
> > richard
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to