You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gaet <ga...@free.fr> on 2005/07/13 14:48:17 UTC
How to hide URL in Adress bar?
Hi evrybody,
I would like to hide the struts URL in the Adress bar of the client browser....
is there a way do always have www.mysite.com in the adress bar instead of www.mysite.com/myStrutsAction.do?param1=param...??
Thanks for your help!
Re: How to hide URL in Adress bar?
Posted by Michael Jouravlev <jm...@gmail.com>.
1) POST cannot be reloaded automatically. Using POST not for data
input is bad design.
2) Displaying the same URL for logically different pages, which could
otherwise be bookmarked is bad design.
3) Hiding URL completely is non-user-friendly design.
4) If you want to beautify your URLs, you may want to use something
like mod_rewrite.
Michael.
On 7/13/05, Martin Gainty <mg...@hotmail.com> wrote:
> change all transmissions from <html:>method="GET" to <html:>method="POST"
> Bon Chance,
> Martin-
> ----- Original Message -----
> From: "Gaet" <ga...@free.fr>
> To: "Mailing List Struts" <us...@struts.apache.org>
> Sent: Wednesday, July 13, 2005 8:48 AM
> Subject: How to hide URL in Adress bar?
>
>
> Hi evrybody,
>
> I would like to hide the struts URL in the Adress bar of the client
> browser....
> is there a way do always have www.mysite.com in the adress bar instead of
> www.mysite.com/myStrutsAction.do?param1=param...??
>
> Thanks for your help!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Stéphane Zuckerman <st...@gmail.com>.
>>>change all transmissions from <html:>method="GET" to <html:>method="POST"
Is there another way ? I do use the POST method when I can. But some
specific processes need to be done via GET (or at least I don't know how
to do them with POST)...
--
Stéphane Zuckerman
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Daniel Henrique Ferreira e Silva <dh...@gmail.com>.
Ooops,
Sorry Gaet for mispelling your name!
Daniel Silva.
On 7/13/05, Daniel Henrique Ferreira e Silva <dh...@gmail.com> wrote:
> Hi Baet,
>
> +1 for using POST.
>
> Cheers,
> Daniel Silva.
>
> On 7/13/05, Martin Gainty <mg...@hotmail.com> wrote:
> > change all transmissions from <html:>method="GET" to <html:>method="POST"
> > Bon Chance,
> > Martin-
> > ----- Original Message -----
> > From: "Gaet" <ga...@free.fr>
> > To: "Mailing List Struts" <us...@struts.apache.org>
> > Sent: Wednesday, July 13, 2005 8:48 AM
> > Subject: How to hide URL in Adress bar?
> >
> >
> > Hi evrybody,
> >
> > I would like to hide the struts URL in the Adress bar of the client
> > browser....
> > is there a way do always have www.mysite.com in the adress bar instead of
> > www.mysite.com/myStrutsAction.do?param1=param...??
> >
> > Thanks for your help!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Daniel Henrique Ferreira e Silva <dh...@gmail.com>.
Hi Baet,
+1 for using POST.
Cheers,
Daniel Silva.
On 7/13/05, Martin Gainty <mg...@hotmail.com> wrote:
> change all transmissions from <html:>method="GET" to <html:>method="POST"
> Bon Chance,
> Martin-
> ----- Original Message -----
> From: "Gaet" <ga...@free.fr>
> To: "Mailing List Struts" <us...@struts.apache.org>
> Sent: Wednesday, July 13, 2005 8:48 AM
> Subject: How to hide URL in Adress bar?
>
>
> Hi evrybody,
>
> I would like to hide the struts URL in the Adress bar of the client
> browser....
> is there a way do always have www.mysite.com in the adress bar instead of
> www.mysite.com/myStrutsAction.do?param1=param...??
>
> Thanks for your help!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Martin Gainty <mg...@hotmail.com>.
change all transmissions from <html:>method="GET" to <html:>method="POST"
Bon Chance,
Martin-
----- Original Message -----
From: "Gaet" <ga...@free.fr>
To: "Mailing List Struts" <us...@struts.apache.org>
Sent: Wednesday, July 13, 2005 8:48 AM
Subject: How to hide URL in Adress bar?
Hi evrybody,
I would like to hide the struts URL in the Adress bar of the client
browser....
is there a way do always have www.mysite.com in the adress bar instead of
www.mysite.com/myStrutsAction.do?param1=param...??
Thanks for your help!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Leon Rosenberg <st...@anotheria.net>.
> -----Ursprüngliche Nachricht-----
> Von: Christopher Marsh-Bourdon [mailto:lists@marsh-bourdon.com]
> Gesendet: Mittwoch, 13. Juli 2005 17:19
> An: Struts Users Mailing List
> Betreff: Re: How to hide URL in Adress bar?
>
> Why would you have to route every action through a single
> servlet/ action?
Because post only cuts parameters but not the action? So the part of the url
before the '?' must always be the same (was posted in original question).
>
> The others are nice to have for a web application (who wants
> a web app cached on indexable?), but if you code web sites
> you might be right.
Have you ever worked on a b2c portal? If you offer a service and want your
users to pay for it, you beg for maximal indexing on all
search sites, because it's the best way to become traffic and traffic is
money. But robots do not follow POST (or most of the javascript) so they
will probably not index your site at all (or just first page).
And a web site built in java is a webapp :-)
Regards
Leon
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Christopher Marsh-Bourdon <li...@marsh-bourdon.com>.
Why would you have to route every action through a single servlet/
action?
The others are nice to have for a web application (who wants a web
app cached on indexable?), but if you code web sites you might be right.
Cheers
Christopher Marsh-Bourdon
www.marsh-bourdon.com
AIM: marshbourdon
On 13 Jul 2005, at 16:16, Leon Rosenberg wrote:
> sorry, i've hit the send button too quickly...
>
> why not using POST:
>
> your page will not be found (or indexed) by any search engine
> you have to recode all (ALL!) links in your page with javascript to
> submit forms
> you will completely switch of browser cashes (whether you want it or
> not)
> back button will be disabled
> you will have to route every action through a single servlet/action
>
> is it enough? :-)
>
> regards
> Leon
>
> p.s. mod_rewrite is a apache module which allows you to rewrite urls
> with reg expressions.
>
> On Wed, 2005-07-13 at 17:05 +0200, Gaet wrote:
>
>> Ok,
>>
>> Thanks for all of your QUICK answers!
>> I think that usinf Frameset is not a good solution has it is not
>> recommended
>> from W3C
>> Using POST seems to be a good solution if it works....and it will
>> only hide
>> the parameters isn't it?
>>
>> Micheal, what is mod_rewrite?
>>
>> Thanks to all of you!
>>
>>
>> ----- Original Message -----
>> From: "Gaet" <ga...@free.fr>
>> To: "Mailing List Struts" <us...@struts.apache.org>
>> Sent: Wednesday, July 13, 2005 2:48 PM
>> Subject: How to hide URL in Adress bar?
>>
>>
>> Hi evrybody,
>>
>> I would like to hide the struts URL in the Adress bar of the client
>> browser....
>> is there a way do always have www.mysite.com in the adress bar
>> instead of
>> www.mysite.com/myStrutsAction.do?param1=param...??
>>
>> Thanks for your help!
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
Re: How to hide URL in Adress bar?
Posted by Leon Rosenberg <st...@anotheria.net>.
sorry, i've hit the send button too quickly...
why not using POST:
your page will not be found (or indexed) by any search engine
you have to recode all (ALL!) links in your page with javascript to
submit forms
you will completely switch of browser cashes (whether you want it or
not)
back button will be disabled
you will have to route every action through a single servlet/action
is it enough? :-)
regards
Leon
p.s. mod_rewrite is a apache module which allows you to rewrite urls
with reg expressions.
On Wed, 2005-07-13 at 17:05 +0200, Gaet wrote:
> Ok,
>
> Thanks for all of your QUICK answers!
> I think that usinf Frameset is not a good solution has it is not recommended
> from W3C
> Using POST seems to be a good solution if it works....and it will only hide
> the parameters isn't it?
>
> Micheal, what is mod_rewrite?
>
> Thanks to all of you!
>
>
> ----- Original Message -----
> From: "Gaet" <ga...@free.fr>
> To: "Mailing List Struts" <us...@struts.apache.org>
> Sent: Wednesday, July 13, 2005 2:48 PM
> Subject: How to hide URL in Adress bar?
>
>
> Hi evrybody,
>
> I would like to hide the struts URL in the Adress bar of the client
> browser....
> is there a way do always have www.mysite.com in the adress bar instead of
> www.mysite.com/myStrutsAction.do?param1=param...??
>
> Thanks for your help!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
AW: How to hide URL in Adress bar?
Posted by Leon Rosenberg <st...@anotheria.net>.
> -----Ursprüngliche Nachricht-----
> Von: Michael Jouravlev [mailto:jmikus@gmail.com]
> Gesendet: Donnerstag, 14. Juli 2005 00:09
> An: Struts Users Mailing List
> Betreff: Re: How to hide URL in Adress bar?
>
> On 7/13/05, Leon Rosenberg <st...@anotheria.net> wrote:
> > In fact I had this requirement multiple times, marketing
> departments
> > of large companies don't want to show the user cryptic urls
> he don't
> > understand. Last time I had it a large austrian company
> from the food
> > sector, they reasoned, they don't want different urls, because they
> > want always their "cool url". (The solution was the frameset, since
> > the background of the side was white, 1pix white border above the
> > content didn't matter).
>
> Because of idiots like these (I mean your Austrian company) I
> have to go another mile and to open a frame in a separate
> window and bookmark it.
>
> > Another point may be, that you don't want a user to bookmark a
> > specific action, because it's so highly dynamical, that it doesn't
> > make sense. If you always show the same url, the (normal
> dummy) user
> > always bookmarks and comes out at your homepage.
>
> An application should be intelligent enough to recognize that
> a user requested an invalid resource, and tell him that
> resource is removed, and redirect him to home page.
Sadly yes, but on the other hand we have users (in my current project) who
actually really DO REBOOT their pc if they see a troubleticket from our page
(ressource is unavailable, try again later...).
Look 90% of the internet users actually uses explorer... So how many of them
are dummies? :-)
And unfortunately I don't have the pleasure to develop for developers, but
for dummies...
>
> But I can live with frames, using POST for everything is the
> most hideous solution ever.
Absolutely :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Michael Jouravlev <jm...@gmail.com>.
On 7/13/05, Leon Rosenberg <st...@anotheria.net> wrote:
> In fact I had this requirement multiple times, marketing departments of
> large companies don't want to show the user cryptic urls he don't
> understand. Last time I had it a large austrian company from the food
> sector, they reasoned, they don't want different urls, because they want
> always their "cool url". (The solution was the frameset, since the
> background of the side was white, 1pix white border above the content didn't
> matter).
Because of idiots like these (I mean your Austrian company) I have to
go another mile and to open a frame in a separate window and bookmark
it.
> Another point may be, that you don't want a user to bookmark a specific
> action, because it's so highly dynamical, that it doesn't make sense. If you
> always show the same url, the (normal dummy) user always bookmarks and comes
> out at your homepage.
An application should be intelligent enough to recognize that a user
requested an invalid resource, and tell him that resource is removed,
and redirect him to home page.
But I can live with frames, using POST for everything is the most
hideous solution ever.
Michael.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Stéphane Zuckerman <st...@gmail.com>.
> In my opinion showing the same URL for all pages is a very bad solution.
> Why is it needed?
I don't know for the original poster, but what bothers me is the fact
that one can see the parameters in the url displayed. Apart from that,
Having different URLs seems a normal behaviour...
--
Stéphane Zuckerman
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Leon Rosenberg <st...@anotheria.net>.
> -----Ursprüngliche Nachricht-----
> Von: Tamas Szabo [mailto:szabtam@gmail.com]
> Gesendet: Mittwoch, 13. Juli 2005 17:26
> An: Struts Users Mailing List
> Betreff: Re: How to hide URL in Adress bar?
>
> On Wed, 2005-07-13 at 17:11 +0200, Leon Rosenberg wrote:
> > Actually using POST is the WORST solution.
>
> In my opinion showing the same URL for all pages is a very
> bad solution.
> Why is it needed?
>
In fact I had this requirement multiple times, marketing departments of
large companies don't want to show the user cryptic urls he don't
understand. Last time I had it a large austrian company from the food
sector, they reasoned, they don't want different urls, because they want
always their "cool url". (The solution was the frameset, since the
background of the side was white, 1pix white border above the content didn't
matter).
Another point may be, that you don't want a user to bookmark a specific
action, because it's so highly dynamical, that it doesn't make sense. If you
always show the same url, the (normal dummy) user always bookmarks and comes
out at your homepage.
Regards
Leon
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Tamas Szabo <sz...@gmail.com>.
On Wed, 2005-07-13 at 17:11 +0200, Leon Rosenberg wrote:
> Actually using POST is the WORST solution.
In my opinion showing the same URL for all pages is a very bad solution.
Why is it needed?
Tamas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Leon Rosenberg <st...@anotheria.net>.
Actually using POST is the WORST solution.
On Wed, 2005-07-13 at 17:05 +0200, Gaet wrote:
> Ok,
>
> Thanks for all of your QUICK answers!
> I think that usinf Frameset is not a good solution has it is not recommended
> from W3C
> Using POST seems to be a good solution if it works....and it will only hide
> the parameters isn't it?
>
> Micheal, what is mod_rewrite?
>
> Thanks to all of you!
>
>
> ----- Original Message -----
> From: "Gaet" <ga...@free.fr>
> To: "Mailing List Struts" <us...@struts.apache.org>
> Sent: Wednesday, July 13, 2005 2:48 PM
> Subject: How to hide URL in Adress bar?
>
>
> Hi evrybody,
>
> I would like to hide the struts URL in the Adress bar of the client
> browser....
> is there a way do always have www.mysite.com in the adress bar instead of
> www.mysite.com/myStrutsAction.do?param1=param...??
>
> Thanks for your help!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Gaet <ga...@free.fr>.
Ok,
Thanks for all of your QUICK answers!
I think that usinf Frameset is not a good solution has it is not recommended
from W3C
Using POST seems to be a good solution if it works....and it will only hide
the parameters isn't it?
Micheal, what is mod_rewrite?
Thanks to all of you!
----- Original Message -----
From: "Gaet" <ga...@free.fr>
To: "Mailing List Struts" <us...@struts.apache.org>
Sent: Wednesday, July 13, 2005 2:48 PM
Subject: How to hide URL in Adress bar?
Hi evrybody,
I would like to hide the struts URL in the Adress bar of the client
browser....
is there a way do always have www.mysite.com in the adress bar instead of
www.mysite.com/myStrutsAction.do?param1=param...??
Thanks for your help!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to hide URL in Adress bar?
Posted by Leon Rosenberg <st...@anotheria.net>.
yes, put a frameset in your top page, with 1 px height frame (white) on
top, and the actual application in your other frame. Then the link in
the adress bar will never change.
regards
leon
On Wed, 2005-07-13 at 14:48 +0200, Gaet wrote:
> Hi evrybody,
>
> I would like to hide the struts URL in the Adress bar of the client browser....
> is there a way do always have www.mysite.com in the adress bar instead of www.mysite.com/myStrutsAction.do?param1=param...??
>
> Thanks for your help!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org