Hi Igor,
I meant something different. What happens, when the user enters the URL
http://localhost/foo/ in its browser? I guess, this address is sent to
the web server. If it is a passive one, it might redirect the browser to
http://localhost/foo/index.html (note, the directory is the same). But
the wicket-servlet tells the browser to try it again at
http://localhost/foo?page=0 (which is a different directory). Is this
correct so far?
Just curious, why does the wicket-servlet processes this request, when
the servlet-mapping is set to the URL-pattern "/foo/*"?
Tom
PS: Please excuse my trivial wordings, these are my first deeper steps
in webapp development.
Igor Vaynberg wrote:
you should put index.html in your context root and have a metaredirect
to /foo inside
something like this:
<html>
<head>
<meta http-equiv="Refresh" content="0; url=foo">
</head>
</html>
-Igor
On 2/13/06, *Tom S.* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
OK, I now can read my html files from a different location. But I
still have
a serious problem with resources ( e.g. graphics). The servlet
mapping in the
web.xml looks like this:
<servlet-mapping>
<servlet-name>MyWebApplication</servlet-name>
<url-pattern>/foo/*</url-pattern>
</servlet-mapping>
When I open the URL http://localhost:8080/foo/graphics/logo.png, the
graphic
is shown. In the Index.html (my home page), it is references as
"graphics/logo.png". Unfortunately it cannot be found when
displaying the
home page with the URL http://localhost:8080/foo/, most likely
because it
redirects the request to http://localhost:8080/foo?path=0, which is a
directory change.
Is there a possibility to redirect to
http://localhost:8080/foo/index.html
<http://localhost:8080/foo/index.html>
or something similar, so the relative paths work as expected?
--
Thanks in advance,
Tom
PS: I'm not experienced with web applications, so please excuse
these dumb
questions.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642>
_______________________________________________
Wicket-user mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/wicket-user
<https://lists.sourceforge.net/lists/listinfo/wicket-user>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user