Hi Bruno,
I am NOT using apache in front of tomcat. Sorry. I
really like standalone tomcat. So I would like to
learn more about the first solution you described
here. However, I do not understand it at all. What
exacty do you mean, and where can I read/learn about
it?
Second question--in
Sorry, there is no way out of the box. But there are filters which can do
this for you. For example:
http://tuckey.org/urlrewrite/
-Tim
Justin Jaynes wrote:
Is it possible for me to host somedomain.com on my
tomcat, and as that is my prefered domain name format,
and want all users who go to
Hi justin
You can achieve url forwarding/rewriting using a simple servlet filter, or
better if you have apache in the front, use mod-rewrite, which is configurable
in your httpd.conf.
If you are using iis, there are few available isapi filter which you can use,
alternatively you can write your
Hi justin
You can achieve url forwarding/rewriting using a simple servlet filter, or
better if you have apache in the front, use mod-rewrite, which is configurable
in your httpd.conf.
If you are using iis, there are few available isapi filter which you can use,
alternatively you can write your
Please take me off your mailing list. I don't know what the hell you are
talking about. I got on this mailing list by error and it is way beyond my
comprehension.
WARREN TAYLOR
Sunbelt Business Advisors
Sunbelt Business Brokers of MS
www.sunbeltnetwork.com
-Original Message-
From:
Warren Taylor wrote:
Please take me off your mailing list. I don't know what the hell you are
talking about. I got on this mailing list by error and it is way beyond my
comprehension.
Can you read the bottom of the post to this mail list?
Simon MARTIN wrote:
Hi,
I've integrated Tomcat successfully into Apache using mod_jk, but
there's something I've found nothing about: forwarding *all* webapps
with only one static statement in the configuration files.
I've thought about something like this:
JkMount /tomcat/* ajp13:* (which of
Mladen Turk wrote:
Simon MARTIN wrote:
Hi,
I've integrated Tomcat successfully into Apache using mod_jk, but
there's something I've found nothing about: forwarding *all* webapps
with only one static statement in the configuration files.
I've thought about something like this:
JkMount /tomcat/*
Wade Chandler wrote:
You can use the mod_rewrite:
RewriteEngine On
RewriteRule ^/tomcat/(.+)$ /$1 [R,L]
JkMount /* ajp13
But this will map everything to the tomcat.
You can not do (for now):
/tomcat/examples/* - /examples/*
and then back to:
/examples/* - /tomcat/examples/*
This would require
Hi,
In short, how does one deploy a war file such that it looks
for content (/images/whatever.gif) in a configurable location
in the file system?
Configure the server to serve that WAR file with a context path of
(the empty string). This can be done in tomcat in three ways:
- Add a Context
Thanks once again. This is very helpful.
Now here's what I really want (it never ends, does it):
Is there a way, within a single context, to separate out
the static content to some other file system location.
I'd like to be able to deploy my war file with library jars,
configuration info,
Hi,
Is there a way, within a single context, to separate out
the static content to some other file system location.
Of course, there are many ways, none of them advised. You want to keep
your webapp as a whole, that's the whole point of a WAR file. You can
symlink (at the filesystem level) or
Yoav,
Let me describe a bit about our application, just in case you
(or anyone else) have some specific advice.
My client is a publisher, and the bulk of the site will be many
thousands of published articles and associated content such
as figure, tables, etc.
The HTML content, however, will be
Fred,
Thanks for the additional info about your app ... it makes it much
easier to talk about these things. :) There are many (valid) ways
to proceed, many of which vary in the amount of standards they
adhere to (how much you want to align yourself with Tomcat).
I'll just give you my thoughts.
Justin,
Thanks again for taking the time to think about this with me.
Alas, my customer's deployment platform is windows. So
no symlinks. No Apache (they use IIS). Complicated security
model for everything on the site except for decorative gifs.
So Tomcat does it all!
Thanks,
Fred
At 03:13 PM
At 01:04 PM 5/11/2004, you wrote:
Justin,
Thanks again for taking the time to think about this with me.
Alas, my customer's deployment platform is windows. So
no symlinks. No Apache (they use IIS). Complicated security
model for everything on the site except for decorative gifs.
So Tomcat does
At 07:04 PM 5/10/2004, you wrote:
Hi,
I'm trying to install a filter into the default context that
forwards to my application (in another context) and it
doesn't seem to want to work. (jboss 3.2.3 with embedded
tomcat 4.1.29)
In researching this, I've seen various hints that this may
in fact be
Justin,
Thanks very much for your considered reply. You both solved
my problem and made me question my approach at the same
time.
In re-thinking this in terms of separated webapps, I've hit another
issue. If I solve this problem within one particular web application,
I have to be able to point
Shapira
Millennium ChemInformatics
-Original Message-
From: Holger Klawitter [mailto:[EMAIL PROTECTED]
Sent: Friday, November 28, 2003 2:24 AM
To: Tomcat Users List
Subject: Re: Forwarding
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am Thursday 27 November 2003 16:49 schrieb Stuart Stephen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am Thursday 27 November 2003 16:49 schrieb Stuart Stephen:
Why not use apache mod_rewrite ?
You need to have apache (and jkwhatever) up and running for this ;-)
Mit freundlichem Gru / With kind regards
Holger Klawitter
- --
lists at
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am Thursday 27 November 2003 00:16 schrieb Kuba Krlikowski:
Dnia 2003-11-26 23:00, Uytkownik Jeff Tulley napisa:
I think Kuba wants to redirect all requests that end with
/something.jsp/ to /something.jsp
This should be possible with a custom
I'm a noob and all but..
Surely you could create a simple servlet to intercept all requests to
/something.jsp/ and simply forward it to /something.jsp?
G.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Why not use apache mod_rewrite ?
-Original Message-
From: Holger Klawitter [mailto:[EMAIL PROTECTED]
Sent: 27 November 2003 07:46
To: [EMAIL PROTECTED]
Subject: Re: Forwarding
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am Thursday 27 November 2003 00:16 schrieb Kuba Krlikowski
Can you re-phrase that?
I'm not sure what you want to do.
On Wednesday 26 November 2003 04:25 pm, Kuba Królikowski wrote:
Hi,
I want to make forwarding in my web application which forward every
/.jsp/ (url without '/' at the end) link to /.jsp (url without
'/' at the end). Do you
I think Kuba wants to redirect all requests that end with /something.jsp/ to
/something.jsp
Are you using Apache on the front end? I think this would be best done in Apache,
with mod_rewrite, and a RewriteRule.
(Do not forget to turn the RewriteEngine on, a common mistake).
[EMAIL
Dnia 2003-11-26 22:38, Uytkownik Ben Souther napisa:
Can you re-phrase that?
Well, I can, but what with URL such as /article.jsp?id=435/? They are
not static, I can't put them all to web.xml.
Kuba
-
To unsubscribe, e-mail:
Dnia 2003-11-26 23:00, Uytkownik Jeff Tulley napisa:
I think Kuba wants to redirect all requests that end with /something.jsp/ to /something.jsp
Exactly.
Are you using Apache on the front end? I think this would be best done in Apache,
with mod_rewrite, and a RewriteRule.
(Do not forget to
Have you set up the security-constraint in your web.xml for those pages?
security-constraint
web-resource-collection
web-resource-nameLogin 4 Everything/web-resource-name
!-- Define the context-relative URL(s) to be protected --
url-pattern/private/*/url-pattern
Howdy,
A filter can be easily written for this purpose:
- Check request URL
- If request is for secure page, forward to different port (the one you
configure in server.xml to be an SSL connector) on same server with same
request path.
- Otherwise, pass request on...
Yoav Shapira
Millennium
That's exactly what I needed to know.
Thanks, Mike.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
for
the browser to know about the previous 'request' unless you fake it out
with the querystring.
If you have objects, you'll have to use a session.
-Original Message-
From: James Michelich [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 5:12 PM
To: [EMAIL PROTECTED]
Subject: RE
James,
Use response.sendRedirect() instead of the RequestDispatcher. That will
change the URL in the browser. If you want to stick with the
RequestDispatcher, you'll have to add some logic to catch a resubmission of
the same data (possibly use a hidden field in your forms with a unique
Mike,
Your suggestion worked out perfectly! Thanks for the help.
One other quick question, if you don't mind - since sendRedirect()
doesn't send along the request object, is there another way to access
it from the target url while still using this method?
Thanks,
James
You cannot change protocol inside a reuqest. To change protocol you have to
send a redirect to the browser.
-Original Message-
From: Gil Hauer
To: Tomcat Users List
Sent: 24-07-03 13:44
Subject: Forwarding with parameters
Hello,
I have code in a servlet that, based on transaction
AM
To: 'Gil Hauer '; 'Tomcat Users List '
Subject: RE: Forwarding with parameters
You cannot change protocol inside a reuqest. To change protocol you have to
send a redirect to the browser.
-Original Message-
From: Gil Hauer
To: Tomcat Users List
Sent: 24-07-03 13:44
Subject: Forwarding
I forget all the reasons why at the moment, but I use sendRedirect() instead of
forward().
String target = page1.jsp?param1= + val1 +
param2= + val2 +
param3= + val3;
response.sendRedirect( target );
Hope this helps,
--
]
Sent: Thursday, July 24, 2003 6:23 AM
To: Tomcat Users List
Subject: RE: Forwarding with parameters
Howdy,
Yup, use sendRedirect.
Or add a filter with a servlet request wrapper mapped to index.jsp that
checks and adds parameters as needed.
Yoav Shapira
Millennium ChemInformatics
-Original
Perfect! Thanks for the help.
Gil
On Thu, 2003-07-24 at 10:54, Rick Roberts wrote:
I forget all the reasons why at the moment, but I use sendRedirect() instead of
forward().
String target = page1.jsp?param1= + val1 +
param2= + val2 +
param3= + val3;
On Wed, 28 May 2003 11:28:28 -0400, Eric fiedler [EMAIL PROTECTED]
wrote:
I have read numerous posts that say I basically have two options: mod_jk
or
mod_proxy. Seeing as machine 'b', the Tomcat machine, will host the
static
documents associated with its site...I think mod_proxy is the best
Drop the paridon.homedns.org, assuming login.html is the base htdocs
directory you ought to be fine. The second solution would be to add
http://; in front of the paridon.homedns.org.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Todd Paridon [mailto:[EMAIL
Please remember that in both forward and send re-direct, execution of the
current servlet will resume unless you put a return statement after the
forward or re-direct statement.
if (dispatcher!=null) {
dispatcher.forward(request, response) ;
return;
}
-Original
Duh, no. Anchor tags are only meaningful to the browser. They are stripped
from the request to the server (for e.g. a href=mypage.jsp#anchorName).
Using a RequestDispacher with an anchor will give a 404 error on all
versions of Tomcat. This is by design (since server-side it can't possibly
do
Billy,
Try this in your doGet / process method:
(I put my jsps under WEB-INF so they are not servable directly).
String url = FileUtil.makeJspUrl(/WEB_INF/jspDir/test.jsp);
response.setContentType(text/html);
ServletContext sc = getServletContext();
RequestDispatcher rd =
thanks i will try this
---Original Message---
From: Tomcat Users List
Date: 29 July 2002 14:46:04
To: Tomcat Users List
Subject: RE: forwarding to a jsp using a servlet
Billy,
Try this in your doGet / process method:
(I put my jsps under WEB-INF so they are not servable
= sc.getRequestDispatcher(url);
rd.include(request, response);
Andy
-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: 29 July 2002 15:11
To: Tomcat Users List
Subject: RE: forwarding to a jsp using a servlet
thanks i will try this
---Original Message
From: Andy Eastham [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 6:43 AM
Subject: RE: forwarding to a jsp using a servlet
Try this in your doGet / process method:
(I put my jsps under WEB-INF so they are not servable directly).
String url = FileUtil.makeJspUrl(/WEB_INF/jspDir/test.jsp
. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 12:45 PM
To: Tomcat Users List
Subject: RE: forwarding through j_security_check
On Tue, 16 Jul 2002, James Krygowski wrote:
Date: Tue, 16 Jul 2002 07:09:55 -0400
From: James Krygowski [EMAIL PROTECTED]
Reply
Jim,
You may also want to check out Tapestry:
http://www.saush.com/tapestry/
Good luck,
Mete
__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Hi Craig-
If so, is it possible to set up a servlet that
could manipulate the Referrer in the header, and redirect a request along
to
an application in another Tomcat server, making it look like a post to
j_security_check, complete with referrer, j_username and j_password?
Any suggestions
On Tue, 16 Jul 2002, James Krygowski wrote:
Date: Tue, 16 Jul 2002 07:09:55 -0400
From: James Krygowski [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: forwarding through j_security_check
Hi Craig-
If so
On Mon, 15 Jul 2002, James Krygowski wrote:
Date: Mon, 15 Jul 2002 08:55:59 -0400
From: James Krygowski [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: forwarding through j_security_check
Hi All-
I'm working on a web-app launcher. The
On Wed, 5 Jun 2002, Liu, Xiaoyan wrote:
Date: Wed, 5 Jun 2002 13:54:27 -0400
From: Liu, Xiaoyan [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: forwarding wrapped request:lost parameter???
Hi,
I have a question about
You could either use response.sendRedirect to the servlet or
jva.net.URLConnection to call the other servlet and then stream the output
from the servlet to your response.getOutputStream.
Randy
-Original Message-
From: Scott Shorter [mailto:[EMAIL PROTECTED]]
Sent:
will?
Thanks,
Scott
-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 9:31 AM
To: 'Tomcat Users List'
Subject: RE: Forwarding requests to other Services?
You could either use response.sendRedirect to the
servlet
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 10:20 AM
To: 'Tomcat Users List'
Subject: RE: Forwarding requests to other Services?
I was afraid you would say that. Bleah.
Of course the good news about that is I realized that the
other servlet
then tries to forward back
I guess you could use something like this :
html
script
function changeBrowser()
{
window.open(attribs) //open new window with/without desired
attributes.
//put focus onto new window
window.close() //close the window that originated the request.
}
/script
body
Popup windows are best left to JavaScript. I suppose one
could create JavaScript code via out.println within % tag ,
but too much work for nothing.
R/L
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 1:07 PM
Subject: Forwarding JSP and
The rest of the code should execute normally after the forward.
It is my understanding that calling forward simply tags the HttpRequest
object, telling the app server to forward it to the target servlet upon
completetion of the code.
In fact if, in the doGet() method of Servlet0, you forward
forward() will only send it to another servlet or jsp, I think.
However, sendRedirect() will work with external URLs. Just do
response.sendRedirect(http://www.misMuelas.com;);
Un saludo,
Alex.
Zsolt Koppany wrote:
Thank you for the idea, I know the jsp:forward command but I was not
able
by using jsp:forward Action
exple: jsp:forward page=dest.jsp /
Documentation source:
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-JSP.html#Section8.6
--- Zsolt Koppany [EMAIL PROTECTED] a écrit : Hi,
how can I forward to a page that the user does not see where he
Thank you for the idea, I know the jsp:forward command but I was not
able to forward to a complete different URL for example
http://www.sun.com:8080;. Do you know how to do that?
Zsolt
Barthélémy TEHAM wrote:
by using jsp:forward Action
exple: jsp:forward page=dest.jsp /
Documentation
PROTECTED]
Subject: Re: Forwarding
Thank you for the idea, I know the jsp:forward command but I was not
able to forward to a complete different URL for example
http://www.sun.com:8080;. Do you know how to do that?
Zsolt
Barthélémy TEHAM wrote:
by using jsp:forward Action
exple: jsp:forward page
[EMAIL PROTECTED] wrote:
Hi
I'm trying to forward from my controller servlet to a jsp or html page.
This is not very successful at all, and I think this is because the servlet
for some reason get's called a second time after the forward for some
reason.
An example:
The servlet is
I have this exact problem, hope someone else can help.
S
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
64 matches
Mail list logo