Question for Bruno Re: Forwarding Domains

2005-08-03 Thread Justin Jaynes
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 the

Re: Forwarding Domains

2005-08-01 Thread Bruno Georges
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 o

Re: Forwarding Domains

2005-08-01 Thread Bruno Georges
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 o

Re: Forwarding Domains

2005-08-01 Thread Tim Funk
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 ww

Re: forwarding (and adding to) a request to another server

2005-07-21 Thread Robert Koberg
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? --

RE: forwarding (and adding to) a request to another server

2005-07-21 Thread Warren Taylor
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: Rober

Re: Forwarding *all* webapps with mod_jk

2004-12-29 Thread Mladen Turk
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

Re: Forwarding *all* webapps with mod_jk

2004-12-29 Thread Wade Chandler
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/* a

Re: Forwarding *all* webapps with mod_jk

2004-12-29 Thread Mladen Turk
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 c

RE: forwarding across contexts?

2004-05-11 Thread Justin Ruthenbeck
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 it

RE: forwarding across contexts?

2004-05-11 Thread Fred Toth
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

RE: forwarding across contexts?

2004-05-11 Thread Justin Ruthenbeck
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.

RE: forwarding across contexts?

2004-05-11 Thread Fred Toth
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 ser

RE: forwarding across contexts?

2004-05-11 Thread Shapira, Yoav
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) o

RE: forwarding across contexts?

2004-05-11 Thread Fred Toth
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, classes

RE: forwarding across contexts?

2004-05-11 Thread Shapira, Yoav
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 Cont

Re: forwarding across contexts?

2004-05-10 Thread Fred Toth
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 thi

Re: forwarding across contexts?

2004-05-10 Thread Justin Ruthenbeck
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 il

RE: Forwarding

2003-12-01 Thread Shapira, Yoav
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 Nove

Re: Forwarding

2003-11-28 Thread Holger Klawitter
-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 jk) up and running for this ;-) Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists klawitter de --

RE: Forwarding

2003-11-27 Thread Stuart Stephen
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 Królikowski

Re: Forwarding

2003-11-27 Thread Graham Reeds
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, e-m

Re: Forwarding

2003-11-27 Thread Holger Klawitter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 27 November 2003 00:16 schrieb Kuba Królikowski: > Dnia 2003-11-26 23:00, Użytkownik Jeff Tulley napisał: > > I think Kuba wants to redirect all requests that end with > > "/something.jsp/" to "/something.jsp" This should be possible with

Re: Forwarding

2003-11-26 Thread Kuba Królikowski
Dnia 2003-11-26 23:00, Użytkownik 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

Re: Forwarding

2003-11-26 Thread Kuba Królikowski
Dnia 2003-11-26 22:38, Użytkownik 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:

Re: Forwarding

2003-11-26 Thread Jeff Tulley
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 PRO

Re: Forwarding

2003-11-26 Thread Ben Souther
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 yo

RE: Forwarding with Tomcat Standalone

2003-09-23 Thread Shapira, Yoav
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 ChemI

Re: Forwarding with Tomcat Standalone

2003-09-23 Thread Adam Hardy
Have you set up the security-constraint in your web.xml for those pages? Login 4 Everything /private/* user admin SSL not required CONFIDENTIAL You will also probably need to set up a filter to redirect non-secur

RE: Forwarding control

2003-08-14 Thread James Michelich
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

RE: Forwarding control

2003-08-14 Thread Mike Cherichetti \(Renegade Internet\)
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 identifie

RE: Forwarding control

2003-08-14 Thread Mike Curwen
no way 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

Re: Forwarding control

2003-08-14 Thread James Michelich
That's exactly what I needed to know. Thanks, Mike. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Forwarding with parameters

2003-07-24 Thread Gil Hauer
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 + > "¶m2=" + val2 + > "¶m3=" + val3;

RE: Forwarding with parameters

2003-07-24 Thread Berry, Layton
EMAIL PROTECTED] 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

Re: Forwarding with parameters

2003-07-24 Thread Rick Roberts
I forget all the reasons why at the moment, but I use sendRedirect() instead of forward(). String target = "page1.jsp?param1=" + val1 + "¶m2=" + val2 + "¶m3=" + val3; response.sendRedirect( target ); Hope this helps, -- ***

RE: Forwarding with parameters

2003-07-24 Thread Shapira, Yoav
4, 2003 8:34 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

RE: Forwarding with parameters

2003-07-24 Thread René Vangsgaard ML
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 status,

Re: Forwarding an Apache request to a seperate machine running Tomcat ....newbie here1

2003-05-29 Thread John Turner
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

RE: forwarding from Tomcat to Apache

2003-03-04 Thread Mike Jackson
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:[E

RE: Forwarding in servlets.

2002-10-08 Thread Sexton, George
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 Messa

Re: forwarding to a page anchor

2002-09-25 Thread Bill Barker
Duh, no. Anchor tags are only meaningful to the browser. They are stripped from the request to the server (for e.g. has the proper JavaScript code to scroll to the "anchorName" tag. "Cindy Ballreich" <[EMAIL PROTECTED]> wrote in message 3.0.5.32.20020925164616.00c58390@urchin">news:3.0.5.3

Re: forwarding to a jsp using a servlet

2002-07-29 Thread Will Hartung
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

RE: forwarding to a jsp using a servlet

2002-07-29 Thread Andy Eastham
RequestDispatcher rd = 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 ser

RE: forwarding to a jsp using a servlet

2002-07-29 Thread Billy V. Kantartzis
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

RE: forwarding to a jsp using a servlet

2002-07-29 Thread Andy Eastham
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 = sc.getRe

RE: forwarding through j_security_check

2002-07-18 Thread Mete Kural
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: For addit

RE: forwarding through j_security_check

2002-07-18 Thread James Krygowski
ted. thanks, Jim > -Original Message- > From: Craig R. 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: &g

RE: forwarding through j_security_check

2002-07-16 Thread Craig R. McClanahan
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 thro

RE: forwarding through j_security_check

2002-07-16 Thread James Krygowski
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 s

Re: forwarding through j_security_check

2002-07-15 Thread Craig R. McClanahan
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 launc

Re: forwarding wrapped request:lost parameter???

2002-06-05 Thread Craig R. McClanahan
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

RE: Forwarding requests to other Services?

2002-02-21 Thread Randy Layman
From: Scott Shorter [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 i

RE: Forwarding requests to other Services?

2002-02-21 Thread Scott Shorter
rward 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

RE: Forwarding requests to other Services?

2002-02-21 Thread Randy Layman
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:

RE: Forwarding JSP and Browser Options

2001-06-15 Thread Reynir Hübner
I guess you could use something like this : 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. } this is the normal way of dealing with new windo

Re: Forwarding JSP and Browser Options

2001-06-14 Thread Luba Powell
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 a

Re: Forwarding in Tomcat

2001-05-08 Thread eric chacon
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 t

Re: Forwarding

2001-05-03 Thread Alex Fernández
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 > a

RE: Forwarding

2001-04-28 Thread CPC Livelink Admin
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

Re: Forwarding

2001-04-28 Thread Zsolt Koppany
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: > > Documentation source: > >http://w

Re: Forwarding

2001-04-28 Thread Barthélémy TEHAM
by using jsp:forward Action exple: 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 was > forwarded to? The

Re: Forwarding to a JSP gives a callback

2001-02-21 Thread paul marshal
[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 servl

Re: Forwarding Servlet/JSP Request to Tomcat from Apache

2001-02-16 Thread nickm
I have this exact problem, hope someone else can help. S - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]