Re: Urgent: Changing URLs for existing struts project
Because i was already using mod_jk2 , the best to configure was to change it to add the Context in the server.xml with the desired URL. This is cool isnt itMailing List are great thanx to u all --Mohan > If you have developed your application in "struts friendly" way, this > should be as easy as changing > > > action > *.do > > > to > > > action > /javapps/*.do > > > > > or (for path mapping) > > > action > /myapp/* > > > > action > /javapps/myapp/* > > > > ...in the web.xml > > > I just tested this on the project I am currently working on and it works > fine. My login page now posts to "/javapps/harland/security" whereas it > used to be "/harland/security". I can also change it back and forth > from extension mapping to path mapping by simply modifying the > to any of the above values. > > Best I can tell you is to make the change (as noted above) and run your > test suite. You did build a test suite right? > > > > -- > James Mitchell > Software Engineer / Struts Evangelist > http://www.struts-atlanta.org > 678.910.8017 > 770.822.3359 > AIM:jmitchtx > > > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, September 25, 2003 11:30 AM > Subject: Urgent: Changing URLs for existing struts project > > >> Hi All >> I am currently running tomcat4.1.27 and apache1.3.x. I am using >> struts. I used call my webapplication "xyz" using www.abc.org/xyz. Now >> company has decided that pople should be able to access this >> webapplication through the URL >> >> www.abc/javapps/xyz. Do i need to change the whole architecture now or >> should i be able to do it easily. I have tried to create a directory >> under /var/tomcat4/webapps/ as japps/xyz and pointed my ".war" file to >> this directory. But tomcat is not able to map this URL at all. Please >> help me find a solution to this problem. >> >> >> Thanx in advance >> >> --Mohan >> >> >> >> >> - >> 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]
Re: Urgent: Changing URLs for existing struts project
[EMAIL PROTECTED] wrote: Hi All I am currently running tomcat4.1.27 and apache1.3.x. I am using struts. I used call my webapplication "xyz" using www.abc.org/xyz. Now company has decided that pople should be able to access this webapplication through the URL www.abc/javapps/xyz. Do i need to change the whole architecture now or should i be able to do it easily. I have tried to create a directory under /var/tomcat4/webapps/ as japps/xyz and pointed my ".war" file to this directory. But tomcat is not able to map this URL at all. Please help me find a solution to this problem. As Matt pointed out, this is really a Tomcat question, but it's actually pretty (assuming you don't want it accessible under the old name any longer). Just set up a element that includes path="/javapps/xyz" instead of path="/xyz". For more info, see the config documentation in Tomcat: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/index.html Thanx in advance --Mohan Craig - 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]
Re: Urgent: Changing URLs for existing struts project
If you have developed your application in "struts friendly" way, this should be as easy as changing action *.do to action /javapps/*.do or (for path mapping) action /myapp/* action /javapps/myapp/* ...in the web.xml I just tested this on the project I am currently working on and it works fine. My login page now posts to "/javapps/harland/security" whereas it used to be "/harland/security". I can also change it back and forth from extension mapping to path mapping by simply modifying the to any of the above values. Best I can tell you is to make the change (as noted above) and run your test suite. You did build a test suite right? -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 770.822.3359 AIM:jmitchtx - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 25, 2003 11:30 AM Subject: Urgent: Changing URLs for existing struts project > Hi All > I am currently running tomcat4.1.27 and apache1.3.x. I am using struts. I > used call my webapplication "xyz" using www.abc.org/xyz. Now company has > decided that pople should be able to access this webapplication through > the URL > > www.abc/javapps/xyz. Do i need to change the whole architecture now or > should i be able to do it easily. I have tried to create a directory under > /var/tomcat4/webapps/ as japps/xyz and pointed my ".war" file to this > directory. But tomcat is not able to map this URL at all. Please help me > find a solution to this problem. > > > Thanx in advance > > --Mohan > > > > > - > 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]
RE: Urgent: Changing URLs for existing struts project
Your best bet is to ask this question on the tomcat user list since it's really a tomcat issue. My suggestion would be to put apache in front of Tomcat and create a mapping for the jk to map javapps/* to tomcat. OT: javapps makes no sense, I'd use /javaapps or /java or /apps. And when are longer URLs better? ;-) Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: Urgent: Changing URLs for existing struts project Hi All I am currently running tomcat4.1.27 and apache1.3.x. I am using struts. I used call my webapplication "xyz" using www.abc.org/xyz. Now company has decided that pople should be able to access this webapplication through the URL www.abc/javapps/xyz. Do i need to change the whole architecture now or should i be able to do it easily. I have tried to create a directory under /var/tomcat4/webapps/ as japps/xyz and pointed my ".war" file to this directory. But tomcat is not able to map this URL at all. Please help me find a solution to this problem. Thanx in advance --Mohan - 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]