You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Frank W. Zammetti" <fz...@omnytex.com> on 2006/09/07 19:04:07 UTC

Re: why an arbitrary html page can not be displayed in struts

But again, the URL you show here is NOT valid... if your just making a 
typo, then OK, but http:localhost is a malformed URL... it needs to be 
http://localhost (the rest after that looks fine).

Frank

liner_zhao wrote:
> no typing error, my context path is C:tomcat/struts_project/x.html,  the file
> is stored in the path
> 
> http:localhost:8080/struts_project/x.html,
> is not displayed.  
> 
> 
> 
> 
> 
> 
> 
> David Friedman-2 wrote:
>> Normally a person maps *.do as the extension for a Struts servlet so it
>> will
>> not interfere with the display of regular files.  What are all of your
>> mappings for the webapp with the "/struts_project" context path.  Also,
>> you
>> list .html files in your example urls but your next line states a .htm
>> (not
>> ending in the letter L) file.  Is that a typing error or are you really
>> typing a .html URL for a .htm path.  In that case you need to remember the
>> file extension must match.
>>
>> Regards,
>> David
>>
>> -----Original Message-----
>> From: liner_zhao [mailto:liner_zhao@yahoo.com]
>> Sent: Friday, September 08, 2006 7:10 AM
>> To: user@struts.apache.org
>> Subject: why an arbitrary html page can not be displayed in struts
>>
>> in a normal servlert project, an  arbitrary html  page can be dsplayed,
>> when
>> i click on the link http:localhost:8080/servlet_project/x.html
>>   but in struts project  it can not be dipayed,  if when i click on the
>> link
>> http:localhost:8080/struts_project/x.html,
>> although the x.htm file exists in the both projects, why? how can make the
>> x.htnl diplay in struts project?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
> 

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: fzammetti@hotmail.com
Author of "Practical Ajax Projects With Java Technology"
  (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: why an arbitrary html page can not be displayed in struts

Posted by Michael Jouravlev <jm...@gmail.com>.
From: http://www.raizlabs.com/blog/2006/08/explorations-in-firefox-ui.html

"There are several problems with URL's/URI's and several ideas to
address these problems.

* URL's get too long making it difficult to copy/paste
* URL's get used to pass form data (that users don't usually need or understand)

Many of these issues can be addressed:

 * Remove the protocol leader for the protocols "http" and https."
Secure URL's would still use a lock and yellow colors to show secure
sites. These would be implied, users could still type them but they
would be hidden. This would shorten the URL and make it more obvious
that this portion of the URL does not need to be typed.
 * Slashes would get converted to arrow glyphs. This is partly
aesthetic but it also helps communicate that folders invoke a change
in context. It would also help with auto-completing URL's..."

On 9/7/06, Frank W. Zammetti <fz...@omnytex.com> wrote:
> I know, they're so passe, aren't they?!? LOL (hehe, not sure how to put
> the e with the tick over it in an eMail!)
>
> Frank
>
> Monkeyden wrote:
> > yeah, I overlooked those pesky slashes.  who needs 'em?  :)
> >
> > On 9/7/06, Frank W. Zammetti <fz...@omnytex.com> wrote:
> >>
> >> But again, the URL you show here is NOT valid... if your just making a
> >> typo, then OK, but http:localhost is a malformed URL... it needs to be
> >> http://localhost (the rest after that looks fine).
> >>
> >> Frank
> >>
> >> liner_zhao wrote:
> >> > no typing error, my context path is C:tomcat/struts_project/x.html,
> >> the
> >> file
> >> > is stored in the path
> >> >
> >> > http:localhost:8080/struts_project/x.html,
> >> > is not displayed.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > David Friedman-2 wrote:
> >> >> Normally a person maps *.do as the extension for a Struts servlet
> >> so it
> >> >> will
> >> >> not interfere with the display of regular files.  What are all of your
> >> >> mappings for the webapp with the "/struts_project" context path.
> >> Also,
> >> >> you
> >> >> list .html files in your example urls but your next line states a .htm
> >> >> (not
> >> >> ending in the letter L) file.  Is that a typing error or are you
> >> really
> >> >> typing a .html URL for a .htm path.  In that case you need to remember
> >> the
> >> >> file extension must match.
> >> >>
> >> >> Regards,
> >> >> David
> >> >>
> >> >> -----Original Message-----
> >> >> From: liner_zhao [mailto:liner_zhao@yahoo.com]
> >> >> Sent: Friday, September 08, 2006 7:10 AM
> >> >> To: user@struts.apache.org
> >> >> Subject: why an arbitrary html page can not be displayed in struts
> >> >>
> >> >> in a normal servlert project, an  arbitrary html  page can be
> >> dsplayed,
> >> >> when
> >> >> i click on the link http:localhost:8080/servlet_project/x.html
> >> >>   but in struts project  it can not be dipayed,  if when i click on
> >> the
> >> >> link
> >> >> http:localhost:8080/struts_project/x.html,
> >> >> although the x.htm file exists in the both projects, why? how can make
> >> the
> >> >> x.htnl diplay in struts project?
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >>
> >> >>
> >> >>
> >> >
> >>
> >> --
> >> Frank W. Zammetti
> >> Founder and Chief Software Architect
> >> Omnytex Technologies
> >> http://www.omnytex.com
> >> AIM/Yahoo: fzammetti
> >> MSN: fzammetti@hotmail.com
> >> Author of "Practical Ajax Projects With Java Technology"
> >> (2006, Apress, ISBN 1-59059-695-1)
> >> Java Web Parts - http://javawebparts.sourceforge.net
> >> Supplying the wheel, so you don't have to reinvent it!
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM/Yahoo: fzammetti
> MSN: fzammetti@hotmail.com
> Author of "Practical Ajax Projects With Java Technology"
>   (2006, Apress, ISBN 1-59059-695-1)
> Java Web Parts - http://javawebparts.sourceforge.net
>   Supplying the wheel, so you don't have to reinvent it!
>
> ---------------------------------------------------------------------
> 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: why an arbitrary html page can not be displayed in struts

Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
I know, they're so passe, aren't they?!? LOL (hehe, not sure how to put 
the e with the tick over it in an eMail!)

Frank

Monkeyden wrote:
> yeah, I overlooked those pesky slashes.  who needs 'em?  :)
> 
> On 9/7/06, Frank W. Zammetti <fz...@omnytex.com> wrote:
>>
>> But again, the URL you show here is NOT valid... if your just making a
>> typo, then OK, but http:localhost is a malformed URL... it needs to be
>> http://localhost (the rest after that looks fine).
>>
>> Frank
>>
>> liner_zhao wrote:
>> > no typing error, my context path is C:tomcat/struts_project/x.html,  
>> the
>> file
>> > is stored in the path
>> >
>> > http:localhost:8080/struts_project/x.html,
>> > is not displayed.
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > David Friedman-2 wrote:
>> >> Normally a person maps *.do as the extension for a Struts servlet 
>> so it
>> >> will
>> >> not interfere with the display of regular files.  What are all of your
>> >> mappings for the webapp with the "/struts_project" context path.  
>> Also,
>> >> you
>> >> list .html files in your example urls but your next line states a .htm
>> >> (not
>> >> ending in the letter L) file.  Is that a typing error or are you 
>> really
>> >> typing a .html URL for a .htm path.  In that case you need to remember
>> the
>> >> file extension must match.
>> >>
>> >> Regards,
>> >> David
>> >>
>> >> -----Original Message-----
>> >> From: liner_zhao [mailto:liner_zhao@yahoo.com]
>> >> Sent: Friday, September 08, 2006 7:10 AM
>> >> To: user@struts.apache.org
>> >> Subject: why an arbitrary html page can not be displayed in struts
>> >>
>> >> in a normal servlert project, an  arbitrary html  page can be 
>> dsplayed,
>> >> when
>> >> i click on the link http:localhost:8080/servlet_project/x.html
>> >>   but in struts project  it can not be dipayed,  if when i click on 
>> the
>> >> link
>> >> http:localhost:8080/struts_project/x.html,
>> >> although the x.htm file exists in the both projects, why? how can make
>> the
>> >> x.htnl diplay in struts project?
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >>
>> >
>>
>> -- 
>> Frank W. Zammetti
>> Founder and Chief Software Architect
>> Omnytex Technologies
>> http://www.omnytex.com
>> AIM/Yahoo: fzammetti
>> MSN: fzammetti@hotmail.com
>> Author of "Practical Ajax Projects With Java Technology"
>> (2006, Apress, ISBN 1-59059-695-1)
>> Java Web Parts - http://javawebparts.sourceforge.net
>> Supplying the wheel, so you don't have to reinvent it!
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: fzammetti@hotmail.com
Author of "Practical Ajax Projects With Java Technology"
  (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: why an arbitrary html page can not be displayed in struts

Posted by Monkeyden <mo...@gmail.com>.
yeah, I overlooked those pesky slashes.  who needs 'em?  :)

On 9/7/06, Frank W. Zammetti <fz...@omnytex.com> wrote:
>
> But again, the URL you show here is NOT valid... if your just making a
> typo, then OK, but http:localhost is a malformed URL... it needs to be
> http://localhost (the rest after that looks fine).
>
> Frank
>
> liner_zhao wrote:
> > no typing error, my context path is C:tomcat/struts_project/x.html,  the
> file
> > is stored in the path
> >
> > http:localhost:8080/struts_project/x.html,
> > is not displayed.
> >
> >
> >
> >
> >
> >
> >
> > David Friedman-2 wrote:
> >> Normally a person maps *.do as the extension for a Struts servlet so it
> >> will
> >> not interfere with the display of regular files.  What are all of your
> >> mappings for the webapp with the "/struts_project" context path.  Also,
> >> you
> >> list .html files in your example urls but your next line states a .htm
> >> (not
> >> ending in the letter L) file.  Is that a typing error or are you really
> >> typing a .html URL for a .htm path.  In that case you need to remember
> the
> >> file extension must match.
> >>
> >> Regards,
> >> David
> >>
> >> -----Original Message-----
> >> From: liner_zhao [mailto:liner_zhao@yahoo.com]
> >> Sent: Friday, September 08, 2006 7:10 AM
> >> To: user@struts.apache.org
> >> Subject: why an arbitrary html page can not be displayed in struts
> >>
> >> in a normal servlert project, an  arbitrary html  page can be dsplayed,
> >> when
> >> i click on the link http:localhost:8080/servlet_project/x.html
> >>   but in struts project  it can not be dipayed,  if when i click on the
> >> link
> >> http:localhost:8080/struts_project/x.html,
> >> although the x.htm file exists in the both projects, why? how can make
> the
> >> x.htnl diplay in struts project?
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >>
> >
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM/Yahoo: fzammetti
> MSN: fzammetti@hotmail.com
> Author of "Practical Ajax Projects With Java Technology"
> (2006, Apress, ISBN 1-59059-695-1)
> Java Web Parts - http://javawebparts.sourceforge.net
> Supplying the wheel, so you don't have to reinvent it!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>