Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Setting a welcome-file
Setting a welcome-file [message #102196] Fri, 30 November 2007 14:43 Go to next message
Eclipse UserFriend
Originally posted by: luca.giannetto.gmail.com

Hi all,

I'm using eclipse equinox 3.3, so for my web application i use the jetty
implementation included in equinox.
If i want to go to my homepage i've to go to index.jsp
(http://localhost:8080/index.jsp), but it would be better to have an
automatic redirect to index.jsp when i type http://localhost:8080/ in my
browser.

So i want to set index.jsp as the welcome-file. But OSGi do not read this
from a web.xml file. I think i should create some kind of servlet to map /
to index.jsp. But i cannot make it works.

Please can someone help me ??

Thanx
Re: Setting a welcome-file [message #102314 is a reply to message #102196] Sun, 02 December 2007 19:12 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Welcome file support is work in progress.
There's a bit more info here --
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193202

If you want to do something yourself you might build on the ReosurceServlet
from org.eclipse.equinox.http.helpers and add code to try forwarding the
request using RequestDispatching.

-Simon


"Luke G" <luca.giannetto@gmail.com> wrote in message
news:850fadc20f54bcfcb1c874d5deecac80$1@www.eclipse.org...
> Hi all,
>
> I'm using eclipse equinox 3.3, so for my web application i use the jetty
> implementation included in equinox.
> If i want to go to my homepage i've to go to index.jsp
> (http://localhost:8080/index.jsp), but it would be better to have an
> automatic redirect to index.jsp when i type http://localhost:8080/ in my
> browser.
>
> So i want to set index.jsp as the welcome-file. But OSGi do not read this
> from a web.xml file. I think i should create some kind of servlet to map /
> to index.jsp. But i cannot make it works.
>
> Please can someone help me ??
>
> Thanx
>
Re: Setting a welcome-file [message #102415 is a reply to message #102314] Mon, 03 December 2007 15:29 Go to previous message
Eclipse UserFriend
Originally posted by: luca.giannetto.gmail.com

thanx for your reply.
but please can you be more specific on how to tweak httphelper for that
thing??
Previous Topic:Command line history
Next Topic:Help with a Design Pattern: Service interfaces separation from implementation
Goto Forum:
  


Current Time: Sat Apr 27 02:05:35 GMT 2024

Powered by FUDForum. Page generated in 0.02409 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top