| Author |
Frontman: how to reference a boring normal HTML page
|
Pat Farrell
Rancher
Joined: Aug 11, 2007
Posts: 4442
|
|
I want to add a simple HTML page for the "about" link.
Something like:
about the company
org.bibeault.frontman.CommandNotFoundException: Command with verb about.html not found
How do I tell Frontman that this is a simple HTML href and not one that needs special processing?
Thanks
Pat
|
 |
D. Ogranos
Ranch Hand
Joined: Feb 02, 2009
Posts: 214
|
|
Well you wouldn't put simple HTML pages into the WEB-INF/views folder I guess, but instead somewhere at the top of your .war file structure. Then you can simply address it with a relative path (to your context path). That's what I would do probably.
If you really want to put it into the WEB-INF/views folder too, I suppose you need to go through a command to display the page, as you can't access pages under WEB-INF directly. In this case your command can do a context.forward("/WEB-INF/views/.../mypage.html").
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
|
|
|
Right, because an HTML page needs no command controller, I'd just place it outside WEB-INF and use a direct URL to it.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Pat Farrell
Rancher
Joined: Aug 11, 2007
Posts: 4442
|
|
Bear Bibeault wrote:Right, because an HTML page needs no command controller, I'd just place it outside WEB-INF and use a direct URL to it.
Can you be more specific?
I've got it above the WEB-INF and can't find it.
Its in a marketing directory, specifically in
None of these work.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
|
|
|
Like any other server-relative reference, the URL should start with the context path.
|
 |
 |
|
|
subject: Frontman: how to reference a boring normal HTML page
|
|
|