Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #4487
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Lew <noone@lewscanon.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Dealing with application names in a JEE web app |
| Date | Mon, 23 May 2011 15:30:53 -0400 |
| Organization | albasani.net |
| Lines | 28 |
| Message-ID | <ireckt$6bv$1@news.albasani.net> (permalink) |
| References | <irebhd$16t$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net dBX5kc4lblOZRjG4PPwmtiqUi4WJboj+lk8XpiqvTPDIrgucoMSDKL+i3AhqkszfW28aTVcPs+Jb8nQb0kULRlR43og6rtYePGA93H/5ED3DK+vvvrPMW+bk4PGeIUPx |
| NNTP-Posting-Date | Mon, 23 May 2011 19:30:37 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="siY3Z+XJU72vNjMPowYNXq5S79MuzJTbVlpjRwwRmvBogiyNG9kEkTYZva0UK+6JPhlVjXcz2uqBFx1J/UKJmg7yKH6Kcrz8FCm0etnjrSUmbe6A9a8Z4fdb9I+lW44v"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 |
| In-Reply-To | <irebhd$16t$1@dont-email.me> |
| Cancel-Lock | sha1:9AQBeeKJcnG4+7gM6Y/dhR5M6qA= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4487 |
Show key headers only | View raw
On 05/23/2011 03:11 PM, markspace wrote: > Hi all, > > I'm delving more heavily into JSP/Servlets and JSF at the moment. I've found > something that looks like a questionable design issue by the JEE folks at Sun > (now Oracle, of course) and I'd like to pick your brains about how you might > deal with it. > > Basically, when developing a JEE web app, the application name gets inserted > into every URL and associated path. If my app is named TechDarwinia, for > example, then all URLS look like this: > > http://localhost:8080/TechDarwinia/ > http://localhost:8080/TechDarwinia/faces/readPost.xhtml > http://localhost:8080/TechDarwinia/rsrc/css/style.css > > The problem is of course that the web app could be renamed anything by the > deployer/sysop, and I've got strings hard coded to that app name TechDarwinia. > > So how do folks write their apps so that they can handle being deployed under > different names? Relative URLS. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Dealing with application names in a JEE web app markspace <-@.> - 2011-05-23 12:11 -0700
Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-23 15:30 -0400
Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-23 12:41 -0700
Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-23 13:10 -0700
Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-23 17:02 -0400
Re: Dealing with application names in a JEE web app jebblue <n@n.nnn> - 2011-05-23 19:30 -0500
Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-23 21:13 -0400
Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-24 09:32 -0700
Re: Dealing with application names in a JEE web app Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-05-23 19:01 -0300
Re: Dealing with application names in a JEE web app Owen Jacobson <angrybaldguy@gmail.com> - 2011-05-23 23:20 -0400
Re: Dealing with application names in a JEE web app Tom Anderson <twic@urchin.earth.li> - 2011-05-24 18:16 +0100
Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-25 12:16 -0700
Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-25 16:40 -0700
Re: Dealing with application names in a JEE web app Tom Anderson <twic@urchin.earth.li> - 2011-05-26 18:07 +0100
Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-26 13:25 -0400
Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-26 12:57 -0700
Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-26 19:39 -0400
Re: Dealing with application names in a JEE web app Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-05-27 07:31 -0300
Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-27 10:14 -0400
Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-26 12:51 -0700
Re: Dealing with application names in a JEE web app Steve Sobol <sjsobol@JustThe.net> - 2011-05-26 14:51 -0700
csiph-web